Chart is not drawing when toggling a series off

Posted by: Yifan_Zhang on 20 October 2023, 3:42 am EST

    • Post Options:
    • Link

    Posted 20 October 2023, 3:42 am EST

    Hi, please see the example at: https://jscodemine.grapecity.com/sample/B07_irpLXEKrOcwYfr46Bw/

    When you toggle the second series off, the chart will not draw. It seems the edge case of dividing by 0 needs to be considered in the _BubblePlotter.prototype.adjustLimits method.

  • Posted 22 October 2023, 5:08 pm EST

    Hi Yifan,

    Thank you for sharing the sample, we are able to replicate the issue on our end.

    Actually, flexchart automatically calculates the axis label values according to the data, and when there is no data, i.e. 0 value in all the entries no axis labels or chart is drawn and this behavior is expected. If you want to avoid this situation then you can set a min and max value for the axis labels of the X and Y axis on the chart. You can refer to the following updated sample for the same - https://jscodemine.grapecity.com/share/r0BK-i4cWECKg-qpSeNwQA/

    In case, you face any issues, please let us know.

    Regards,

    Vivek Pannu

  • Posted 12 December 2023, 9:31 am EST

    Hi, any updates on the fix for this issue? Thanks.

  • Posted 12 December 2023, 9:06 pm EST

    Hi Yifan,

    As we mentioned earlier, this is the expected behavior for the FlexChart control and will not be changed in the near future. You can continue the use the workaround i.e. setting a min and max value for the axis labels of the X and Y axes on the chart.

    In case, you face any issues, please let us know.

    Regards

Need extra support?

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

Learn More

Forum Channels