Solid to dashed-line on chart

Is it possible to change a line chart format from solid line to dashed line and back to solid dynamically? I have a data feed that has a validity state - rather then just sending null value to the chart if it is false, I want to retain the last valid value and draw that with a dashed line so we visually show the data is not valid.

Dashed line is possible but will be much more complicated than for example color change.
Here is example of change color by value over threshold but it is up to you what will be the trigger of the change.

or you can send null values to leave blanks in the chart where there are no readings.

1 Like

Fact is that line is always and constantly with same style. So for dashed line in between, you will need to tweak it basically with same way as done in color change example. Difference is that for dashed line you'll need to change chart options via msg.ui_control