diff --git a/vizro-core/CHANGELOG.md b/vizro-core/CHANGELOG.md
index 5c7a8f099..7d7e5cccd 100644
--- a/vizro-core/CHANGELOG.md
+++ b/vizro-core/CHANGELOG.md
@@ -11,6 +11,38 @@ See the fragment files in the [changelog.d directory](https://github.com/mckinse
+
+
+# 0.1.19 — 2024-07-16
+
+## Removed
+
+- Remove `demo` dashboard folder from repository. ([#581](https://github.com/mckinsey/vizro/pull/581))
+
+## Added
+
+- Improve validation error messages for `CapturedCallable`. ([#547](https://github.com/mckinsey/vizro/pull/547))
+
+- Vizro app itself implements WSGI interface as a shortcut to `app.dash.server`. ([#580](https://github.com/mckinsey/vizro/pull/580))
+
+## Changed
+
+- Include sign in default `reference_format` of `kpi_card_reference`. ([#549](https://github.com/mckinsey/vizro/pull/549))
+
+- Update `optionHeight` of `vm.Dropdown` dynamically based on character length. ([#574](https://github.com/mckinsey/vizro/pull/574))
+
+- Rename `features` demo dashboard folder to `dev`. ([#581](https://github.com/mckinsey/vizro/pull/581))
+
+## Fixed
+
+- Fix title disappearance when scrolling `dash_data_table`. ([#548](https://github.com/mckinsey/vizro/pull/548))
+
+- Ensure that categorical selectors always return a list of values. ([#562](https://github.com/mckinsey/vizro/pull/562))
+
+- Remove default icon provision for `vm.NavLink` when the icon count exceeds 9 and a user icon is provided.([#572](https://github.com/mckinsey/vizro/pull/572))
+
+- External `href` links in `vm.Card` now open in the full body of the window as opposed to in the same frame as they were clicked. ([#585](https://github.com/mckinsey/vizro/pull/585))
+
# 0.1.18 — 2024-06-24
diff --git a/vizro-core/changelog.d/20240621_132255_antony.milne_improve_captured_callable_validation.md b/vizro-core/changelog.d/20240621_132255_antony.milne_improve_captured_callable_validation.md
deleted file mode 100644
index f831fa007..000000000
--- a/vizro-core/changelog.d/20240621_132255_antony.milne_improve_captured_callable_validation.md
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-### Added
-
-- Improve validation error messages for `CapturedCallable`. ([#547](https://github.com/mckinsey/vizro/pull/547))
-
-
-
-
-
diff --git a/vizro-core/changelog.d/20240625_114610_antony.milne_make_vizro_callable.md b/vizro-core/changelog.d/20240625_114610_antony.milne_make_vizro_callable.md
deleted file mode 100644
index e35846d9f..000000000
--- a/vizro-core/changelog.d/20240625_114610_antony.milne_make_vizro_callable.md
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-### Added
-
-- Vizro app itself implements WSGI interface as a shortcut to `app.dash.server`. ([#580](https://github.com/mckinsey/vizro/pull/580))
-
-
-
-
-
diff --git a/vizro-core/changelog.d/20240626_161742_petar_pejovic_fix_title_misalignment.md b/vizro-core/changelog.d/20240626_161742_petar_pejovic_fix_title_misalignment.md
deleted file mode 100644
index 6a0ca52e0..000000000
--- a/vizro-core/changelog.d/20240626_161742_petar_pejovic_fix_title_misalignment.md
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-
-
-### Fixed
-
-- Fix title disappearance when scrolling dash_data_table. ([#548](https://github.com/mckinsey/vizro/pull/548))
-
-
diff --git a/vizro-core/changelog.d/20240626_165216_huong_li_nguyen_add_sign_kpi_card.md b/vizro-core/changelog.d/20240626_165216_huong_li_nguyen_add_sign_kpi_card.md
deleted file mode 100644
index 379ea531b..000000000
--- a/vizro-core/changelog.d/20240626_165216_huong_li_nguyen_add_sign_kpi_card.md
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-### Changed
-
-- Include sign in default `reference_format` of `kpi_card_reference`. ([#549](https://github.com/mckinsey/vizro/pull/549))
-
-
-
-
diff --git a/vizro-core/changelog.d/20240627_102933_petar_pejovic_custom_graph_as_source_of_filter_interaction.md b/vizro-core/changelog.d/20240627_102933_petar_pejovic_custom_graph_as_source_of_filter_interaction.md
deleted file mode 100644
index f1f65e73c..000000000
--- a/vizro-core/changelog.d/20240627_102933_petar_pejovic_custom_graph_as_source_of_filter_interaction.md
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/vizro-core/changelog.d/20240627_105712_maximilian_schulz_small_fix.md b/vizro-core/changelog.d/20240627_105712_maximilian_schulz_small_fix.md
deleted file mode 100644
index f1f65e73c..000000000
--- a/vizro-core/changelog.d/20240627_105712_maximilian_schulz_small_fix.md
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/vizro-core/changelog.d/20240701_084052_huong_li_nguyen_update_docs_kpi.md b/vizro-core/changelog.d/20240701_084052_huong_li_nguyen_update_docs_kpi.md
deleted file mode 100644
index f1f65e73c..000000000
--- a/vizro-core/changelog.d/20240701_084052_huong_li_nguyen_update_docs_kpi.md
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/vizro-core/changelog.d/20240702_091610_huong_li_nguyen_pre_commit_ci_update_config.md b/vizro-core/changelog.d/20240702_091610_huong_li_nguyen_pre_commit_ci_update_config.md
deleted file mode 100644
index f1f65e73c..000000000
--- a/vizro-core/changelog.d/20240702_091610_huong_li_nguyen_pre_commit_ci_update_config.md
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/vizro-core/changelog.d/20240703_091955_huong_li_nguyen_fix_selector_return_type.md b/vizro-core/changelog.d/20240703_091955_huong_li_nguyen_fix_selector_return_type.md
deleted file mode 100644
index b1e16724c..000000000
--- a/vizro-core/changelog.d/20240703_091955_huong_li_nguyen_fix_selector_return_type.md
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-
-
-### Fixed
-
-- Ensure that categorical selectors always return a list of values. ([#562](https://github.com/mckinsey/vizro/pull/562))
-
-
diff --git a/vizro-core/changelog.d/20240703_171525_jo_stichbury_admonition_review.md b/vizro-core/changelog.d/20240703_171525_jo_stichbury_admonition_review.md
deleted file mode 100644
index f1f65e73c..000000000
--- a/vizro-core/changelog.d/20240703_171525_jo_stichbury_admonition_review.md
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/vizro-core/changelog.d/20240708_105029_huong_li_nguyen_fix_default_nav_items.md b/vizro-core/changelog.d/20240708_105029_huong_li_nguyen_fix_default_nav_items.md
deleted file mode 100644
index b97b8932d..000000000
--- a/vizro-core/changelog.d/20240708_105029_huong_li_nguyen_fix_default_nav_items.md
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-
-
-### Fixed
-
-- Remove default icon provision for `vm.NavLink` when the icon count exceeds 9 and a user icon is provided.([#572](https://github.com/mckinsey/vizro/pull/572))
-
-
diff --git a/vizro-core/changelog.d/20240708_185435_huong_li_nguyen_enable_dynamic_option_height.md b/vizro-core/changelog.d/20240708_185435_huong_li_nguyen_enable_dynamic_option_height.md
deleted file mode 100644
index 364aab922..000000000
--- a/vizro-core/changelog.d/20240708_185435_huong_li_nguyen_enable_dynamic_option_height.md
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-### Changed
-
-- Update `optionHeight` of `vm.Dropdown` dynamically based on character length. ([#574](https://github.com/mckinsey/vizro/pull/574))
-
-
-
-
diff --git a/vizro-core/changelog.d/20240709_142241_huong_li_nguyen_automatically_assign_label.md b/vizro-core/changelog.d/20240709_142241_huong_li_nguyen_automatically_assign_label.md
deleted file mode 100644
index f1f65e73c..000000000
--- a/vizro-core/changelog.d/20240709_142241_huong_li_nguyen_automatically_assign_label.md
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/vizro-core/changelog.d/20240711_110926_maximilian_schulz_fix_typo.md b/vizro-core/changelog.d/20240711_110926_maximilian_schulz_fix_typo.md
deleted file mode 100644
index f1f65e73c..000000000
--- a/vizro-core/changelog.d/20240711_110926_maximilian_schulz_fix_typo.md
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/vizro-core/changelog.d/20240712_090435_antony.milne_custom_icon.md b/vizro-core/changelog.d/20240712_090435_antony.milne_custom_icon.md
deleted file mode 100644
index f1f65e73c..000000000
--- a/vizro-core/changelog.d/20240712_090435_antony.milne_custom_icon.md
+++ /dev/null
@@ -1,48 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/vizro-core/changelog.d/20240712_095053_huong_li_nguyen_update_demos.md b/vizro-core/changelog.d/20240712_095053_huong_li_nguyen_update_demos.md
deleted file mode 100644
index c74db5d27..000000000
--- a/vizro-core/changelog.d/20240712_095053_huong_li_nguyen_update_demos.md
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
-### Removed
-
-- Remove `demo` dashboard folder from repository. ([#581](https://github.com/mckinsey/vizro/pull/581))
-
-
-
-### Changed
-
-- Rename `features` demo dashboard folder to `dev`. ([#581](https://github.com/mckinsey/vizro/pull/581))
-
-
-
-
diff --git a/vizro-core/changelog.d/20240624_105106_runner.md b/vizro-core/changelog.d/20240716_143136_runner.md
similarity index 100%
rename from vizro-core/changelog.d/20240624_105106_runner.md
rename to vizro-core/changelog.d/20240716_143136_runner.md
diff --git a/vizro-core/changelog.d/20240624_113542_antony.milne_0_1_18.md b/vizro-core/changelog.d/20240716_150216_nadija_ratkusic_graca_0_1_19.md
similarity index 100%
rename from vizro-core/changelog.d/20240624_113542_antony.milne_0_1_18.md
rename to vizro-core/changelog.d/20240716_150216_nadija_ratkusic_graca_0_1_19.md
diff --git a/vizro-core/examples/scratch_dev/app.py b/vizro-core/examples/scratch_dev/app.py
index 973fa7292..49775d2be 100644
--- a/vizro-core/examples/scratch_dev/app.py
+++ b/vizro-core/examples/scratch_dev/app.py
@@ -1,38 +1,67 @@
-"""Dev app to try things out."""
+"""Example app to show all features of Vizro."""
+
+# check out https://github.com/mckinsey/vizro for more info about Vizro
+# and checkout https://vizro.readthedocs.io/en/stable/ for documentation
-import numpy as np
import vizro.models as vm
import vizro.plotly.express as px
from vizro import Vizro
df = px.data.iris()
-df["species_one_long"] = np.where(
- df["species"] == "setosa", "setosa is one common species you can select in the iris dataset.", df["species"]
-)
-df["species_long"] = df["species"] + " is one common species you can select in the iris dataset."
-df["species_very_long"] = (
- df["species"]
- + " is one common species you can select in the iris dataset is one common species you can select in the iris data."
-)
page = vm.Page(
- title="",
+ title="Vizro on PyCafe",
+ layout=vm.Layout(
+ grid=[[0, 0, 0, 1, 2, 3], [4, 4, 4, 4, 4, 4], [4, 4, 4, 4, 4, 4], [5, 5, 5, 5, 5, 5], [5, 5, 5, 5, 5, 5]],
+ row_min_height="175px",
+ ),
components=[
- vm.Graph(
- id="graph_1",
- figure=px.scatter(df, title="Title", x="sepal_width", y="sepal_length", color="species"),
+ vm.Card(
+ text="""
+ ### What is Vizro?
+
+ Vizro is a toolkit for creating modular data visualization applications.
+ """
+ ),
+ vm.Card(
+ text="""
+ ### Github
+
+ Checkout Vizro's github page.
+ """,
+ href="https://github.com/mckinsey/vizro",
),
+ vm.Card(
+ text="""
+ ### Docs
+
+ Visit the documentation for codes examples, tutorials and API reference.
+ """,
+ href="https://vizro.readthedocs.io/",
+ ),
+ vm.Card(
+ text="""
+ ### Nav Link
+
+ Click this for page 2.
+ """,
+ href="/page2",
+ ),
+ vm.Graph(id="scatter_chart", figure=px.scatter(df, x="sepal_length", y="petal_width", color="species")),
+ vm.Graph(id="hist_chart", figure=px.histogram(df, x="sepal_width", color="species")),
],
controls=[
- vm.Filter(column="species"),
- vm.Filter(column="species_long"),
- vm.Filter(column="species_one_long"),
- vm.Filter(column="species_very_long"),
+ vm.Filter(column="species", selector=vm.Dropdown(value=["ALL"])),
+ vm.Filter(column="petal_length"),
+ vm.Filter(column="sepal_width"),
],
)
+page2 = vm.Page(
+ title="Page2", components=[vm.Graph(id="hist_chart2", figure=px.histogram(df, x="sepal_width", color="species"))]
+)
-dashboard = vm.Dashboard(pages=[page])
+dashboard = vm.Dashboard(pages=[page, page2])
if __name__ == "__main__":
Vizro().build(dashboard).run()
diff --git a/vizro-core/schemas/0.1.19.dev0.json b/vizro-core/schemas/0.1.19.json
similarity index 100%
rename from vizro-core/schemas/0.1.19.dev0.json
rename to vizro-core/schemas/0.1.19.json
diff --git a/vizro-core/schemas/0.1.18.json b/vizro-core/schemas/0.1.20.dev0.json
similarity index 97%
rename from vizro-core/schemas/0.1.18.json
rename to vizro-core/schemas/0.1.20.dev0.json
index 5c04f2438..99492cc9f 100644
--- a/vizro-core/schemas/0.1.18.json
+++ b/vizro-core/schemas/0.1.20.dev0.json
@@ -38,7 +38,7 @@
"definitions": {
"Action": {
"title": "Action",
- "description": "Action to be inserted into `actions` of relevant component.\n\nArgs:\n function (CapturedCallable): See [`CapturedCallable`][vizro.models.types.CapturedCallable].\n inputs (List[str]): Inputs in the form `.` passed to the action function.\n Defaults to `[]`.\n outputs (List[str]): Outputs in the form `.` changed by the action function.\n Defaults to `[]`.",
+ "description": "Action to be inserted into `actions` of relevant component.\n\nArgs:\n function (CapturedCallable): Action function. See [`vizro.actions`][vizro.actions].\n inputs (List[str]): Inputs in the form `.` passed to the action function.\n Defaults to `[]`.\n outputs (List[str]): Outputs in the form `.` changed by the action function.\n Defaults to `[]`.",
"type": "object",
"properties": {
"id": {
@@ -74,7 +74,7 @@
},
"AgGrid": {
"title": "AgGrid",
- "description": "Wrapper for `dash-ag-grid.AgGrid` to visualize grids in dashboard.\n\nArgs:\n type (Literal[\"ag_grid\"]): Defaults to `\"ag_grid\"`.\n figure (CapturedCallable): AgGrid like object to be displayed. For more information see:\n [`dash-ag-grid.AgGrid`](https://dash.plotly.com/dash-ag-grid).\n title (str): Title of the table. Defaults to `\"\"`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
+ "description": "Wrapper for `dash-ag-grid.AgGrid` to visualize grids in dashboard.\n\nArgs:\n type (Literal[\"ag_grid\"]): Defaults to `\"ag_grid\"`.\n figure (CapturedCallable): Function that returns a Dash AgGrid. See [`vizro.tables`][vizro.tables].\n title (str): Title of the table. Defaults to `\"\"`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
"type": "object",
"properties": {
"id": {
@@ -174,7 +174,7 @@
},
"Figure": {
"title": "Figure",
- "description": "Creates a figure-like object that can be displayed in the dashboard and is reactive to controls.\n\nArgs:\n type (Literal[\"figure\"]): Defaults to `\"figure\"`.\n figure (CapturedCallable): See [`vizro.figures`][vizro.figures].",
+ "description": "Creates a figure-like object that can be displayed in the dashboard and is reactive to controls.\n\nArgs:\n type (Literal[\"figure\"]): Defaults to `\"figure\"`.\n figure (CapturedCallable): Function that returns a figure-like object. See [`vizro.figures`][vizro.figures].",
"type": "object",
"properties": {
"id": {
@@ -194,7 +194,7 @@
},
"Graph": {
"title": "Graph",
- "description": "Wrapper for `dcc.Graph` to visualize charts in dashboard.\n\nArgs:\n type (Literal[\"graph\"]): Defaults to `\"graph\"`.\n figure (CapturedCallable): See [`CapturedCallable`][vizro.models.types.CapturedCallable].\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
+ "description": "Wrapper for `dcc.Graph` to visualize charts in dashboard.\n\nArgs:\n type (Literal[\"graph\"]): Defaults to `\"graph\"`.\n figure (CapturedCallable): Function that returns a graph.\n See `CapturedCallable`][vizro.models.types.CapturedCallable].\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
"type": "object",
"properties": {
"id": {
@@ -222,7 +222,7 @@
},
"Table": {
"title": "Table",
- "description": "Wrapper for `dash_table.DataTable` to visualize tables in dashboard.\n\nArgs:\n type (Literal[\"table\"]): Defaults to `\"table\"`.\n figure (CapturedCallable): Table like object to be displayed. For more information see:\n [`dash_table.DataTable`](https://dash.plotly.com/datatable).\n title (str): Title of the table. Defaults to `\"\"`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
+ "description": "Wrapper for `dash_table.DataTable` to visualize tables in dashboard.\n\nArgs:\n type (Literal[\"table\"]): Defaults to `\"table\"`.\n figure (CapturedCallable): Function that returns a Dash DataTable. See [`vizro.tables`][vizro.tables].\n title (str): Title of the table. Defaults to `\"\"`.\n actions (List[Action]): See [`Action`][vizro.models.Action]. Defaults to `[]`.",
"type": "object",
"properties": {
"id": {
diff --git a/vizro-core/src/vizro/__init__.py b/vizro-core/src/vizro/__init__.py
index 79534b0e3..2aaf415ce 100644
--- a/vizro-core/src/vizro/__init__.py
+++ b/vizro-core/src/vizro/__init__.py
@@ -5,6 +5,6 @@
__all__ = ["Vizro"]
-__version__ = "0.1.19.dev0"
+__version__ = "0.1.20.dev0"
logging.basicConfig(level=os.getenv("VIZRO_LOG_LEVEL", "WARNING"))
diff --git a/vizro-core/src/vizro/models/_components/card.py b/vizro-core/src/vizro/models/_components/card.py
index fc2f93fe8..2638b63ac 100644
--- a/vizro-core/src/vizro/models/_components/card.py
+++ b/vizro-core/src/vizro/models/_components/card.py
@@ -39,6 +39,7 @@ def build(self):
dbc.NavLink(
children=text,
href=get_relative_path(self.href) if self.href.startswith("/") else self.href,
+ target="_top",
)
if self.href
else text
diff --git a/vizro-core/tests/unit/vizro/models/_components/test_card.py b/vizro-core/tests/unit/vizro/models/_components/test_card.py
index c2fe1fa09..44c9d24ab 100755
--- a/vizro-core/tests/unit/vizro/models/_components/test_card.py
+++ b/vizro-core/tests/unit/vizro/models/_components/test_card.py
@@ -53,6 +53,7 @@ def test_card_build_with_href(self):
dbc.NavLink(
dcc.Markdown(id="card_id", children="Hello", dangerously_allow_html=False),
href="https://www.google.com",
+ target="_top",
),
className="card-nav",
)