categoryAxis.majorTicksObject

The major ticks of the axis.

Example

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

categoryAxis.majorTicks.sizeNumber(default: 4)

The axis major tick size. This is the length of the line in pixels that is drawn to indicate the tick on the chart.

Example

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

categoryAxis.majorTicks.visibleBoolean(default: true)

The visibility of the major ticks.

Example

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

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

The color of the category axis major ticks lines. Accepts a valid CSS color string, including hex and rgb.

Example

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

categoryAxis.majorTicks.widthNumber(default: 1)

The width of the major ticks in pixels.

Example

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

categoryAxis.majorTicks.stepNumber(default: 1)

The step of the category axis major ticks.

Example

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

categoryAxis.majorTicks.skipNumber(default: 0)

The skip of the category axis major ticks.

Example

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