visx
visx copied to clipboard
[xy-chart] Wrong Grid typings?
This works although a TS error
<Grid
rows
columns={false}
strokeDasharray="10, 5"
// Here is the error that I have to expect, even tho it affects looks as if it's how it suppose to be
strokeOpacity={0.2}
/>
When I try as per docs:
<Grid
rows
columns={false}
strokeDasharray="10, 5"
lineStyle={{
strokeOpacity: 0.7,
}}
/>
It doesn't affect the looks of my grid. I mean, it gets kinda more opaque, but if I make it 0.7 or 1, it doesn't affect it at all.
So whether lineStyle
is just {}
or with strokeOpacity: 0.7
or whatever, no difference, while strokeOpacity
prop actually works as expected.