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

State.categoryAxis

configuration

The category axis configuration options.

Default: (required)

<div id="chart-wizard"></div>
<script>
$("#chart-wizard").kendoChartWizard({
    state: {
        categoryAxis: {
            labels: {
                color: "#333",
                font: "12px Arial",
                rotation: 45
            },
            title: {
                text: "Categories",
                color: "#666"
            }
        }
    }
});
</script>

The category names. The chart will create a category for every item of the array.

<div id="chart-wizard"></div>
<script>
$("#chart-wizard").kendoChartWizard({
    state: {
        categoryAxis: {
            categories: ["Q1", "Q2", "Q3", "Q4"]
        }
    }
});
</script>

The axis labels configuration.

<div id="chart-wizard"></div>
<script>
$("#chart-wizard").kendoChartWizard({
    state: {
        categoryAxis: {
            labels: {
                color: "#666",
                font: "11px Arial",
                format: "{0:MMM}",
                rotation: 30,
                visible: true
            }
        }
    }
});
</script>

The reverse option of the axis.

Default: false

<div id="chart-wizard"></div>
<script>
$("#chart-wizard").kendoChartWizard({
    state: {
        categoryAxis: {
            reverse: true
        }
    }
});
</script>

The title configuration of the category axis.

The categoryAxis.title.text option must be set in order to display the title.

<div id="chart-wizard"></div>
<script>
$("#chart-wizard").kendoChartWizard({
    state: {
        categoryAxis: {
            title: {
                text: "Time Period",
                color: "#333",
                font: "14px Arial"
            }
        }
    }
});
</script>