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

The plot bands of the category axis.

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    data: [1, 2, 3, 4, 5],
    categoryAxis: {
        plotBands: [{
            from: 1,
            to: 3,
            color: "#ff0000",
            opacity: 0.3
        }]
    }
});
</script>

The color of the plot band.

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    data: [1, 2, 3, 4, 5],
    categoryAxis: {
        plotBands: [{
            from: 1,
            to: 3,
            color: "#0000ff"
        }]
    }
});
</script>

The start position of the plot band in axis units.

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    data: [1, 2, 3, 4, 5],
    categoryAxis: {
        plotBands: [{
            from: 1,
            to: 3,
            color: "#ff0000"
        }]
    }
});
</script>

The opacity of the plot band.

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    data: [1, 2, 3, 4, 5],
    categoryAxis: {
        plotBands: [{
            from: 1,
            to: 3,
            color: "#ff0000",
            opacity: 0.5
        }]
    }
});
</script>

The end position of the plot band in axis units.

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    data: [1, 2, 3, 4, 5],
    categoryAxis: {
        plotBands: [{
            from: 0,
            to: 2,
            color: "#00ff00"
        }]
    }
});
</script>