vuecore.engines.plotly.line module

Contents

vuecore.engines.plotly.line module#

vuecore.engines.plotly.line.build(data: DataFrame, config: LineConfig) Figure[source]#

Creates a Plotly line plot figure from a DataFrame and a Pydantic configuration.

This function acts as a bridge between the abstract plot definition and the Plotly Express implementation. It translates the validated LineConfig into the arguments for plotly.express.line and also forwards any additional, unvalidated keyword arguments form plotly. The resulting figure is then customized with layout and theme settings using plotly.graph_objects. (https://plotly.com/python-api-reference/generated/plotly.express.line.html).

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

  • config (LineConfig) – The validated Pydantic model with all plot configurations.

Returns:

A plotly.graph_objects.Figure object representing the line plot.

Return type:

go.Figure