JavaScript
$(function () {
var chart = new Highcharts.Chart({
chart: {
events: {
load: function(){
$( ".highcharts-legend-item path" ).each(function( index ) {
$(this)
.attr('d','M10.1,15.3L10.1,15.3c-3,0-5.5-2.5-5.5-5.5v0c0-3,2.5-5.5,5.5-5.5h0c3,0,5.5,2.5,5.5,5.5v0 C15.6,12.8,13.2,15.3,10.1,15.3z')
.attr('fill', $( this ).attr('stroke'))
.attr('stroke-dasharray','0,0');
});
},
redraw: function(){
$( ".highcharts-legend-item path" ).each(function( index ) {
$(this)
.attr('d','M10.1,15.3L10.1,15.3c-3,0-5.5-2.5-5.5-5.5v0c0-3,2.5-5.5,5.5-5.5h0c3,0,5.5,2.5,5.5,5.5v0 C15.6,12.8,13.2,15.3,10.1,15.3z')
.attr('fill', $( this ).attr('stroke'))
.attr('stroke-dasharray','0,0');
});
}
},
renderTo: 'container',
type: 'line',
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
plotOptions: {
series: {
marker: {
enabled: true
}
}
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle',
borderWidth: 0
},
series: [{
data: [135.6, 148.5, 216.4, 194.1, 95.6, 54.4, 29.9, 71.5, 106.4, 129.2, 144.0, 176.0]
},{
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
},{
data: [144.0, 176.0, 135.6, 148.5, 29.9, 71.5, 106.4, 129.2, 216.4, 194.1, 95.6, 54.4]
}]
});
});