Spaces:
Running
Running
Update demo based on latest changes
Browse files- README.md +3 -3
- app.py +1 -1
- assets/css/custom.css +4 -0
- chart_groups.py +2 -0
- requirements.in +1 -1
- requirements.txt +1 -1
README.md
CHANGED
@@ -9,7 +9,7 @@ license: apache-2.0
|
|
9 |
short_description: Vizro - Visual vocabulary
|
10 |
---
|
11 |
|
12 |
-
#
|
13 |
|
14 |
### Welcome to our visual vocabulary dashboard! 🎨
|
15 |
|
@@ -112,7 +112,7 @@ The dashboard is still in development. Below is an overview of the chart types f
|
|
112 |
|
113 |
Contributions are welcome! To contribute a chart, follow the steps below:
|
114 |
|
115 |
-
1. Check that a `svg` file named after the chart type is contained in the [assets](https://github.com/mckinsey/vizro/tree/main/vizro-core/examples/
|
116 |
2. Add the data set to `_pages_utils.py` if it doesn't already exist. Use existing data sets preferably or any other data set that is publicly available e.g. [plotlx.express.data](https://plotly.com/python-api-reference/generated/plotly.express.data.html)
|
117 |
3. Create a new page for the chart type and add it to the relevant category `.py` file such as `correlation.py`,
|
118 |
`deviation.py`, `distribution.py`, etc. Ensure you add the page to the list of `pages` at the end of the `.py` file.
|
@@ -122,6 +122,6 @@ Contributions are welcome! To contribute a chart, follow the steps below:
|
|
122 |
|
123 |
## How to run the example locally
|
124 |
|
125 |
-
1. If you have `hatch` set up, run the example with the command `hatch run example
|
126 |
Otherwise, with a virtual Python environment activated, run `pip install -r requirements.txt` and then `python app.py`.
|
127 |
2. You should now be able to access the app locally via http://127.0.0.1:8050/.
|
|
|
9 |
short_description: Vizro - Visual vocabulary
|
10 |
---
|
11 |
|
12 |
+
# Visual vocabulary
|
13 |
|
14 |
### Welcome to our visual vocabulary dashboard! 🎨
|
15 |
|
|
|
112 |
|
113 |
Contributions are welcome! To contribute a chart, follow the steps below:
|
114 |
|
115 |
+
1. Check that a `svg` file named after the chart type is contained in the [assets](https://github.com/mckinsey/vizro/tree/main/vizro-core/examples/visual-vocabulary/assets/images/charts) folder. If not, [raise an issue](https://github.com/mckinsey/vizro/issues) in the repository.
|
116 |
2. Add the data set to `_pages_utils.py` if it doesn't already exist. Use existing data sets preferably or any other data set that is publicly available e.g. [plotlx.express.data](https://plotly.com/python-api-reference/generated/plotly.express.data.html)
|
117 |
3. Create a new page for the chart type and add it to the relevant category `.py` file such as `correlation.py`,
|
118 |
`deviation.py`, `distribution.py`, etc. Ensure you add the page to the list of `pages` at the end of the `.py` file.
|
|
|
122 |
|
123 |
## How to run the example locally
|
124 |
|
125 |
+
1. If you have `hatch` set up, run the example with the command `hatch run example visual-vocabulary`.
|
126 |
Otherwise, with a virtual Python environment activated, run `pip install -r requirements.txt` and then `python app.py`.
|
127 |
2. You should now be able to access the app locally via http://127.0.0.1:8050/.
|
app.py
CHANGED
@@ -95,7 +95,7 @@ homepage = vm.Page(
|
|
95 |
# work nicely with the hierarchical navigation.
|
96 |
dashboard = vm.Dashboard(
|
97 |
# ALL_CHART_GROUP.pages has duplicated pages, e.g. both distribution-butterfly and deviation-butterfly.
|
98 |
-
title="
|
99 |
pages=[homepage, *ALL_CHART_GROUP.pages],
|
100 |
navigation=vm.Navigation(
|
101 |
nav_selector=vm.NavBar(
|
|
|
95 |
# work nicely with the hierarchical navigation.
|
96 |
dashboard = vm.Dashboard(
|
97 |
# ALL_CHART_GROUP.pages has duplicated pages, e.g. both distribution-butterfly and deviation-butterfly.
|
98 |
+
title="Visual vocabulary",
|
99 |
pages=[homepage, *ALL_CHART_GROUP.pages],
|
100 |
navigation=vm.Navigation(
|
101 |
nav_selector=vm.NavBar(
|
assets/css/custom.css
CHANGED
@@ -76,3 +76,7 @@ img[src*="#chart-icon"] {
|
|
76 |
.intro-text p a {
|
77 |
font-size: inherit;
|
78 |
}
|
|
|
|
|
|
|
|
|
|
76 |
.intro-text p a {
|
77 |
font-size: inherit;
|
78 |
}
|
79 |
+
|
80 |
+
.intro-text ul:last-of-type {
|
81 |
+
margin-bottom: 0;
|
82 |
+
}
|
chart_groups.py
CHANGED
@@ -224,6 +224,8 @@ communicate your message, and streamline the creation of high-quality, interacti
|
|
224 |
|
225 |
|
226 |
|
|
|
|
|
227 |
|
228 |
Created by:
|
229 |
- [Huong Li Nguyen](https://github.com/huong-li-nguyen) and [Antony Milne](https://github.com/antonymilne)
|
|
|
224 |
|
225 |
|
226 |
|
227 |
+
|
228 |
+
|
229 |
|
230 |
Created by:
|
231 |
- [Huong Li Nguyen](https://github.com/huong-li-nguyen) and [Antony Milne](https://github.com/antonymilne)
|
requirements.in
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# This file is only used if you don't have hatch installed.
|
2 |
black==24.4.2
|
3 |
plotly>=5.24.0
|
4 |
-
vizro==0.1.
|
5 |
gunicorn
|
|
|
1 |
# This file is only used if you don't have hatch installed.
|
2 |
black==24.4.2
|
3 |
plotly>=5.24.0
|
4 |
+
vizro==0.1.23
|
5 |
gunicorn
|
requirements.txt
CHANGED
@@ -110,7 +110,7 @@ tzdata==2024.1
|
|
110 |
# via pandas
|
111 |
urllib3==2.2.2
|
112 |
# via requests
|
113 |
-
vizro==0.1.
|
114 |
# via -r requirements.in
|
115 |
werkzeug==3.0.4
|
116 |
# via
|
|
|
110 |
# via pandas
|
111 |
urllib3==2.2.2
|
112 |
# via requests
|
113 |
+
vizro==0.1.23
|
114 |
# via -r requirements.in
|
115 |
werkzeug==3.0.4
|
116 |
# via
|