When creating a line chart, a certain line might require a different style.
For example - A line that shows a threshold should be styled as a dotted line
The following widget & widget script can be used to customize your line chart:
widget.on('processresult', function(widget, result) {<br/> let series = result.result.series;<br/> series[1].dashStyle = 'Dot'<br/>})
Result:
| Before |
After |
|
|
Available line styles:
- Solid
- ShortDash
- ShortDot
- ShortDashDot
- ShortDashDotDot
- Dot
- Dash
- LongDash
- DashDot
- LongDashDot
- LongDashDotDot'
Created from Line Chart - Customizing a line to various "Dotted" styles by Ophir_Buchman
FollowTheData
·1 year agoThanks for sharing these resources.