Hi,
I want to know the difference between Line Vs ScatterLine series.
In addition to that I have a doubt around data plotting.
For ScatterLine and Scatter series we need to specify X and Y Values,
but for Line Just ValueMember path. Why is this inconsistency ??
Also what to specify in ValueMemberPath() : X or Y value ??
How data is plotted for LINE series with just one co-ordinate (X / Y) ??
(NOTE: I have gone through this http://es.infragistics.com/community/forums/p/65712/332600.aspx#332600 BUT COULD NOT UNDERSTAND.)
Any explanation to above queries would be appreciated.
Hi, sanjaysutar
The main difference b/n Line and ScatterLine series is that Line is a category type series while ScatterLine is a scatter type series. Category type series use category X-axis and numeric Y-axis while scatter type series use two numeric axes.
With category type series the data member that defines the “category” of each data record is bound to the category axis. That is accomplished with the Label() method of the Axis object. That is why you only need ValueMember() to specify the value for each category. All categories are placed at equal distance along the category axis and this has no relation to the category member data value (it can even be a string or a date). The values of each category are depicted in correct scale and provide a way to compare visually data for each category. For example, with category series you can show sales for January, February, etc., having month on the category axis and sales amount on the numeric axis.
With scatter series you display points on their exact coordinates and that is why you have two numeric axes. Each of the two coordinates – X and Y – is mapped to the corresponding numeric axis. This series type is suitable for depicting mathematical functions, or physical values (for example, measurements of some physical parameter).
Cheers, Lazar
Thanks Lazar for the clarification.
I have data coming as X and Y co-ordinates. So there is not category. Based on you explanation I think I have to use SCATTERLINE since it uses exact X/Y co-ordinates to plot and also joins the points to look like a LINE series.
Please correct me if I am wrong with the approach.
Hi, dhanraj shriyan
You are correct. In your case you have to use the ScatterLine series.
You can still use lineSeries and categoryX with X-Y data as long as your x values should be treated as equidistant on that axis. Why would you want to do this? LineSeries and CategoryX axis are more efficient than scatterline and numericX, so if you have tons of data or are updating it very often, you may want to see if you can fit into the contraints I described.
-Graham