@kyper/graphs
Advanced tools
Comparing version 0.0.6 to 0.1.0
@@ -1,3 +0,7 @@ | ||
## [0.0.6](https://gitlab.mx.com/mx/kyper-react/-/commits/@kyper/graphs@0.0.6) - 02-03-2020 | ||
## [0.1.0](https://gitlab.mx.com/mx/kyper-react/-/commits/@kyper/graphs@0.1.0) - 02-08-2021 | ||
- **ADDED** - BarChart now accepts `enableKeyboardSupport` which sets the bar tabIndex to -1 for certain use cases. | ||
## [0.0.6](https://gitlab.mx.com/mx/kyper-react/-/commits/@kyper/graphs@0.0.6) - 02-03-2021 | ||
- **ADDED** - BarChart now accepts `enableYZeroLine` for rendering a darker axis line at 0. | ||
@@ -4,0 +8,0 @@ |
@@ -40,2 +40,3 @@ import React, { useRef } from 'react' | ||
enableAnimations: PropTypes.bool, | ||
enableKeyboardSupport: PropTypes.bool, | ||
enableXAxis: PropTypes.bool, | ||
@@ -98,2 +99,3 @@ enableYAxis: PropTypes.bool, | ||
enableAnimations: true, | ||
enableKeyboardSupport: true, | ||
enableXAxis: true, | ||
@@ -111,2 +113,3 @@ enableYAxis: true, | ||
enableAnimations, | ||
enableKeyboardSupport, | ||
enableXAxis, | ||
@@ -193,2 +196,8 @@ enableYAxis, | ||
let tabIndex = onBarClick ? 0 : null | ||
if (tabIndex === 0 && !enableKeyboardSupport) { | ||
tabIndex = -1 | ||
} | ||
return ( | ||
@@ -234,3 +243,3 @@ <Graph height={height} width={width} {...svgProps}> | ||
style={onBarClick ? styles.actionableBar : null} | ||
tabIndex={onBarClick ? 0 : null} | ||
tabIndex={tabIndex} | ||
transform={hasGroupedData ? `translate(${xScale(d.label)}, 0)` : null} | ||
@@ -237,0 +246,0 @@ > |
{ | ||
"name": "@kyper/graphs", | ||
"version": "0.0.6", | ||
"version": "0.1.0", | ||
"description": "Kyper Graphs", | ||
@@ -32,3 +32,3 @@ "author": "MX", | ||
}, | ||
"gitHead": "537b6cc61654547734d423e94637a1d2a42db4fe" | ||
"gitHead": "0522a051d088af112a4eb7421db5c5f0cc20b21a" | ||
} |
24190
716