Is there a way to add a total value for a stacked bar chart instead of showing the labels for each bar w/in the stack? Ex. For the image below, can I add a label to show 53 total trailers
Hello!
Are you using a seriesTemplate or individual series for each trailer status?
I’m using the series template!
When using seriesTemplate, please remove and re-add the below chart properties.
-
commonSeriesSettings > label > customizeTextWidgetFunction
-
seriesTemplate > customizeSeriesWidgetFunction
We added the below two JS function to accommodate this formatting:
-
SERIES LABEL FORMATTER
-
DISPLAY TOTAL FOR DYNAMIC SERIES
Please follow the below config. Please make a copy of your widget first before making any changes to your live widget.
Hey Tim - I’m still not seeing the total labels for each bar with the updated config:
Hi there,
There are multiple ways to bring the total on a stacked bar.
The easy way is to create separate columns within the widget Display.
Arrived, Unarrived, loading with aggregation.
The other way is to use the series. To use a series you have to explode arrays.
It’s a bit complicated but doable exploding arrays and use series chart properties.