/**-----------------------------------------------------------------------------------------
* 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)&mdash;Sets the base time interval for the axis labels.
 * - `"auto"`&mdash;Automatically determines the base unit by the minimum difference between subsequent categories.
 * - `"fit"`&mdash;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: `
 *     <kendo-chart>
 *       <kendo-chart-category-axis>
 *         <kendo-chart-category-axis-item [baseUnit]="baseUnit" >
 *         </kendo-chart-category-axis-item>
 *       </kendo-chart-category-axis>
 *       <kendo-chart-series>
 *         <kendo-chart-series-item categoryField="category" [data]="data">
 *         </kendo-chart-series-item>
 *       </kendo-chart-series>
 *     </kendo-chart>
 *   `
 * })
 * 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';
