mercredi 6 mai 2015

Side effects from Chartjs for only *some* clients

I was working on a couple of Chart.js charts and have found some strange behavior.

In this fiddle: http://ift.tt/1GXDooM people have been getting a variety of side effects when pressing the buttons "Day", "Week", or "Month".

What it should do: Simply refresh the chart with potentially new information displayed(the pie and doughnut actually don't have anything new)

What it should not do: As a side effect for some, it is growing the size of the <canvas> on each click. It does it for me. But it doesn't do it for a lot of other people accessing this fiddle. Here is a screen shot:

enter image description here

Why is it doing this for some people and not others? How can I remedy this problem? If you are curious, I initially asked a question about something else about these charts, but this could be somewhat related.

Any clue what could be causing this in my browser and other browsers/computers?

Aucun commentaire:

Enregistrer un commentaire