Pie Chart
A Callable for generating a pie chart.
Definition
- class controller.callable.outputter.PieChart(self, label_names: ColumnReference, x: ColumnReference, title: str)
- Callable name:
line_chart- Callable type:
- Parameters:
label_names – A column reference to find names of each pie section.
x (ColumnReference) – A column reference to find values for the pie sections.
title (str) – The title of the chart.
Parameters
- label_names
A column reference to find names of each pie section.
- Type:
- Required:
True
- Choices:
All columns in the target DataFrame
- x
A column reference to find values for the pie sections.
- Type:
- Required:
True
- Choices:
All columns in the target DataFrame
Output
A DataFrame is returned where it contains two columns matching the output conventions of an Outputter.
The
datacolumn contains the generated pie chart in PNG format.The
typecolumn indicates the data type to beimage/png.
Example configuration
// TODO