JavaScript/jQuery Chart - commonSeriesSettings.valueErrorBar
Configures error bars.
Error bars are used on charts to indicate an error or an uncertainty in a reported measurement. They give a general idea of how precise the measurement is.
Error bars can be generated either from concrete or calculated values. To generate one error bar, two values, high and low, are needed. If the data source of your chart provides concrete high and low values, assign the required data source fields to the highValueField and lowValueField properties.
Alternatively, error bar values can be calculated according to an algorithm. In this case, choose the required algorithm using the type property, and specify the value to be used in calculation using the value property.
color
Specifies the color of error bars.
This property supports the following colors:
- Hexadecimal colors
- RGB colors
- RGBA colors
- Predefined/cross-browser color names
- Predefined SVG colors
- Paint server address
displayMode
Specifies whether error bars must be displayed in full or partially.
This property accepts the following values.
displayMode | Result |
---|---|
"auto" | Displays error bars in full. |
"low" | Displays only the lower part of each error bar. |
"high" | Displays only the higher part of each error bar. |
"none" | Hides error bars. |
edgeLength
Specifies the length of the lines that indicate error bar edges.
A value in the range from 0 to 1 specifies the length relative to the point diameter (for circular series points) or width (for bars).
Any other value specifies the length in pixels.
highValueField
Specifies which data field provides high error values.
lowValueField
Specifies which data field provides low error values.
opacity
Specifies how trasparent error bars should be.
This property accepts a value from 0 to 1, where 0 makes error bars completely transparent, and 1 makes them opaque.
type
Specifies how error bar values must be calculated.
Depending on the type of errors you need to visualize, use error bars of one of the following types.
type | Description |
---|---|
"percent" | Defines the confidential interval in percentages. Error bar values are calculated as a percentage of the series point value. The percentage value is determined by the value property. The high and low error bar values are drawn symmetrically up and down from the series point. |
"stdError" | For information on the standard error, refer to the article in Wikipedia. |
"stdDeviation" | For information on the standard deviation, refer to the article in Wikipedia. |
"variance" | For information on variance, refer to the article in Wikipedia. |
"fixed" | Defines the confidential interval in constant values. Error bar values are determined by the value property. The high and low error bar values are drawn symmetrically up and down from the series point. |
value
Specifies the value to be used for generating error bars.
Depending on the value of the type property, the value property applies as follows.
type: 'percent'
The value property specifies the percentage of the series point value to be taken.type: 'stdError'
The value property multiplies the calculated standard error.type: 'stdDeviation'
The value property multiplies the calculated standard deviation.type: 'variance'
The value property multiplies the calculated variance.type: 'fixed'
The value property specifies constant error bar values.
If you have technical questions, please create a support ticket in the DevExpress Support Center.