categoryAxis.lineObject

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

Example

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    data: [1, 2, 3, 4, 5],
    categoryAxis: {
        line: {
            color: "#ff0000",
            width: 2,
            visible: true
        }
    }
});
</script>

categoryAxis.line.colorString(default: "black")

The color of the lines. Any valid CSS color string will work here, including hex and rgb.

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

Example

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

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

The dash type of the line.

"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="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    data: [1, 2, 3, 4, 5],
    categoryAxis: {
        line: {
            dashType: "dash"
        }
    }
});
</script>

categoryAxis.line.visibleBoolean(default: true)

The visibility of the lines.

Example

<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    data: [1, 2, 3, 4, 5],
    categoryAxis: {
        line: {
            visible: false
        }
    }
});
</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="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
    data: [1, 2, 3, 4, 5],
    categoryAxis: {
        line: {
            width: 3
        }
    }
});
</script>