图表
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.
输入端口
可以从任何一个属性指定图表的输入数据值,或者,或者,列出与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通过...分组是enabled.
当通过列表属性指定数据时,每个功能表示一个图表,并且该功能上的每个列表属性都表示图表中的数据序列。在此模式下,该变压器变得不阻止,因为单个要素包含生成图表所需的所有数据,并且为每个输入特征产生一个输出功能。通过...分组settings are ignored in this mode.
输出端口
这output of the transformer is raster charts in the form of raster geometries on the features. Each raster feature can be routed to any of FME’s supported image formats such as PNG, JPEG or TIF using the respective writers, or incorporated into a PDF or an Excel report using the PDF writer or the Excel writer along with optional formatting or raster manipulation transformers.
参数
变压器
如果是通过...分组参数设置为一组属性,将生成每组一个栅格。注意通过...分组如果使用列表属性输入,由于每个输入功能已经表示单个图表并对应于输出功能,则不适用,因此不需要进行分组输入功能。
图表设置
这chart type parameter determines the type of chart that will be created, e.g. Pie, Bar, etc. Depending on the value chosen here, different chart-type-specific options will be available under the Data Series section. Values for chart type currently include馅饼那酒吧那Histogram那分散和线。
此参数允许用户设置将显示在图表顶部的标题。
此选项仅在启用时启用图表类型是set to线那分散那或者酒吧。此选项设置为Yes,用户可以指定2个或更多数据序列,并且可以单独为每个数据序列设置数据序列参数。
Legend
此选项允许使用图表生成并显示图例。
如果绘制了单个数据系列,则传奇标签将取决于值的值图表类型范围。这Data Attribute名称将用于酒吧和Histogram图表类型和Y Attribute将被用作线和分散chart types. For the馅饼图表类型,唯一的属性值Data Attribute将会被使用。
如果multiple data series are plotted, the legend labels will correspond to the data series names.
Note: It is possible to chooseYes为了绘制多个数据系列,并删除除其中一个数据系列之外。这将创建一个可以重命名的图例标签。
此参数控制图例相对于图表的位置。默认值是自动安置如果选择此选项时,图例将放置在最小化图表内的数据重叠的位置。“内部”选项允许放置在图表轴内,而“外部”选项将图例放在图表轴外部。
This parameter sets the font used in the legend labels. Note that not all fonts available on your system will work with the underlying charting backend. If a certain font is not supported, it will be defaulted to Arial. The preview will also display a warning if you select an unsupported font. Note that if using FME Server, the fonts available on your server may be different than those available on your desktop.
Axes
For all图表类型除饼图外,可以设置其他轴设置,例如x轴标签和Y Axis Label。
Sets the label along the X axis.
Sets the label along the Y axis.
Sets the font used for the X and Y Axis Labels.
这蜱/网格选项允许用户设置为时显示刻度标记Ticks或者gridlines along the axes when set toGrid或者turn these off when set toNone。
设置用于刻度标记标签的字体。
Further there are additional settings which can be set for each axis individually. These include:
设置x / y轴的最小值。请注意,设置此值可能无意中裁剪数据。如果没有指定值,则将确定值,以便所有数据都包含在限制范围内。
设置x / y轴的最大值。请注意,设置此值可能无意中裁剪数据。如果没有指定值,则将确定值,以便所有数据都包含在限制范围内。
Sets the spacing between ticks along the X/Y axis.
允许每个轴设置为线性或者对数分别地。允许创建对数和半日志图。
风格
This parameter sets the font used in the title. Note that not all fonts available on your system will work with the underlying charting backend. If a certain font is not supported it will be defaulted to Arial. The preview will also display a warning if you select an unsupported font. Note that if using FME Server, the fonts available on your server may be different than those available on your desktop.
此参数设置轴上使用的图表级线宽和饼图中的饼图边框。默认线宽设置为0.5。
This parameter sets the background color of the chart. The default background color is white, with an RGB value of 1.0,1.0,1.0.
输出
这些参数将输出图像的宽度和高度以英寸为单位。默认图像大小为2英寸,乘2英寸,300 dpi。
Note: Issues may occur if the output image size has a large discrepancy in width and height. As the preview is always a fixed maximum width or height, this ratio is capped at 1:5 to avoid rendering issues. If issues are seen at runtime, try adjusting the size, or making the width and height closer in value.
此参数设置输出图像的每英寸(DPI)分辨率的点。默认图像大小为2英寸,乘2英寸,300 dpi。
如果RGB24选中,输出3个频段RGB栅格。如果RGBA32.选择,将输出具有RGB和Alpha的4个频带光栅。
数据系列
此处可用的参数取决于图表类型范围。每个参数图表类型如下所述。
线
指定其值将设置该行的顶点的x坐标的属性。
指定其值将设置该行的顶点的Y坐标的属性。
通过选择属性或列表属性设置每个顶点上的误差栏长度的常量值,或者通过选择属性或列表属性对应于每个顶点的值。
Specifies the color of each line.
在线上设置图案。可能的风格是Solid那Dashed那点缀, 和dash-dot。
设置线的厚度。
Selects whether the area below the line will be filled in with a semitransparent pattern the same color as the line. This option is turned off by default.
分散
Specifies the attribute whose values will set the X coordinate of each point in the scatter plot.
Specifies the attribute whose values will set the Y coordinate of each point in the scatter plot.
通过选择属性或列表属性设置每个顶点上的误差栏长度的常量值,或者通过选择属性或列表属性对应于每个顶点的值。
设置每个数据系列点的颜色。如果通过FME_Color属性的设置在各个功能上提供颜色,则这些值将覆盖此处设置的颜色。
Selects the shape of the icon at each point. Options include basic symbols such as circle, square, diamond and triangle.
Sets the size of the icon at each point.
Specifies whether to plot a line with the equation calculated based on a basic least squares fit of the points. This option is off by default.
Histogram
指定其数值将被收集以创建直方图的属性。
指定将为直方图创建的频率数。
指定直方图栏的颜色。默认颜色为蓝色。
Specifies whether a line fitting the histogram to a Gaussian will be shown. This option is disabled by default.
馅饼
指定其值将显示在饼图中的属性。可以通过包含计数的属性或通过变压器枚举的重复属性值来以两种方式提供值。
In the first case,Data Attribute是an attribute containing numeric count values which will determine each pie wedge size, whileLabel Attribute设置为属性,其值包含数据属性中包含的计数的各个标签。例如。,Data Attribute有值3,2,1和Label Attributehas values ‘Rain’, ‘Snow’, ‘Hail’.
In the second case,Data Attribute可以设置为包含数字或非数字数据的属性,其中计数是根据唯一值的计数确定的,并且值本身成为标签。Label Attribute是left empty. E.g.,Data Attribute有价值的“雪”,'雪','雨','雪','冰雹','雪','雨'。
Specifies the labels to be used for each pie wedge whenData Attribute用于指定楔形大小。如果此参数为空,则每个唯一值Data Attributewill be used as a label.
配色方案控制楔形基于颜色的颜色ramp. If theTake from fme_color选择选项,可以通过以下方式提供各个楔形的颜色值FME_COLOR.属性。FME_COLOR.可以通过使用来设置FeatureColorsetter.变换器或通过将此属性的值设置为有效的RGB字符串。(“1,0.5,0.3”)。
When this option is selected the percentage corresponding to the size of each wedge will be displayed.
什么时候设置为Explode Slice,第一个楔子将与其余部分分开,饼图将被遮蔽,从而产生伪3D效果。
酒吧
指定将在条形图中显示其值的属性。可以通过包含计数的属性或通过变压器枚举的重复属性值来以两种方式提供值。
In the first case,Data Attribute是an attribute containing numeric count values which will determine each bar size, whileLabel Attribute设置为属性,其值包含数据属性中包含的计数的各个标签。例如。,Data Attribute有值3,2,1和Label Attributehas values ‘Rain’, ‘Snow’, ‘Hail’.
In the second case,Data Attribute可以设置为包含数字或非数字数据的属性,其中计数是根据唯一值的计数确定的,并且值本身成为标签。Label Attribute是left empty. E.g.,Data Attribute有价值的“雪”,'雪','雨','雪','冰雹','雪','雨'。
指定用于每个栏的标签Data Attribute用于指定栏尺寸。如果此参数为空,则每个唯一值Data Attributewill be used as a label.
设置由RGB字符串指定的栏的颜色,例如,0.0,1。
Controls the angle of the labels for the bars. Options include水平的那Vertical和倾斜。
Sets the chart orientation to be either水平的或者Vertical。
When set toYes,数据系列条彼此顶部放在顶部,而不是并排相对。此参数仅在绘制多个数据系列是Yes。
Editing Transformer Parameters
使用一组菜单选项,变压器参数s 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除适用的参数旁边。有关更多信息,请参阅变压器Parameter Menu Options。
变压器Categories
Search FME Knowledge Center
搜索有关此变压器的样本和信息FME知识中心。