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

Configures the major grid lines. These are the lines that are an extension of the major ticks through the body of the chart.

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    type: "column",
    valueAxis: {
        majorGridLines: {
            visible: true,
            color: "#dddddd",
            width: 1
        }
    },
    series: [{
        data: [10, 15, 8, 12]
    }]
});
</script>

The color of the lines.

Default: "black"

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    type: "column",
    valueAxis: {
        majorGridLines: {
            visible: true,
            color: "#0000ff"
        }
    },
    series: [{
        data: [10, 15, 8, 12]
    }]
});
</script>

The skip of the value axis major grid lines.

Default: 0

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    type: "column",
    valueAxis: {
        majorGridLines: {
            visible: true,
            skip: 1
        }
    },
    series: [{
        data: [10, 15, 8, 12, 20, 25]
    }]
});
</script>

The step of the value axis major grid lines.

Default: 1

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    type: "column",
    valueAxis: {
        majorGridLines: {
            visible: true,
            step: 2
        }
    },
    series: [{
        data: [10, 15, 8, 12, 20, 25]
    }]
});
</script>

The visibility of the lines.

Default: false

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    type: "column",
    valueAxis: {
        majorGridLines: {
            visible: true
        }
    },
    series: [{
        data: [10, 15, 8, 12]
    }]
});
</script>

The width of the lines.

Default: 1

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    type: "column",
    valueAxis: {
        majorGridLines: {
            visible: true,
            width: 2
        }
    },
    series: [{
        data: [10, 15, 8, 12]
    }]
});
</script>