UNPKG

igniteui-react-charts

Version:

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

68 lines (65 loc) 2.03 kB
import { IgrVerticalRangeCategorySeries } from "./igr-vertical-range-category-series"; import { RangeBarSeries } from "./RangeBarSeries"; import { toPoint, fromRect } from "igniteui-react-core"; /** * Represents a IgxDataChartComponent range bar series. */ export class IgrRangeBarSeries extends IgrVerticalRangeCategorySeries { createImplementation() { return new RangeBarSeries(); } /** * @hidden */ get i() { return this._implementation; } constructor(props) { super(props); } /** * Gets whether the current series shows a bar shape. */ get isBar() { return this.i.e0; } /** * Overridden by derived series classes to indicate when marker-less display is preferred or not. */ get isMarkerlessDisplayPreferred() { return this.i.fp; } /** * Gets or sets the x-radius of the ellipse that is used to round the corners of the bar. */ get radiusX() { return this.i.acw; } set radiusX(v) { this.i.acw = +v; } /** * Gets or sets the y-radius of the ellipse that is used to round the corners of the bar. */ get radiusY() { return this.i.acx; } set radiusY(v) { this.i.acx = +v; } /** * If possible, will return the best available value bounding box within the series that has the best value match for the world position provided. * @param world * The world coordinate for which to get a value bounding box for */ getSeriesValueBoundingBox(world) { let iv = this.i.xa(toPoint(world)); return fromRect(iv); } /** * For a category plotted series, returns the current width of the items within the categories. This only returns a value if the items have some form of width (e.g. columns, bars, etc.) otherwise 0 is returned. */ getItemSpan() { let iv = this.i.i5(); return (iv); } }