diff --git a/components/project.js b/components/project.js index 4c712b4..dae328e 100644 --- a/components/project.js +++ b/components/project.js @@ -62,26 +62,26 @@ const Project = ({ [20, 20], [380, height - 20], ], - data.features[0].geometry + data.features[0].geometry, ) setStartDate(data.features[0].properties.start_date) setStartYear(parseInt(data.features[0].properties.start_date.slice(0, 4))) setProjectPath( - geoPath().projection(projection)(data.features[0].geometry) + geoPath().projection(projection)(data.features[0].geometry), ) if (showStates) setStatesPath(geoPath().projection(projection)(states)) const fireUrl = prefix + `${id}/fires-topo-quantized.json` json(fireUrl).then((fireTopology) => { const fireData = feature( fireTopology, - fireTopology.objects[`fires_${version}`] + fireTopology.objects[`fires_${version}`], ) const firePathsTmp = {} Array(38) .fill(0) .map((d, i) => { firePathsTmp[i] = geoPath().projection(projection)( - fireData.features[i].geometry + fireData.features[i].geometry, ) }) setFirePaths(firePathsTmp) @@ -229,7 +229,7 @@ const Project = ({ ((100 * metadata?.burned_acreage) / metadata?.acreage < 1 ? '<1%' : format('.0%')( - metadata?.burned_acreage / metadata?.acreage + metadata?.burned_acreage / metadata?.acreage, ))} diff --git a/pages/embed/offset-fires/future-risk.js b/pages/embed/offset-fires/future-risk.js index f2250ba..0ddcf13 100644 --- a/pages/embed/offset-fires/future-risk.js +++ b/pages/embed/offset-fires/future-risk.js @@ -89,7 +89,7 @@ const Index = () => { (err, res) => { setData(res) }, - ['ssp245', 'ssp370', 'ssp585', 'lat', 'lon'] + ['ssp245', 'ssp370', 'ssp585', 'lat', 'lon'], ) }, []) @@ -118,7 +118,7 @@ const Index = () => { out[s][k].push(val) if (s === scenarios[0] && k === 0) { coords.push( - projection([data['lon'].get(i, j), data['lat'].get(i, j)]) + projection([data['lon'].get(i, j), data['lat'].get(i, j)]), ) } }