Chart Property - Total Label

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

image

Hello!

Are you using a seriesTemplate or individual series for each trailer status?
image

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:

  1. SERIES LABEL FORMATTER

  2. 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.

image

Hey Tim - I’m still not seeing the total labels for each bar with the updated config:

image

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.
image
The other way is to use the series. To use a series you have to explode arrays.
image

It’s a bit complicated but doable exploding arrays and use series chart properties.