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

Area Chart - Below Value use different Background Color

10 Answers 406 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Georgi
Top achievements
Rank 1
Georgi asked on 14 Aug 2017, 10:28 AM

Hello,

 

Is it possible to change the series background color when it is below some value for example 0.

I am trying to achieve something like the attached image.

Using Angular 4.

 

Thank you!

10 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 16 Aug 2017, 07:21 AM
Hello,

This is not supported by the chart. The series are rendered as single path so there isn't a way to set different colors for specific range. It should be possible to implement this using multiple series and missingValues 'gap' - example.

Regards,
Daniel
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Georgi
Top achievements
Rank 1
answered on 24 Aug 2017, 11:54 AM
Any other solution? Maybe not exactly Area Chart but something else closer to the desired chart image?
0
Accepted
Daniel
Telerik team
answered on 25 Aug 2017, 01:39 PM
Hello again,

You can use line series if the part above the predefined value should not be filled. If the orientation should be vertical like in the image you can use verticalLine and verticalArea - updated example.

Regards,
Daniel
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Georgi
Top achievements
Rank 1
answered on 28 Aug 2017, 08:17 AM

Hello,

I think this is a great example and could be used in my case. The problem is I need to use X axis and Y axis with their fields, can this be done in any way with this example?

Thank you once again,

Georgi

0
Georgi
Top achievements
Rank 1
answered on 29 Aug 2017, 07:17 AM

Hello,

I've managed to do the following: Plnkr

Your example was really helpful and right what I needed.

One last thing - can you tell me how to move the Y axis on its left-most position and to keep my offset, the verticalArea to stay the same.

Maybe two category axes (one visible and one not, a dummy visible axis) and two value axes, but I didn't find a way to link them together..

Thank you!

Georgi

0
Accepted
Daniel
Telerik team
answered on 30 Aug 2017, 06:15 AM
Hi,

The area is filled to the crossing value so yes, a second axis will be required to show the axis on the left without changing the area - example.

Regards,
Daniel
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Georgi
Top achievements
Rank 1
answered on 30 Aug 2017, 02:05 PM
Thank you very much Daniel!
0
Georgi
Top achievements
Rank 1
answered on 01 Nov 2017, 12:02 PM

Hello,

 

I need some help again with the same scenario.

The problem is that I need to visualize three different lines on the same chart and to achieve the same result as before.

Can you help me with this issue, I've tried different ways but all of them are not giving the desired result.

Here are some images of what I want to achieve. But there is also a special case where the lines are on top of each other (their down values also need to be with black area).

Is this even possible with Kendo UI Charts?

 

Thanks for the help,

Georgi

 

0
Accepted
Daniel
Telerik team
answered on 02 Nov 2017, 09:08 AM
Hi,

You could use separate category axes with different crossing values for the other series in order to achieve this - example.

Regards,
Daniel
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Georgi
Top achievements
Rank 1
answered on 09 Nov 2017, 02:37 PM

Thank you Daniel! Once again u solved it! With small tweaks I made it look as I wanted.

Thank you! Everything is 200.

Tags
Charts
Asked by
Georgi
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Georgi
Top achievements
Rank 1
Share this question
or