@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.
39 lines (38 loc) • 1.57 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
/**
* Specifies the position of the axis labels.
*
* The possible values are:
* - `"start"`—Positions the labels at the start of the axis, typically located at the left or bottom end of the Chart, unless the crossing axis is reversed.
* - `"end"`—Positions the labels at the end of the axis, usually at the top or right end of the Chart, unless the crossing axis is reversed.
* - `"onAxis"`—Positions the labels on the axis.
* - `""`—Positions the labels based on the axis type.
*
* @example
* ```ts
* import { Component } from '@angular/core';
* import { AxisLabelsPosition } from '@progress/kendo-angular-charts';
*
* _@Component({
* selector: 'my-app',
* template: `
* <kendo-chart>
* <kendo-chart-category-axis>
* <kendo-chart-category-axis-item>
* <kendo-chart-category-axis-item-labels [position]="position">
* </kendo-chart-category-axis-item-labels>
* </kendo-chart-category-axis-item>
* </kendo-chart-category-axis>
* </kendo-chart>
* `
* })
* class AppComponent {
* public position: AxisLabelsPosition = "end";
* }
*
* ```
*/
export type AxisLabelsPosition = 'start' | 'end' | 'onAxis' | '';