Creates a highlight definition that can be used in the aggregation "highlights" of a graphomate.ui.charts.Chart. Depending on the value of the charts property "highlightMode" all, one or none of the aggregated highlights will be rendered as small deviation markers in the chart. They can be used to emphasize deviations between two specific values.
Usage Example
var chart = new graphomate.ui.charts.Chart({
chartType: graphomate.ui.charts.enums.ChartType.Bar,
series1: [5, 16, 17, 20],
highlightMode: graphomate.ui.charts.enums.HighlightMode.Single,
highlights:[
new graphomate.ui.charts.Highlight({
startElement: 1,
endElement: 3
})
]
});
Constructor Details
new graphomate.ui.charts.Highlight(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.
Sets the index of the chart's data series that will serve as the measure series, where the deviation gets calculated by subtracting the start series (base) from the end series (measure).
Sets the index of the value in the end series that will be used for calculating the deviation. The deviation of this highlight will be calculated by subtracting the start element of the start series from the end element of the end series.
No labels
0 Comments
You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.
0 Comments