nivo
nivo copied to clipboard
Height of charts keeps increasing endlessly when using CSS grid or Flexbox
Describe/explain the bug The pie chart keeps on increasing its height inside a sematic flex grid.
To Reproduce Steps to reproduce the behavior: Have a pie chart inside a sematic UI flex grid Here is an example in sand box :https://codesandbox.io/s/semantic-ui-example-woriq?fontsize=14&hidenavigation=1&theme=dark
Expected behavior The svg rect height should be maxed at height of the container
Desktop (please complete the following information):
- Browser [chrome]
- Version [ 79.0.3945.130 (Official Build) (64-bit)]
Smartphone (please complete the following information): NA
As a workaround, I had to set a height
in the container's CSS. max-height
and flex-basis
did not appear to have the desired effect.
This issue seems to affect the responsive Pie, Bar and Line components. I've not tried the others, yet.
Same issue, but I'm using theme-ui...
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
It's still a current issue
bump
any idea why this is happening ?
same problem no solution :(
Yeah I was excited to use this software but also encountered this.
Probably the same issue as https://github.com/plouc/nivo/issues/109. Maybe try the workaround.
bump
Same issue with bump
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
The bug is still present at v0.73.1
See https://codesandbox.io/s/semantic-ui-example-forked-ps9x9
If you set the height of the parent div the issue goes away
https://github.com/plouc/nivo/issues/1734
This workaround was already suggested above: https://github.com/plouc/nivo/issues/867#issuecomment-638993290 It's not useful if the chart should scale dynamically with its parent, as is often desired when using flexbox.
Same here.
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!
As far as I can tell, this is still an issue. See https://github.com/plouc/nivo/issues/867#issuecomment-638993290 for a workaround.
I can confirm that.
Still an issue.
Still same issue and when I set:
<div style={{position: "relative"}}>
<div style={{ position: "absolute", width: "100%", height: "400px" }}>
<ResponsiveLine />
</div>
</div>
There are no chart inside, just blank
Affects me as well in ResponsiveNetwork
bump
bump
bump
bump
bump bump bump, are you folks gonna fix this or what ?
Bump on this
Bump on this - making it incredibly difficult to use modern layouts alongside any nivo chart components
Bump :( . I thought I had done something wrong 💯