Skip to main content
vijaykumars5676
January 4, 2023
Question

Bar Chart Stacking

  • January 4, 2023
  • 1 reply
  • 0 views

I am creating a bar chart with two measures: GST and TotalBill.

If I use normal stacking both the values get on top of each other.

like if GST = 20 and TotalBill = 100  then the bar length will be 120 as shown in the attached image.

But I want the bar length to be 100 and GST measure inside that.

    1 reply

    gauravg568
    January 4, 2023

    The chartSeries data is provided programmatically. Since in your use case, the stacked bar is meant to show the components of the bill, you could construct one of the Chart Series to be the GST component, and the other Chart Series to be the Remaining Bill component (instead of Total Bill).