code: def build_drilldown_modal(idx):
      return dbc.Modal(
          [
              dbc.ModalHeader(
                  html.Div(
                      [
                          html.Div(
                              text("Chart Drilldown"),
                              className="col mt-auto mb-auto",
                              id="drilldown-modal-header-{}".format(
                                  idx
                              ),
                          ),
                          html.Button(
                              html.Span("X"),
                              className="close mr-5",
                              id="close-drilldown-modal-header-{}".format(
                                  idx
                              ),
                          ),
                      ],
                      className="row",
                  )
              ),
              dbc.ModalBody(
                  dcc.Loading(
                      [
                          html.Div(
                              [
                                  html.Div(
                                      dcc.Tabs(
                                          id="drilldown-chart-type-{}".format(
                                              idx
                                          ),
                                          value="histogram",
                                          children=[
                                              build_tab(
                                                  t.capitalize(), t
                                              )
                                              for t in [
                                                  "histogram",
                                                  "bar",
                                              ]
                                          ],
                                          style=dict(height="36px"),
                                      ),
                                      className="col-md-4",
                                  ),
                                  build_input(
                                      "X",
                                      dcc.Dropdown(
                                          id="drilldown-x-dropdown-{}".format(
                                              idx
                                          ),
                                          options=[],
                                          placeholder="Select a column",
                                          value=None,
                                          style=dict(width="inherit"),
                                          className="drilldown-x-dropdown",
                                      ),
                                      id="drilldown-x-input-{}".format(
                                          idx
                                      ),
                                      style=dict(display="none"),
                                  ),
                              ],
                              className="row pt-3 pb-5",
                          ),
                          html.Div(
                              id="drilldown-content-{}".format(idx)
                          ),
                      ],
                      type="circle",
                  )
              ),
              dbc.ModalFooter(
                  dbc.Button(
                      text("Close"),
                      id="close-drilldown-modal-{}".format(idx),
                      className="ml-auto",
                  )
              ),
          ],
          id="drilldown-modal-{}".format(idx),
          size="lg",
          centered=True,
          className="drilldown-modal",
      )
  
file_path: dtale/dtale/dash_application/layout/utils.py
imports: import dash_bootstrap_components
  from dtale.dash_application import dcc, html
  from dtale.translations import text
  from dtale.utils import dict_merge, classify_type, flatten_lists, make_list
  from dtale.charts.utils import INDEX_COL
  from dtale.constants import CHART_JOINER_CHAR
label_desc: Use image node_id 7 for calling a global function with example usage: build_drilldown_modal(idx) and returns: dbc