apexcharts / apexcharts.js

📊 Interactive JavaScript Charts built on SVG
https://apexcharts.com
MIT License
14.03k stars 1.28k forks source link

Added condition to hide donut total label if hideLabel flag is set per issue #4370 #4516

Open halfpeeled opened 3 weeks ago

halfpeeled commented 3 weeks ago

New Pull Request

Summary of changes:

Added a condition to Pie.js so that donut chart total labels can display the total number without the label if desired. This is set by the flag hideLabel which can be passed as an option to the plotOptions.pie.donut.labels.total. This was motivated by this issue requesting the feature. I was not sure how to go about adding an additional test for this small change, but all existing tests still passed.

Fixes # 4370

Type of change

Checklist: