markers
Configuration Structure
markers: {}size
0Size of the marker point.
In a multi-series chart, you can provide an array of numbers to display different size of markers on different series
markers: {
size: [4, 7]
}

colors
undefinedSets the fill color(s) of the marker point.
strokeColors
'#fff'Stroke Color of the marker. Accepts a single color or an array of colors in a multi-series chart.
strokeWidth
2Stroke Size of the marker.
strokeOpacity
0.9Opacity of the border around marker.
strokeDashArray
0Dashes in the border around marker. Higher number creates more space between dashes in the border.
fillOpacity
1Opacity of the marker fill color.
discrete
[]Allows you to target individual data-points and style particular marker differently
markers: {
discrete: [{
seriesIndex: 0,
dataPointIndex: 7,
fillColor: '#e3e3e3',
strokeColor: '#fff',
size: 5,
shape: "circle"
}, {
seriesIndex: 2,
dataPointIndex: 11,
fillColor: '#f7f4f3',
strokeColor: '#eee',
size: 4,
shape: "circle"
}]
}
shape
'circle'Shape of the marker.
Available Options for shape
- circle
- square
- line
- plus
- cross
- star
- sparkle
- diamond
- triangle
offsetX
0Sets the left offset of the marker
offsetY
0Sets the top offset of the marker
onClick
undefinedWhen a marker is clicked, markers.onClick is called.
markers: {
onClick: function(e) {
// do something on marker click
}
}
Note: This event will not work for a shared and non-intersecting tooltip. You will have to modify your tooltip to the following code to catch the events.
tooltip: {
shared: false,
intersect: true
}
onDblClick
undefinedWhen a marker is double clicked, markers.onDblClick is called.
markers: {
onDblClick: function(e) {
// do something on marker double click
}
}
Note: This event will not work for a shared and non-intersecting tooltip. You will have to modify your tooltip to the following code to catch the events.
tooltip: {
shared: false,
intersect: true
}
showNullDataPoints
trueWhether to show markers for null values in a line/area chart. If disabled, any null values present in line/area charts will not be visible.
hover
size
0Fixed size of the marker when it is active
sizeOffset
3Unlike the fixed size, this option takes the original markers.size and increases/decreases the value based on it.
So, if markers.size: 6, markers.hover.sizeOffset: 3 will make the marker's size 9 when hovered.