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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -