Browse Source

Updated covid cases colors

pull/116/head
Jure Šorn 2 years ago
parent
commit
ec1b5428e8
2 changed files with 6 additions and 6 deletions
  1. 8
      web/covid_cases.js
  2. 4
      web/update_plots.py

8
web/covid_cases.js

@ -8,7 +8,7 @@ if (document.getElementById("e23ccacc-a456-478b-b467-7282a2165921")) {
"data": [
{
"line": {
"color": "red"
"color": "#EF553B"
},
"name": "Total Cases",
"x": [
@ -1354,7 +1354,7 @@ if (document.getElementById("e23ccacc-a456-478b-b467-7282a2165921")) {
},
{
"line": {
"color": "blue"
"color": "#636efa"
},
"name": "Bitcoin",
"x": [
@ -2700,7 +2700,7 @@ if (document.getElementById("e23ccacc-a456-478b-b467-7282a2165921")) {
},
{
"line": {
"color": "green"
"color": "#00cc96"
},
"name": "Dow Jones",
"x": [
@ -4046,7 +4046,7 @@ if (document.getElementById("e23ccacc-a456-478b-b467-7282a2165921")) {
},
{
"line": {
"color": "goldenrod"
"color": "#FFA15A"
},
"name": "Gold",
"x": [

4
web/update_plots.py

@ -74,8 +74,8 @@ def update_confirmed_cases():
figure = go.Figure()
for col_name in reversed(df.columns):
yaxis = 'y1' if col_name == 'Total Cases' else 'y2'
colors = {'Total Cases': 'red', 'Bitcoin': 'blue', 'Gold': 'goldenrod',
'Dow Jones': 'green'}
colors = {'Total Cases': '#EF553B', 'Bitcoin': '#636efa', 'Gold': '#FFA15A',
'Dow Jones': '#00cc96'}
trace = go.Scatter(x=df.index, y=df[col_name], name=col_name, yaxis=yaxis,
line=dict(color=colors[col_name]))
figure.add_trace(trace)

Loading…
Cancel
Save