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.

Regarding Line Chart

Thread ID:

Created:

Updated:

Platform:

Replies:

74904 Jul 3,2008 04:16 AM Jul 4,2008 03:47 AM Windows Forms 2
loading
Tags: Chart
Administrator [Syncfusion]
Asked On July 3, 2008 04:16 AM

Hi

Is Anyone tell me How will i configure the difference between the Ticks on the x axis let say my axis start from 0 i want that in my all ticks on x axis must be 3.5 for eg. 0,3.5,7,10.5 and so on


one thing more that how it is possible that my X axis or Y axis configure according to date ,time,Percentage etc.what ever user select from the ListBox (See attached image)
for eg: if user select Percentage for Axis then it is shown on axis in percentage.
Please tell me Is it is Possible

I shall be thankful for you


Manohari [Syncfusion]
Replied On July 3, 2008 04:10 PM

Hi Pankaj,

It is possible to Specify the axis values to start with 0 with Interval 3.5 using the ChartAxis.Range as given below.

Sample code:

this.chart.PrimaryXAxis.RangeType = ChartAxisRangeType.Set;
this.chart.PrimaryXAxis.Range = new MinMaxInfo(0, 28, 3.5);

or

this.chart.PrimaryXAxis.Range.Min = 0;
this.chart.PrimaryXAxis.Range.Max = 28;
this.chart.PrimaryXAxis.Range.Interval = 3.5;

I have attached the sample illustrating the same in this link below.

http://websamples.syncfusion.com/samples/Chart.Windows/F74904/main.htm

Please let us knwo if this meets your requirement.

Regarding your second query:

I am unable find the attachment in your previous update. Could you please reattach your Screenshot? SO that it will be more helpful for us to analyze and provide you with better solution at the earliest.

Thanks for your patience.

Regards,
Manohari.R



Administrator [Syncfusion]
Replied On July 4, 2008 03:47 AM



hi pankaj regarding ur second query...

you can set ur axes to custom or datetime using the following property.

this.chartControl1.PrimaryXAxis.ValueType = ChartValueType.DateTime;

Thanks for using syncfusion product.





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.

;