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.
Unfortunately, activation email could not send to your email. Please try again.

Zoom and Adding x-Axis Points

Thread ID:

Created:

Updated:

Platform:

Replies:

41900 Mar 14,2006 09:55 AM Mar 21,2006 10:34 AM Windows Forms 2
loading
Tags: Chart
Eric Robishaw
Asked On March 14, 2006 09:55 AM

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 07:40 AM

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

Ganttchart.zip

Eric Robishaw
Replied On March 21, 2006 10:34 AM

Now to understand how it works. }

CONFIRMATION

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.

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.

;