diff --git a/src/components/WeatherModal/WeatherGraphs.tsx b/src/components/WeatherModal/WeatherGraphs.tsx index 29a6721..3093daa 100644 --- a/src/components/WeatherModal/WeatherGraphs.tsx +++ b/src/components/WeatherModal/WeatherGraphs.tsx @@ -1,6 +1,7 @@ import { Stack, Text } from '@mantine/core'; import { Area, + AreaChart, CartesianGrid, ComposedChart, Legend, @@ -61,18 +62,12 @@ export default function WeatherGraphs({ { + return [dataMin - 5, dataMax + 5]; + }} /> } /> - + - + + + + + + + + + + + } /> - { - return data.probabilityOfPrecipitation.value; - }} - stroke={'var(--mantine-color-primary-0)'} - fill={'var(--mantine-color-primary-0)'} - dot={{ stroke: 'var(--mantine-color-primary-0)', strokeWidth: 1 }} - /> + { + return data.probabilityOfPrecipitation.value; + }} + stroke={'var(--mantine-color-primary-0)'} + strokeWidth={2} + fill={'url(#colorPrecipitation)'} + dot={{ + stroke: 'var(--mantine-color-primary-0)', + strokeWidth: 0, + fill: 'var(--mantine-color-primary-0)', + }} /> - + );