plotAreaObject

The plot area configuration options. This is the area containing the plotted series.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    dataSource: {
        data: [{
            date: new Date(2016, 0, 1),
            close: 41
        }, {
            date: new Date(2016, 0, 2),
            close: 42
        }]
    },
    series: [{
        field: "close",
        name: "Price"
    }],
    plotArea: {
        background: "#f5f5f5",
        opacity: 0.8
    }
});
</script>

plotArea.backgroundString(default: "white")

The background color of the plot area.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    dataSource: {
        data: [{
            date: new Date(2016, 0, 1),
            close: 41
        }, {
            date: new Date(2016, 0, 2),
            close: 42
        }]
    },
    series: [{
        field: "close",
        name: "Price"
    }],
    plotArea: {
        background: "#e6f2ff"
    }
});
</script>

plotArea.opacityNumber(default: 1)

The background opacity of the plot area.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    dataSource: {
        data: [{
            date: new Date(2016, 0, 1),
            close: 41
        }, {
            date: new Date(2016, 0, 2),
            close: 42
        }]
    },
    series: [{
        field: "close",
        name: "Price"
    }],
    plotArea: {
        background: "#e6f2ff",
        opacity: 0.7
    }
});
</script>

plotArea.borderObject

The border of the plot area.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    dataSource: {
        data: [{
            date: new Date(2016, 0, 1),
            close: 41
        }, {
            date: new Date(2016, 0, 2),
            close: 42
        }]
    },
    series: [{
        field: "close",
        name: "Price"
    }],
    plotArea: {
        border: {
            color: "blue",
            width: 2,
            dashType: "dash"
        }
    }
});
</script>

plotArea.border.colorString(default: "black")

The color of the border.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    dataSource: {
        data: [{
            date: new Date(2016, 0, 1),
            close: 41
        }, {
            date: new Date(2016, 0, 2),
            close: 42
        }]
    },
    series: [{
        field: "close",
        name: "Price"
    }],
    plotArea: {
        border: {
            color: "red"
        }
    }
});
</script>

plotArea.border.dashTypeString(default: "solid")

The dash type of the border.

"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="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    dataSource: {
        data: [{
            date: new Date(2016, 0, 1),
            close: 41
        }, {
            date: new Date(2016, 0, 2),
            close: 42
        }]
    },
    series: [{
        field: "close",
        name: "Price"
    }],
    plotArea: {
        border: {
            dashType: "dash"
        }
    }
});
</script>

plotArea.border.widthNumber(default: 0)

The width of the border.

Example

<div id="stock-chart"></div>
<script>
$("#stock-chart").kendoStockChart({
    dataSource: {
        data: [{
            date: new Date(2016, 0, 1),
            close: 41
        }, {
            date: new Date(2016, 0, 2),
            close: 42
        }]
    },
    series: [{
        field: "close",
        name: "Price"
    }],
    plotArea: {
        border: {
            width: 3
        }
    }
});
</script>

plotArea.marginNumber|Object(default: 5)

The margin of the plot area.

Example

pseudo
    // sets the top, right, bottom and left margin to 3px.
    margin: 3

    // sets the top and left margin to 1px
    // margin right and bottom are with 5px (by default)
    margin: { top: 1, left: 1 }