navigator.categoryAxis.majorGridLinesObject
The configuration of 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="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
navigator: {
categoryAxis: {
majorGridLines: {
color: "blue",
visible: true,
width: 2
}
}
},
series: [{
type: "line",
field: "value",
categoryField: "date",
data: [
{ value: 1, date: new Date(2012, 1, 1) },
{ value: 2, date: new Date(2012, 1, 2) }
]
}]
});
</script>
navigator.categoryAxis.majorGridLines.colorString(default: "black")
The color of the major grid lines. Accepts a valid CSS color string, including hex and rgb.
Example
<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
navigator: {
categoryAxis: {
majorGridLines: {
color: "green",
visible: true
}
}
},
series: [{
type: "line",
field: "value",
categoryField: "date",
data: [
{ value: 1, date: new Date(2012, 1, 1) },
{ value: 2, date: new Date(2012, 1, 2) }
]
}]
});
</script>
navigator.categoryAxis.majorGridLines.dashTypeString(default: "solid")
The dash type of the major grid lines.
The following dash types are supported:
- "dash" - a line consisting of dashes
- "dashDot" - a line consisting of a repeating pattern of dash-dot
- "dot" - a line consisting of dots
- "longDash" - a line consisting of a repeating pattern of long-dash
- "longDashDot" - a line consisting of a repeating pattern of long-dash-dot
- "longDashDotDot" - a line consisting of a repeating pattern of long-dash-dot-dot
- "solid" - a solid line
Example
<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
navigator: {
categoryAxis: {
majorGridLines: {
dashType: "dot",
visible: true
}
}
},
series: [{
type: "line",
field: "value",
categoryField: "date",
data: [
{ value: 1, date: new Date(2012, 1, 1) },
{ value: 2, date: new Date(2012, 1, 2) }
]
}]
});
</script>
navigator.categoryAxis.majorGridLines.visibleBoolean(default: false)
If set to true the chart will display the major grid lines. By default the major grid lines are visible.
Example
<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
navigator: {
categoryAxis: {
majorGridLines: {
visible: true
}
}
},
series: [{
type: "line",
field: "value",
categoryField: "date",
data: [
{ value: 1, date: new Date(2012, 1, 1) },
{ value: 2, date: new Date(2012, 1, 2) }
]
}]
});
</script>
navigator.categoryAxis.majorGridLines.widthNumber(default: 1)
The width of the category axis major grid lines in pixels.
Example
<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
navigator: {
categoryAxis: {
majorGridLines: {
width: 3,
visible: true
}
}
},
series: [{
type: "line",
field: "value",
categoryField: "date",
data: [
{ value: 1, date: new Date(2012, 1, 1) },
{ value: 2, date: new Date(2012, 1, 2) }
]
}]
});
</script>
navigator.categoryAxis.majorGridLines.stepNumber(default: 1)
The step of the category axis major grid lines.
Example
<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
navigator: {
categoryAxis: {
majorGridLines: {
step: 2,
visible: true
}
}
},
series: [{
type: "line",
field: "value",
categoryField: "date",
data: [
{ value: 1, date: new Date(2012, 1, 1) },
{ value: 2, date: new Date(2012, 1, 2) },
{ value: 3, date: new Date(2012, 1, 3) },
{ value: 4, date: new Date(2012, 1, 4) }
]
}]
});
</script>
navigator.categoryAxis.majorGridLines.skipNumber(default: 0)
The skip of the category axis major grid lines.
Example
<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
navigator: {
categoryAxis: {
majorGridLines: {
skip: 1,
visible: true
}
}
},
series: [{
type: "line",
field: "value",
categoryField: "date",
data: [
{ value: 1, date: new Date(2012, 1, 1) },
{ value: 2, date: new Date(2012, 1, 2) },
{ value: 3, date: new Date(2012, 1, 3) },
{ value: 4, date: new Date(2012, 1, 4) }
]
}]
});
</script>
In this article