UNPKG

@progress/kendo-vue-charts

Version:
55 lines (54 loc) 1.44 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { BaseUnit } from './base-unit'; /** * The `baseUnit` type of the category axis. * * @example * ```jsx * <template> * <Chart> * <ChartCategoryAxis> * <ChartCategoryAxisItem :base-unit="baseUnit" /> * </ChartCategoryAxis> * <ChartSeries> * <ChartSeriesItem :category-field="category" :data-items="dataItems" /> * </ChartSeries> * </Chart> * </template> * <script> * import { * Chart, * ChartCategoryAxis, * ChartCategoryAxisItem, * ChartSeries, * ChartSeriesItem * } from '@progress/kendo-vue-charts'; * * export default { * components: { * Chart, * ChartCategoryAxis, * ChartCategoryAxisItem, * ChartSeries, * ChartSeriesItem * }, * data () { * return { * baseUnit: "months", * dataItems: [ * { category: new Date(2000, 0, 1), value: 1 }, * { category: new Date(2001, 0, 1), value: 1} * ] * }; * } * } * </script> * ``` */ export type CategoryBaseUnit = BaseUnit | 'auto' | 'fit';