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

Possible Line Chart Bug

2 Answers 48 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 1
George asked on 23 Jul 2013, 05:37 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Danail Vasilev
Telerik team
answered on 25 Jul 2013, 06:00 PM
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">
    <PlotArea>
        <Series>
            <telerik:LineSeries DataFieldY="myYValues" MissingValues="Zero">
            </telerik:LineSeries>
        </Series>
        <XAxis DataLabelsField="myXLabels" Type="date">
        </XAxis>
    </PlotArea>
</telerik:RadHtmlChart>
You can also find useful the Configuring Series help article, section Attribute properties of the series.


Regards,
Danail Vasilev
Telerik
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.
0
George
Top achievements
Rank 1
answered on 25 Jul 2013, 06:09 PM
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.
Tags
Chart (HTML5)
Asked by
George
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
George
Top achievements
Rank 1
Share this question
or