huww98 / TimeChart

An chart library specialized for large-scale time-series data, built on WebGL.

Home Page:https://huww98.github.io/TimeChart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Strange behavior on Ionic Vue, small chart

DrakoPOD opened this issue · comments

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

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

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().