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

Regarding "X" axis label

Thread ID:





53045 Dec 7,2006 12:30 PM UTC Dec 12,2006 11:10 AM UTC WinForms 5
Tags: Chart
Sathishkumar Kaliavaradhan
Asked On December 7, 2006 12:30 PM UTC


I configured my chart control in PrimaryXaxis with start date, end date and interval as one day(like week,month,yesr) intervaltype as days(like week,month,yesr) but between two days i want show major scaling and minor scaling in any unit (like seconds,minutes,hours,days,weeks,months,year) but currently nothing is showing
How do i achieve ?

Please anyone help me

Thanks and Regards

Administrator [Syncfusion]
Replied On December 8, 2006 02:08 AM UTC

Hi Sathish,

I assume that you are using Syncfusion product version

Please have a look at the following code which will help you to set small scale and large scale in between two days and a sample is attached here for your reference.

// Using this we can set small ticks in between large ticks
this.chartControl1.PrimaryXAxis.SmallTicksPerInterval = 7;
this.chartControl1.PrimaryXAxis.SmallTickSize = new Size(2, 4);
this.chartControl1.PrimaryXAxis.TickSize = new Size(4, 8);
this.chartControl1.PrimaryXAxis.TickColor = Color.DarkGreen;

Please let me know if this helps.

Thanks for using Syncfusion product.

Best Regards,

Date Handling sample

Sathishkumar Kaliavaradhan
Replied On December 8, 2006 04:39 AM UTC

Hi Sureshbabu

In that sample which is major scaling and which is minor scaling ? and also i want show label for the scaling in any unit(seconds,minute,hour,day,week,month,year)

Please reply ASAP.

Thanks and Regards

Sathishkumar Kaliavaradhan
Replied On December 8, 2006 05:09 AM UTC

Hi Suresh

Yes i am using version only , actually i showing one day at time is by setting the zoomfactor
in chartControl1_VisibleRangeChanged event below code

TimeSpan tSpan = start.AddDays(37) - start; this.chartControl1.PrimaryXAxis.ZoomFactor = 1 / tSpan.TotalDays;

in that example it is not showing the scaling and all

i attached the same example file with my modification ,please check and reply me ASAP

Thanks and Regards


Geeta Jadhav
Replied On December 12, 2006 06:36 AM UTC

Hello Suresh ,

I am waiting for the solution . In the previous mail I have attached my sample code so as to make my requirements clear. I hope you reply soon , as it is getting delayed for long time .
As per the suggestion I moved to latest version of Syncfusion , but things are not working as expected .

Best Regards

Poly J [Syncfusion]
Replied On December 12, 2006 11:10 AM UTC

Hi Geeta,

Sorry for the delay in getting back to you.

Please find the attached sample where SmartDateFormat is used for setting the axis label format when enable zooming. SmartDateZoom property will not work if you have set the DateTime Range for the axis.

Sample and ScreenShot

Kindly let me know whether it meets your requirement.

Best Regards,


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

This page will automatically be redirected to the 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