Spaces:
Running
Running
Update app.py
#7
by
nadijagr
- opened
app.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
"""Example to show dashboard configuration."""
|
2 |
|
|
|
|
|
3 |
import pandas as pd
|
4 |
import vizro.models as vm
|
5 |
from utils._charts import COLUMN_DEFS, FlexContainer, area, bar, choropleth, pie
|
@@ -248,6 +250,21 @@ dashboard = vm.Dashboard(
|
|
248 |
)
|
249 |
|
250 |
app = Vizro().build(dashboard)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
server = app.dash.server
|
252 |
|
253 |
if __name__ == "__main__":
|
|
|
1 |
"""Example to show dashboard configuration."""
|
2 |
|
3 |
+
from dash import html, get_asset_url
|
4 |
+
import dash_bootstrap_components as dbc
|
5 |
import pandas as pd
|
6 |
import vizro.models as vm
|
7 |
from utils._charts import COLUMN_DEFS, FlexContainer, area, bar, choropleth, pie
|
|
|
250 |
)
|
251 |
|
252 |
app = Vizro().build(dashboard)
|
253 |
+
app.dash.layout.children.append(
|
254 |
+
html.Div(
|
255 |
+
[
|
256 |
+
html.Div(
|
257 |
+
[
|
258 |
+
"Made using ",
|
259 |
+
html.Img(src=get_asset_url("images/logo.svg"), id="banner", alt="Vizro logo"),
|
260 |
+
dbc.NavLink("vizro", href="https://github.com/mckinsey/vizro", target="_blank", external_link=True),
|
261 |
+
],
|
262 |
+
className="anchor-div",
|
263 |
+
),
|
264 |
+
],
|
265 |
+
className="anchor-container",
|
266 |
+
)
|
267 |
+
)
|
268 |
server = app.dash.server
|
269 |
|
270 |
if __name__ == "__main__":
|