vuecore.schemas.basic.box module#
- class vuecore.schemas.basic.box.BoxConfig(*, x: str | None = None, y: str | None = None, color: str | None = None, hover_name: str | None = None, hover_data: List[str] = [], facet_row: str | None = None, facet_col: str | None = None, labels: Dict[str, str] | None = None, color_discrete_map: Dict[str, str] | None = None, category_orders: Dict[str, List[str]] | None = None, log_x: bool = False, log_y: bool = False, range_x: List[float] | None = None, range_y: List[float] | None = None, title: str = 'Plotly Plot', x_title: str | None = None, y_title: str | None = None, subtitle: str | None = None, template: str = 'plotly_white', width: int | None = 800, height: int | None = 600, orientation: str | None = None, boxmode: str = 'group', notched: bool = False, points: str = 'outliers', **extra_data: Any)[source]#
Bases:
PlotlyBaseConfig
Pydantic model for validating and managing box plot configurations, which extends PlotlyBaseConfig.
This model serves as a curated API for the most relevant parameters for box plots, closely aligned with the plotly.express.box API (https://plotly.com/python-api-reference/generated/plotly.express.box.html).
It includes key parameters for data mapping, styling, and layout. It ensures that user-provided configurations are type-safe and adhere to the expected structure. The plotting function handles parameters defined here, and also accepts additional Plotly keyword arguments, forwarding them to the appropriate plotly.express.box or plotly.graph_objects.Figure call.
- attribute orientation: str | None = None#
Orientation of the box plots (‘v’ for vertical, ‘h’ for horizontal).
- attribute points: str = 'outliers'#
Method to display sample points (‘outliers’, ‘all’, ‘suspectedoutliers’, False).
- validator validate_x_or_y_provided » all fields#
Ensure at least one of x or y is provided for the plot.
- attribute labels: Dict[str, str] | None = None#
Dictionary to override column names for titles, legends, etc.
- attribute color_discrete_map: Dict[str, str] | None = None#
Specific color mappings for values in the color column.