@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.
40 lines (39 loc) • 1.49 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2024 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
/**
* The position of an axis title.
*
* The possible values are:
* - `"top"`—The title is positioned at the top of the axis.
* - `"bottom"`—The title is positioned at the bottom of the axis.
* - `"left"`—The title is positioned at the left of the axis.
* - `"right"`—The title is positioned at the right of the axis.
* - `"center"`—The title is positioned at the center of the axis.
*
* @example
* ```ts
* import { Component } from '@angular/core';
* import { AxisTitlePosition } from '@progress/kendo-angular-charts';
*
* _@Component({
* selector: 'my-app',
* template: `
* <kendo-chart>
* <kendo-chart-value-axis>
* <kendo-chart-value-axis-item>
* <kendo-chart-value-axis-item-title [position]="position" text="Title">
* </kendo-chart-value-axis-item-title>
* </kendo-chart-value-axis-item>
* </kendo-chart-value-axis>
* </kendo-chart>
* `
* })
* class AppComponent {
* public position: AxisTitlePosition = "top";
* }
*
* ```
*/
export type AxisTitlePosition = 'top' | 'bottom' | 'left' | 'right' | 'center';