回答編集履歴
1
バグを修正
test
CHANGED
@@ -96,11 +96,11 @@
|
|
96
96
|
|
97
97
|
});
|
98
98
|
|
99
|
-
|
99
|
+
var addChart = function(target, values){
|
100
100
|
|
101
101
|
const canvas = canvasTmpl.cloneNode(false);
|
102
102
|
|
103
|
-
|
103
|
+
target.appendChild(canvas);
|
104
104
|
|
105
105
|
const chartSettings = JSON.parse(chartSettingsString);
|
106
106
|
|
@@ -110,12 +110,24 @@
|
|
110
110
|
|
111
111
|
}
|
112
112
|
|
113
|
-
|
113
|
+
}
|
114
114
|
|
115
|
-
addChart(document.body, [1, 3, 4, 5, 1, 2]);
|
116
|
-
|
117
|
-
|
115
|
+
```
|
118
116
|
|
119
117
|
|
120
118
|
|
119
|
+
としておいて,
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
```HTML
|
124
|
+
|
125
|
+
<div>
|
126
|
+
|
127
|
+
<script>addChart(document.currentScript.parentNode, [3, 3, 3, 3, 3, 2])</script>
|
128
|
+
|
129
|
+
</div>
|
130
|
+
|
121
131
|
```
|
132
|
+
|
133
|
+
とかね
|