portfolio_toolkit.plot.pie_chart_data module

class portfolio_toolkit.plot.pie_chart_data.PieChartData(title: str, grid: bool = True, figsize: tuple = (10, 6), labels: ~typing.List[str] = <factory>, values: ~typing.List[float] = <factory>, colors: ~typing.List[str] | None = None, autopct: str = '%1.1f%%', startangle: float = 90, explode: ~typing.List[float] | None = None)[source]

Bases: PlotBase

Data structure for pie charts

labels: List[str]
values: List[float]
colors: List[str] | None = None
autopct: str = '%1.1f%%'
startangle: float = 90
explode: List[float] | 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), labels: ~typing.List[str] = <factory>, values: ~typing.List[float] = <factory>, colors: ~typing.List[str] | None = None, autopct: str = '%1.1f%%', startangle: float = 90, explode: ~typing.List[float] | None = None) None
title: str