baseddata.io/layouts/shortcodes/chart.html
Sam 84bc4fe599 Add mangrove country timeseries functionality
- Add `mangrove_country_timeseries` function in `pipelines.py` to fetch timeseries data.
- Implement `mangrove_country_timeseries` endpoint in `route.py` to handle requests.
- Define `mangrove_country_timeseries_schema` in `schemas.py` for data serialization
2024-11-15 14:35:42 +00:00

10 lines
484 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" }}, xAxisType={{ .Get "xAxisType" }})
});
</script>
</div>
</section>