plotAreaObject

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

Example

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    plotArea: {
        background: "lightgray",
        opacity: 0.8,
        border: {
            color: "red",
            width: 2,
            dashType: "dash"
        },
        margin: 10
    },
    series: [{
        data: [10, 15, 8, 12]
    }]
});
</script>

plotArea.backgroundString(default: "white")

The background color of the plot area.

Example

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    plotArea: {
        background: "lightblue"
    },
    series: [{
        data: [10, 15, 8, 12]
    }]
});
</script>

plotArea.opacityNumber(default: 1)

The background opacity of the plot area.

Example

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    plotArea: {
        background: "red",
        opacity: 0.5
    },
    series: [{
        data: [10, 15, 8, 12]
    }]
});
</script>

plotArea.borderObject

The border of the plot area.

Example

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    plotArea: {
        border: {
            color: "blue",
            width: 3,
            dashType: "dot"
        }
    },
    series: [{
        data: [10, 15, 8, 12]
    }]
});
</script>

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

The color of the border.

Example

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    plotArea: {
        border: {
            color: "green",
            width: 2
        }
    },
    series: [{
        data: [10, 15, 8, 12]
    }]
});
</script>

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

The dash type of the border.

Example

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    plotArea: {
        border: {
            dashType: "longDash",
            width: 2
        }
    },
    series: [{
        data: [10, 15, 8, 12]
    }]
});
</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.

plotArea.border.widthNumber(default: 0)

The width of the border.

Example

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    plotArea: {
        border: {
            width: 5,
            color: "orange"
        }
    },
    series: [{
        data: [10, 15, 8, 12]
    }]
});
</script>

plotArea.marginNumber|Object(default: 5)

The margin of the plot area.

Example

js
// 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 }