amcharts5 icon indicating copy to clipboard operation
amcharts5 copied to clipboard

How to handling jagged pie charts slices and spotty area line charts

Open SDVII opened this issue 1 year ago • 8 comments

Question

  • Is there a way to increase anti aliasing or reduce the jaggedness of Pie Charts? Screenshot 2024-06-19 at 14 21 12
  • Is there a way to mitigate area charts having rendering issues with fill? Screenshot 2024-06-19 at 13 48 30

Thank you for your time

Environment (if applicable)

  • amCharts v5.8.0
  • Microsoft Edge v126.0.2592.61
  • React v18.2.0

SDVII avatar Jun 21 '24 06:06 SDVII

That does not look right. Can you provide a working demo?

martynasma avatar Jun 21 '24 06:06 martynasma

Here is a Codepen for the Pie Chart. As you can see, the stroke around each slice is quite jagged https://codepen.io/SDVII/pen/wvbmPPd

SDVII avatar Jun 21 '24 08:06 SDVII

Here is a Codepen for the Area Chart. This issues seems to only affect Mac devices

  • Pen: https://codepen.io/SDVII/pen/YzbaYGV?editors=0010
  • OS: Sonoma v14.5
  • Browser: Chrome v126.0.2592.61
  • Screenshot: Screenshot 2024-06-21 at 10 36 54
  • Recording https://github.com/amcharts/amcharts5/assets/10416702/16dfc249-8e6a-4a7d-862e-c29060f3439f

SDVII avatar Jun 21 '24 10:06 SDVII

Here is a Codepen for the Pie Chart. As you can see, the stroke around each slice is quite jagged

Unfortunately, there's nothing we can do about it. That's how canvas rendering works in browser.

martynasma avatar Jun 21 '24 10:06 martynasma

Here is a Codepen for the Area Chart. This issues seems to only affect Mac devices

I can't seem to be able to reproduce it on a Macbook Pro.

Same OS version. Chrome: 126.0.6478.115.

Can you try upgrading Chrome?

martynasma avatar Jun 21 '24 10:06 martynasma

Upgraded the browser, still encountering the issue. Multiple people on my team are encountring it as well

SDVII avatar Jun 21 '24 11:06 SDVII

Safari & Firefox are working just fine

SDVII avatar Jun 21 '24 11:06 SDVII

Still not able to reproduce it. There's a newer version of Chrome now available. Maybe try an upgrade?

If it's still buggy, maybe you can provide more information about your setup? E.g. are you using external monitor? What is the resolution? Anything else?

martynasma avatar Jul 02 '24 10:07 martynasma

This issue is stale because it has been open 30 days with no activity. It will be closed in 5 days unless a new comment is added.

github-actions[bot] avatar Aug 02 '24 00:08 github-actions[bot]