New to Kendo UI for jQuery? Start a free 30-day trial

ChartArea.border

configuration

The border of the chart area.

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    data: [1, 2, 3, 4, 5],
    chartArea: {
        border: {
            color: "#00ff00",
            width: 3,
            dashType: "dash"
        }
    }
});
</script>

The color of the border.

Default: "black"

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    data: [1, 2, 3, 4, 5],
    chartArea: {
        border: {
            color: "#0000ff"
        }
    }
});
</script>

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.

Default: "solid"

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    data: [1, 2, 3, 4, 5],
    chartArea: {
        border: {
            dashType: "dash"
        }
    }
});
</script>

The width of the border.

Default: 0

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    data: [1, 2, 3, 4, 5],
    chartArea: {
        border: {
            width: 3
        }
    }
});
</script>