where is plotLine

2 posts, 0 answers
  1. Joshua
    Joshua avatar
    69 posts
    Member since:
    May 2012

    Posted 18 Sep 2012 Link to this post

    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 
  2. Iliana Nikolova
    Iliana Nikolova avatar
    2622 posts

    Posted 19 Sep 2012 Link to this post

    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!
Back to Top