ng2-charts icon indicating copy to clipboard operation
ng2-charts copied to clipboard

ng2-charts drawn partially for big chart in Firefox

Open Andranik-89 opened this issue 2 years ago • 3 comments

Hi guys. I prepared a stackblitz example for you. You can see only 60% (16384px or 2^14px) of the ng2-chart is drawn in Firefox, but 100% in Chrome - https://stackblitz.com/edit/github-nlvlrr-mwudnj?file=src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fapp.component.html,tsconfig.json&preset=node.

Maybe there is some quick workaround to this? Have been trying to solve this bug since the last week...

Andranik-89 avatar Aug 08 '22 20:08 Andranik-89

Firefox: image

Andranik-89 avatar Aug 08 '22 20:08 Andranik-89

Chrome: image

Andranik-89 avatar Aug 08 '22 20:08 Andranik-89

I also prepared this small jsfiddle eg - you can see ordinary canvas draws up to 32000px in Firefox normally - https://jsfiddle.net/1urw9q84/. 34000px for example will give you an error

Andranik-89 avatar Aug 09 '22 21:08 Andranik-89

Can you reproduce the same with Chart.js? If so, it's a bug for that library. There is absolutely no rendering logic in this one.

santam85 avatar Sep 20 '22 14:09 santam85