
Interactive Dashboards and Data Apps with Plotly and Dash
By :

Not only will users be able to add components to the app's layout, but the components' contents will also be dynamically generated. Take a look at Figure 10.6 for the simplest example that we will start with:
Figure 10.6 – An app allowing users to add components to the app's layout
Although extremely simple, the charts in this app have different dynamic names, as you can see in the chart titles. This was based on the dynamic value of n_clicks
, which changes on every click.
The amount of code required to generate this is similar to any simple app; there isn't much complexity involved. We just need to look at it with fresh eyes. Let's start by coding the layout, which will consist of two simple components:
dbc.Button("Add Chart", id='button')
children
attribute...