File size: 419 Bytes
530729e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package chartjs

var List = map[string]string{
	"chartjs": `{{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}}`,
}