UNPKG

@progress/kendo-charts

Version:

Kendo UI platform-independent Charts library

27 lines (21 loc) 524 B
class ChartAxis { constructor(axis) { this._axis = axis; this.options = axis.options; } value(point) { const axis = this._axis; const value = axis.getCategory ? axis.getCategory(point) : axis.getValue(point); return value; } slot(from, to, limit = true) { return this._axis.slot(from, to, limit); } range() { return this._axis.range(); } valueRange() { return this._axis.valueRange(); } } export default ChartAxis;