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

Area chart with solid line using just one data series?

3 Answers 107 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 17 Nov 2013, 09:06 AM
Hi there

I want my area chart to have a solid line following the data points - so it LOOKS like both a line chart and area chart plotting the same data, except I only want to use one data series and style it up.   Is it possible?

See attached screenshot - I'm struggling to put it into words!

Bonus question if I may - is it possible to add the second border to the chart as in the image?  I can control the plotArea main border but can't see how to add a second border.

3 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 18 Nov 2013, 12:02 PM
Hello Mark,

Up to the questions

  • I am afraid setting a solid line above the area series is not supported by Kendo UI Chart and the only possible workaround I can suggest is using a second line series;
  • This requirement is also not supported and there is no a suitable workaround I can suggest. Please accept my apologies for any inconvenience this may cause.

Regards,
Iliana Nikolova
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!

0
Mark
Top achievements
Rank 1
answered on 19 Nov 2013, 06:01 PM
Hi there

This is fine, thank you.

Regarding the second border - I managed to solve it by adding a background image to the chart.
0
Michaël
Top achievements
Rank 1
answered on 23 Feb 2014, 05:05 PM
Adding the top line is possible. Just add this into the "series" properties:

line: {
          color: 'red',
          width: 2
}
Tags
Charts
Asked by
Mark
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Mark
Top achievements
Rank 1
Michaël
Top achievements
Rank 1
Share this question
or