11 lines
450 B
HTML
11 lines
450 B
HTML
{{ partial "chart.html" }}
|
|
<section class = 'chart-container'>
|
|
<div class = "chart" id='{{ .Get "id" }}'>
|
|
<script>
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
createChart(id={{ .Get "id" }}, endpoint={{ .Get "endpoint" }}, chartType={{ .Get "chartType" }}, xAxisField={{ .Get "xAxisField" }}, yAxisField={{ .Get "yAxisField" }}, sortField={{ .Get "sortField" }}, scaleChart={{ .Get "scaleChart" }})
|
|
});
|
|
</script>
|
|
</div>
|
|
</section>
|