PieChart
- class qf_lib.plotting.charts.pie_chart.PieChart(data: QFSeries, slices_distance: float = 0.01, **plot_settings)[source]
Bases:
Chart
Pie chart util class, it can plot only QFSeries.
- Parameters:
data (QFSeries) – The series to plot in the pie chart.
slices_distance (float) – The distance between slices. Default is 0.01
plot_settings – Options to pass to the
pie
function.
Methods:
plot
([figsize])Plots the chart.
- plot(figsize: Optional[Tuple[float, float]] = None) None [source]
Plots the chart. The underlying figure stays hidden until the show() method is called.
- Parameters:
figsize (Tuple[float, float]) – The figure size to draw the chart at in inches. This is a tuple of (width, height) passed directly to matplotlib’s
plot
function. The values are expressed in inches.