Skip to content

Commit

Permalink
fix call api to get area graph valuees
Browse files Browse the repository at this point in the history
  • Loading branch information
juggler31 committed Jan 31, 2025
1 parent b1f7743 commit af77a20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion atlas/static/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ if (dataSourceChartElement) {
const organismChart = pieChartConfig(dataSourceChartElement, formatPieData(data_source_values, dataSourceChartElement));
}

fetch(`/api${window.location.pathname}`)
const areaCode = document.getElementById("taxonListItem").getAttribute("area-code")

fetch(`/api/area_chart_values/${areaCode}`)
.then(response => response.json())
.then(data => {
biodiversity_values_chart = data.biodiversity_values_chart
Expand Down

0 comments on commit af77a20

Please sign in to comment.