Change graph colours for temperature
This commit is contained in:
@@ -88,6 +88,7 @@ const createChartOptions = ({
|
|||||||
const chartColors = {
|
const chartColors = {
|
||||||
blue: "rgba(63, 127, 191, 0.5)",
|
blue: "rgba(63, 127, 191, 0.5)",
|
||||||
gray: "rgba(127, 127, 127, 0.5)",
|
gray: "rgba(127, 127, 127, 0.5)",
|
||||||
|
orange: "rgba(226, 99, 71)",
|
||||||
};
|
};
|
||||||
|
|
||||||
const mapChartData = ({
|
const mapChartData = ({
|
||||||
@@ -121,8 +122,8 @@ const mapChartData = ({
|
|||||||
: convertTemp(temperature, tempUnit);
|
: convertTemp(temperature, tempUnit);
|
||||||
}),
|
}),
|
||||||
yAxisID: "y-axis-1",
|
yAxisID: "y-axis-1",
|
||||||
borderColor: chartColors.gray,
|
borderColor: chartColors.orange,
|
||||||
backgroundColor: chartColors.gray,
|
backgroundColor: chartColors.orange,
|
||||||
fill: false,
|
fill: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -88,6 +88,7 @@ const chartOptions = ({
|
|||||||
const chartColors = {
|
const chartColors = {
|
||||||
blue: "rgba(63, 127, 191, 0.5)",
|
blue: "rgba(63, 127, 191, 0.5)",
|
||||||
gray: "rgba(127, 127, 127, 0.5)",
|
gray: "rgba(127, 127, 127, 0.5)",
|
||||||
|
orange: "rgba(226, 99, 71)",
|
||||||
};
|
};
|
||||||
|
|
||||||
const mapChartData = ({
|
const mapChartData = ({
|
||||||
@@ -126,8 +127,8 @@ const mapChartData = ({
|
|||||||
: convertTemp(temperature, tempUnit);
|
: convertTemp(temperature, tempUnit);
|
||||||
}),
|
}),
|
||||||
yAxisID: "y-axis-1",
|
yAxisID: "y-axis-1",
|
||||||
borderColor: chartColors.gray,
|
borderColor: chartColors.orange,
|
||||||
backgroundColor: chartColors.gray,
|
backgroundColor: chartColors.orange,
|
||||||
fill: false,
|
fill: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user