categoryAxis.lineObject

Configures the axis line. This will also effect major and minor ticks, but not gridlines.

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: {
        line: {
            color: "#ff6800",
            width: 3,
            visible: true
        }
    },
    series: [{
        type: "candlestick",
        field: "close"
    }]
});
</script>

categoryAxis.line.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: {
        line: {
            color: "#ff6800"
        }
    },
    series: [{
        type: "candlestick",
        field: "close"
    }]
});
</script>

Note: This will also effect the major and minor ticks, but not the grid lines.

categoryAxis.line.dashTypeString(default: "solid")

The dash type of the line.

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: {
        line: {
            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.line.visibleBoolean(default: true)

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: {
        line: {
            visible: false
        }
    },
    series: [{
        type: "candlestick",
        field: "close"
    }]
});
</script>

categoryAxis.line.widthNumber(default: 1)

The width of the line. This will also effect the major and minor ticks, but not 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: {
        line: {
            width: 3
        }
    },
    series: [{
        type: "candlestick",
        field: "close"
    }]
});
</script>