Regarding "X" axis label

Hi

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
K.Sathishkumar

5 Replies

AD Administrator Syncfusion Team December 8, 2006 02:08 AM UTC

Hi Sathish,

I assume that you are using Syncfusion product version 4.4.0.51

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,
Sureshbabu

Date Handling sample


SK Sathishkumar Kaliavaradhan 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
K.Sathishkumar


SK Sathishkumar Kaliavaradhan December 8, 2006 05:09 AM UTC

Hi Suresh

Yes i am using version 4.4.0.51 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
K.Sathishkumar




DateHandling.zip


GJ Geeta Jadhav 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
Geeta


PJ Poly J Syncfusion Team 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,
Poly




Loader.
Up arrow icon