score:1

define the marker in the series...

i found this in the api:highchart symbol api

which links to this fiddle: high char jsfiddle

changed the code to work with colour:

$(function () {
var chart = new highcharts.chart({
    chart: {
        renderto: 'container'
    },
    xaxis: {
        categories: ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec']
    },

    series: [{
        data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 316.4, 294.1, 195.6, 154.4],
        marker: {
                fillcolor: '#f11',
                linewidth: 2,
                linecolor: '999'
        }
    }, {
        data: [216.4, 194.1, 95.6, 54.4, 29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5],
        marker: {
                fillcolor: '#999',
                linewidth: 2,
                linecolor: '#111' 
        }
    }]
});
});

score:1

you can specify the line color and the marker color for each series explicitly.

series color sets the color to the series.

markers color sets the color to every point in the series.

demo .


Related Query

More Query from same tag