xAxis.type String (default: "numeric")

The axis type.

The supported values are:

  • "numeric" - numeric axis.
  • "date" - specialized axis for displaying chronological data.
  • "log" - logarithmic axis.

The chart will automatically switch to a date axis if the series X value is of type Date. Set the xAsix.type when such behavior is undesired.

Example - set the scatter chart x axis type

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [
    {
      type: "scatter",
      data: [
        [new Date("01/01/2013"), 2],
        [new Date("01/02/2013"), 2],
        [new Date("01/03/2013"), 2]
      ]
    }
  ],
  xAxis: {
    type: "date"
  }
});
</script>

Example - using logarithmic x axis for the scatter chart

<div id="chart"></div>
<script>
$("#chart").kendoChart({
  series: [
    {
      type: "scatter",
      data: [
        [5, 2],
        [7, 2],
        [11123, 2]
      ]
    }
  ],
  xAxis: {
    type: "log"
  }
});
</script>
In this article