Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
410
Turn off the autofit for the Gantt chart
posted

I am woring on an application that will display data in a Gantt chart for a group of projects that cover more than a year of time.  I would like the Gantt chart to just scroll to show the data.  Unfortunately the Gantt chart instead tries to fit everything into the control size.

Is there a way to just have the control scroll intead of shrinking everything to fit?

Parents
No Data
Reply
  • 26458
    Suggested Answer
    Offline posted

    You can enable scrollbars by setting the ScrollScale on your axes.
    chart.Axis.X.ScrollScale.Visible = true;
    chart.Axis.Y.ScrollScale.Visible = true;
    chart.Axis.X.ScrollScale.Scale = 0.5;
    chart.Axis.Y.ScrollScale.Scale = 0.5;

Children
No Data