回答編集履歴
4
修正
test
CHANGED
@@ -34,4 +34,10 @@
|
|
34
34
|
|
35
35
|
|
36
36
|
|
37
|
+
chart.update();
|
38
|
+
|
39
|
+
}
|
40
|
+
|
41
|
+
|
42
|
+
|
37
43
|
```
|
3
修正
test
CHANGED
@@ -30,6 +30,8 @@
|
|
30
30
|
|
31
31
|
}
|
32
32
|
|
33
|
-
}
|
33
|
+
}
|
34
|
+
|
35
|
+
|
34
36
|
|
35
37
|
```
|
2
修正
test
CHANGED
@@ -8,24 +8,28 @@
|
|
8
8
|
|
9
9
|
let isDisplay = false;
|
10
10
|
|
11
|
-
function change() {
|
12
11
|
|
13
|
-
isDisplay = !isDisplay;
|
14
12
|
|
15
|
-
|
13
|
+
function change() {
|
16
14
|
|
17
|
-
|
15
|
+
isDisplay = !isDisplay;
|
18
16
|
|
19
|
-
|
17
|
+
}
|
20
18
|
|
21
|
-
chart.options = {
|
22
19
|
|
23
|
-
legend: {
|
24
20
|
|
25
|
-
|
21
|
+
function update(chart) {
|
26
22
|
|
27
|
-
|
23
|
+
change();
|
28
24
|
|
25
|
+
chart.options = {
|
26
|
+
|
27
|
+
legend: {
|
28
|
+
|
29
|
+
display: isDisplay
|
30
|
+
|
29
|
-
|
31
|
+
}
|
32
|
+
|
33
|
+
}
|
30
34
|
|
31
35
|
```
|
1
修正
test
CHANGED
@@ -6,24 +6,26 @@
|
|
6
6
|
|
7
7
|
```javascript
|
8
8
|
|
9
|
-
|
9
|
+
let isDisplay = false;
|
10
10
|
|
11
|
+
function change() {
|
11
12
|
|
13
|
+
isDisplay = !isDisplay;
|
14
|
+
|
15
|
+
}
|
12
16
|
|
13
17
|
function update(chart) {
|
18
|
+
|
19
|
+
change();
|
14
20
|
|
15
21
|
chart.options = {
|
16
22
|
|
17
23
|
legend: {
|
18
24
|
|
19
|
-
display:
|
25
|
+
display: isDisplay
|
20
26
|
|
21
27
|
}
|
22
28
|
|
23
29
|
}
|
24
30
|
|
25
|
-
chart.update();
|
26
|
-
|
27
|
-
}
|
28
|
-
|
29
31
|
```
|