Plots

Defines the base plot component used for all graphs.

qimchi.components.plots.content_ranges(sess_id: str, slider: dict, fig: QimchiFigure, fig_id: str) Div[source]

Generates the range sliders for the plot.

Parameters:
  • sess_id (str) – Session ID to load the state for

  • slider (dict) – Slider configuration

  • fig (QimchiFigure) – QimchiFigure object.

  • fig_id (str) – Unique identifier for the figure in the plot

Returns:

Range sliders container.

Return type:

dash.html.Div

qimchi.components.plots.content_appearance(sess_id: str, fig: QimchiFigure, fig_id: str) Div[source]

Generates the appearance menu for the plot.

Parameters:
  • sess_id (str) – Session ID to load the state for

  • fig (QimchiFigure) – QimchiFigure object

  • fig_id (str) – Unique identifier for the figure in the plot

Returns:

Appearance menu container.

Return type:

dash.html.Div

qimchi.components.plots.plots_menu(sess_id: str, fig_id: str) list[Button][source]

Generator for the plots menu, defining the buttons for the plot options.

Parameters:
  • sess_id (str) – Session ID to load the state for

  • fig_id (str) – Unique value for associating buttons to their parent graphs

Returns:

List of buttons for the plot menu

Return type:

list

qimchi.components.plots.plots_menu_dropdown(sess_id: str, dropdown_options: list, fig_id: str) Div[source]

Dropdown container for each of the plot menu options. Normally hidden until the corresponding button is clicked.

Parameters:
  • sess_id (str) – Session ID to load the state for

  • dropdown_options (list) – List of Buttons inside the dropdown

  • fig_id (str) – Unique value for associating dropdowns to their parent graphs

Returns:

Dropdown container

Return type:

dash.html.Div