1
0

Change graph colours for temperature

This commit is contained in:
2024-08-14 18:17:04 +10:00
parent 77b69e9fc8
commit a38e757e82
2 changed files with 6 additions and 4 deletions
@@ -88,6 +88,7 @@ const createChartOptions = ({
const chartColors = {
blue: "rgba(63, 127, 191, 0.5)",
gray: "rgba(127, 127, 127, 0.5)",
orange: "rgba(226, 99, 71)",
};
const mapChartData = ({
@@ -121,8 +122,8 @@ const mapChartData = ({
: convertTemp(temperature, tempUnit);
}),
yAxisID: "y-axis-1",
borderColor: chartColors.gray,
backgroundColor: chartColors.gray,
borderColor: chartColors.orange,
backgroundColor: chartColors.orange,
fill: false,
},
{
@@ -88,6 +88,7 @@ const chartOptions = ({
const chartColors = {
blue: "rgba(63, 127, 191, 0.5)",
gray: "rgba(127, 127, 127, 0.5)",
orange: "rgba(226, 99, 71)",
};
const mapChartData = ({
@@ -126,8 +127,8 @@ const mapChartData = ({
: convertTemp(temperature, tempUnit);
}),
yAxisID: "y-axis-1",
borderColor: chartColors.gray,
backgroundColor: chartColors.gray,
borderColor: chartColors.orange,
backgroundColor: chartColors.orange,
fill: false,
},
{