Pie Chart

The view can be accessed either via the “Open view” action on the executed node or on KNIME Hub.
In the node configuration, you can choose the aggregation method and enable certain controls, which are then available in the view. This includes the ability to choose different columns for categories and frequencies or the possibility to set a title. The configuration also offers a preview of the view, which should help to get the pie chart in the desired shape quickly. Since missing values as well as NaN (not a number) or infinite values cannot be displayed in the view, they will be omitted.

Interactivity between multiple views is currently only possible for views coming from the KNIME Views extension.

Options

Aggregate small categories
When checked, the slices whose percentage lies below a specified threshold are aggregated to a separate slice.
Threshold
Slices with a percentage below this threshold are aggregated to a separate slice.
Category dimension
Select the column that contains the category values. Note: Missing values are treated as separate category.
Frequency dimension
Select the column that contains the frequency values. Note: Missing values in the frequency column will be ignored with a corresponding warning message. If, after aggregation, some categories contain only missing values, they will be excluded from the view and a warning message will be raised.
Aggregation
Select the aggregation method used on the selected frequency column. In case of “None” every row of the table is treated as a separate category. Note that in this case duplicate categories can exist. In case of “Occurrence Count” the occurrence of the unique values of the selected category column is determined.
Title
The title of the graph shown above the generated image. If left blank, no title will be shown.
Size
Size of the pie chart relative to the size of the frame.
Donut chart
If checked, the chart will be displayed as a donut chart.
Hole size
Size of the hole relative to the size of the pie chart.
Sort categories by
Select the rule by which the pie slices should be sorted. If a slice of aggregated small categories is displayed, it is excluded from this sorting as it is always the last segment.
Show labels
When checked, the labels of the pie slices are shown.
Label content
Select what is shown by the labels of the pie slices.
Label value format
Select how values should be formatted inside the label.
Label position
Select where the labels of the slices should be positioned.
Display legend
When checked, the chart’s legend is displayed.
Label for aggregated categories
The label of the slice resulting from aggregating small categories below the specified threshold.
Enable image download
When checked, an image of the chart can be downloaded by clicking the image download button in the view.
Show tooltip
When checked, hovering over a pie chart segment will show information about the data.
Tooltip value format
Select how values should be formatted inside the tooltip.
Selection
“Show” makes this view receive notifications about changes of the selection. “Edit” also allows you to change the selection and propagate any changes you make here to other views that show the selection.
Enable animation
When checked, the animation of the graph is active.
Generate image
If checked, adds an image output port and, upon execution, generates a PNG image which is made available via this port.
Width
The width of the generated image (in pixels).
Height
The height of the generated image (in pixels).

Input Ports

Icon
Data table containing the categories and values to be plotted in a pie chart.

Output Ports

Icon
Rendered PNG image.

Views

Pie Chart
A pie chart visualization of the input data.

Workflows

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.