huww98 / TimeChart

An chart library specialized for large-scale time-series data, built on WebGL.
https://huww98.github.io/TimeChart
MIT License
365 stars 31 forks source link

Strange behavior on Ionic Vue, small chart #38

Closed DrakoPOD closed 2 years ago

DrakoPOD commented 2 years ago

When the page is load, the chart display really small, in elements inspector some dimensions have 0, but they change on resize.

I need to resize the windows, calling onResize doesn't do anything. (I'm using the code example) image

huww98 commented 2 years ago

Sorry, I can only help if I can reproduce the issue. You should compare your CSS with the demo, and ensure the <div> is correctly sized before it is passed to TimeChart

DrakoPOD commented 2 years ago

I checked the div, it has 0 dimension, the only think that i was able to do was add a delay, is not practical, but works. Vue doesn't wait to the element to be fully rendered, even with mounted().