valueAxis.majorGridLinesObject
Configures the major grid lines. These are the lines that are an extension of the major ticks through the body of the chart.
Example
<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
type: "column",
valueAxis: {
majorGridLines: {
visible: true,
color: "#dddddd",
width: 1
}
},
series: [{
data: [10, 15, 8, 12]
}]
});
</script>
valueAxis.majorGridLines.colorString
(default: "black")
The color of the lines.
Example
<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
type: "column",
valueAxis: {
majorGridLines: {
visible: true,
color: "#0000ff"
}
},
series: [{
data: [10, 15, 8, 12]
}]
});
</script>
valueAxis.majorGridLines.visibleBoolean
(default: false)
The visibility of the lines.
Example
<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
type: "column",
valueAxis: {
majorGridLines: {
visible: true
}
},
series: [{
data: [10, 15, 8, 12]
}]
});
</script>
valueAxis.majorGridLines.widthNumber
(default: 1)
The width of the lines.
Example
<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
type: "column",
valueAxis: {
majorGridLines: {
visible: true,
width: 2
}
},
series: [{
data: [10, 15, 8, 12]
}]
});
</script>
valueAxis.majorGridLines.stepNumber
(default: 1)
The step of the value axis major grid lines.
Example
<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
type: "column",
valueAxis: {
majorGridLines: {
visible: true,
step: 2
}
},
series: [{
data: [10, 15, 8, 12, 20, 25]
}]
});
</script>
valueAxis.majorGridLines.skipNumber
(default: 0)
The skip of the value axis major grid lines.
Example
<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
type: "column",
valueAxis: {
majorGridLines: {
visible: true,
skip: 1
}
},
series: [{
data: [10, 15, 8, 12, 20, 25]
}]
});
</script>
In this article