kalidoss kalidoss - 1 year ago 111
Javascript Question

Add a horizontal line to the chart

I have a requirement to have horizontal lines in Kendo Line Chart to denote maximum and minimum values as well as high limit and low limit.

Answer Source

Another solution would be to add plotbands.

Example:

<div id="chart"></div>
<script>
$("#chart").kendoChart({
    valueAxis:  {
        plotBands: [
            { from: 89, to: 90, color: "red" }
        ]
    }
});
</script>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download