Table of Contents

ParetoChart

com.ergotech.vib.graphics.javascript.charting.ParetoChart

Image Examples

ParetoChart in the graphics palette ParetoChart graphic example
ParetoChart in the graphics palette. ParetoChart graphic example.

Overview

The ParetoChart graphic is a chart graphic used to display values as bars with an optional cumulative line.

ParetoChart combines bar-style comparison with line-style cumulative behavior.

This makes it useful for showing which categories contribute the most to a total and how the cumulative value changes across the chart.

Common Uses

Input Behavior

ParetoChart can receive input through valueInput or through individual chart input ports, depending on the Use2DInput setting.

When Use2DInput is checked, ParetoChart uses valueInput for array-style or two-dimensional chart data.

When Use2DInput is unchecked, ParetoChart uses individual input ports such as `bar_0` and `line_0`.

The input can come from a data source, Constant, BroadcastServer, or another logic component.

For full chart behavior, ParetoChart works best with table-style or array-style data sources.

Common test data sources include:

TwoDimensionalDataSource is useful for testing category values, bar values, cumulative line values, timestamps, and multiple data columns.

ArrayDataSource can be used for simpler ParetoChart testing.

Output Behavior

ParetoChart is used as a display graphic.

ParetoChart does not provide a default user-input output workflow.

ParetoChart-Specific Behavior

ParetoChart displays bar values with an optional cumulative line.

ParetoChart-specific settings include:

Logic Ports

The visible Logic Editor ports depend on the Use2DInput setting.

When Use2DInput is checked, ParetoChart uses this port:

Use valueInput with TwoDimensionalDataSource or ArrayDataSource when the chart should receive array-style or two-dimensional chart data through one connection.

When Use2DInput is unchecked, ParetoChart uses individual input ports such as:

The available input ports depend on the chart configuration and the configured series.

Use individual input ports when the bar series and cumulative line series should be updated from separate scalar data sources.

Series Configuration

ParetoChart uses the Series property to define the bar series and cumulative line series displayed on the chart.

The Series editor includes a live preview and separate tabs for:

The Bar tab controls how the bar series appears.

The Cumulative Line tab controls how the cumulative line series appears.

Adding or Editing a Series

To edit the ParetoChart series:

  1. Select the ParetoChart graphic in the Design Editor.
  2. In the Basic properties, open the Series property editor.
  3. Select the Bar tab or Cumulative Line tab.
  4. Configure the selected series.
  5. Set the appearance, layout, axis assignment, and animation settings.
  6. Click OK to save the series settings.

ParetoChart Series editor

ParetoChart Series editor with Bar and Cumulative Line tabs.

Bar Series Settings

The Bar tab includes these sections:

The Appearance section includes:

The Layout section includes:

The Axis section includes:

The Animation section includes:

Cumulative Line Settings

The Cumulative Line tab configures the cumulative line displayed with the bars.

The cumulative line can be used to show the cumulative total or cumulative percentage across the chart.

When CumulativeAsPercent is enabled, the cumulative line is displayed as a percentage.

ParetoChart Cumulative Line editor

ParetoChart Cumulative Line editor with preview, appearance, symbol, axis, and animation settings.

The Cumulative Line tab includes these sections:

The Appearance section includes:

The Symbols section includes:

The Axis section includes:

The Animation section includes:

X-Axis Configuration

ParetoChart uses the XAxis property to configure the x-axis.

The XAxis editor includes grouped settings for type, range, position, appearance, and name.

ParetoChart XAxis editor

ParetoChart XAxis editor.

X-Axis Settings

The XAxis editor includes these sections:

The Type section includes:

The Range section includes:

The Position section includes:

The Appearance section includes:

The Name section includes:

Y-Axis Configuration

ParetoChart uses the YAxis property to configure the y-axis.

The YAxis editor includes grouped settings for type, range, position, appearance, and name.

ParetoChart can use multiple y-axes. For example, one y-axis can be used for bar values and another y-axis can be used for the cumulative line.

ParetoChart YAxis editor

ParetoChart YAxis editor.

Y-Axis Settings

The YAxis editor includes these sections:

The Type section includes:

The Range section includes:

The Position section includes:

The Appearance section includes:

The Name section includes:

Multiple Series Behavior

ParetoChart combines a bar series and a cumulative line series.

For example:

Bar values        -> bar series
Cumulative values -> cumulative line series

When Use2DInput is checked, the chart can receive chart data through valueInput.

When Use2DInput is unchecked, the bar and line series can be updated separately through individual ports such as `bar_0` and `line_0`.

Two-Dimensional Data Behavior

TwoDimensionalDataSource can be used for ParetoChart testing.

With timestamp behavior enabled on the data source, the chart can display time-based data.

With timestamp behavior disabled, the first data column can be used as the x-axis, and additional columns can be used as chart series data.

Use TwoDimensionalDataSource with Use2DInput checked and connected to valueInput for full chart data through one connection.

Array Data Behavior

ArrayDataSource can be used for simpler ParetoChart testing.

Array data is useful when only a basic set of values needs to be displayed.

Use ArrayDataSource with Use2DInput checked and connected to valueInput.

For full x/y behavior, timestamp behavior, bar and cumulative line behavior, or multiple data columns, use TwoDimensionalDataSource.

Individual Inputs

When Use2DInput is unchecked, ParetoChart uses individual input ports such as `bar_0` and `line_0`.

These ports allow scalar data sources to update the bar series and cumulative line series separately.

For example:

SineServer -> bar_0
Constant   -> line_0

This mode is useful when the bar series and cumulative line should be updated from separate sources.

Reference Lines

ParetoChart includes optional reference line properties:

These properties are used for chart reference lines such as center, lower control limit, and upper control limit lines.

Reference line settings are chart configuration values and should be edited through the chart property controls.

Tooltip Behavior

The UseTooltip property controls whether ParetoChart displays tooltip information when the user hovers over the chart.

Tooltips are useful for showing exact values for bars and cumulative line points.

Notes

Use ParetoChart when values should be displayed as bars with a cumulative line.

Use TwoDimensionalDataSource for full chart testing with x/y values, timestamps, and multiple columns.

Use ArrayDataSource for simpler testing.

Use Use2DInput checked with valueInput for array-style or two-dimensional chart data.

Use Use2DInput unchecked with individual inputs when the bar and cumulative line should receive separate scalar values.

Use numeric or array-style data sources with ParetoChart. String data sources are not appropriate for numeric chart input.

BarChart is better for simple bar-only comparisons. LineChart is better for line-only trend displays. ParetoChart is useful when bar values and cumulative line behavior should be shown together.