Bar Chart (Labs)

A bar 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 the category and frequency axis or the possibility to set a title. The configuration also offers a preview of the view, which should help to get the bar 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 view 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.
Aggregation
Select the aggregation method used on the selected frequency columns. 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 number of rows that share a given category is determined.
Frequency dimensions
Select the columns with frequencies for which you wish to plot bars. Note: Missing values in the frequency column will be ignored with a corresponding warning message. If, after aggregation, some bars or entire categories contain only missing values, they will be excluded from the view and a warning message will be raised.
Title
The title of the graph shown above the generated image. If left blank, no title will be shown.
Category axis label
The label used for the category axis. If left blank, no label will be shown.
Frequency axis label
The label used for the frequency axis. If left blank, no label will be shown.
Orientation
When “Horizontal” is selected, the bar chart is plotted horizontally. By default bar chart is plotted with vertical bars.
Arrange bars
When “Stacked” is selected, the bars of the same category are stacked on top of each other.
Display legend
When checked, the chart’s legend is displayed.
Show bar values
When checked, the values will be shown on top of each bar.
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 bar will show information about the data.
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 bar chart.

Output Ports

This node has no output ports

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

Bar Chart (Labs)
A bar 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.