categoryAxis.autoBaseUnitSteps Object

Specifies the discretebaseUnitStepvalues when eitherbaseUnitis set to "fit" orbaseUnitStepis set to "auto".

The default configuration is as follows:

  • minutes: [1, 2, 5, 15, 30]
  • hours: [1, 2, 3, 6, 12]
  • days: [1, 2, 3]
  • weeks: [1, 2]
  • months: [1, 2, 3, 6]
  • years: [1, 2, 3, 5, 10, 25, 50]

Each setting can be overriden individually.

Example

$("#sparkline").kendoSparkline({
    categoryAxis: {
        categories: [
            new Date("2012/02/01 00:00:00"),
            new Date("2012/02/02 00:00:00"),
            new Date("2012/02/20 00:00:00")
        ],
        baseUnitStep: "auto",
        autoBaseUnitSteps: {
            days: [3]
        }
    },
    ...
});
In this article