@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.
61 lines (60 loc) • 2.55 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { drawing } from '@progress/kendo-drawing';
import { AxisLabelContentArgs, AxisLabelVisualArgs, LabelRotation, Margin, Padding } from '../../common/property-types';
/**
* Specifies the configuration options for the axis label
* ([see example](slug:axes_chart_charts#toc-default-axis-configuration)).
*/
export interface AxisDefaultsLabels {
/**
* Specifies the function which returns the label content.
* Use line feed characters (`"\n"`) to split the text into multiple lines.
*/
content?: (e: AxisLabelContentArgs) => string;
/**
* Specifies the font style of the labels.
*/
font?: string;
/**
* Specifies the format for displaying the labels. Uses the [`format`]({% slug api_intl_intlservice %}#toc-format) method of IntlService.
* Contains one placeholder (`"{0}"`) which represents the category value.
*/
format?: string;
/**
* Specifies the margin of the labels. A numeric value sets all margins.
*/
margin?: Margin | number;
/**
* Determines whether the Chart mirrors the axis labels and ticks.
* When enabled, labels that are normally on the left side of the axis render on the right.
*/
mirror?: boolean;
/**
* Specifies the padding of the labels. A numeric value sets all paddings.
*/
padding?: Padding | number;
/**
* Specifies the rotation angle of the labels. By default, the labels are not rotated.
* For horizontal axes, set to `"auto"` to rotate labels only when the slot size is insufficient for the entire labels.
*/
rotation?: LabelRotation | number | 'auto';
/**
* Specifies the number of labels to skip. By default, no labels are skipped.
*/
skip?: number;
/**
* Specifies the label-rendering step—renders every n<sup>th</sup> label. By default, every label is rendered.
*/
step?: number;
/**
* Determines whether the Chart displays the axis labels. By default, the axis labels are visible.
*/
visible?: boolean;
/**
* Specifies a function for creating a custom visual for the labels.
*/
visual?: (e: AxisLabelVisualArgs) => drawing.Element;
}