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

[Solved] Area chart with date axis displays differently from the same Line chart

2 Answers 129 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Xuan
Top achievements
Rank 1
Xuan asked on 21 Oct 2014, 11:20 PM
I have created a test case for the issue: http://dojo.telerik.com/oNEbe/2

If there are data points missing for some dates in the Area chart with date axis, the values are assumed as zero.  But the similar line chart is displayed correctly.

I think the area chart should be displayed in the same way as the line chart, is my understanding correct?

Thanks.

2 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 23 Oct 2014, 12:00 PM
Hi,

The line and area charts have a different default for the missingValues property.
The area defines to "zero" in order to allow stacking area series with missing values.

Setting it to interpolate should produce identical lines:
series: {
  ...
  missingValues: "interpolate"
}

I hope this helps.

Regards,
T. Tsonev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Xuan
Top achievements
Rank 1
answered on 23 Oct 2014, 11:08 PM
Thanks, it works as expected.
Tags
Charts
Asked by
Xuan
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Xuan
Top achievements
Rank 1
Share this question
or