In AxisScrollbar sample

Posted by: malishin on 8 December 2019, 9:48 pm EST

    • Post Options:
    • Link

    Posted 8 December 2019, 9:48 pm EST - Updated 4 October 2022, 12:25 am EST

    In AxisScrollbar sample, when the scroll bar of axisY is dragged, the axisX’s position of the plotarea will change and the chart will flutter. How to avoid this change?

    This problem appeared on both winform and wpf

    Sample Path:

    ComponentOne Samples\WinForms\v4.5.2\C1FlexChart\CS\AxisScrollbar

    ComponentOne Samples\WPF\v4.5.2\C1.WPF.FlexChart\CS\AxisScrollbar

  • Posted 9 December 2019, 2:12 am EST

    Hi,

    FlexChart adjusts the plot area as per the space required to display the axis labels. Therefore, when the axis is scrolled, because of the change in the range FlexChart tries to adjust the plot area accordingly and hence the behavior. So, to avoid this, you can specify the required space for labels in advance by using the Axis.Format as follows:

    // Display labels in 3 digits
    flexChart1.AxisY.Format = "000";
    
    

    Setting the axis format will prevent the chart to flutter.

    Regards,

    Basant

Need extra support?

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

Learn More

Forum Channels