Why axis bounds change is not allowed on 100 percent stacked bars

Posted by: Yifan_Zhang on 22 October 2019, 8:12 pm EST

  • Posted 22 October 2019, 8:12 pm EST

    It seems changing min and max is not working for 100 percent stacked bars but other type of bars. Is there a reason for this? Thanks.

    Demo at: https://jsfiddle.net/exjfq7k1/

  • Posted 22 October 2019, 11:58 pm EST

    Hi Yifan,

    This is expected behavior since the Stacked100pc chart shows the relative value for each of the series on a single bar. Therefore, the axis’s min and max are based on percentages and are calculated automatically and cannot be changed.

    For example, in the example provided, all the series for a single country (sales, downloads, and expenses) are shown on a single bar and the size of each series in the bar is based on the current series value relative to the total value for that country (sales + downloads + expenses).

    You may understand it better using the following example:

    https://jsfiddle.net/h2k7Lvjg/

    Let me know if you still have any queries.

    Regards,

    Ashwin

  • Posted 23 October 2019, 2:25 pm EST

    I understand the limitation for the y axis min/max, but why restrict the x axis min/max. The x-axis min/max should behave the same as for other types of bar chart, right?

  • Posted 23 October 2019, 11:32 pm EST

    Hi Yifan,

    We are sorry for the inconvenience, we have forwarded the issue with the internal tracking id 402952 regarding the AxisX min and max is not working with the Chart Stacking Stacked100pc.

    The x-axis min/max should behave the same as for other types of bar chart, right?

    Yes, AxisX min and max behaves the same for all the chart types. You may confirm this with the previously shared sample.

    Regards,

    Manish Gupta

  • Posted 19 November 2019, 5:26 am EST

    Hi Yifan,

    This issue#402952 has been fixed in the latest 2019v3 release. Please refer to the following demo sample for reference:

    https://jsfiddle.net/yxw98v7j/

    Regards,

    Manish Gupta

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels