5

Expected Behaviour: Ability to format the dataLabel in the sankey diagram

Actual Behaviour: dataLabel is not getting formatted.

dataLabels: {
    enabled: true,
    formatter: function(){
        return "Abc";
    }
  }

Live demo with steps to reproduce the issue:

http://jsfiddle.net/jy0761aw/2/

Affected browser(s): All browsers

Junaid P Khader
  • 203
  • 1
  • 8

1 Answers1

1

I was having the same issues. Sankey is really hard to implement I guess. Use nodeFormatter instead, formatter is just not working. Example below.

nodeFormatter: function (arg) {
    if (!this.point.sum) {
        return null;
    } else {
        return this.key;
    }
}
Vitaliy Terziev
  • 6,429
  • 3
  • 17
  • 25