@progress/kendo-angular-charts
Version:
Kendo UI Charts for Angular - A comprehensive package for creating beautiful and interactive data visualization. Every chart type, stock charts, and sparklines are included.
46 lines (45 loc) • 1.67 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
/**
* The `baseUnit` type of a X or Y axis.
*
* The possible values are:
* - `"milliseconds"`—The base unit is milliseconds.
* - `"seconds"`—The base unit is seconds.
* - `"minutes"`—The base unit is minutes.
* - `"hours"`—The base unit is hours.
* - `"days"`—The base unit is days.
* - `"weeks"`—The base unit is weeks.
* - `"months"`—The base unit is months.
* - `"years"`—The base unit is years.
*
* @example
* ```ts
* import { Component } from '@angular/core';
* import { BaseUnit } from '@progress/kendo-angular-charts';
*
* _@Component({
* selector: 'my-app',
* template: `
* <kendo-chart>
* <kendo-chart-x-axis>
* <kendo-chart-x-axis-item [baseUnit]="baseUnit">
* </kendo-chart-x-axis-item>
* </kendo-chart-x-axis>
* <kendo-chart-series>
* <kendo-chart-series-item type="scatter" [data]="data">
* </kendo-chart-series-item>
* </kendo-chart-series>
* </kendo-chart>
* `
* })
* class AppComponent {
* public baseUnit: BaseUnit = "months";
* public data: any[] = [[new Date(2000, 0, 1), 1], [new Date(2001, 0, 1), 1]];
* }
*
* ```
*/
export type BaseUnit = 'milliseconds' | 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'months' | 'years';