Versions Compared
Version | Old Version 3 | New Version 4 |
---|---|---|
Changes made by | ||
Saved on |
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Class graphomate.ui.charts.Deviation
extends sap.ui.core.Element
Quick Start
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.
Code Block | ||||
---|---|---|---|---|
| ||||
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:
Properties:
- label : string (default: "dev")
- type : graphomate.ui.charts.enums.DeviationType (default: "percent")
- baseSeriesIndex : graphomate.ui.types.UnsignedInteger (default: 1)
- measureSeriesIndex : graphomate.ui.types.UnsignedInteger (default: 0)
Property Details
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.
The following properties are available:
Property Name | Type | Description |
---|---|---|
label | string | |
type | graphomate.ui.charts.enums.DeviationType | |
baseSeriesIndex | graphomate.ui.types.UnsignedInteger | |
measureSeriesIndex | graphomate.ui.types.UnsignedInteger |