ghalex / vue3-charts

Vue3-Charts is an SVG-based charting library that is very easy to use and highly customizable
https://vue3charts.org
MIT License
142 stars 23 forks source link

If external container size is defined by display: grid, lower axis ticks dissapear #4

Closed baybal closed 2 years ago

baybal commented 3 years ago

https://gist.github.com/baybal/bf3ba9037ba2719ec4b39fe1226e3874

ghalex commented 3 years ago

Can you provide a sandbox example like this one: https://codesandbox.io/s/vue3-charts-example-14mmp

So I can check what is the problem. I personally use it with "display: grid" and works fine for me.

baybal commented 3 years ago

Can you provide a sandbox example like this one: https://codesandbox.io/s/vue3-charts-example-14mmp

So I can check what is the problem. I personally use it with "display: grid" and works fine for me.

https://codesandbox.io/s/vue3-charts-example-forked-ohwod

baybal commented 3 years ago

@ghalex I was debugging this. The size of the canvas becomes negative for some unfathomable reason if I use responsive.

Screenshot_2021-09-01_06-57-19

baybal commented 3 years ago

I believe it's because canvas size goes to 0 at the very beginning, before CSS grid starting pushing back