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.

x,y line chart

Thread ID:

Created:

Updated:

Platform:

Replies:

94155 Apr 26,2010 12:43 PM Apr 27,2010 01:36 AM ASP.NET Web Forms (Classic) 1
loading
Tags: Chart
Boaz Sadeghi
Asked On April 26, 2010 12:43 PM

Hi,

1. I have a chart with 3 Y series and a single X series. I don't seem to be able to assign my X values. The series are in double arrays. Which means I have 4 double arrays. I assign the 3 y series to 3 different series.datasource. I see the numbers in the chart. I am not sure how to assign the x series so I have a x,y line chart.

2. one of my y axis has values between 0.0 to 0.24. I only see 0.0 and 1.0 on my yaxis without any other intervals. How can I make the AutoRange to break the yaxis to multiple ticks.

3. How can I make my chart to draw from 0,0 and not display the negative section.

Jaffersathick B [Syncfusion]
Replied On April 27, 2010 01:36 AM

Hi Boaz Sadeghi,

Thank you for your interest in Syncfusion products.

how to assign the x series so I have a x,y line chart.
We suggest you to set the XName as the data column name which contains X value , so that you can plot a chart using x,y values.

[CS]
ChartDataBindModel dataSeriesModel = new ChartDataBindModel(datasource);
dataSeriesModel.XName = "X";
dataSeriesModel.YNames = new string[] { "Y" };
series.SeriesModel = dataSeriesModel;


How can I make the AutoRange to break the yaxis to multiple ticks.

We suggest you to set Yaxis Range Type as set and set the range of the Y axis with the start value , end value and interval.

Please refer the following code snippet:

[CS]

this.chartControl1.PrimaryYAxis.RangeType = ChartAxisRangeType.Set;
this.chartControl1.PrimaryYAxis.Range = new MinMaxInfo(0, 0.24, 0.2);


Please refer the documentation from the following link:

http://help.syncfusion.com/ug_81/WindowsFormsUI_Chart/AxisValueSystem.html


How can I make my chart to draw from 0,0 and not display the negative section.
As mentioned above if you set the range value then the chart area will be visible only in that specified range.

Let me know if you have any concerns.

Regards,
Jaffer.B

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.

;