Skip to content

Commit

Permalink
update sankey data labels and exporting options
Browse files Browse the repository at this point in the history
  • Loading branch information
saroppini committed Nov 8, 2021
1 parent 30f1858 commit 45599f2
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -861,13 +861,49 @@ <h2>An interesting case: Self-Citations</h2>
title: {
text: 'Sankey Diagram for Self-Citation'
},
accessibility: {
point: {
valueDescriptionFormat: '{index}. {point.from} to {point.to}, {point.weight}.'
}
},

exporting: {
sourceWidth: 800,
sourceHeight: 700,
scale: 3,
chartOptions: {
subtitle: null,
title: null,
series: [{
dataLabels: {
padding: 2,
style: {
fontSize: "12px",
fontWeight: "bold",
textOutline: '#ffffff',
color: '#000',
fontFamily: 'Arial'
}
}
}]
}
},
series: [{
keys: ['from', 'to', 'weight', 'id'],
data: json['links'],
nodes: json['decode'],
type: 'sankey',
name: 'Publishers series'
name: 'Publishers series',
dataLabels: {
padding: 2,
style: {
fontSize: "11px",
fontWeight: "bold",
textOutline: '#ffffff',
color: '#000',
fontFamily: 'Arial'
}
}
}]

});
Expand Down

0 comments on commit 45599f2

Please sign in to comment.