react-vis icon indicating copy to clipboard operation
react-vis copied to clipboard

Specific data attribute's styling does not work on vertical or horizontal series

Open uhetz opened this issue 4 years ago • 1 comments

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?

uhetz avatar Jul 15 '20 14:07 uhetz

did you ever get this working?

manoadamro avatar Jun 01 '21 13:06 manoadamro