Bar 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 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 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

Limit rows
Controls how many rows are shown per frequency column.
  • Automatic: Automatically sets the number of rows so that approximately 100 bars are shown. The actual number of rows is calculated based on the number of selected frequency columns.
  • Custom: Defines a specific number of rows to be shown.
  • None: No limit is placed on the number of rows shown.
Max rows
This setting is only available when “Custom” is selected for “Limit rows”. Specifies the exact number of rows to be displayed.
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.
Custom category axis label
The label used for the category axis. If the checkbox is deactivated, the label will correspond to the selected dimension. If activated and left blank, no label will be shown.
Custom frequency axis label
The label used for the frequency axis. If the checkbox is deactivated, the label will correspond to the selected aggregation method. If activated and left blank, no label will be shown.
Frequency axis limits
Choose if the axis range of the frequency axis should be calculated automatically by the charting framework or set manually. This option is only possible when Aggregation “None” is selected.
Frequency min
Numerical value that sets the frequency axis minimum.
Frequency max
Numerical value that sets the frequency axis maximum.
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.
Bar groups
When “Frequency dimensions” is selected, the bars will be grouped by the frequency dimensions and colored by the category values.
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.
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 bar chart.

Output Ports

Icon
Rendered PNG image.

Views

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