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="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
dataSource: {
data: [
{ date: new Date("2012/01/01"), close: 300, volume: 40000 },
{ date: new Date("2012/01/02"), close: 310, volume: 50000 },
{ date: new Date("2012/01/03"), close: 320, volume: 45000 }
]
},
dateField: "date",
categoryAxis: {
majorGridLines: {
visible: true,
color: "#cccccc",
width: 1
}
},
series: [{
type: "candlestick",
field: "close"
}]
});
</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="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
dataSource: {
data: [
{ date: new Date("2012/01/01"), close: 300, volume: 40000 },
{ date: new Date("2012/01/02"), close: 310, volume: 50000 },
{ date: new Date("2012/01/03"), close: 320, volume: 45000 }
]
},
dateField: "date",
categoryAxis: {
majorGridLines: {
color: "#ff6800"
}
},
series: [{
type: "candlestick",
field: "close"
}]
});
</script>
categoryAxis.majorGridLines.dashTypeString(default: "solid")
The dash type of the grid lines.
Example
<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
dataSource: {
data: [
{ date: new Date("2012/01/01"), close: 300, volume: 40000 },
{ date: new Date("2012/01/02"), close: 310, volume: 50000 },
{ date: new Date("2012/01/03"), close: 320, volume: 45000 }
]
},
dateField: "date",
categoryAxis: {
majorGridLines: {
dashType: "dash"
}
},
series: [{
type: "candlestick",
field: "close"
}]
});
</script>
"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.
categoryAxis.majorGridLines.visibleBoolean(default: false)
The visibility of the lines.
Example
<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
dataSource: {
data: [
{ date: new Date("2012/01/01"), close: 300, volume: 40000 },
{ date: new Date("2012/01/02"), close: 310, volume: 50000 },
{ date: new Date("2012/01/03"), close: 320, volume: 45000 }
]
},
dateField: "date",
categoryAxis: {
majorGridLines: {
visible: true
}
},
series: [{
type: "candlestick",
field: "close"
}]
});
</script>
categoryAxis.majorGridLines.widthNumber(default: 1)
The width of the lines.
Example
<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
dataSource: {
data: [
{ date: new Date("2012/01/01"), close: 300, volume: 40000 },
{ date: new Date("2012/01/02"), close: 310, volume: 50000 },
{ date: new Date("2012/01/03"), close: 320, volume: 45000 }
]
},
dateField: "date",
categoryAxis: {
majorGridLines: {
width: 2
}
},
series: [{
type: "candlestick",
field: "close"
}]
});
</script>
categoryAxis.majorGridLines.stepNumber(default: 1)
The step of the category axis major grid lines.
Example
<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
dataSource: {
data: [
{ date: new Date("2012/01/01"), close: 300, volume: 40000 },
{ date: new Date("2012/01/02"), close: 310, volume: 50000 },
{ date: new Date("2012/01/03"), close: 320, volume: 45000 },
{ date: new Date("2012/01/04"), close: 330, volume: 55000 },
{ date: new Date("2012/01/05"), close: 340, volume: 60000 }
]
},
dateField: "date",
categoryAxis: {
majorGridLines: {
step: 2
}
},
series: [{
type: "candlestick",
field: "close"
}]
});
</script>
categoryAxis.majorGridLines.skipNumber(default: 0)
The skip of the category axis major grid lines.
Example
<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
dataSource: {
data: [
{ date: new Date("2012/01/01"), close: 300, volume: 40000 },
{ date: new Date("2012/01/02"), close: 310, volume: 50000 },
{ date: new Date("2012/01/03"), close: 320, volume: 45000 },
{ date: new Date("2012/01/04"), close: 330, volume: 55000 },
{ date: new Date("2012/01/05"), close: 340, volume: 60000 }
]
},
dateField: "date",
categoryAxis: {
majorGridLines: {
skip: 1
}
},
series: [{
type: "candlestick",
field: "close"
}]
});
</script>