JavaScript Threshold Line Chart
Example showcasing use of DashedLine
style in a threshold indicator.
In this case, the Y axis (temperature celsius) has a threshold value of 120 celsius. Imagine, that it is a value that should not be exceeded to stay in safe limits.
The application uses a ConstantLine
on the Y Axis to display this threshold value to the user. The line is drawn across the Axis, which makes it easy to spot when a line trend goes over the threshold.
DashedLine
style is used on this ConstantLine
to clearly separate its style from the main data (line trends).