Creates a deviation chart that can be used in the aggregation "deviations" of a graphomate.ui.charts.Chart. For each Deviation in that aggregation the graphomate chart renders an additional axis that displays the percentage or absolute deviations between two data series.
Usage Example
var chart = new graphomate.ui.charts.Chart({
chartType: graphomate.ui.charts.enums.ChartType.Bar,
series1: [5, 16, 17, 20],
series2: [-2, 12, 15, 19],
deviations:[
new graphomate.ui.charts.Deviation({
baseSeriesIndex: 1,
measureSeriesIndex: 0
})
]
});
Constructor Details
new graphomate.ui.charts.Deviation(id?:string, settings?:object)
Accepts an id and a settings object or one or none of them. The settings object defines initial property values. Every setting can also be set using the related setter method. The supported settings are:
Each property "sampleProperty" can be set using the related setter "setSampleProperty". Each setter expects a valid value for the related property as input parameter and throws an exception for invalid values. It returns the "this context" for method chaining. Each property "sampleProperty" can also be gotten using the related getter method "getSampleProperty". It expects no input parameters and returns the current value of the related property. Each property that represents or partially contains indices excepts a 0 based index.
Add Comment