We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Gantt Chart zoom behaviour

Thread ID:





128225 Jan 9,2017 05:47 PM UTC Jan 10,2017 01:27 PM UTC WinForms 1
Tags: Chart
Francesc Esteban
Asked On January 9, 2017 05:47 PM UTC

Could I avoid the Y axis interval change after Zoomed a gannt chart ?

after zoom -->

Dharanidharan Dharmasivam [Syncfusion]
Replied On January 10, 2017 01:27 PM UTC

Hi Francesc, 

Thanks for using Syncfusion product. 

You can avoid the change of interval after zooming by using  VisibleRangeChanged event. In this event you can set the desired value to the interval of VisibleRange property, so that when the chart is zoomed also the interval will be same. Kindly find the code snippet below. 
this.chart.PrimaryYAxis.VisibleRangeChanged += PrimaryYAxis_VisibleRangeChanged; 
void PrimaryYAxis_VisibleRangeChanged(object sender, EventArgs e) 
            ((Syncfusion.Windows.Forms.Chart.ChartAxis)sender).VisibleRange.Interval = 5; 

Screenshot before zooming: 

Screenshot after zooming: 

For your reference we have attached the sample. Kindly find the sample from below location. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon