visx icon indicating copy to clipboard operation
visx copied to clipboard

[xy-chart] Wrong Grid typings?

Open RIP21 opened this issue 3 years ago • 0 comments

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.

RIP21 avatar Jan 07 '21 22:01 RIP21