UNPKG

@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.79 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { geometry } from '@progress/kendo-drawing'; import { AxisRange } from './axis-range.interface'; /** * Represents the Chart axes API interface. */ export interface ChartAxis { /** * Returns the axis range. * * @returns {AxisRange} The axis range. */ range(): AxisRange; /** * Returns a slot based on the specified `from` and `to` values. * * @param {string | number | Date} from The start value of the slot. * @param {string | number | Date} to The end value of the slot. If not specified, the `from` value is used. * @param {boolean} limit Indicates whether the slot is limited to the current range. By default, the range is limited. * @returns {geometry.Rect | geometry.Arc} The slot rectangle or arc geometry. */ slot(from: string | number | Date, to?: string | number | Date, limit?: boolean): geometry.Rect | geometry.Arc; /** * Returns the value that corresponds to the passed surface point. * * @param {geometry.Point} point The surface point of the Chart. * @returns {string | number | Date} The value that corresponds to the point. */ value(point: geometry.Point): string | number | Date; /** * Returns the axis range which is determined by the minimum and maximum point values that are associated with the axis. * * @returns {AxisRange} The value range. */ valueRange(): AxisRange; }