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

where is plotLine

1 Answer 103 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 2
Iron
Veteran
Iron
Joshua asked on 18 Sep 2012, 06:50 PM
I can find plot bands, but I cannot find how to plot lines.

I can also add a plotband to the valueAxis like this: 
valueAxis: {
       plotBands: [{
             from: 0.4,
             to: 0.4001,                               
             color: "red"
         }]
 }
However this requires me to add a from and a to. This doesn't exist. i just want a simple line plotted at a particular value.

Can anyone help? I have a link to Highcharts where they show an example of how they do it (addPlotLine): http://www.highcharts.com/studies/dynamic.htm 

1 Answer, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 19 Sep 2012, 08:44 AM
Hello Joshua,

I posted my answer in your support ticket. For convenience I am pasting my reply here too, so the other users who are looking for a similar functionality can read it: 
 

Generally speaking, setting a simple line to a particular value is not supported out of the box in Kendo UI Chart. As another workaround I can suggest (it seems you have tested the plotBands approach) to combine your chart with a line chart that has a constant value repeated across.  

Kind regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Charts
Asked by
Joshua
Top achievements
Rank 2
Iron
Veteran
Iron
Answers by
Iliana Dyankova
Telerik team
Share this question
or