You are here: Rasters > ChartGenerator

ChartGenerator

Creates a raster Line, Bar, Scatter, Histogram or Pie chart based on the values of selected attributes. This transformer features an interactive interface that allows the user to preview selected features with sample data while designing the layout of their chart. Multiple data series may be specified for plotting on the same chart and many options for chart presentation and labeling are available. This transformer replaces the deprecated WebCharter transformer.

This transformer allows for the creation of 5 different chart types: Line, Scatter, Pie, Bar and Histogram. Different chart specific options are available for each type.

Input Ports

Input data values for the chart can be specified from either attributes or, alternatively, list attributes for compatibility with the WebCharter.

When data is specified from attributes, each specified attribute defines a data series and each feature provides a value in the data series. In this mode, this transformer becomes a blocking transformer, releasing features only after all input features, or all values in the data series, have been received. Thus, the sum of all the input features produce either a single raster chart, or a one per group if Group By is enabled.

When data is specified via list attributes, each feature represents a chart and each list attribute on the feature represents a data series in the chart. In this mode, this transformer becomes non-blocking as a single feature contains all the data needed to generate the chart and one output feature is produced for each input feature. Group By settings are ignored in this mode.

Output Ports

Parameters

Transformer

Chart Settings

Legend

Axes

For all Chart Types except Pie charts, additional Axes settings can be set, such as X Axis Label and Y Axis Label.

Further there are additional settings which can be set for each axis individually. These include:

Style

Output

Data Series

The parameters available here depend on the value of the Chart Type parameter. Parameters for each Chart Type are detailed below.

Line

Scatter

Histogram

Pie

Bar

Editing Transformer Parameters

Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.

Transformer Categories

Rasters

Search FME Knowledge Center

Search for samples and information about this transformer on the FME Knowledge Center.