@kyper/graphs
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -243,3 +243,3 @@ import React, { useRef } from 'react' | ||
) : null} | ||
<g role="list"> | ||
<g data-ui-test="kyper-bar-chart" role="list"> | ||
{data.map((d, index) => { | ||
@@ -261,2 +261,3 @@ const isPositive = d.value >= 0 // We want labels above the y axis zero point. | ||
aria-label={d.ariaLabel || `${d.label} has a value of ${d.value}`} | ||
data-ui-test="kyper-bar-chart-bar" | ||
key={index} | ||
@@ -263,0 +264,0 @@ onClick={() => { |
@@ -67,3 +67,10 @@ import PropTypes from 'prop-types' | ||
) : null} | ||
<text aria-hidden={true} ref={textRef} style={styles.text} x={x} y={y}> | ||
<text | ||
aria-hidden={true} | ||
data-ui-test="kyper-bar-label" | ||
ref={textRef} | ||
style={styles.text} | ||
x={x} | ||
y={y} | ||
> | ||
{children} | ||
@@ -70,0 +77,0 @@ </text> |
@@ -20,2 +20,3 @@ import React from 'react' | ||
aria-hidden={true} | ||
data-ui-test="kyper-threshold" | ||
style={styles} | ||
@@ -22,0 +23,0 @@ x1={0} |
@@ -37,3 +37,3 @@ import * as d3 from 'd3' | ||
return <g className={css(styles.g)} ref={ref} {...rest} /> | ||
return <g className={css(styles.g)} data-ui-test="kyper-x-axis" ref={ref} {...rest} /> | ||
} | ||
@@ -40,0 +40,0 @@ |
@@ -37,3 +37,3 @@ import * as d3 from 'd3' | ||
return <g className={css(styles.g)} ref={ref} {...rest} /> | ||
return <g className={css(styles.g)} data-ui-test="kyper-y-axis" ref={ref} {...rest} /> | ||
} | ||
@@ -40,0 +40,0 @@ |
{ | ||
"name": "@kyper/graphs", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Kyper Graphs", | ||
@@ -37,3 +37,3 @@ "author": "MX", | ||
}, | ||
"gitHead": "f5eb967bdfcc2eca47f9e9bec2a675b7313eb58b" | ||
"gitHead": "756728f373a2cdafcdf73577af93d23610626c29" | ||
} |
42621
1306