igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
93 lines (91 loc) • 2.65 kB
JavaScript
import { LegendEmptyValuesMode_$type } from "igniteui-react-core";
import { IgrAnchoredRadialSeries } from "./igr-anchored-radial-series";
import { RadialPieSeries } from "./RadialPieSeries";
import { ensureBool, ensureEnum, toPoint, fromRect } from "igniteui-react-core";
/**
* Represents a IgxDataChartComponent radial pie series.
* Compare values across categories by using radial pie slices.
*/
export class IgrRadialPieSeries extends IgrAnchoredRadialSeries {
createImplementation() {
return new RadialPieSeries();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor(props) {
super(props);
}
/**
* Gets whether the current series shows a pie shape.
*/
get isPie() {
return this.i.fo;
}
/**
* Overridden by derived series classes to indicate when marker-less display is preferred or not.
*/
get isMarkerlessDisplayPreferred() {
return this.i.fm;
}
/**
* Gets or sets the x-radius of the ellipse that is used to round the corners of the column.
*/
get radiusX() {
return this.i.ad6;
}
set radiusX(v) {
this.i.ad6 = +v;
}
/**
* Gets or sets the y-radius of the ellipse that is used to round the corners of the column.
*/
get radiusY() {
return this.i.ad7;
}
set radiusY(v) {
this.i.ad7 = +v;
}
/**
* Gets or sets the property name that contains the legend labels.
*/
get legendLabelMemberPath() {
return this.i.aeb;
}
set legendLabelMemberPath(v) {
this.i.aeb = v;
}
/**
* Determines display mode for zero values in the legend.
*/
get legendEmptyValuesMode() {
return this.i.adz;
}
set legendEmptyValuesMode(v) {
this.i.adz = ensureEnum(LegendEmptyValuesMode_$type, v);
}
/**
* Specifies that slice outlines should be drawn inside the slice rather than halfway
* in and halfway out.
*/
get useInsetOutlines() {
return this.i.ad5;
}
set useInsetOutlines(v) {
this.i.ad5 = ensureBool(v);
}
/**
* 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.iy();
return (iv);
}
getSeriesValueBoundingBox(world) {
let iv = this.i.wy(toPoint(world));
return fromRect(iv);
}
}