Skip to content

Commit

Permalink
Remove unneeded id from Vizro-AI docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stichbury committed Nov 11, 2024
1 parent d2f8005 commit 22663cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ This object must then be passed to the `figure` argument of the Vizro [Graph](ht
page = vm.Page(
title = 'Demographics',
components = [
vm.Graph(id='bubble chart', figure=custom_chart(df)),
vm.Graph(id='histogram', figure = px.box(df,
vm.Graph(figure=custom_chart(df)),
vm.Graph(figure = px.box(df,
x='continent',
y='lifeExp',
color='continent',
Expand Down Expand Up @@ -152,8 +152,8 @@ Executing the code below yields the identical dashboard as the example above.
page = vm.Page(
title = 'Demographics',
components = [
vm.Graph(id='bubble chart', figure=fig),
vm.Graph(id='histogram', figure = px.box(df,
vm.Graph(figure=fig),
vm.Graph(figure = px.box(df,
x='continent',
y='lifeExp',
color='continent',
Expand Down
3 changes: 0 additions & 3 deletions vizro-ai/docs/pages/user-guides/retrieve-dashboard-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,13 @@ This triggers the dashboard building process. Once Vizro-AI finishes the dashboa
dashboard = vm.Dashboard(
pages=[
vm.Page(
id="Tips Data Visualization",
components=[
vm.Card(
id="tips_card_tips_data_visualization",
type="card",
text="This is Tips dataset",
href="",
),
vm.AgGrid(
id="tips_table_tips_data_visualization",
figure=dash_ag_grid(data_frame="restaurant_bills"),
),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ Now you can use the chain to generate charts or dashboards based on natural lang
vm.Page(
components=[
vm.Graph(
id="gdp_life_exp_graph",
figure=gdp_life_exp_graph(data_frame="gdp_life_exp"),
)
],
Expand Down

0 comments on commit 22663cb

Please sign in to comment.