From 45599f23c7e41187470911a9291255ac0592cfab Mon Sep 17 00:00:00 2001 From: bologna-massacre-in-lod Date: Mon, 8 Nov 2021 16:02:31 +0100 Subject: [PATCH] update sankey data labels and exporting options --- docs/index.html | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/docs/index.html b/docs/index.html index 1297170..d47796a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -861,13 +861,49 @@

An interesting case: Self-Citations

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' + } + } }] });