Marker in JavaScript Sparkline control
18 Nov 20181 minute to read
This section explains how to add markers to the sparklines.
Adding marker to the sparkline
To add marker to the sparkline, specify the visible of markerSettings as following values. The visible will accept multiple values too.
- All - Enables markers for all points.
- Start - Enables marker for the start point.
- End - Enables marker for the end point.
- High - Enables marker for the high point.
- Low - Enables marker for the low point.
- Negative - Enables markers for the negative points.
The following code example shows enabling markers for all points.
Adding marker to special point
In sparkline, markers can be enabled for particular points such as the start, end, low, high, or negative. The following code examples shows enabling markers for the high and low points.
Customizing markers
Sparkline markers can be customized in terms of fill color, border color, width, opacity, and size. The following code example shows customizing marker’s fill, border, and size.