This is a migrated thread and some comments may be shown as answers.

Scatter Line chart

1 Answer 108 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
sourabh
Top achievements
Rank 1
sourabh asked on 25 Aug 2014, 10:08 AM
I want draw scatter line chart like Excel X Y Scatter Chart.
I have data with null values that I want to plot on the scatter line chart,
When I tried to do that it shows points but there is no line connecting that points.

There are two series in my chart

Series 1
 At X axis- 2004/3/31  2004/12/31   2005/3/31 2005/12/31  2006/3/31 2006/12/31
 At Y axis-    2000               null               3000           null               4000          null

Series 2
 At X axis- 2004/3/31  2004/12/31   2005/3/31 2005/12/31  2006/3/31 2006/12/31
 At Y axis-    null               4000               null           5000               null          6000

when I tried to plot this data it showed only points at respective dates. So how to draw continuous line from start to end joining this points. 

1 Answer, 1 is accepted

Sort by
0
Milena
Telerik team
answered on 27 Aug 2014, 03:46 PM
Hi Sourabh,

Before I answer to your question I'd like to specify something. I saw that your business data defines DataTime and integer types, in this case you should use Line Series instead of Scatter Line Series (the scatter series require both axis to be linear), whose axes are Linear and Logarithmic. More about the axes supported by each ChartView series you can find in our help topic - Series and Axes
 
So, about the continuous line you want to represent - the Line Series are rendered using a collection of points connected by straight line segments. When the value of the DataPoint is Null, this is represented as a gap. So, you should have at least 2 points with some value to see the representation of the Line Series. However, if you want to see a continuous line you can replace the empty values with zeros or you can sort your data so that there is no items with null values.

I hope this information will help you and don't hesitate to write back if you have more questions.

Regards,
Milena
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
ChartView
Asked by
sourabh
Top achievements
Rank 1
Answers by
Milena
Telerik team
Share this question
or