Spaces:
Running
Running
Commit ·
fd1a344
1
Parent(s): 27e0d45
add hover data
Browse files
app.py
CHANGED
|
@@ -120,6 +120,7 @@ def full_report():
|
|
| 120 |
total_map = px.choropleth(country_df, locations="iso",
|
| 121 |
color="rank",
|
| 122 |
hover_name="country", # column to add to hover information
|
|
|
|
| 123 |
color_continuous_scale ="YlOrRd",
|
| 124 |
projection='natural earth',
|
| 125 |
template="plotly_dark")
|
|
@@ -136,6 +137,7 @@ def full_report():
|
|
| 136 |
color_continuous_scale="YlOrRd",
|
| 137 |
scope="usa",
|
| 138 |
hover_name="count_name",
|
|
|
|
| 139 |
template="plotly_dark"
|
| 140 |
)
|
| 141 |
county_map.update_layout(showlegend=False)
|
|
|
|
| 120 |
total_map = px.choropleth(country_df, locations="iso",
|
| 121 |
color="rank",
|
| 122 |
hover_name="country", # column to add to hover information
|
| 123 |
+
hover_data=["jumps"],
|
| 124 |
color_continuous_scale ="YlOrRd",
|
| 125 |
projection='natural earth',
|
| 126 |
template="plotly_dark")
|
|
|
|
| 137 |
color_continuous_scale="YlOrRd",
|
| 138 |
scope="usa",
|
| 139 |
hover_name="count_name",
|
| 140 |
+
hover_data=["jumps"],
|
| 141 |
template="plotly_dark"
|
| 142 |
)
|
| 143 |
county_map.update_layout(showlegend=False)
|