Regarding Line Chart

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


2 Replies

MA Manohari Syncfusion Team July 3, 2008 08:10 PM UTC

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




AD Administrator Syncfusion Team July 4, 2008 07:47 AM UTC



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.





Loader.
Up arrow icon