admin / template /chartjs /chartjs.tmpl
AZLABS's picture
Upload folder using huggingface_hub
530729e verified
raw
history blame contribute delete
354 Bytes
{{define "chartjs"}}
{{if ne .Title ""}}
<p class="text-center">
<strong>{{langHtml .Title}}</strong>
</p>
{{end}}
<div class="chart">
<canvas id="{{.ID}}" style="height: {{.Height}}px;"></canvas>
</div>
<script>
new Chart(document.getElementById('{{.ID}}'), {{.Js}});
</script>
{{end}}