Hi Community!
I have a viz request to display a stacked bar chart where:
- The total value is labeled
- Each sub-bar displays the percentage of the total
With the current JSON settings, I’m able to achieve this:
"series": [{
"dataLabels": {
"enabled": true,
"format": "{point.percentage:.0f}%"
}
},
{
"dataLabels": {
"enabled": true,
"format": "{point.percentage:.0f}%"
}
}
],

But now I have an issue:
The series field must be an array, but the number of series in my chart is dynamic — it depends on the applied filters. So, I would need a way to apply a general setting to all series, regardless of how many there are, so that each always displays its value as a percentage of the total. What is the best way to do it?
Thanks!
