igniteui-react-charts
Version:
Ignite UI React charting components for building rich data visualizations using TypeScript APIs.
59 lines (58 loc) • 1.57 kB
JavaScript
import { SplineType_$type } from "./SplineType";
import { IgrHorizontalAnchoredCategorySeries } from "./igr-horizontal-anchored-category-series";
import { ensureBool, ensureEnum } from "igniteui-react-core";
/**
* Represents the base class for all IgxDataChartComponent spline series.
*/
export class IgrSplineSeriesBase extends IgrHorizontalAnchoredCategorySeries {
/**
* @hidden
*/
get i() {
return this._implementation;
}
constructor(props) {
super(props);
}
/**
* Gets or sets whether to include the spline shape in the axis range requested of the axis.
*/
get isSplineShapePartOfRange() {
return this.i.ac8;
}
set isSplineShapePartOfRange(v) {
this.i.ac8 = ensureBool(v);
}
/**
* Gets whether the current series shows an area or line shape.
*/
get isAreaOrLine() {
return this.i.ex;
}
/**
* Gets or sets the type of spline to be rendered.
*
* ```ts
* this.series.splineType = SplineType.Clamped;
* ```
*
* ```ts
* <IgrDataChart
* dataSource={this.state.dataSource} >
*
* <IgrCategoryXAxis name="xAxis" />
* <IgrNumericYAxis name="yAxis" />
*
* <IgrSplineAreaSeries
* name="series1"
* valueMemberPath="value"/>
* </IgrDataChart>
* ```
*/
get splineType() {
return this.i.ac7;
}
set splineType(v) {
this.i.ac7 = ensureEnum(SplineType_$type, v);
}
}