/**----------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { BaseUnit } from './base-unit'; /** * Specifies the `baseUnit` type of the category axis. * * The possible values are: * - [`BaseUnit`](https://www.telerik.com/kendo-angular-ui/components/charts/api/baseunit)—Sets the base time interval for the axis labels. * - `"auto"`—Automatically determines the base unit by the minimum difference between subsequent categories. * - `"fit"`—Adjusts the [`categoryAxis.baseUnitStep`](https://www.telerik.com/kendo-angular-ui/components/charts/api/categoryaxis#baseunitstep) and base unit so that the number of categories does not exceed [`categoryAxis.maxDateGroups`](https://www.telerik.com/kendo-angular-ui/components/charts/api/categoryaxis#maxdategroups), and uses the [`series.aggregate`](https://www.telerik.com/kendo-angular-ui/components/charts/api/series#aggregate) function to aggregate data based on the selected base unit. * * @example * ```ts * import { Component } from '@angular/core'; * import { CategoryBaseUnit } from '@progress/kendo-angular-charts'; * * _@Component({ * selector: 'my-app', * template: ` * * * * * * * * * * * ` * }) * class AppComponent { * public baseUnit: CategoryBaseUnit = "months"; * public data: any[] = [{ category: new Date(2000, 0, 1), value: 1 }, { category: new Date(2001, 0, 1), value: 1}]; * } * * ``` */ export type CategoryBaseUnit = BaseUnit | 'auto' | 'fit';