I would like to have multiple series in my sankey diagram so that the legend adjusts along.
For now, I have to have to trick with an empty data
series:
series: [{
name: 'New allocations',
keys: ['from', 'to', 'weight', 'color'],
data: sortedData,
centerInCategory: true,
showInLegend: true,
color: 'pink',
colorByPoint: false,
nodes,
}, {
name: 'Current allocations',
keys: ['from', 'to', 'weight', 'color'],
data: [], // Only added so that it is displayed in the legend :(
centerInCategory: true,
showInLegend: true,
color: 'blue',
colorByPoint: false,
nodes,
}]
But it doesn't feel correct for color handling, nor tooltip content.
Thanks