i'm trying to create a sankey-diagram using highcharts library. Tooltip works fine on sankey lines, appart from the nodes, when i hover to the node it throws an error:
Failed to retrieve the 'series' property of a null or undefined reference
The code i use for the sankey is very simple i dont understand why it doesn't work. Here is the code:
var sankeyOptions = {
chart: {
renderTo: "container"
},
title: {
text: title
},
series: [{
keys: ['from', 'to', 'weight'],
data: [
['Oil', 'Transportation', 94],
['Natural Gas', 'Transportation', 3],
['Coal', 'Transportation', 0],
['Renewable', 'Transportation', 0],
['Nuclear', 'Transportation', 3],
['Oil', 'Industrial', 41],
['Natural Gas', 'Industrial', 40],
['Coal', 'Industrial', 7],
['Renewable', 'Industrial', 11],
['Nuclear', 'Industrial', 0],
['Oil', 'R&C', 17],
['Natural Gas', 'R&C', 76],
['Coal', 'R&C', 1],
['Renewable', 'R&C', 7],
['Nuclear', 'R&C', 0],
['Oil', 'Electric Power', 1],
['Natural Gas', 'Electric Power', 18],
['Coal', 'Electric Power', 48],
['Renewable', 'Electric Power', 11],
['Nuclear', 'Electric Power', 22]
],
type: 'sankey',
name: 'Energy in the United States'
}]
};
var chartObject = new Highcharts.Chart(sankeyOptions);
Thanks for your help.