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

Zoom and Adding x-Axis Points

Thread ID:





41900 Mar 14,2006 02:55 PM UTC Mar 21,2006 03:34 PM UTC WinForms 2
Tags: Chart
Eric Robishaw
Asked On March 14, 2006 02:55 PM UTC

I''m charting an extended gantt chart with multiple points on the x-axis that represent dates. Let''s say for example, the range is 2 days. So, I set the interval at 3, and hours, and I get a good number of x-labels. When I zoom in, however, I want more labels, so I attach to the VisibleRangeChanged event, check if the zoomFactorX has changed, and if so, set a new DateTimeRange on the PrimaryXAxis, using a calculated interval of: interval = 3 * chartControl1.ZoomFactorX; then: chartControl1.PrimaryXAxis.DateTimeRange = new ChartDateTimeRange (start, start.AddDays(2), interval, ChartDateTimeIntervalType.Hours); This works great, until I start getting really zoomed in. When I get really in there, the chart grid lines become VERY close, making the chart almost black. What does work perfectly, using this, is the actual number of Labels on the x-axis. SO, the question is: HOw can I make the number of vertical lines on the graph grid basically equal the number of label points when its zoomed in? See Attached pictures.

zoom Graph Problem.zip

Administrator [Syncfusion]
Replied On March 15, 2006 12:40 PM UTC

Hi Eric Robishaw, Please take a look at the sample attached. Let me know if this fulfills your requirement. Thanks for your interest in Syncfusion product. Regards, F.Rashidha


Eric Robishaw
Replied On March 21, 2006 03:34 PM UTC

Now to understand how it works. }


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