Closed MarcWeller closed 5 years ago
Sorry, should have set this.loaded only once. Within .then...
Although it is rendered each time it does not render correctly after resizing the page. Canvas ist outside the b-card element.
MaintainAspectRatio needs to be set to false.
Hi *,
I am currently developing a CoreUI based single page application and I am working on a dashboard containing some charts receiving there date via axios call.
Expected Behavior
I would like the charts to be rendered when I call the dashboard component. This is currently working. I need this to work after leaving the dashboard component and coming back to it again.
Actual Behavior
When first opening the dashboard the chart isrendered fine. Then I use vue router to go to another compontent and go back to the dashboard the chart are not rendered. Something I noticed: Canvas height is not set due to developer tools.
As far as I see data and options are there.
As soon as I change the browsers width the chart is rendered, but depending on the width the charts are not rendered within the canvas.
Here ist what my code looks like: ($navapi being axios...)
OrderCountLine.vue
OrderCountLine.vue
Environment