sankeyHorizontal = {
const figure = html`<div style="height: 600px; width:${Math.min(width, maxWidth)+'px'};">`;
Highcharts.chart(figure, {
credits: false,
title: {
text: 'Highcharts Horizontal Sankey Diagram'
},
accessibility: {
point: {
valueDescriptionFormat: '{index}. {point.from} to {point.to}, {point.weight}.'
}
},
series: [{
keys: ['from', 'to', 'weight'],
data:
[
["Khandani Jack Msibi", "3sixty Health (Pty) Ltd", 1950000],
["Khandani Jack Msibi", "Mkhuseli Jack Investment Trust ", 112386.04],
["Mashaba family", "African Equity Corporation Pty Ltd", 500000],
["Mashabe family", "Black Like Me (Pty) Ltd", 301488.26],
["Oppenheimer family", "Jesicca Slack-Jell", 3333333],
["Oppenheimer family", "Ms Mary Slack", 15000000],
["Oppenheimer family", "Nicholas Frank Oppenheimer", 500000],
["Oppenheimer family", "Rebecca Oppenheimer", 3333333],
["Oppenheimer family", "Victoria Freudenheim", 3333334],
["Patrice Motsepe", "African Rainbow Minerals Limited", 9654089],
["Patrice Motsepe", "Botho Botho Commercial Enterprise Pty Ltd", 10000000],
["Patrice Motsepe", "Harmony Gold Mining Company Limited", 9654089],
["Unknown", "Martin Moshal", 22500000],
["Unknown", "Fynbos Ekwiteit (Pty) Ltd", 20099000],
["Unknown", "Batho Batho", 15000000],
["Unknown", "Chancellor House Trust", 15000000],
["Unknown", "United Manganese Of Kalahari", 15000000],
["Unknown", "PtyProps 274 (Pty) Ltd", 4212350.5],
["Unknown", "Friedrich Naumann Foundation", 2993876.84],
["Unknown", "Majestic Silver Trading 40 (Pty) Ltd", 2500000],
["Unknown", "Naspers Ltd", 2000000],
["Unknown", "Nonkwelo Investment Holdings", 2000000],
["Unknown", "Style Eyes of California (PTY) LTD", 1157520]
],
type: 'sankey',
name: 'Sankey demo series'
}]
});
return figure;
}