Erick Engelhardt
Erick Engelhardt

Reputation: 724

Charts flickering

How can I identify why is this charts.js flickering?

enter image description here

enter image description here

Upvotes: 1

Views: 2872

Answers (1)

potatopeelings
potatopeelings

Reputation: 41065

Just a shot in the dark with the limited information.

A resize of the chart or window or the parent element (e.g. could be caused by a collapsing parent or sibling of the parent) will cause chartjs to trigger its resize event, redrawing the chart.

If you have animation turned off, this may not be noticeable unless you hover over a tooltip. Try turning animation on to see if the chart is redrawing.

Upvotes: 4

Related Questions