//This is the app.js code and there issue in map function line
async function getDummyData(){
const apiUrl = “http://localhost:8080/api/v1/soilchart/cultyvatesoilchart”
const response = await fetch(apiUrl)
const BarChart = await response.json()
const fc = BarChart.soil.map( (x) => x.Fieldcapacity)
const wp = BarChart.soil.map( (x) => x.wiltingpoint)
console.log(BarChart)
}