Edit this page

categoryAxis.field String

The data item field which contains the category name. Requires the dataSource option to be set. The field name should be a valid Javascript identifier and should contain only alphanumeric characters (or "$" or "_"), and may not start with a digit.

Example - set the category axis field

<div id="chart"></div>
  categoryAxis: {
    field: "year"
  series: [
    { field: "value" }
  dataSource: [
    { year: "2012", value: 1 },
    { year: "2013", value: 2 }
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article