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

Plotbands with date on x-axis

3 Answers 140 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Amar
Top achievements
Rank 1
Amar asked on 02 Jul 2013, 08:45 PM
I am plotting a graph with Date on the x-axis and Variance (decimal) on the y-axis. I would like to draw a plotband between two Dates. However, the from/to only supports numbers. The problem is further compounded by the fact that the base units can be changed - which changes the axis.

How can I resolve this issue?

Thanks...

3 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 04 Jul 2013, 06:16 AM
Hello Amar,

You could set plotBands to the categoryAxis as specifying start and end position (take a look at this jsBin example which I prepared for you).
 
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
Eva
Top achievements
Rank 1
answered on 23 Oct 2018, 08:34 AM

Hello,

I'm trying to display a plotband on my X axis (date) as well.

There's no error when binding From and To properties with a date value, but no plotband gets displayed on the chart.

I can't switch to a category axis, cause I need to use scatterline series.

Can you please help me ?

Thanks in advance.

Regards

0
Eva
Top achievements
Rank 1
answered on 23 Oct 2018, 08:48 AM

My bad, I hadn't set the value properly.

Plotbands do work with date value on the x axis of a scatterline chart.

Tags
Charts
Asked by
Amar
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Eva
Top achievements
Rank 1
Share this question
or