chartify/_core/plot.py [1378:1429]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        data_frame,
        categorical_columns,
        numeric_column,
        color_column=None,
        color_order=None,
        categorical_order_by="values",
        categorical_order_ascending=False,
    ):
        """Bar chart.

        Note:
            To change the orientation set x_axis_type or y_axis_type
            argument of the Chart object.

        Args:
            data_frame (pandas.DataFrame): Data source for the plot.
            categorical_columns (str or list): Column name to plot on
                the categorical axis.
            numeric_column (str): Column name to plot on the numerical axis.
            color_column (str, optional): Column name to group by on
                the color dimension.
            color_order (list, optional): List of values within the
                'color_column' for specific color sort.
            categorical_order_by (str or array-like, optional):
                Dimension for ordering the categorical axis. Default 'values'.
                - 'values': Order categorical axis by the numerical
                    axis values. Default.
                - 'labels': Order categorical axis by the categorical labels.
                - array-like object (list, tuple, np.array): New labels
                    to conform the categorical axis to.
            categorical_order_ascending (bool, optional): Sort order of the
                categorical axis. Default False.
        """
        vertical = self._chart.axes._vertical

        source, factors, _ = self._construct_source(
            data_frame,
            categorical_columns,
            numeric_column,
            categorical_order_by=categorical_order_by,
            categorical_order_ascending=categorical_order_ascending,
            color_column=color_column,
        )

        colors, color_values = self._get_color_and_order(data_frame, color_column, color_order, categorical_columns)

        if color_column is None:
            colors = colors[0]

        self._set_categorical_axis_default_factors(vertical, factors)
        self._set_categorical_axis_default_range(vertical, data_frame, numeric_column)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



chartify/_core/plot.py [1759:1810]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        self,
        data_frame,
        categorical_columns,
        numeric_column,
        color_column=None,
        color_order=None,
        categorical_order_by="values",
        categorical_order_ascending=False,
    ):
        """Lollipop chart.

        Note:
            To change the orientation set x_axis_type or y_axis_type
            argument of the Chart object.

        Args:
            data_frame (pandas.DataFrame): Data source for the plot.
            categorical_columns (str or list): Column name to plot on
                the categorical axis.
            numeric_column (str): Column name to plot on the numerical axis.
            color_column (str, optional): Column name to group by on
                the color dimension.
            color_order (list, optional):
                List of values within the 'color_column' for
                    specific color sort.
            categorical_order_by (str or array-like, optional):
                Dimension for ordering the categorical axis. Default 'values'.
                - 'values': Order categorical axis by the numerical axis values.
                - 'labels': Order categorical axis by the categorical labels.
                - array-like object (list, tuple, np.array): New labels
                    to conform the categorical axis to.
            categorical_order_ascending (bool, optional):
                Sort order of the categorical axis. Default False.
        """

        vertical = self._chart.axes._vertical

        source, factors, _ = self._construct_source(
            data_frame,
            categorical_columns,
            numeric_column,
            categorical_order_by=categorical_order_by,
            categorical_order_ascending=categorical_order_ascending,
            color_column=color_column,
        )

        colors, color_values = self._get_color_and_order(data_frame, color_column, color_order, categorical_columns)
        if color_column is None:
            colors = colors[0]

        self._set_categorical_axis_default_factors(vertical, factors)
        self._set_categorical_axis_default_range(vertical, data_frame, numeric_column)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



