i using high stock line chart , sure having horizontal series data, requirement show name each series beside chart.
i thought high charts won't provide options want manually need positions series in chart.
if understand correctly, use datalabels functionality achieve this.
datalabels: { enabled: false, crop:false, overflow:'none', align: 'left', y:10, usehtml: true, formatter: function() { return '<span style="color:' +this.series.color+'">' +this.series.name+'</span>'; } } i set enabled: false in plot options, , last point of series, set enabled true:
data:[29.9, 71.5, 106.4, 129.2, 144.0,{y:176.0,datalabels:{enabled:true}}] example:
Comments
Post a Comment