Change graph colours for temperature
This commit is contained in:
@@ -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,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user