Pie Chart (Labs)

A pie chart visualization node. The view can be accessed either via the “interactive view” action on the executed node or on KNIME WebPortal.
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 fast in the desired shape. Since missing values as well as NaN (not a number) or infinite values cannot be displayed in the view, they will be omitted.

Note, this node is currently under development. Future versions of the node might have improved or changed functionality. Interactivity between multiple views is currently only possible with views also coming from this labs extension.

Options

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.
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.
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.
Publish Selection
When checked, the view notifies other interactive views when the user changes the selection in the current view.
Subscribe to Selection
When checked, the view reacts on notifications from other interactive views that the selection has been changed.
Enable animation
When checked, the animation of the graph is active.

Input Ports

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

Output Ports

This node has no output ports

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

Pie Chart (Labs)
A pie chart visualization of the input data.

Workflows

  • No workflows found

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.