ChartGenerator
基于选定属性的值创建光栅线、条形图、散点图、直方图或饼图,具有交互式界面,允许用户在设计图表布局时使用示例数据预览选定要素。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.
此转换器允许创建5种不同的图表类型:直线、散点、饼图、条形图和直方图。每种类型都有不同的特定于图表的选项。
输入端口
可以从任何一个属性指定图表的输入数据值,或者,或者,列出与webcharter兼容性的属性。
从属性指定数据时,每个指定的属性定义数据系列,每个功能都在数据系列中提供值。在此模式下,该变压器成为阻塞变压器,仅在所有输入特征之后释放特征,或者已经接收到数据系列中的所有值。因此,所有输入功能的总和会产生单个栅格图表,或者如果Group By已启用。
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在此模式下忽略设置。
输出Ports
这个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.
参数
Transformer
如果theGroup By参数设置为一组属性时,将为每组生成一个光栅。请注意Group By如果使用列表属性输入,则不适用,因为每个输入功能已表示单个图表并对应于输出功能,因此不需要对输入功能进行分组。
Chart Settings
图表类型参数确定将创建的图表类型。根据此处选择的值,在“数据系列”部分下可以使用不同的图表类型特定选项。图表类型的值目前包括馅饼,Bar,Histogram,分散和线路.
此参数允许用户设置将显示在图表顶部的标题。
此选项仅在启用时启用图表类型被设置为线路,分散,或Bar. 当此选项设置为Yes,用户可以指定2个或更多数据序列,并且可以单独为每个数据序列设置数据序列参数。
传说
此选项允许生成图例并与图表一起显示。
如果绘制了单个数据系列,则传奇标签将取决于值的值图表类型参数。这个Data Attribute名称将用于Bar和Histogram图表类型和y属性将用于线路和分散图表类型。为了馅饼chart type, the unique attribute values ofData Attribute将会被使用。
如果multiple data series are plotted, the legend labels will correspond to the data series names.
注意:可以选择YesforPlot Multiple Data Series,并删除除其中一个数据系列之外。这将创建一个可以重命名的图例标签。
此参数控制图例相对于图表的位置。默认值为Auto Placement如果选择此选项时,图例将放置在最小化图表内的数据重叠的位置。“内部”选项允许放置在图表轴内,而“外部”选项将图例放在图表轴外部。
此参数设置图例标签中使用的字体。请注意,并非系统上所有可用的字体都可以与底层的图表后端一起使用。如果某个字体不受支持,它将默认为Arial。如果您选择了不支持的字体,预览还将显示警告。请注意,如果使用FME服务器,服务器上可用的字体可能与桌面上可用的字体不同。
轴
For all图表类型sexcept Pie charts, additional Axes settings can be set, such asX轴标签和Y轴标签.
沿着th设置标签e X axis.
沿着th设置标签e Y axis.
设置用于X和Y轴标签的字体。
这个刻度/网格选项允许用户设置为时显示刻度标记滴答声或设置为轴的网格线格or turn these off when set to没有.
Sets the font used for the tick mark labels.
Further there are additional settings which can be set for each axis individually. These include:
集的最小值X / Y轴。请注意,setting this value may inadvertently crop data. If no value is specified, values will be determined so that all data is included within the limits.
设置X/Y轴的最大值。请注意,设置此值可能会无意中裁剪数据。如果未指定值,则将确定值,以便所有数据都包含在限值内。
设置沿X/Y轴的记号间距。
允许将每个轴设置为线路arorLogarithmic分别。允许创建对数和半日志图。
风格
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。
此参数设置图表的背景色。默认背景色为白色,RGB值为1.0,1.0,1.0。
输出
这个se parameters set the width and height of the output image in inches. The default image size is 2 inches by 2 inches with 300 dpi.
注: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.
This parameter sets the dots per inch (dpi) resolution of the output image. The default image size is 2 inches by 2 inches with 300 dpi.
如果RGB24选中,输出3个频段RGB栅格。如果RGBA32.is selected, a 4 band raster with RGB and alpha will be output.
数据系列
此处可用的参数取决于图表类型参数。每个参数图表类型are detailed below.
线路
指定其值将设置直线顶点的X坐标的属性。
指定其值将设置该行的顶点的Y坐标的属性。
通过选择属性或列表属性,设置与每个顶点对应的误差线长度的值。
指定每行的颜色。如果通过设置的设置在各个功能上提供颜色fme_color属性,这些值将覆盖此处设置的颜色。
在线上设置图案。可能的风格是固体,虚线,星罗棋布的,和dash-dot.
Sets the thickness of the line.
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.
选择x值是离散还是连续。
选择Y值是离散的还是连续的。
选择每个点处图标的形状。选项包括基本符号,如圆形,方形,钻石和三角形等。
控制X轴的标签的角度。选项包括水平,垂直和倾斜.
分散
指定属性,其值将设置散点图中每个点的X坐标。
Specifies the attribute whose values will set the Y coordinate of each point in the scatter plot.
通过选择属性或列表属性,设置与每个顶点对应的误差线长度的值。
Sets the color of the points per data series. If colors are provided on individual features via the setting of thefme_color属性,这些值将覆盖此处设置的颜色。
选择每个点处图标的形状。选项包括基本符号,如圆形,方形,钻石和三角形等。
Sets the size of the icon at each point.
指定是否使用基于点的基本最小二乘拟合计算的公式绘制直线。默认情况下,此选项处于禁用状态。
选择x值是离散还是连续。
选择Y值是离散的还是连续的。
Histogram
Specifies an attribute whose numeric values will be binned to create the histogram.
指定将为直方图创建的频率数。
指定直方图栏的颜色。默认颜色为蓝色。如果通过设置的设置在各个功能上提供颜色fme_color属性,这些值将覆盖此处设置的颜色。
指定是否显示符合高斯分布的直方图。默认情况下禁用此选项。
馅饼
指定其值将显示在饼图中的属性。可以通过包含计数的属性或通过变压器枚举的重复属性值来以两种方式提供值。
In the first case,Data Attributeis an attribute containing numeric count values which will determine each pie wedge size, while标签属性设置为一个属性,该属性的值包含数据属性中包含的计数的相应标签。例如,Data Attributehas values 3, 2, 1 and标签属性值为“雨”、“雪”、“雹”。
In the second case,Data Attribute可以设置为包含数字或非数字数据的属性,其中计数由唯一值的计数确定,并且值本身成为标签。标签属性是空的。例如,Data Attribute有价值的“雪”,'雪','雨','雪','冰雹','雪','雨'。
指定要用于每个饼图按钮的标签Data Attribute用于指定楔体大小。如果此参数为空,则Data Attributewill be used as a label.
Color Scheme基于颜色渐变控制楔体的颜色。如果从fme\U颜色中提取选项,则可以通过fme_color属性。fme_color可以使用特性配色机或将此属性的值设置为有效的RGB字符串(例如“1,0.5,0.3”)。
选择此选项后,将显示与每个楔块大小相对应的百分比。
When this is set to分解切片,第一个楔子将与其余部分分开,饼图将被遮蔽,从而产生伪3D效果。
Bar
Specifies an attribute whose values will be displayed in the bar graph. The values can be provided in two ways, either through attributes that contain counts, or through repeated attribute values to be enumerated by the transformer.
In the first case,Data Attribute是一个属性,包含决定每个条形图大小的数值,而数据标签属性设置为一个属性,该属性的值包含数据属性中包含的计数的相应标签。例如,Data Attributehas values 3, 2, 1 and数据标签属性值为“雨”、“雪”、“雹”。
In the second case,Data Attribute可以设置为包含数字或非数字数据的属性,其中计数由唯一值的计数确定,并且值本身成为标签。数据标签属性是空的。例如,Data Attribute有价值的“雪”,'雪','雨','雪','冰雹','雪','雨'。
指定在以下情况下用于每个条形图的标签:Data Attribute用于指定栏尺寸。如果此参数为空,则每个唯一值Data Attributewill be used as a label.
Sets the color of the bars, specified by an RGB String (“0,0,1”, for example). If colors are provided on individual features via the setting of thefme_color属性,这些值将覆盖此处设置的颜色。
控制标签的角度为杆。选项包括水平,垂直和倾斜.
Sets the chart orientation to be either水平or垂直.
当设置为Yes,data series bars are placed on top of each other as opposed to side by side. This parameter is only available whenPlot Multiple Data SeriesisYes.
设置每个栏的宽度。宽度必须在0.1和1.0之间。
编辑变压器参数
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, clickbeside the applicable parameter. For more information, seeTransformer Parameter Menu Options.
定义值
这个re are several ways to define a value for use in a Transformer. The simplest is to simply type in a value or string, which can include functions of various types such as attribute references, math and string functions, and workspace parameters. There are a number of tools and shortcuts that can assist in constructing values, generally available from the drop-down context menu adjacent to the value field.
Using the Text Editor
文本编辑器提供了一种从各种数据源(如属性、参数和常量)构造文本字符串(包括正则表达式)的方便方法,其中结果直接用于参数内部。
使用算术编辑器
算术编辑器提供了一种方便的方法来构建来自各种数据源的数学表达式,例如属性,参数和特征函数,其中结果直接在参数内使用。
条件值
根据通过或失败的一个或多个测试条件设置值。
Parameter Condition Definition Dialog
内容
Expressions and strings can include a number of functions, characters, parameters, and more.
When setting values - whether entered directly in a parameter or constructed using one of the editors - strings and expressions containing String, Math, Date/Time or FME Feature Functions will have those functions evaluated. Therefore, the names of these functions (in the form @<function_name>)不应用作文本字符串值。
对话框选项 - 表格
Transformers with table-style parameters have additional tools for populating and manipulating values.
行重新排序 |
Enabled once you have clicked on a row item. Choices include:
|
剪切、复制和粘贴 |
Enabled once you have clicked on a row item. Choices include:
剪切、复制和粘贴可以在变压器内部使用,也可以在变压器之间使用。 |
Filter |
Start typing a string, and the matrix will only display rows matching those characters. Searches all columns. This only affects the display of attributes within the transformer - it does not alter which attributes are output. |
Import |
Import populates the table with a set of new attributes read from a dataset. Specific application varies between transformers. |
重置/刷新 |
通常将表重置为其初始状态,并可能提供其他选项来删除无效项。变压器的性能各不相同。 |
注:并非所有的变压器都提供所有的工具。
FME Licensing Level
FME专业版及以上
FME Community
这个FME Community is the place for demos, how-tos, articles, FAQs, and more. Get answers to your questions, learn from other users, and suggest, vote, and comment on new features.
搜索有关此变压器的样本和信息FME Community.