Scatter Line chart

2 posts, 0 answers
  1. sourabh
    sourabh avatar
    1 posts
    Member since:
    Aug 2014

    Posted 25 Aug 2014 Link to this post

    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. 
  2. Milena
    Milena avatar
    226 posts

    Posted 27 Aug 2014 Link to this post

    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.

    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.
Back to Top