New to Kendo UI for jQuery? Start a free 30-day trial

ValueAxis.plotBands

configuration

The plot bands of the value axis.

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    type: "column",
    valueAxis: {
        plotBands: [{
            from: 10,
            to: 20,
            color: "#ffcccc",
            opacity: 0.5
        }]
    },
    series: [{
        data: [5, 15, 8, 25, 12]
    }]
});
</script>

The color of the plot band.

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    type: "column",
    valueAxis: {
        plotBands: [{
            from: 10,
            to: 20,
            color: "#0000ff"
        }]
    },
    series: [{
        data: [5, 15, 8, 25, 12]
    }]
});
</script>

The start position of the plot band in axis units.

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    type: "column",
    valueAxis: {
        plotBands: [{
            from: 5,
            to: 15,
            color: "#ccffcc"
        }]
    },
    series: [{
        data: [5, 15, 8, 25, 12]
    }]
});
</script>

The opacity of the plot band.

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    type: "column",
    valueAxis: {
        plotBands: [{
            from: 10,
            to: 20,
            color: "#ff0000",
            opacity: 0.3
        }]
    },
    series: [{
        data: [5, 15, 8, 25, 12]
    }]
});
</script>

The end position of the plot band in axis units.

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    type: "column",
    valueAxis: {
        plotBands: [{
            from: 10,
            to: 20,
            color: "#ffcccc"
        }]
    },
    series: [{
        data: [5, 15, 8, 25, 12]
    }]
});
</script>