|
7 | 7 | iris = px.data.iris()
|
8 | 8 |
|
9 | 9 | page = vm.Page(
|
10 |
| - title="Page with subsections", |
| 10 | + title="New Line Height", |
11 | 11 | layout=vm.Layout(grid=[[0, 1]]),
|
12 | 12 | components=[
|
13 |
| - vm.Container( |
14 |
| - title="Container I", |
15 |
| - components=[vm.Graph(figure=px.scatter(iris, x="sepal_width", y="sepal_length", color="species"))], |
| 13 | + vm.Card( |
| 14 | + id="new-line-height", |
| 15 | + text=""" |
| 16 | + # New |
| 17 | +
|
| 18 | + ## What is Vizro? |
| 19 | +
|
| 20 | + Vizro is an open-source dashboarding framework developed by McKinsey. Built with Plotly and Dash, Vizro |
| 21 | + provides a high-level API for creating interactive, production-ready dashboards with minimal code. |
| 22 | + It includes pre-configured layouts, themes, and components, making it easier to build data-driven |
| 23 | + applications. |
| 24 | +
|
| 25 | + Even if you're not creating a Vizro app, you can still use its styling and design system in your Dash |
| 26 | + applications. |
| 27 | +
|
| 28 | + ## Vizro Features Available for Dash Apps |
| 29 | +
|
| 30 | + * Vizro Bootstrap-themed figure templates are available in the dash-bootstrap-templates library starting |
| 31 | + from version 2.1.0. Both dark and light-themed templates are included. |
| 32 | +
|
| 33 | + * Vizro Bootstrap theme provides styling for Bootstrap components, allowing them to match the Vizro light |
| 34 | + or dark theme. |
| 35 | +
|
| 36 | + * Vizro theme for other Dash components extends styling beyond Bootstrap. Vizro includes custom CSS to |
| 37 | + theme additional Dash components that are not part of Bootstrap. You can explore all the custom CSS files |
| 38 | + in their GitHub repository. |
| 39 | +
|
| 40 | + * Vizro KPI cards like the ones shown in the image above can be added to a regular Dash app, bringing a |
| 41 | + visually consistent way to display key performance indicators. For more details, see this Plotly forum post.""", |
16 | 42 | ),
|
17 |
| - vm.Container( |
18 |
| - title="Container II", |
19 |
| - components=[vm.Graph(figure=px.box(iris, x="species", y="sepal_length", color="species"))], |
| 43 | + vm.Card( |
| 44 | + id="old-line-height", |
| 45 | + text=""" |
| 46 | + # Old |
| 47 | +
|
| 48 | + ## What is Vizro? |
| 49 | +
|
| 50 | + Vizro is an open-source dashboarding framework developed by McKinsey. Built with Plotly and Dash, Vizro |
| 51 | + provides a high-level API for creating interactive, production-ready dashboards with minimal code. |
| 52 | + It includes pre-configured layouts, themes, and components, making it easier to build data-driven |
| 53 | + applications. |
| 54 | +
|
| 55 | + Even if you're not creating a Vizro app, you can still use its styling and design system in your Dash |
| 56 | + applications. |
| 57 | +
|
| 58 | + ## Vizro Features Available for Dash Apps |
| 59 | +
|
| 60 | + * Vizro Bootstrap-themed figure templates are available in the dash-bootstrap-templates library starting |
| 61 | + from version 2.1.0. Both dark and light-themed templates are included. |
| 62 | +
|
| 63 | + * Vizro Bootstrap theme provides styling for Bootstrap components, allowing them to match the Vizro light |
| 64 | + or dark theme. |
| 65 | +
|
| 66 | + * Vizro theme for other Dash components extends styling beyond Bootstrap. Vizro includes custom CSS to |
| 67 | + theme additional Dash components that are not part of Bootstrap. You can explore all the custom CSS files |
| 68 | + in their GitHub repository. |
| 69 | +
|
| 70 | + * Vizro KPI cards like the ones shown in the image above can be added to a regular Dash app, bringing a |
| 71 | + visually consistent way to display key performance indicators. For more details, see this Plotly forum post.""", |
20 | 72 | ),
|
21 | 73 | ],
|
22 | 74 | )
|
|
0 commit comments