Muhammad Aziz Abbas
Muhammad Aziz Abbas

Reputation: 21

Plot Circles on Line Chart

I want to plot marker of circle shape on a line chart to represent some values from x-axis. Screenshot is attached with details. Thanks!

check this image for what I am looking for

enter image description here

Upvotes: 0

Views: 341

Answers (1)

ppotaczek
ppotaczek

Reputation: 39069

You can use dataLabels and marker properties:

series: [{
    data: [1, 2, 3, 4, 5, 6, 7],
    dataLabels: {
        enabled: true,
        y: 10
    },
    marker: {
        radius: 10,
        fillColor: '#FFF',
        lineColor: '#7cb5ec',
        lineWidth: 2
    }
}]

Live demo: http://jsfiddle.net/BlackLabel/n7uhwzk8/

API Reference:

https://api.highcharts.com/highcharts/series.line.dataLabels.enabled

https://api.highcharts.com/highcharts/series.line.marker

Upvotes: 2

Related Questions