UNPKG

@syncfusion/ej2-charts

Version:

Feature-rich chart control with built-in support for over 25 chart types, technical indictors, trendline, zooming, tooltip, selection, crosshair and trackball.

58 lines (57 loc) 1.38 kB
import { Axis } from '../axis/axis'; import { Size } from '@syncfusion/ej2-svg-base'; import { Chart } from '../chart'; import { NiceInterval } from '../axis/axis-helper'; /** * The `Category` module is used to render the category axis in charts. * * @private */ export declare class Category extends NiceInterval { /** * Constructor for the category module. * * @private * @param {Chart} chart - Specifies the chart. */ constructor(chart: Chart); /** * The function to calculate the range and labels for the axis. * * @private * @returns {void} */ calculateRangeAndInterval(size: Size, axis: Axis): void; /** * Actual Range for the axis. * * @private */ getActualRange(axis: Axis, size: Size): void; /** * Padding for the axis. * * @private * @param {Axis} axis - The axis for which padding is applied. * @param {Size} size - The size for padding. * @returns {void} */ applyRangePadding(axis: Axis, size: Size): void; /** * Calculate label for the axis. * * @private */ calculateVisibleLabels(axis: Axis): void; /** * Get module name */ protected getModuleName(): string; /** * To destroy the category axis. * * @returns {void} * @private */ destroy(): void; }