Chart render issues on Angular #8347
Answered
by
etimberg
DuncanTLaw
asked this question in
Q&A
-
I have a chart that looks like as expected, nice and smooth, when it is first initialised: But if I change to some other route, then change back to the route that contains the chart, the shape of the chart is all weird and jagged: What could be the cause of this? I have tried the prototype methods on https://www.chartjs.org/docs/latest/developers/api.html, however, I am not sure what I've done wrong.I am on Angular 10.1.3 and chart.js 2.9.3 Below are some relevant pieces of code:
|
Beta Was this translation helpful? Give feedback.
Answered by
etimberg
Jan 27, 2021
Replies: 1 comment 6 replies
-
I'm guessing something isn't being cleaned up correctly, so when you navigate a bunch of chart configs merge together. |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
DuncanTLaw
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm guessing something isn't being cleaned up correctly, so when you navigate a bunch of chart configs merge together.