Code is currently structured like this:
<VictoryChart>
<VictoryGroup>
<VictoryBar(s)/>
</VictoryGroup>
</VictoryChart>
Does anyone have any ideas how I might make VictoryVoronoiContainer hover details persist on a user click event? (https://formidable.com/open-source/victory/docs/victory-voronoi-container/)
Specifically, if a user clicked while a given popup was active, using VoronoiDimension='x' in this case, that the hover popup would remain visible as they navigate the line so they can compare values.
victory@32.0.0
(horizontal chart improvements) 2) a nicer docs sidebar experience for small screen sizes 3) It's all in react-static
:tada:
<VictoryChart theme={ VictoryTheme.material }>
<VictoryAxis style={ { grid: { stroke: 'transparent' } } } />
<VictoryAxis dependentAxis tickFormat={ (y) => Math.round(y) }
label={ chartLabel }
style={ { ticks: { stroke: 'transparent' }, axis: { stroke: 'transparent' }, axisLabel: { padding: 25 } } } />
<VictoryLine data={ data }
domain={ { y: [0, target] } }
interpolation='linear'
style={ {
data: { stroke: chartStroke },
parent: { border: '1px solid blue' }
} } />
<VictoryScatter style={ { data: { fill: chartFill } } }
size={ 3 }
data={ data } />
</VictoryChart>
Hi! I have a stacked bar chart that have bars with negative values. I'd like to have the chart display a tick for the minimum value for the y range. In this case, it would be a tick at y=-6.
Here's a codesandbox with a sample of it:
https://codesandbox.io/s/o4r4kmx70q
Is there a way to do it without having to pass an array of tick values?
axisLabelComponent
rather
<g>
element, so there should be some way that I can get a measurement of that element, I just don't know the easiest way to do so.