Possible Line Chart Bug

3 posts, 1 answers
  1. George
    George avatar
    8 posts
    Member since:
    Nov 2010

    Posted 23 Jul 2013 Link to this post

    I'm allowing the user to create charts and change the chart type (line, area, bar, pie, etc) on the fly. With the new Date axis I'm experiencing a problem with the line chart. It doesn't connect the lines when there is a gap in the data like the area chart does. When XAxis.Type is set to AxisType.Category it works fine. Is this by design, or a bug. Is there a workaround besides filling the data source with dummy data for the months that don't have any metrics. Screenshot of the problem is attached.
  2. Answer
    Danail Vasilev
    Danail Vasilev avatar
    1502 posts

    Posted 25 Jul 2013 Link to this post

    Hello George,

    You can try setting the MissingValues property of the Line/Area Series to Interpolate/Zero. For example:
    <telerik:RadHtmlChart ID="RadHtmlChart1" runat="server">
                <telerik:LineSeries DataFieldY="myYValues" MissingValues="Zero">
            <XAxis DataLabelsField="myXLabels" Type="date">
    You can also find useful the Configuring Series help article, section Attribute properties of the series.

    Danail Vasilev
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. George
    George avatar
    8 posts
    Member since:
    Nov 2010

    Posted 25 Jul 2013 Link to this post

    Thanks for pointing out that property. It didn't quite work for my situation because I have large gaps in dates. I ultimately went with XAxis.Type = AxisType.Category. This solution may work for others though. Thanks again.
Back to Top