categoryAxis.maxDateGroupsNumber
(default: 10)
Specifies the maximum number of groups (categories) to produce when eitherbaseUnitis set to "fit" orbaseUnitStepis set to "auto".
Example
<div id="sparkline"></div>
<script>
$("#sparkline").kendoSparkline({
categoryAxis: {
type: "date",
baseUnit: "fit",
maxDateGroups: 5,
categories: [
new Date("2023/01/01"),
new Date("2023/01/15"),
new Date("2023/02/01"),
new Date("2023/02/15"),
new Date("2023/03/01"),
new Date("2023/03/15")
]
},
series: [{
data: [10, 15, 8, 12, 6, 9]
}]
});
</script>
In this article