xAxis.baseUnit String

The base time interval for the axis labels. The default baseUnit is determined automatically from the value range. Available options:

  • milliseconds
  • seconds
  • minutes
  • hours
  • days
  • weeks
  • months
  • years

Example - set the scatter chart x axis base unit

<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",
    baseUnit: "hours"
  }
});
</script>
In this article