igniteui-angular-charts
Version:
Ignite UI Angular charting components for building rich data visualizations for modern web apps.
39 lines (38 loc) • 1.07 kB
JavaScript
import { IgxDataContext } from "igniteui-angular-core";
import { PieSliceDataContext as PieSliceDataContext_internal } from "./PieSliceDataContext";
import { ensureBool } from "igniteui-angular-core";
/**
* DataContext for a pie slice.
*/
export class IgxPieSliceDataContext extends IgxDataContext {
constructor() {
super();
}
createImplementation() {
return new PieSliceDataContext_internal();
}
/**
* @hidden
*/
get i() {
return this._implementation;
}
/**
* Gets or sets the value of this slice as a percentage of the total pie.
*/
get percentValue() {
return this.i.percentValue;
}
set percentValue(v) {
this.i.percentValue = +v;
}
/**
* Gets or sets whether this slice is an Others slice or not.
*/
get isOthersSlice() {
return this.i.isOthersSlice;
}
set isOthersSlice(v) {
this.i.isOthersSlice = ensureBool(v);
}
}