diff --git a/src/views/hazardCharts/HazardCharts.tsx b/src/views/hazardCharts/HazardCharts.tsx index 5e9c0c83..accbc2f1 100644 --- a/src/views/hazardCharts/HazardCharts.tsx +++ b/src/views/hazardCharts/HazardCharts.tsx @@ -77,7 +77,7 @@ const HazardCharts: React.FC = ({ data, state, dispatch }: Ha = ({ data, state, dispatch }: Ha scaleType={state.spectraXScale} yScaleType={'linear'} xLabel="Period (s)" - yLabel="Shaking Intensity (g)" + yLabel="Acceleration (g)" xLimits={state.spectraXScale === 'linear' ? [SA_PERIODMIN, SA_PERIODMAX] : [SA_PERIODMIN_LOG, SA_PERIODMAX_LOG]} yLimits={spectralYLimits} tooltip={true} diff --git a/src/views/hazardMaps/hazardMaps.service.ts b/src/views/hazardMaps/hazardMaps.service.ts index f8948cff..23419fbe 100644 --- a/src/views/hazardMaps/hazardMaps.service.ts +++ b/src/views/hazardMaps/hazardMaps.service.ts @@ -9,6 +9,10 @@ export const getHazardMapCSVData = (data: string[], vs30: number, imt: string, p ['lon', 'lat', 'shaking intensity(g)'], ]; + if (statistic === 'cov') { + csvData[1][2] = 'coefficient of variation'; + } + data.forEach((geojsonString) => { const geojsonObject = JSON.parse(geojsonString); // eslint-disable-next-line @typescript-eslint/no-explicit-any