javascript - How can I show the value above only a particular bar in highcharts? -
how can show value above particular bar (which clicked) in highcharts?
series: [{ datalabels: { enabled: true, } }]
the above code shows value on bars. need show count in particular bar.
here's example of using points update
method achieve effect:
$('#container').highcharts({ series: [{ data: [ // ... ], datalabels: { enabled: false }, point: { events: { click: function () { this.update({ datalabels: { enabled: true } }); } } } }] });
see this jsfiddle basic demonstration. here's a jsfiddle label on last clicked point.
Comments
Post a Comment