portfolio_toolkit.plot.line_chart_data module

class portfolio_toolkit.plot.line_chart_data.LineChartData(title: str, grid: bool = True, figsize: tuple = (10, 6), x_data: ~typing.List[~typing.Any] = <factory>, y_data: ~typing.List[~typing.List[float]] = <factory>, labels: ~typing.List[str] = <factory>, xlabel: str = 'X Axis', ylabel: str = 'Y Axis', colors: ~typing.List[str] | None = None, linestyles: ~typing.List[str] | None = None, markers: ~typing.List[str] | None = None)[source]

Bases: PlotBase

Data structure for line charts

x_data: List[Any]
y_data: List[List[float]]
labels: List[str]
xlabel: str = 'X Axis'
ylabel: str = 'Y Axis'
colors: List[str] | None = None
linestyles: List[str] | None = None
markers: List[str] | None = None
get_plot_type() str[source]

Return the type of plot

validate() bool[source]

Validate that data is consistent

__init__(title: str, grid: bool = True, figsize: tuple = (10, 6), x_data: ~typing.List[~typing.Any] = <factory>, y_data: ~typing.List[~typing.List[float]] = <factory>, labels: ~typing.List[str] = <factory>, xlabel: str = 'X Axis', ylabel: str = 'Y Axis', colors: ~typing.List[str] | None = None, linestyles: ~typing.List[str] | None = None, markers: ~typing.List[str] | None = None) None
title: str