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:

Outputter

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:

ColumnReference

Required:

True

Choices:

All columns in the target DataFrame

x

A column reference to find values for the pie sections.

Type:

ColumnReference

Required:

True

Choices:

All columns in the target DataFrame

title

The title of the chart.

Type:

str

Required:

True

Output

A DataFrame is returned where it contains two columns matching the output conventions of an Outputter.

  • The data column contains the generated pie chart in PNG format.

  • The type column indicates the data type to be image/png.

Example configuration

// TODO