UNPKG

igniteui-react-charts

Version:

Ignite UI React charting components for building rich data visualizations using TypeScript APIs.

105 lines (102 loc) 3.33 kB
import { __extends } from "tslib"; import { IgrNumericAxisBase } from "./igr-numeric-axis-base"; import { NumericRadiusAxis } from "./NumericRadiusAxis"; /** * Represents a IgxDataChartComponent radius axis for polar and radial series. * * ```ts * <IgrDataChart * dataSource={this.state.dataSource} > * * <IgrCategoryAngleAxis name="angleAxis" label="Department" /> * <IgrNumericRadiusAxis name="radiusAxis" /> * * </IgrDataChart> * ``` * * ```ts * this.series1.angleAxisName = "AngleAxis"; * this.series1.valueAxisName = "numericYAxis"; * ``` */ var IgrNumericRadiusAxis = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgrNumericRadiusAxis, _super); function IgrNumericRadiusAxis(props) { return _super.call(this, props) || this; } IgrNumericRadiusAxis.prototype.createImplementation = function () { return new NumericRadiusAxis(); }; Object.defineProperty(IgrNumericRadiusAxis.prototype, "i", { /** * @hidden */ get: function () { return this._implementation; }, enumerable: false, configurable: true }); Object.defineProperty(IgrNumericRadiusAxis.prototype, "isRadial", { /** * Checks if the axis is of radial axis type * * ```ts * let isRadial: boolean = this.series.isRadial; * ``` */ get: function () { return this.i.cm; }, enumerable: false, configurable: true }); Object.defineProperty(IgrNumericRadiusAxis.prototype, "radiusExtentScale", { /** * Defines the percentage of the maximum radius extent to use as the maximum radius. Should be * a value between 0.0 and 1.0. */ get: function () { return this.i.oh; }, set: function (v) { this.i.oh = +v; }, enumerable: false, configurable: true }); Object.defineProperty(IgrNumericRadiusAxis.prototype, "innerRadiusExtentScale", { /** * Defines the percentage of the maximum radius extent to leave blank at the center of the chart. Should be * a value between 0.0 and 1.0. */ get: function () { return this.i.og; }, set: function (v) { this.i.og = +v; }, enumerable: false, configurable: true }); /** * Returns a world coordinates radius length (0 - 0.5) from a raw axis value. * @param unscaledValue * The raw axis value. */ IgrNumericRadiusAxis.prototype.getScaledValue = function (unscaledValue) { var iv = this.i.od(unscaledValue); return (iv); }; /** * Returns a raw axis value from the world coordinates radius length provided. * @param scaledValue * The scaled world coordinates radius length. * * Class containing several properties which are used as parameters passed to scaling operations in a `SeriesViewer`. */ IgrNumericRadiusAxis.prototype.getUnscaledValue = function (scaledValue) { var iv = this.i.of(scaledValue); return (iv); }; return IgrNumericRadiusAxis; }(IgrNumericAxisBase)); export { IgrNumericRadiusAxis };