react-vis
react-vis copied to clipboard
Specific data attribute's styling does not work on vertical or horizontal series
Hello,
I was trying to repeat this example (line 94), but using another type of chart.
My code:
<VerticalBarSeries
data={data.d1.map(row => { return { ...row, style: { stroke: 'black', strokeWidth: '10px' }}})}
barWidth={0.4}
color={palette[0].lighter}
colorType='literal'
opacity={0.7}
/>
In my example I'm trying to add styling to each data point in the array. This has been made just in purpose of testing. I've repeated the trick using ArcSeries Component without an issue. In the case with VerticalBarSeries that does not work.
This is my first issue on github. Please, excuse me if I've done something wring by creating this topic.
Thank you.
Update: I've found "getColor" property. I think there should be a way, to add similar function for stroke, like "getStroke". I can't find that in the file. May anyone knows where?
did you ever get this working?