Spaces:
Running
Running
Update index.html
Browse files- index.html +1 -8
index.html
CHANGED
@@ -52,13 +52,6 @@
|
|
52 |
|
53 |
// Define colors for the functions matching those in the JSON
|
54 |
var functionColors = {
|
55 |
-
// "Data curation and hosting": "#5470c6",
|
56 |
-
// "Access to computational resources": "#fc8452",
|
57 |
-
// "Education and capacity building": "#fac858",
|
58 |
-
// "Field Data Collection": "#ee6666",
|
59 |
-
// "Global Research Collaboration": "#73c0de",
|
60 |
-
// "Inclusive community building and engagement": "#3ba272",
|
61 |
-
// "Tech transfer and open-source tools development": "#9a60b4"
|
62 |
"Data curation and hosting": "#7f3c8d",
|
63 |
"Access to computational resources": "#11a579",
|
64 |
"Education and capacity building": "#3969ac",
|
@@ -71,7 +64,7 @@
|
|
71 |
functionNodes.forEach((node, index) => {
|
72 |
node.x = Math.cos(2 * Math.PI * index / functionNodes.length) * 400;
|
73 |
node.y = Math.sin(2 * Math.PI * index / functionNodes.length) * 400;
|
74 |
-
node.symbolSize =
|
75 |
node.itemStyle = { color: functionColors[node.name] };
|
76 |
var verticalPadding = node.y / 2 ;
|
77 |
var paddingRight = node.y >= 0 ? node.symbolSize : 0-node.symbolSize;
|
|
|
52 |
|
53 |
// Define colors for the functions matching those in the JSON
|
54 |
var functionColors = {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
"Data curation and hosting": "#7f3c8d",
|
56 |
"Access to computational resources": "#11a579",
|
57 |
"Education and capacity building": "#3969ac",
|
|
|
64 |
functionNodes.forEach((node, index) => {
|
65 |
node.x = Math.cos(2 * Math.PI * index / functionNodes.length) * 400;
|
66 |
node.y = Math.sin(2 * Math.PI * index / functionNodes.length) * 400;
|
67 |
+
node.symbolSize = 126;
|
68 |
node.itemStyle = { color: functionColors[node.name] };
|
69 |
var verticalPadding = node.y / 2 ;
|
70 |
var paddingRight = node.y >= 0 ? node.symbolSize : 0-node.symbolSize;
|