Formatting DataLabels not working in a Hickhart Sankey chart

Expected Behavior: Ability to format dataLabel in sankey diagram

Actual behavior: dataLabel is not formatted.

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

Live demo with steps to reproduce the problem:

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

Affected Browser (s): All Browsers

+5
source share
1 answer

I had the same problems. Sanki seems really hard to implement. Use nodeFormatter instead, the formatter just doesn't work. An example is below.

 nodeFormatter: function (arg) { if (!this.point.sum) { return null; } else { return this.key; } } 
0
source

Source: https://habr.com/ru/post/1272685/


All Articles