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

How to highlight value (or range) on the value axis

1 Answer 64 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Josh G
Top achievements
Rank 1
Josh G asked on 11 Oct 2012, 06:23 PM
I am trying to highlight a range of acceptable values on the value axis of a line chart.  I initially thought of adding a series with the data property set to a single value, but this produces a bar on the chart rather than a line at y = k.  Ultimately I am displaying blood glucose readings and need to show the values' relationship to the normal high and low.

Any ideas are appreciated.

1 Answer, 1 is accepted

Sort by
0
Iliana Nikolova
Telerik team
answered on 12 Oct 2012, 04:19 PM
Hi Joshua,

In order to highlight the range of acceptable values you can use the plotBands configuration option of Kendo UI Chart. For example: 
$("#chart").kendoChart({
    //....
    valueAxis: {
        plotBands: [{
            from: 6,
            to: 8,
            color: "green"
        }]
    }
 });

I hope the suggested approach fits your requirements.
 
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
Josh G
Top achievements
Rank 1
Answers by
Iliana Nikolova
Telerik team
Share this question
or