Chart.jsの公式チュートリアルに従いCanvas IDを修正
This commit is contained in:
parent
48dee87fea
commit
c3a8fcad0b
|
@ -1,4 +1,4 @@
|
||||||
<canvas id="{{ if .Get "canvas" }}{{ .Get "canvas" }}{{ else }}mychart{{ end }}" width="{{ if .Get "width" }}{{ .Get "width" }}{{ else }}400{{ end }}" height="{{ if .Get "height" }}{{ .Get "height" }}{{ else }}400{{ end }}"></canvas>
|
<canvas id="{{ if .Get "canvas" }}{{ .Get "canvas" }}{{ else }}myChart{{ end }}" width="{{ if .Get "width" }}{{ .Get "width" }}{{ else }}400{{ end }}" height="{{ if .Get "height" }}{{ .Get "height" }}{{ else }}400{{ end }}"></canvas>
|
||||||
<script>
|
<script>
|
||||||
{{ safeJS .Inner }}
|
{{ safeJS .Inner }}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue