sda.dashboard.callbacks.scatter =============================== .. py:module:: sda.dashboard.callbacks.scatter .. autoapi-nested-parse:: Enhanced scatter plot functionality for the dashboard with dark theme support. Classes ------- .. autoapisummary:: sda.dashboard.callbacks.scatter.ScatterPlotCallback Functions --------- .. autoapisummary:: sda.dashboard.callbacks.scatter.create_scatter_plot sda.dashboard.callbacks.scatter.get_scatter_layout Module Contents --------------- .. py:class:: ScatterPlotCallback(verbose = False) Enhanced scatter plot callback functionality with dark theme support. .. py:attribute:: verbose :value: False .. py:method:: create_scatter_plot(data, x_col, y_col, color_col = None, title = 'Scatter Plot', **kwargs) Create an enhanced scatter plot with improved features and dark theme support. :param data: The data to plot :type data: :py:class:`pd.DataFrame` :param x_col: Column name for x-axis :type x_col: :py:class:`str` :param y_col: Column name for y-axis :type y_col: :py:class:`str` :param color_col: Column name for color coding :type color_col: :py:class:`Optional[str]` :param title: Plot title :type title: :py:class:`str` :param \*\*kwargs: Additional arguments for plotly :returns: Plotly figure dictionary :rtype: :py:class:`Dict[str`, :py:class:`Any]` .. py:function:: create_scatter_plot(data, x_col, y_col, color_col = None, title = 'Scatter Plot', **kwargs) Create a scatter plot (legacy function for backward compatibility). :param data: The data to plot :type data: :py:class:`pd.DataFrame` :param x_col: Column name for x-axis :type x_col: :py:class:`str` :param y_col: Column name for y-axis :type y_col: :py:class:`str` :param color_col: Column name for color coding :type color_col: :py:class:`Optional[str]` :param title: Plot title :type title: :py:class:`str` :param \*\*kwargs: Additional arguments for plotly :returns: Plotly figure dictionary :rtype: :py:class:`Dict[str`, :py:class:`Any]` .. py:function:: get_scatter_layout(title = 'Scatter Plot') Get default scatter plot layout. :param title: Plot title :type title: :py:class:`str` :returns: Layout dictionary :rtype: :py:class:`Dict[str`, :py:class:`Any]`