sda.dashboard.callbacks.line#

Enhanced line plot functionality for the dashboard.

Classes#

LinePlotCallback

Enhanced line plot callback functionality.

Functions#

create_line_plot(data, x_col, y_col[, title])

Create an enhanced line plot with improved features.

get_line_layout([title])

Get default line plot layout.

Module Contents#

class sda.dashboard.callbacks.line.LinePlotCallback(verbose=False)#

Enhanced line plot callback functionality.

verbose = False#
create_line_plot(data, x_col, y_col, title='Line Plot', **kwargs)#

Create an enhanced line plot with improved features.

Parameters:
  • data (pd.DataFrame) – The data to plot

  • x_col (str) – Column name for x-axis

  • y_col (str) – Column name for y-axis

  • title (str) – Plot title

  • **kwargs – Additional arguments for plotly

Returns:

Plotly figure dictionary

Return type:

Dict[str, Any]

sda.dashboard.callbacks.line.create_line_plot(data, x_col, y_col, title='Line Plot', **kwargs)#

Create an enhanced line plot with improved features.

Parameters:
  • data (pd.DataFrame) – The data to plot

  • x_col (str) – Column name for x-axis

  • y_col (str) – Column name for y-axis

  • title (str) – Plot title

  • **kwargs – Additional arguments for plotly

Returns:

Plotly figure dictionary

Return type:

Dict[str, Any]

sda.dashboard.callbacks.line.get_line_layout(title='Line Plot')#

Get default line plot layout.

Parameters:

title (str) – Plot title

Returns:

Layout dictionary

Return type:

Dict[str, Any]