apexsankey 1.1.3 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,11 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Document</title>
7
7
  <link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap" rel="stylesheet" />
8
+ <script src="https://cdn.jsdelivr.net/npm/@svgdotjs/svg.js"></script>
8
9
  <script src="../apexsankey.min.js"></script>
9
10
  </head>
10
11
  <body>
@@ -73,7 +74,7 @@
73
74
  const graphOptions = {
74
75
  nodeWidth: 20,
75
76
  fontFamily: 'Quicksand, sans-serif',
76
- fontWeight: 600,
77
+ fontWeight: '600',
77
78
  height: 600,
78
79
  enableToolbar: true,
79
80
  };
@@ -1,94 +1,95 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Document</title>
7
7
  <link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap" rel="stylesheet" />
8
+ <script src="https://cdn.jsdelivr.net/npm/@svgdotjs/svg.js"></script>
8
9
  <script src="../apexsankey.min.js"></script>
9
10
  </head>
10
11
  <body>
11
- <div id="svg-sankey" style="margin: 0 auto;"></div>
12
+ <div id="svg-sankey" style="margin: 0 auto"></div>
12
13
  <script>
13
14
  const data = {
14
- "nodes": [
15
+ nodes: [
15
16
  {
16
- "id": "John",
17
- "title": "John"
17
+ id: 'John',
18
+ title: 'John',
18
19
  },
19
20
  {
20
- "id": "Raoul",
21
- "title": "Raoul"
21
+ id: 'Raoul',
22
+ title: 'Raoul',
22
23
  },
23
24
  {
24
- "id": "Jane",
25
- "title": "Jane"
25
+ id: 'Jane',
26
+ title: 'Jane',
26
27
  },
27
28
  {
28
- "id": "Marcel",
29
- "title": "Marcel"
29
+ id: 'Marcel',
30
+ title: 'Marcel',
30
31
  },
31
32
  {
32
- "id": "Ibrahim",
33
- "title": "Ibrahim"
33
+ id: 'Ibrahim',
34
+ title: 'Ibrahim',
34
35
  },
35
36
  {
36
- "id": "Junko",
37
- "title": "Junko"
38
- }
37
+ id: 'Junko',
38
+ title: 'Junko',
39
+ },
39
40
  ],
40
- "edges": [
41
+ edges: [
41
42
  {
42
- "source": "Marcel",
43
- "target": "Ibrahim",
44
- "value": 72
43
+ source: 'Marcel',
44
+ target: 'Ibrahim',
45
+ value: 72,
45
46
  },
46
47
  {
47
- "source": "Marcel",
48
- "target": "Raoul",
49
- "value": 155
48
+ source: 'Marcel',
49
+ target: 'Raoul',
50
+ value: 155,
50
51
  },
51
52
  {
52
- "source": "Raoul",
53
- "target": "John",
54
- "value": 109
53
+ source: 'Raoul',
54
+ target: 'John',
55
+ value: 109,
55
56
  },
56
57
  {
57
- "source": "Raoul",
58
- "target": "Ibrahim",
59
- "value": 100
58
+ source: 'Raoul',
59
+ target: 'Ibrahim',
60
+ value: 100,
60
61
  },
61
62
  {
62
- "source": "Ibrahim",
63
- "target": "Jane",
64
- "value": 100
63
+ source: 'Ibrahim',
64
+ target: 'Jane',
65
+ value: 100,
65
66
  },
66
67
  {
67
- "source": "Ibrahim",
68
- "target": "Junko",
69
- "value": 127
68
+ source: 'Ibrahim',
69
+ target: 'Junko',
70
+ value: 127,
70
71
  },
71
72
  {
72
- "source": "Ibrahim",
73
- "target": "John",
74
- "value": 67
73
+ source: 'Ibrahim',
74
+ target: 'John',
75
+ value: 67,
75
76
  },
76
77
  {
77
- "source": "Junko",
78
- "target": "Jane",
79
- "value": 140
78
+ source: 'Junko',
79
+ target: 'Jane',
80
+ value: 140,
80
81
  },
81
82
  {
82
- "source": "Junko",
83
- "target": "John",
84
- "value": 93
85
- }
86
- ]
83
+ source: 'Junko',
84
+ target: 'John',
85
+ value: 93,
86
+ },
87
+ ],
87
88
  };
88
89
  const graphOptions = {
89
90
  width: '90%',
90
91
  fontFamily: 'Quicksand, sans-serif',
91
- fontWeight: 600,
92
+ fontWeight: '600',
92
93
  nodeWidth: 5,
93
94
  nodeBorderWidth: 2,
94
95
  nodeBorderColor: '#111',
@@ -1,10 +1,11 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Document</title>
7
7
  <link href="https://fonts.googleapis.com/css2?family=Satisfy&display=swap" rel="stylesheet" />
8
+ <script src="https://cdn.jsdelivr.net/npm/@svgdotjs/svg.js"></script>
8
9
  <script src="../apexsankey.min.js"></script>
9
10
  </head>
10
11
 
@@ -160,7 +161,7 @@
160
161
  nodeWidth: 10,
161
162
  fontSize: '20px',
162
163
  fontFamily: 'Satisfy, "cursive"',
163
- fontWeight: 600,
164
+ fontWeight: '600',
164
165
  fontColor: '#E37816',
165
166
  };
166
167
  const s = new ApexSankey(document.getElementById('svg-sankey'), graphOptions);
@@ -1,10 +1,11 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Document</title>
7
7
  <link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap" rel="stylesheet" />
8
+ <script src="https://cdn.jsdelivr.net/npm/@svgdotjs/svg.js"></script>
8
9
  <script src="../apexsankey.min.js"></script>
9
10
  </head>
10
11
  <body>
@@ -94,7 +95,7 @@
94
95
  const graphOptions = {
95
96
  nodeWidth: 20,
96
97
  fontFamily: 'Quicksand, sans-serif',
97
- fontWeight: 600,
98
+ fontWeight: '600',
98
99
  edgeOpacity: 0.2,
99
100
  };
100
101
  const s = new ApexSankey(document.getElementById('svg-sankey'), graphOptions);
@@ -1,10 +1,11 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Document</title>
7
7
  <link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap" rel="stylesheet" />
8
+ <script src="https://cdn.jsdelivr.net/npm/@svgdotjs/svg.js"></script>
8
9
  <script src="../apexsankey.min.js"></script>
9
10
  </head>
10
11
  <body>
@@ -97,7 +98,7 @@
97
98
  const graphOptions = {
98
99
  width: '90%',
99
100
  fontFamily: 'Quicksand, sans-serif',
100
- fontWeight: 600,
101
+ fontWeight: '600',
101
102
  nodeWidth: 5,
102
103
  nodeBorderWidth: 2,
103
104
  nodeBorderColor: '#111',