categoryAxis.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({
data: [1, 2, 3, 4, 5],
categoryAxis: {
majorGridLines: {
color: "#ff0000",
width: 2,
visible: true
}
}
});
</script>
categoryAxis.majorGridLines.colorString
(default: "black")
The color of the lines. Any valid CSS color string will work here, including hex and rgb.
Example
<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
data: [1, 2, 3, 4, 5],
categoryAxis: {
majorGridLines: {
color: "#00ff00"
}
}
});
</script>
categoryAxis.majorGridLines.dashTypeString
(default: "solid")
The dash type of the grid lines.
"solid"
Specifies a solid line.
"dot"
Specifies a line consisting of dots.
"dash"
Specifies a line consisting of dashes.
"longDash"
Specifies a line consisting of a repeating pattern of long-dash.
"dashDot"
Specifies a line consisting of a repeating pattern of dash-dot.
"longDashDot"
Specifies a line consisting of a repeating pattern of long-dash-dot.
"longDashDotDot"
Specifies a line consisting of a repeating pattern of long-dash-dot-dot.
Example
<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
data: [1, 2, 3, 4, 5],
categoryAxis: {
majorGridLines: {
dashType: "dash"
}
}
});
</script>
categoryAxis.majorGridLines.visibleBoolean
(default: false)
The visibility of the lines.
Example
<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
data: [1, 2, 3, 4, 5],
categoryAxis: {
majorGridLines: {
visible: true
}
}
});
</script>
categoryAxis.majorGridLines.widthNumber
(default: 1)
The width of the lines.
Example
<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
data: [1, 2, 3, 4, 5],
categoryAxis: {
majorGridLines: {
width: 3
}
}
});
</script>
categoryAxis.majorGridLines.stepNumber
(default: 1)
The step of the category axis major grid lines.
Example
<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
data: [1, 2, 3, 4, 5],
categoryAxis: {
majorGridLines: {
step: 2
}
}
});
</script>
categoryAxis.majorGridLines.skipNumber
(default: 0)
The skip of the category axis major grid lines.
Example
<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
data: [1, 2, 3, 4, 5],
categoryAxis: {
majorGridLines: {
skip: 1
}
}
});
</script>