amCharts LabelFunction not working

Viewed 4470

https://jsfiddle.net/f3zy3bjc/

I'm trying to add a custom label to the end of each bar in a chart, like so:

  "graphs": [{
    "balloonText": "<b>[[category]]: [[value]]</b>",
    "fillColorsField": "color",
    "fillAlphas": 0.9,
    "lineAlpha": 0.2,
    "type": "column",
    "valueField": "visits",
    "labelFunction": function(data) {return 'new label';}
  }],

The labelFunction property isn't working and I'm not sure why.

1 Answers
Related