XML Reference

Table of Contents

XML Elements

XML Attributes

XML Attribute Types


XML elements

[toc] [elements] [attributes] [types]


<annotation/>

<annotation
[href="MessageFormat"] Specifies the action of an annotation.
>
[<text/>]
{<attr/>}
</annotation>

Element description

This tag is used for annotating areas in the resulting chart. For example, bars in a bar chart can have hyperlinks that direct the user to another page.

Most attributes for annotation are given with attr elements. However, there exists a special attribute for the action of an annotation and a special element for the description of an annotation.

With annotation elements, it is guaranteed that the action of an annotation is defined with href attribute. Likewise, it is guaranteed that the description of an annotation is defined with text element. The output format of the chart does not have any effect on the guarantees. For example, for charts used in HTML pages and for charts in SVG format, the action of an annotation is defined with href attribute.

If multiple annotation elements exist within the same parent element, the attributes defined within annotation elements will be combined. If the same attribute is defined in many annotation elements within the same parent element, the definition within the last annotation element is used.

The annotation tag is just one way to obtain annotation links for data values. The tag is well suited for giving a common annotation link for many data values. When each data value should have a unique annotation link, the column element with url value in type attribute could be used. Another way is to use annotation possibility given in PaintValue attribute type for data values.

Appears in

Attribute Detail

<annotation href="MessageFormat"/>
Tag specific description

Specifies the action of an annotation.

General description

See href description.

Defaults
<annotation href="MessageFormat"/>
NULL

[toc] [elements] [attributes] [types]


<area/>

<area
[backColor="PaintValue"] Background borderline color.
[backPaint="PaintValue"] Background fill paint.
[backStroke="Stroke"] Background borderline width and style.
[color="PaintValue"] Default area generic color.
[paint="PaintValue"] Default area generic paint.
[stroke="Stroke"] Default area generic line width and style.
>
</area>

Element description

This tag defines chart background area series attributes which control the appearance of chart background area.

Chart background area extends the whole area over which the chart is drawn upon. The background area is surrounded with a borderline, and filled with background paint. The background area will be partially painted over with shapes and forms that make the actual chart, but the areas that remain untouched will show the background paint. The background will also show through any partially transparent chart components. The background itself may also be partially and totally transparent, in which case any graphics placed beneath the chart in the final page layout will also show through.

Chart background area borderline will always surround the whole chart area, and all chart component will always be strictly contained within the borderline. The borderline may also be infinitely thin (stroke width zero), in which case the chart will appear to have no borderline.

Examples

<area paint="red-vertical" color="black" stroke="2"/>

Appears in

Attribute Detail

<area backColor="PaintValue"/>
Tag specific description

Background borderline color. The borderline surrounds the entire chart image outer edge, but it will be visible and painted with this color only if the borderline stroke width is also not zero.

General description

See backColor description.

Defaults
<area backColor="PaintValue"/>
<area color="PaintValue"/>
black
Footnotes
NoteAffectsDescription
unsupported
table

Table chart ignores this setting.

<area backPaint="PaintValue"/>
Tag specific description

Background fill paint. The background area covers the entire chart image, and it will be filled with this paint before anything else is drawn on it. Chart visualizations will then be drawn on top of the backgound area, leaving parts of it visible, and obscuring the rest either partially or completely.

General description

See backPaint description.

Defaults
<area backPaint="PaintValue"/>
<area paint="PaintValue"/>
white
<area backStroke="Stroke"/>
Tag specific description

Background borderline width and style. A zero borderline width (the default) indicates no borderline. Anything else will make the borderline visible, and painted with the borderline color.

Borderline width will eat away space from the actual chart visualizations, up to an point where an extreamly wide borderline fills the entire chart image area.

General description

See backStroke description.

Defaults
<area backStroke="Stroke"/>
<area stroke="Stroke"/>
0
Footnotes
NoteAffectsDescription
unsupported
table

Table chart ignores this setting.

exception
area3d
bar3d
column3d
line3d

Only width setting is supported.

<area color="PaintValue"/>
Tag specific description

Default area generic color. If set, it will be used as the default color for all area specific color settings within this area.

Please note that areas do currently support only one color attribute, backColor. This may change in the future.

General description

See color description.

Defaults
<area color="PaintValue"/>
black
<area paint="PaintValue"/>
Tag specific description

Default area generic paint. If set, it will be used as the default paint for all area specific paint settings within this area.

Please note that areas do currently support only one paint attribute, backPaint. This may change in the future.

General description

See paint description.

Defaults
<area paint="PaintValue"/>
white
<area stroke="Stroke"/>
Tag specific description

Default area generic line width and style. If set, it will be used as the default width and style for all area specific line settings within this area.

Please note that areas do currently support only one line width and style attribute, backStroke. This may change in the future.

General description

See stroke description.

Defaults
<area stroke="Stroke"/>
0
Footnotes
NoteAffectsDescription
exception
area3d
bar3d
column3d
line3d

Only width setting is supported.

[toc] [elements] [attributes] [types]


<attr/>

<attr
name="Text" Name of the attribute.
[value="Text"] Value of the attribute.
>
</attr>

Element description

Attribute for annotation is given with this element. In theory, attribute name and value are free for the user to choose. Given attribute name and value are passed to the resulting chart as they were given after possible macro expansion.

Depending from the output format of the chart, there might be some attribute names that are read but later ignored. For example, with charts that are used in HTML pages, the following two attribute names will be ignored:

The reason for ignoring these attribute names is the fact that areas for annotation are known only after creating the chart. After the chart is created, the values for these attributes are created automatically.

With charts that are created with SVG format, the following two attribute names will be ignored:

The reason for ignoring these attributes is the guaranteeing of using href attribute for defining the action of an annotation and using text element for defining the description of an annotation. Due to these guarantees, the following attributes will be ignored for all output formats of a chart:

Appears in

Attribute Detail

<attr name="Text"/>
Tag specific description

Name of the attribute.

General description

See name description.

Defaults
<attr name="Text"/>
NULL
<attr value="Text"/>
Tag specific description

Value of the attribute.

General description

See value description.

Defaults
<attr value="Text"/>
NULL

[toc] [elements] [attributes] [types]


<attributes/>

<attributes
[chartType="ChartType"] Chart type.
[id="Id"] Attribute set identity.
[locale="Locale"] String formatting and parsing locale.
[multiseriesMode="Boolean"] Determines the behaviour of palette colors and paints, and legend rendering.
[namespace="Text"] Property file for determining areas.
[urlContext="Url"] Base URL address.
>
[<image/>]
[<lighting/>]
[<legend/>]
[<area/>]
[<plot/>]
{<axes/>}
</attributes>

Element description

This tag and it's children define all aspects of chart visual appearance and style. This tag is one of the two main chart control tags, the other being the <data/> tag which controls all chart input data.

Attribute tags may appear alone or together with other attribute tags which each defining a set of visual appearance and style settings. If more than one attribute tags are defined together, each should be given an unique id attribute value so that the individual sets can be told apart, and referenced at individually. If an attribute tag appears alone, no id is necessary, as all functions that need chart attributes will default to the first attribute set available.

Besides visual appearance, chart attributes define also a set of contextual attributes that affect how attribute and data values are intepreted. Please see locale and urlContext for more information.

Examples

<attributes id="style1">
   <area color="black" paint="red-vertical" stroke="dot-1"/>
</attributes>

Appears in

Attribute Detail

<attributes chartType="ChartType"/>
Tag specific description

Chart type. If the chart type uses sub-charts, they are defined by enclosed <axes/> tags, each with it's own sub-chart type attribute. If the selected chart type does not use sub-charts, the enclosed tags are expected to define only one <axes/> tag, without any sub-chart type attribute.

General description

See chartType description.

Defaults
<attributes chartType="ChartType"/>
NULL
Footnotes
NoteAffectsDescription
note
combo

At the moment, the only chart type to support sub-charts is the combo chart.

<attributes id="Id"/>
Tag specific description

Attribute set identity. If defined, applications may explicitly refer to and select which attribute set to use when there are several different sets available. If there is any ambiguity of which set to use, the set that gets selected depends on the application in question, although the most typical and recommended behaviour is always to select the first available set.

If there is only one attribute set defined in given context, there is no ambiguity about which set should be used. In these cases it is not strictly necessary to give the sets any identities. However, it would be good coding practice to define identites even in these cases, in case more attribute sets are defined in the same contexts in the future.

General description

See id description.

Defaults
<attributes id="Id"/>
NULL
<attributes locale="Locale"/>
Tag specific description

String formatting and parsing locale. This locale will be used when formatting and parsing attribute and data value strings, unless explicitly set otherwise for some particular item.

General description

See locale description.

Defaults
<attributes locale="Locale"/>
runtime environment default locale
Footnotes
NoteAffectsDescription
note

Currently locale is not supported. The system default locale is used.

<attributes multiseriesMode="Boolean"/>
Tag specific description

Determines the behaviour of palette colors and paints, and legend rendering. Given multiseries mode affects the whole chart.

General description

See multiseriesMode description.

Defaults
<attributes multiseriesMode="Boolean"/>
depends from the count of value series
Footnotes
NoteAffectsDescription
unsupported
table

Table chart ignores this attribute.

unsupported
legend

Scale legends ignore this attribute.

<attributes namespace="Text"/>
Tag specific description

Property file for determining areas.

General description

See namespace description.

Defaults
<attributes namespace="Text"/>
NULL
Footnotes
NoteAffectsDescription
supported
map

Only map chart supports namespace attribute. Requires Thematic Mapping Extension.

<attributes urlContext="Url"/>
Tag specific description

Base URL address. If defined, relative URL addresses will be evaluated against given base URL address instead of a default one.

General description

See urlContext description.

Defaults
<attributes urlContext="Url"/>
use case specific value

[toc] [elements] [attributes] [types]


<axes/>

<axes
[axisColor="PaintValue"] Axis line default color.
[axisStroke="Stroke"] Axis line default width and style.
[backColor="PaintValue"] Axis borderline default color.
[backPaint="PaintValue"] Default axis background fill paint.
[backStroke="Stroke"] Axis borderline default width and style.
[color="PaintValue"] Axis default color.
[dataGroup="Id"] Source data group.
[font="Font"] Axis default font.
[gap="Percentage"] Default relative distance between uniformly laid elements.
[gridColor="PaintValue"] Grid line default color.
[gridLines="Boolean"] Controls if axis grid lines should be drawn by default or not.
[gridStroke="Stroke"] Grid line default width and style.
[labelAlignment="Alignment"] Axis label default alignment.
[labelColor="PaintValue"] Axis label default color.
[labelFont="Font"] Axis label default font.
[labelFormat="DataFormat"] Axis value label default format.
[labelOffset="Size"] Default distance between axis line and labels.
[labelPaint="PaintValue"] Axis label background paint.
[labelRotation="Degrees"] Axis label default orientation.
[markerOffset="Size"] Default distance between axis and marker labels.
[opposite="Boolean"] Axis default side of the placement of labels and title.
[paint="PaintValue"] Axis default paint.
[position="Position"] Axis default position.
[reversed="Boolean"] Axis default positive growth direction.
[silent="Boolean"] Axis default omission of labels.
[stroke="Stroke"] Default axis line line width and style.
[subChartType="SubChartType"] Sub-chart type.
[ticColor="PaintValue"] Color of tic marks.
[ticStroke="Stroke"] Rendering details of tic marks.
[titleAlignment="TitleAlignment"] Defines default alignment for axis title.
[titleColor="PaintValue"] Axis title default color.
[titleFont="Font"] Defines default font for axis title.
[titleOffset="Size"] Defines default offset for axis title.
[titleRotation="Degrees"] Defines default rotation for axis title.
>
[<plot/>]
{<axis/>}
</axes>

Element description

This tag defines a coordinate axis system, made of a number of data axes (X, Y, Z, and others). Axis system attributes define how data is laid on a coordinate system, what value ranges of the data are shown, what decorations and titles are placed on each axis, and what viewing angle will be used to look at the result.

Each coordinate axis system displays data coming from a single data group. Basic charts accept data from only one such group, and hence use exactly one coordinate axis system. Combination charts combine data from several data groups, and hence use multiple coordinate axis systems.

Certain charts ignore certain coordinate axis system attributes as irrelevant. For example, pie charts use axes only to control the viewing angle from which the resulting pie will be looked at. Please see the exception notes associated with affected attributes below.

An <axes/> tag may contain a number of <axis/> children tags which define axis specific details and exceptions, and a single <plot/> tag that defines coordinate axis system specific plot area attributes. The plot tag is useful in particular with combination charts with multiple axis systems.

Appears in

Attribute Detail

<axes axisColor="PaintValue"/>
Tag specific description

Axis line default color. All axis lines in this axis group will be draw with this color, unless explicitly set otherwise for some particular axis.

General description

See axisColor description.

Defaults
<axes axisColor="PaintValue"/>
<axes color="PaintValue"/>
black
<axes axisStroke="Stroke"/>
Tag specific description

Axis line default width and style. All axis lines in this axis group will be draw with this stroke, unless explicitly set otherwise for some particular axis.

General description

See axisStroke description.

Defaults
<axes axisStroke="Stroke"/>
<axes stroke="Stroke"/>
(solid-)1
Footnotes
NoteAffectsDescription
exception
area3d
bar3d
column3d
line3d

Only width setting is supported.

<axes backColor="PaintValue"/>
Tag specific description

Axis borderline default color. Please see <axis/> tag description for more information about axis borderlines.

Individual axes may override this setting with <axis/> tag backColor attribute.

General description

See backColor description.

Defaults
<axes backColor="PaintValue"/>
<axes color="PaintValue"/>
black
Footnotes
NoteAffectsDescription
unsupported
table

Table chart ignores this setting.

<axes backPaint="PaintValue"/>
Tag specific description

Default axis background fill paint. Please see <axis/> tag description for more information about axis background.

Individual axes may override this setting with <axis/> tag backPaint attribute.

General description

See backPaint description.

Defaults
<axes backPaint="PaintValue"/>
<axes paint="PaintValue"/>
lightgray (for backPaint) | NULL (for marker pointPaint) | backPaint of plot tag (for labelPaint)
<axes backStroke="Stroke"/>
Tag specific description

Axis borderline default width and style. All axis borderlines in this axis group will be drawn with this width and stylecolor, unless explicitly set otherwise for some particular axis.

General description

See backStroke description.

Defaults
<axes backStroke="Stroke"/>
<axes stroke="Stroke"/>
(solid-)1
Footnotes
NoteAffectsDescription
unsupported
table

Table chart ignores this setting.

exception
area3d
bar3d
column3d
line3d

Only width setting is supported.

<axes color="PaintValue"/>
Tag specific description

Axis default color. If set, it will be used as the default color for all axis specific color settings within this axis group. In particular, the following color settings will use this attribute as their default value.

Each listed attribute may later be set individually, overriding this generic setting. The values may also be overridden further with axis specific settings.

General description

See color description.

Defaults
<axes color="PaintValue"/>
black
Footnotes
NoteAffectsDescription
exception
area3d
bar3d
column3d
line3d
pie
pie3d

These charts apply the given default color for axisColor only.

<axes dataGroup="Id"/>
Tag specific description

Source data group. If defined, all rendering that goes into this coordinate system will take primary data from the given data group. If this is a composite chart with multiple <axes/> tags, each may use a different different data group.

For more information about data groups, please see group and dataGroup attribute documentation.

General description

See dataGroup description.

Defaults
<axes dataGroup="Id"/>
NULL
Footnotes
NoteAffectsDescription
unimplemented
area3d
bar3d
column3d
line3d
pie3d

The current versions of 3D charts do not yet implement this feature.

<axes font="Font"/>
Tag specific description

Axis default font. If set, it will be used as the default font for all axis specific font settings within this axis group. In particular, the following font settings will gain a new default value.

Each listed attribute may later be set individually, overriding this generic setting. The values may also be overridden further with axis specific settings.

General description

See font description.

Defaults
<axes font="Font"/>
Serif-12
<axes gap="Percentage"/>
Tag specific description

Default relative distance between uniformly laid elements. If set, it will be used as the default gap for all axis in this axis coordinate system.

Individual axes may override this setting with axis gap attribute.

General description

See gap description.

Defaults
<axes gap="Percentage"/>
25
Footnotes
NoteAffectsDescription
unsupported
hex
pie
rect
scatter

These charts do not support gap attribute.

<axes gridColor="PaintValue"/>
Tag specific description

Grid line default color. All axis grid lines in this axis group will be drawn with this color, unless explicitly set otherwise for some particular axis.

General description

See gridColor description.

Defaults
<axes gridColor="PaintValue"/>
<axes color="PaintValue"/>
black
<axes gridLines="Boolean"/>
Tag specific description

Controls if axis grid lines should be drawn by default or not. Individual axes may override this setting with axis gridLines attribute.

The default is to draw the grid lines, although the exact default behaviour is chart type specific. Please also see <axis/> tag documentation for more information about axis backfaces.

General description

See gridLines description.

Defaults
<axes gridLines="Boolean"/>
true for value axes, false for others
Footnotes
NoteAffectsDescription
exception
bar

Only vertical (X -axis) grid lines are drawn by default.

exception
column

Only horizontal (Y -axis) grid lines are drawn by default.

unsupported
hex
legend
pie
pie3d
rect

These chart types do not ever draw any coordinate axes or gridlines. Instead they just ignore this setting.

<axes gridStroke="Stroke"/>
Tag specific description

Grid line default width and style. All axis grid lines in this axis group will be drawn with this width and style, unless explicitly set otherwise for some particular axis.

General description

See gridStroke description.

Defaults
<axes gridStroke="Stroke"/>
<axes stroke="Stroke"/>
(solid-)1
Footnotes
NoteAffectsDescription
exception
area3d
bar3d
column3d
line3d

Only width setting is supported.

<axes labelAlignment="Alignment"/>
Tag specific description

Axis label default alignment. All axis labels in this axis group will be aligned like this, unless explicitly set otherwise for some particular axis.

General description

See labelAlignment description.

Defaults
<axes labelAlignment="Alignment"/>
center
Footnotes
NoteAffectsDescription
exception
pie
pie3d

Only 'inside' and 'outside' values are implemented for pie charts.

unsupported
area3d
bar3d
column3d
line3d

These charts do not support alignment attribute.

<axes labelColor="PaintValue"/>
Tag specific description

Axis label default color. All axis labels and markers in this axis group will be drawn with this color, unless explicitly set otherwise for some particular axis.

General description

See labelColor description.

Defaults
<axes labelColor="PaintValue"/>
<axes color="PaintValue"/>
black
<axes labelFont="Font"/>
Tag specific description

Axis label default font. All axis labels and markers in this axis group will be rendered with this font, unless explicitly set otherwise for some particular axis or marker.

General description

See labelFont description.

Defaults
<axes labelFont="Font"/>
<axes font="Font"/>
Serif-12
<axes labelFormat="DataFormat"/>
Tag specific description

Axis value label default format. All axis value labels in this axis group will be formatted with this format template, unless explicitly set otherwise for some particular axis.

General description

See labelFormat description.

Defaults
<axes labelFormat="DataFormat"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
pie

Pie chart does not draw axes or labels along them and thus it ignores this setting. Instead, pie chart draws values, which are controlled with <plot/> tag valueFormat attribute.

unsupported
area3d
bar3d
column3d
hex
legend
line3d
pie3d
rect
table

These charts do not support labelFormat attribute.

<axes labelOffset="Size"/>
Tag specific description

Default distance between axis line and labels. All labels along all axes in this axis group will be placed this far from their respective axis lines, unless explicitly set otherwise for some particular axis.

General description

See labelOffset description.

Defaults
<axes labelOffset="Size"/>
25% of font size, or 3 pixels if font size is unknown
Footnotes
NoteAffectsDescription
unsupported
hex
pie
pie3d
rect

These chart types do not draw axes or labels along them, so they do just ignore this setting.

unsupported
area3d
bar3d
column3d
line3d
table

These charts do not support labelOffset attribute.

supported
legend

Only legend chart supports label offset in the legend tag. Furthermore, legend chart does not draw axes or labels along them, so label offset in axes and axis tags is ignored.

<axes labelPaint="PaintValue"/>
Tag specific description

Axis label background paint.

General description

See labelPaint description.

Defaults
<axes labelPaint="PaintValue"/>
<axes paint="PaintValue"/>
lightgray (for backPaint) | NULL (for marker pointPaint) | backPaint of plot tag (for labelPaint)
Footnotes
NoteAffectsDescription
supported
table

Only table factory supports this attribute.

exception
table

This attribute has an exceptional default path. First, default is searched normally as given in the default list. If, however, no value has been specified on the default path, the back paint of the plot tag is used. The default path of the back paint of the plot tag works normally.

<axes labelRotation="Degrees"/>
Tag specific description

Axis label default orientation. All axis labels along all axes in this axis group will be oriented to given angle, unless explicitly set otherwise for some particular axis.

Please note that axis markers are unaffected by this attribute. Instead, they have their own label rotation attribute that affects each marker separately.

General description

See labelRotation description.

Defaults
<axes labelRotation="Degrees"/>
0
Footnotes
NoteAffectsDescription
unsupported
hex
legend
pie
pie3d
rect

These chart types do not draw axes or labels along them, so they do just ignore this setting.

unsupported
area3d
bar3d
column3d
line3d

These chart types do draw axes or labels along them, but they do not support labelRotation attribute at the moment.

unsupported
table

Table chart does not support labelRotation attribute.

<axes markerOffset="Size"/>
Tag specific description

Default distance between axis and marker labels. All marker labels along all axes in this axis group will be placed this far from axis value labels, unless explicitly set otherwise for some particular axis.

General description

See markerOffset description.

Defaults
<axes markerOffset="Size"/>
0
Footnotes
NoteAffectsDescription
note

All markers in one axis have the same marker offset.

unsupported
area3d
bar3d
column3d
hex
legend
line3d
pie
pie3d
rect
table

These charts do not support markers.

<axes opposite="Boolean"/>
Tag specific description

Axis default side of the placement of labels and title. All axis in this axis group will have their side of the placement of labels and title determined with this attribute, unless explicitly set otherwise for some particular axis.

General description

See opposite description.

Defaults
<axes opposite="Boolean"/>
false
Footnotes
NoteAffectsDescription
unsupported
legend
pie
pie3d

These chart types do not draw axes and thus they ignore this setting.

unsupported
area3d
bar3d
column3d
line3d

These charts do not support opposite attribute.

<axes paint="PaintValue"/>
Tag specific description

Axis default paint. If set, it will be used as the default paint for all axis specific paint settings within this axis group. In particular, the following paint settings will use this attribute as their default value.

Each listed attribute may later be set individually, overriding this generic setting. The values may also be overridden further with axis specific settings.

General description

See paint description.

Defaults
<axes paint="PaintValue"/>
lightgray (for backPaint) | NULL (for marker pointPaint) | backPaint of plot tag (for labelPaint)
<axes position="Position"/>
Tag specific description

Axis default position. All axis in this axis group will be intersected by other axes at this position, unless explicitly set otherwise for some particular axis.

Giving a default position in the form of DataValue to all axes does not necessarily work very well. For example, if one axis represents days and another axis represents salaries, specifying the default position as 4 days does not work.

General description

See position description.

Defaults
<axes position="Position"/>
(0)
Footnotes
NoteAffectsDescription
exception
combo

Uses a fixed value of before for the attribute.

unsupported
area3d
bar3d
column3d
hex
legend
line3d
pie
pie3d
rect
table

These charts do not support position attribute on an axis (on axes, axis and marker tags.)

<axes reversed="Boolean"/>
Tag specific description

Axis default positive growth direction. All axis in this axis group will have their positive growth direction determined with this attribute, unless explicitly set otherwise for some particular axis.

General description

See reversed description.

Defaults
<axes reversed="Boolean"/>
false
Footnotes
NoteAffectsDescription
unsupported
hex
legend
pie
pie3d
rect

These chart types do not draw axes and thus they ignore this setting.

unsupported
area3d
bar3d
column3d
line3d

These charts do not support reversed attribute.

<axes silent="Boolean"/>
Tag specific description

Axis default omission of labels. All axis in this axis group will have their showing of labels determined with this attribute, unless explicitly set otherwise for some particular axis.

General description

See silent description.

Defaults
<axes silent="Boolean"/>
false
Footnotes
NoteAffectsDescription
unsupported
hex
legend
pie
pie3d
rect

These chart types do not draw axes and thus they ignore this setting.

unsupported
area3d
bar3d
column3d
line3d

These charts do not support silent attribute.

<axes stroke="Stroke"/>
Tag specific description

Default axis line line width and style. If set, it will be used as the default for all axis specific line width and style settings within this axis group. In particular, the following line width and style settings will use this attribute as their default value.

Each listed attribute may later be set individually, overriding this generic setting. The values may also be overridden further with axis specific settings.

General description

See stroke description.

Defaults
<axes stroke="Stroke"/>
(solid-)1
Footnotes
NoteAffectsDescription
exception
area3d
bar3d
column3d
line3d

Only axisStroke default value can be set using stroke.

exception
area3d
bar3d
column3d
line3d

Only width setting is supported.

<axes subChartType="SubChartType"/>
Tag specific description

Sub-chart type. Used for defining a sub-chart of this <axes/> tag for charts with sub-chart support.

General description

See subChartType description.

Defaults
<axes subChartType="SubChartType"/>
NULL
Footnotes
NoteAffectsDescription
supported
combo

This attribute is meaningfull and mandatory for charts that have can have sub-charts. One example of such charts is a combination chart. For combination charts, any number of component charts may be defined by defining an equal number of <axes> tags, and by defining the corresponding component chart types with subChartType attributes in each such tag.

<axes ticColor="PaintValue"/>
Tag specific description

Color of tic marks. The default color of the tic marks of individual axes is not necessarily the color defined with this attribute. See the ticColor attribute of <axis/> tag for information about the defaults for the color of the tic marks.

General description

See ticColor description.

Defaults
<axes ticColor="PaintValue"/>
<axes color="PaintValue"/>
black
Footnotes
NoteAffectsDescription
unsupported
area3d
bar3d
column3d
hex
legend
line3d
pie
pie3d
rect
table

These charts do not support tic marks.

<axes ticStroke="Stroke"/>
Tag specific description

Rendering details of tic marks. The default stroke of the tic marks of individual axes is not necessarily the stroke defined with this attribute. See the ticStroke attribute of <axis/> tag for information about the defaults for the stroke of the tic marks.

General description

See ticStroke description.

Defaults
<axes ticStroke="Stroke"/>
<axes stroke="Stroke"/>
(solid-)1
Footnotes
NoteAffectsDescription
unsupported
area3d
bar3d
column3d
hex
legend
line3d
pie
pie3d
rect
table

These charts do not support tic marks.

<axes titleAlignment="TitleAlignment"/>
Tag specific description

Defines default alignment for axis title. Individual axes may override this setting with <axis/> tag titleAlignment attribute.

General description

See titleAlignment description.

Defaults
<axes titleAlignment="TitleAlignment"/>
center
Footnotes
NoteAffectsDescription
unsupported
legend
pie
pie3d

These charts do not have titles for axes. Therefore, titleAlignment attribute is not supported.

unsupported
area3d
bar3d
column3d
line3d

These charts do not support titleAlignment.

<axes titleColor="PaintValue"/>
Tag specific description

Axis title default color. All axis titles in this axis group will be drawn with this color, unless explicitly set otherwise for some particular axis.

General description

See titleColor description.

Defaults
<axes titleColor="PaintValue"/>
<axes color="PaintValue"/>
black
Footnotes
NoteAffectsDescription
unsupported
legend
pie
pie3d

These charts do not draw axes and thus they ignore this setting.

<axes titleFont="Font"/>
Tag specific description

Defines default font for axis title. Individual axes may override this setting with <axis/> tag titleFont attribute.

General description

See titleFont description.

Defaults
<axes titleFont="Font"/>
<axes font="Font"/>
Serif-12
Footnotes
NoteAffectsDescription
unsupported
legend
pie
pie3d

These charts do not draw axes and thus they ignore this setting.

<axes titleOffset="Size"/>
Tag specific description

Defines default offset for axis title. Individual axes may override this setting with <axis/> tag titleOffset attribute.

Offset defines the gap between the title and axis labels.

General description

See titleOffset description.

Defaults
<axes titleOffset="Size"/>
0
Footnotes
NoteAffectsDescription
unsupported
legend
pie
pie3d

These charts do not have titles for axes. Therefore, titleOffset attribute is not supported.

unsupported
area3d
bar3d
column3d
line3d
table

These charts do not support titleOffset attribute.

<axes titleRotation="Degrees"/>
Tag specific description

Defines default rotation for axis title. Individual axes may override this setting with <axis/> tag titleRotation attribute.

The default title orientation (zero degrees) is along the axis.

General description

See titleRotation description.

Defaults
<axes titleRotation="Degrees"/>
0
Footnotes
NoteAffectsDescription
unsupported
legend
pie
pie3d

These charts do not have titles for axes. Therefore, titleRotation attribute is not supported.

unsupported
area3d
bar3d
column3d
line3d
table

These charts do not supports title rotation.

[toc] [elements] [attributes] [types]


<axis/>

<axis
[angle="Degrees"] Chart 3D viewpoint orientation angle around this axis.
[axisColor="PaintValue"] Axis line color.
[axisStroke="Stroke"] Axis line width and style.
[backColor="PaintValue"] Axis background line color.
[backPaint="PaintValue"] Axis background fill paint.
[backStroke="Stroke"] Axis background line width and style.
[color="PaintValue"] Axis default color.
[dim="Dim"] Axis dimension index or name.
[font="Font"] Axis default font.
[gap="Percentage"] Relative distance between uniformly laid elements.
[gridColor="PaintValue"] Grid line color.
[gridLines="Boolean"] Controls if axis grid lines should be drawn or not.
[gridStroke="Stroke"] Grid line width and style.
[labelAlignment="Alignment"] Axis label alignment.
[labelColor="PaintValue"] Axis label and marker color.
[labelFont="Font"] Axis label and marker font.
[labelFormat="DataFormat"] Axis value label format.
[labelOffset="Size"] Distance between axis line and labels.
[labelPaint="PaintValue"] Axis label background paint.
[labelRotation="Degrees"] Axis label orientation.
[markerOffset="Size"] Distance between axis and marker labels.
[max="DataValue"] Axis maximum data value.
[min="DataValue"] Axis minimum data value.
[opposite="Boolean"] Side of the placement of labels and title.
[paint="PaintValue"] Axis default paint.
[position="Position"] Axis position.
[reversed="Boolean"] Axis positive growth direction.
[silent="Boolean"] Omission of axis labels.
[step="DataValue"] Defines the unit step for the value range of this axis.
[stroke="Stroke"] Axis line width and style.
[ticColor="PaintValue"] Color of tic marks.
[ticStroke="Stroke"] Rendering details of tic marks.
[titleAlignment="TitleAlignment"] Defines alignment for axis title.
[titleColor="PaintValue"] Axis title color.
[titleFont="Font"] Defines font for axis title.
[titleOffset="Size"] Defines offset for axis title.
[titleRotation="Degrees"] Defines rotation for axis title.
[titleText="Text"] Defines text for axis title.
>
{<marker/>}
</axis>

Element description

This tag defines one individual data axis. Axis attributes define how data is laid on this axis, what value ranges of the data are shown, what decorations and titles are placed on this axis, and what viewing angle around this axis will be used to look at the result. Axis specific attributes values take preference over corresponding axis system attribute values, defined by <axes/> parent tag.

The data dimension an axis controls is controlled by the dim attribute. It is an error if two axes belonging to the same coordinate axis group try to control the same dimension.

An axis controls all visual aspects of all items laid along the axis. These include:

The axis background concept needs some further clarification. First, in a simple two-dimensional case, the area between the X- and Y -axes is the only axis background area visible. The decoration of this area is simply controlled by the X -axis background attributes, while the background attributes of all the other axes are simply ignored. In three-dimensional case things become a slightly more complicated, since we now have also "left" and "bottom" background areas to consider. These background areas are controlled by the Y- and Z -axis attributes, respectively and independently of all the other axes. Finally, each backface not explicitly configured will inherit it's decoration settings from the axis coordinate system the respective axes belong to.

Chart axes control also chart viewing angle. Each axis has an angle attribute that tells the angle the chart viewing angle should be rotated around the axis in question. For example, to view a chart from above, the viewing angle may be turned there by setting horizontal X -axis angle to some positive value. To view the same chart from left, set Y axis angle to some positive value. Axis angle settings may also be combined so that to view the chart from above and left, set both X- and Y -axis angles. Finally, please note that many chart types have only limited support for viewing angle transformations. For details, please see the exception notes associated with affected attributes below.

Examples

<axis titleText="X -axis" min="10" max="40" labelFormat=".00"/>
<axis dim="1" titleText="Y -axis"/>
<axis dim="z" backPaint="blue"/>

Appears in

Attribute Detail

<axis angle="Degrees"/>
Tag specific description

Chart 3D viewpoint orientation angle around this axis.

General description

See angle description.

Defaults
<axis angle="Degrees"/>
0
Footnotes
NoteAffectsDescription
unsupported
hex
legend
rect
table

These charts do not have any three dimensional representation, and therefore they will just ignore this attribute.

exception
bar
candlestick
column
combo
line
ohlc
scatter

These charts do not support angle for Z-axis. Furthermore, angles for X- and Y-axis are restricted to values 0-90.

note
pie
pie3D

These charts support angle for Z-axis. The Z -axis angle rotates the pie disk around it's central axis. Positive values turn the disk to anti-clockwise direction, negative values turn the disk to clockwise direction.

<axis axisColor="PaintValue"/>
Tag specific description

Axis line color.

General description

See axisColor description.

Defaults
<axis axisColor="PaintValue"/>
<axis color="PaintValue"/>
<axes axisColor="PaintValue"/>
<axes color="PaintValue"/>
black
<axis axisStroke="Stroke"/>
Tag specific description

Axis line width and style.

General description

See axisStroke description.

Defaults
<axis axisStroke="Stroke"/>
<axis stroke="Stroke"/>
<axes axisStroke="Stroke"/>
<axes stroke="Stroke"/>
(solid-)1
Footnotes
NoteAffectsDescription
exception
area3d
bar3d
column3d
line3d

Only width setting is supported.

<axis backColor="PaintValue"/>
Tag specific description

Axis background line color.

General description

See backColor description.

Defaults
<axis backColor="PaintValue"/>
<axis color="PaintValue"/>
<axes backColor="PaintValue"/>
<axes color="PaintValue"/>
black
Footnotes
NoteAffectsDescription
unsupported
table

Table chart ignores this setting.

<axis backPaint="PaintValue"/>
Tag specific description

Axis background fill paint.

General description

See backPaint description.

Defaults
<axis backPaint="PaintValue"/>
<axis paint="PaintValue"/>
<axes backPaint="PaintValue"/>
<axes paint="PaintValue"/>
lightgray (for backPaint) | NULL (for marker pointPaint) | backPaint of plot tag (for labelPaint)
<axis backStroke="Stroke"/>
Tag specific description

Axis background line width and style.

General description

See backStroke description.

Defaults
<axis backStroke="Stroke"/>
<axis stroke="Stroke"/>
<axes backStroke="Stroke"/>
<axes stroke="Stroke"/>
(solid-)1
Footnotes
NoteAffectsDescription
unsupported
table

Table chart ignores this setting.

exception
area3d
bar3d
column3d
line3d

Only width setting is supported.

<axis color="PaintValue"/>
Tag specific description

Axis default color. If set, it will be used as the default color for all axis specific color settings for this axis. In particular, the following color settings will gain a new default value.

Each listed attribute may later be set individually, overriding this generic setting.

General description

See color description.

Defaults
<axis color="PaintValue"/>
<axes color="PaintValue"/>
black
Footnotes
NoteAffectsDescription
exception
area3d
bar3d
column3d
line3d
pie
pie3d

These charts apply the given default color for axisColor only.

<axis dim="Dim"/>
Tag specific description

Axis dimension index or name.

General description

See dim description.

Defaults
<axis dim="Dim"/>
0|1|2 (in this order)
<axis font="Font"/>
Tag specific description

Axis default font. If set, it will be used as the default font for all axis specific font settings for this axis. In particular, the following font settings will gain a new default value.

Each listed attribute may later be set individually, overriding this generic setting.

General description

See font description.

Defaults
<axis font="Font"/>
<axes font="Font"/>
Serif-12
<axis gap="Percentage"/>
Tag specific description

Relative distance between uniformly laid elements.

General description

See gap description.

Defaults
<axis gap="Percentage"/>
<axes gap="Percentage"/>
25
Footnotes
NoteAffectsDescription
unsupported
hex
pie
rect
scatter

These charts do not support gap attribute.

<axis gridColor="PaintValue"/>
Tag specific description

Grid line color.

General description

See gridColor description.

Defaults
<axis gridColor="PaintValue"/>
<axis color="PaintValue"/>
<axes gridColor="PaintValue"/>
<axes color="PaintValue"/>
black
<axis gridLines="Boolean"/>
Tag specific description

Controls if axis grid lines should be drawn or not. The default is to draw the grid lines, although the exact default behaviour is chart type specific. Please also see <axis/> tag documentation for more information about axis backfaces.

General description

See gridLines description.

Defaults
<axis gridLines="Boolean"/>
<axes gridLines="Boolean"/>
true for value axes, false for others
Footnotes
NoteAffectsDescription
exception
bar

Only vertical (X -axis) grid lines are drawn by default.

exception
column

Only horizontal (Y -axis) grid lines are drawn by default.

unsupported
hex
legend
pie
pie3d
rect

These chart types do not ever draw any coordinate axes or gridlines. Instead they just ignore this setting.

<axis gridStroke="Stroke"/>
Tag specific description

Grid line width and style.

General description

See gridStroke description.

Defaults
<axis gridStroke="Stroke"/>
<axis stroke="Stroke"/>
<axes gridStroke="Stroke"/>
<axes stroke="Stroke"/>
(solid-)1
Footnotes
NoteAffectsDescription
exception
area3d
bar3d
column3d
line3d

Only width setting is supported.

<axis labelAlignment="Alignment"/>
Tag specific description

Axis label alignment.

General description

See labelAlignment description.

Defaults
<axis labelAlignment="Alignment"/>
<axes labelAlignment="Alignment"/>
center
Footnotes
NoteAffectsDescription
exception
pie
pie3d

Only 'inside' and 'outside' values are implemented for pie charts.

unsupported
area3d
bar3d
column3d
line3d

These charts do not support alignment attribute.

<axis labelColor="PaintValue"/>
Tag specific description

Axis label and marker color. In particular, all axis markers will be draw with this color, too, unless explicitly set otherwise for some particular marker.

General description

See labelColor description.

Defaults
<axis labelColor="PaintValue"/>
<axis color="PaintValue"/>
<axes labelColor="PaintValue"/>
<axes color="PaintValue"/>
black
<axis labelFont="Font"/>
Tag specific description

Axis label and marker font. In particular, all axis markers will be rendered with this font, too, unless explicitly set otherwise for some particular marker.

General description

See labelFont description.

Defaults
<axis labelFont="Font"/>
<axis font="Font"/>
<axes labelFont="Font"/>
<axes font="Font"/>
Serif-12
<axis labelFormat="DataFormat"/>
Tag specific description

Axis value label format.

General description

See labelFormat description.

Defaults
<axis labelFormat="DataFormat"/>
<axes labelFormat="DataFormat"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
pie

Pie chart does not draw axes or labels along them and thus it ignores this setting. Instead, pie chart draws values, which are controlled with <plot/> tag valueFormat attribute.

unsupported
area3d
bar3d
column3d
hex
legend
line3d
pie3d
rect
table

These charts do not support labelFormat attribute.

<axis labelOffset="Size"/>
Tag specific description

Distance between axis line and labels.

General description

See labelOffset description.

Defaults
<axis labelOffset="Size"/>
<axes labelOffset="Size"/>
25% of font size, or 3 pixels if font size is unknown
Footnotes
NoteAffectsDescription
unsupported
hex
pie
pie3d
rect

These chart types do not draw axes or labels along them, so they do just ignore this setting.

unsupported
area3d
bar3d
column3d
line3d
table

These charts do not support labelOffset attribute.

supported
legend

Only legend chart supports label offset in the legend tag. Furthermore, legend chart does not draw axes or labels along them, so label offset in axes and axis tags is ignored.

<axis labelPaint="PaintValue"/>
Tag specific description

Axis label background paint.

General description

See labelPaint description.

Defaults
<axis labelPaint="PaintValue"/>
<axis paint="PaintValue"/>
<axes labelPaint="PaintValue"/>
<axes paint="PaintValue"/>
lightgray (for backPaint) | NULL (for marker pointPaint) | backPaint of plot tag (for labelPaint)
Footnotes
NoteAffectsDescription
supported
table

Only table factory supports this attribute.

exception
table

This attribute has an exceptional default path. First, default is searched normally as given in the default list. If, however, no value has been specified on the default path, the back paint of the plot tag is used. The default path of the back paint of the plot tag works normally.

<axis labelRotation="Degrees"/>
Tag specific description

Axis label orientation.

Please note that axis markers are unaffected by this attribute. Instead, they have their own label rotation attribute that affects each marker separately.

General description

See labelRotation description.

Defaults
<axis labelRotation="Degrees"/>
<axes labelRotation="Degrees"/>
0
Footnotes
NoteAffectsDescription
unsupported
hex
legend
pie
pie3d
rect

These chart types do not draw axes or labels along them, so they do just ignore this setting.

unsupported
area3d
bar3d
column3d
line3d

These chart types do draw axes or labels along them, but they do not support labelRotation attribute at the moment.

unsupported
table

Table chart does not support labelRotation attribute.

<axis markerOffset="Size"/>
Tag specific description

Distance between axis and marker labels.

General description

See markerOffset description.

Defaults
<axis markerOffset="Size"/>
<axes markerOffset="Size"/>
0
Footnotes
NoteAffectsDescription
note

All markers in one axis have the same marker offset.

unsupported
area3d
bar3d
column3d
hex
legend
line3d
pie
pie3d
rect
table

These charts do not support markers.

<axis max="DataValue"/>
Tag specific description

Axis maximum data value.

General description

See max description.

Defaults
<axis max="DataValue"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
table

Table chart shows all data values. Therefore, the chart ignores this attribute.

<axis min="DataValue"/>
Tag specific description

Axis minimum data value.

General description

See min description.

Defaults
<axis min="DataValue"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
table

Table chart shows all data values. Therefore, the chart ignores this attribute.

<axis opposite="Boolean"/>
Tag specific description

Side of the placement of labels and title.

General description

See opposite description.

Defaults
<axis opposite="Boolean"/>
<axes opposite="Boolean"/>
false
Footnotes
NoteAffectsDescription
unsupported
legend
pie
pie3d

These chart types do not draw axes and thus they ignore this setting.

unsupported
area3d
bar3d
column3d
line3d

These charts do not support opposite attribute.

<axis paint="PaintValue"/>
Tag specific description

Axis default paint. If set, it will be used as the default paint for all axis specific paint settings for this axis. In particular, the following paint settings will use this attribute as their default value.

Each listed attribute may later be set individually, overriding this generic setting.

General description

See paint description.

Defaults
<axis paint="PaintValue"/>
<axes paint="PaintValue"/>
lightgray (for backPaint) | NULL (for marker pointPaint) | backPaint of plot tag (for labelPaint)
<axis position="Position"/>
Tag specific description

Axis position. Other axes will cross this axis at this position.

General description

See position description.

Defaults
<axis position="Position"/>
<axes position="Position"/>
(0)
Footnotes
NoteAffectsDescription
exception
combo

Uses a fixed value of before for the attribute.

unsupported
area3d
bar3d
column3d
hex
legend
line3d
pie
pie3d
rect
table

These charts do not support position attribute on an axis (on axes, axis and marker tags.)

<axis reversed="Boolean"/>
Tag specific description

Axis positive growth direction.

General description

See reversed description.

Defaults
<axis reversed="Boolean"/>
<axes reversed="Boolean"/>
false
Footnotes
NoteAffectsDescription
unsupported
hex
legend
pie
pie3d
rect

These chart types do not draw axes and thus they ignore this setting.

unsupported
area3d
bar3d
column3d
line3d

These charts do not support reversed attribute.

<axis silent="Boolean"/>
Tag specific description

Omission of axis labels.

General description

See silent description.

Defaults
<axis silent="Boolean"/>
<axes silent="Boolean"/>
false
Footnotes
NoteAffectsDescription
unsupported
hex
legend
pie
pie3d
rect

These chart types do not draw axes and thus they ignore this setting.

unsupported
area3d
bar3d
column3d
line3d

These charts do not support silent attribute.

<axis step="DataValue"/>
Tag specific description

Defines the unit step for the value range of this axis. Axis labels and grid lines will be drawn to the axis so that the value distance from one grid line to another is one unit step.

General description

See step description.

Defaults
<axis step="DataValue"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
table

Table chart does not use units when drawing axes. Therefore, this attribute is ignored.

<axis stroke="Stroke"/>
Tag specific description

Axis line width and style. If set, it will be used as the default for all axis specific line width and style settings for this axis. In particular, the following line width and style settings will use this attribute as their default value.

Each listed attribute may later be set individually, overriding this generic setting.

General description

See stroke description.

Defaults
<axis stroke="Stroke"/>
<axes stroke="Stroke"/>
(solid-)1
Footnotes
NoteAffectsDescription
exception
area3d
bar3d
column3d
line3d

Only width setting is supported.

<axis ticColor="PaintValue"/>
Tag specific description

Color of tic marks.

General description

See ticColor description.

Defaults
<axis ticColor="PaintValue"/>
<axis color="PaintValue"/>
<axes ticColor="PaintValue"/>
<axes color="PaintValue"/>
black
Footnotes
NoteAffectsDescription
unsupported
area3d
bar3d
column3d
hex
legend
line3d
pie
pie3d
rect
table

These charts do not support tic marks.

<axis ticStroke="Stroke"/>
Tag specific description

Rendering details of tic marks.

General description

See ticStroke description.

Defaults
<axis ticStroke="Stroke"/>
<axis stroke="Stroke"/>
<axes ticStroke="Stroke"/>
<axes stroke="Stroke"/>
(solid-)1
Footnotes
NoteAffectsDescription
unsupported
area3d
bar3d
column3d
hex
legend
line3d
pie
pie3d
rect
table

These charts do not support tic marks.

<axis titleAlignment="TitleAlignment"/>
Tag specific description

Defines alignment for axis title.

General description

See titleAlignment description.

Defaults
<axis titleAlignment="TitleAlignment"/>
<axes titleAlignment="TitleAlignment"/>
center
Footnotes
NoteAffectsDescription
unsupported
legend
pie
pie3d

These charts do not have titles for axes. Therefore, titleAlignment attribute is not supported.

unsupported
area3d
bar3d
column3d
line3d

These charts do not support titleAlignment.

<axis titleColor="PaintValue"/>
Tag specific description

Axis title color.

General description

See titleColor description.

Defaults
<axis titleColor="PaintValue"/>
<axis color="PaintValue"/>
<axes titleColor="PaintValue"/>
<axes color="PaintValue"/>
black
Footnotes
NoteAffectsDescription
unsupported
legend
pie
pie3d

These charts do not draw axes and thus they ignore this setting.

<axis titleFont="Font"/>
Tag specific description

Defines font for axis title.

General description

See titleFont description.

Defaults
<axis titleFont="Font"/>
<axis font="Font"/>
<axes titleFont="Font"/>
<axes font="Font"/>
Serif-12
Footnotes
NoteAffectsDescription
unsupported
legend
pie
pie3d

These charts do not draw axes and thus they ignore this setting.

<axis titleOffset="Size"/>
Tag specific description

Defines offset for axis title.

Offset defines the gap between the title and axis labels.

General description

See titleOffset description.

Defaults
<axis titleOffset="Size"/>
<axes titleOffset="Size"/>
0
Footnotes
NoteAffectsDescription
unsupported
legend
pie
pie3d

These charts do not have titles for axes. Therefore, titleOffset attribute is not supported.

unsupported
area3d
bar3d
column3d
line3d
table

These charts do not support titleOffset attribute.

<axis titleRotation="Degrees"/>
Tag specific description

Defines rotation for axis title.

The default title orientation (zero degrees) is along the axis.

General description

See titleRotation description.

Defaults
<axis titleRotation="Degrees"/>
<axes titleRotation="Degrees"/>
0
Footnotes
NoteAffectsDescription
unsupported
legend
pie
pie3d

These charts do not have titles for axes. Therefore, titleRotation attribute is not supported.

unsupported
area3d
bar3d
column3d
line3d
table

These charts do not supports title rotation.

<axis titleText="Text"/>
Tag specific description

Defines text for axis title.

General description

See titleText description.

Defaults
<axis titleText="Text"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
legend
pie
pie3d

These charts do not have titles for axes. Therefore, titleText attribute is not supported.

unsupported
legend
pie
pie3d

These charts do not draw axes and thus they ignore this setting.

[toc] [elements] [attributes] [types]


<bean/>

<bean
source="Source" Name of the bean from which data is to be extracted.
>
{
<beanColumn/> |
<beanGroup/>
}+
</bean>

Element description

This tag defines a bean data source. Bean data source is used to import data from a bean in a jsp page. The bean should be added to the attributes of the pageContext of the page. The addition happens with:
pageContext.setAttribute("name",bean);
, where the value of the name is the same as the value of the source attribute.

Beans imported should have a property getter which serves a collection. It is implicitly assumed that objects in the returned collection are all of the same data type and the first object in the collection fixes the data type for the collection. Therefore, the first element served from a collection should not be null. If the first element happens to be null, the column type of the collection will be set to label.

Examples

<bean source="beanA">
   <beanColumn propertyName="summary" name="bean summary"/>
<bean/>

Appears in

Attribute Detail

<bean source="Source"/>
Tag specific description

Name of the bean from which data is to be extracted.

General description

See source description.

Defaults
<bean source="Source"/>
NULL

[toc] [elements] [attributes] [types]


<beanColumn/>

<beanColumn
[dataFormat="DataFormat"] Format of the data values available from the collection.
[dataType="DataType"] Type of the data available from the collection.
[id="Id"] ID for the output column.
[name="Text"] Name for the output column.
propertyName="Text" The name of the property of the bean from which collection can be queried.
[type="ColumnType"] Type for the output column.
>
</beanColumn>

Element description

BeanColumn defines from which property in the bean the data of the collection is to be imported from. The bean should provide a method of the format:
Collection get<propertyName>();
, where the value of the <propertyName> is the same as the value of the propertyName attribute.

Appears in

Attribute Detail

<beanColumn dataFormat="DataFormat"/>
Tag specific description

Format of the data values available from the collection.

General description

See dataFormat description.

Defaults
<beanColumn dataFormat="DataFormat"/>
NULL
Footnotes
NoteAffectsDescription
note
all

For other charts but table, the dataFormat attribute represents data element string value parsing details, only. For formatting specification strings, please see labelFormat and valueFormat.

supported
table

Transforming a data value to a user readable text is supported only by table chart. Other charts have other ways, for example bars, of showing data values.

<beanColumn dataType="DataType"/>
Tag specific description

Type of the data available from the collection.

General description

See dataType description.

Defaults
<beanColumn dataType="DataType"/>
NULL
<beanColumn id="Id"/>
Tag specific description

ID for the output column.

General description

See id description.

Defaults
<beanColumn id="Id"/>
NULL
<beanColumn name="Text"/>
Tag specific description

Name for the output column.

General description

See name description.

Defaults
<beanColumn name="Text"/>
NULL
<beanColumn propertyName="Text"/>
Tag specific description

The name of the property of the bean from which collection can be queried.

General description

See propertyName description.

Defaults
<beanColumn propertyName="Text"/>
NULL
<beanColumn type="ColumnType"/>
Tag specific description

Type for the output column.

General description

See type description.

Defaults
<beanColumn type="ColumnType"/>
NULL

[toc] [elements] [attributes] [types]


<beanGroup/>

<beanGroup
[group="Id"] Column group data group.
[id="Id"] Channel group identity.
[name="Text"] Name for this value group.
type="ColumnType" The role this data channel plays in a chart.
>
{<beanColumn/>}
</beanGroup>

Element description

This tag joins two or more bean data channels into one composite channel. The tag works exactly as <group/>, but the joined channels are bean data channels. See <group/> for more documentation about grouping data channels.

Examples

<bean source="beanA">
   <beanGroup type="value" id="participants">
      <beanColumn propertyName="X-coordinate"/>
      <beanColumn propertyName="Y-coordinate"/>
   </beanGroup>
</bean>

Appears in

Attribute Detail

<beanGroup group="Id"/>
Tag specific description

Column group data group.

General description

See group description.

Defaults
<beanGroup group="Id"/>
NULL
<beanGroup id="Id"/>
Tag specific description

Channel group identity. <series/> tag id attributes may later refer to this identity value, in order to add or overwrite channel group attribute values.

General description

See id description.

Defaults
<beanGroup id="Id"/>
NULL
<beanGroup name="Text"/>
Tag specific description

Name for this value group.

General description

See name description.

Defaults
<beanGroup name="Text"/>
NULL
<beanGroup type="ColumnType"/>
Tag specific description

The role this data channel plays in a chart.

General description

See type description.

Defaults
<beanGroup type="ColumnType"/>
NULL
Footnotes
NoteAffectsDescription
note
candlestick
ohlc
scatter

Only these charts expect structured data at the moment. The charts expect only structured value channels.

[toc] [elements] [attributes] [types]


<cell/>

<cell
x="PositiveInteger" Horizontal index of the cell to be selected.
y="PositiveInteger" Vertical index of the cell to be selected.
>
</cell>

Element description

This element is used to select cell from a (trained) SOM map. Elements are identified from the lower right hand corener in the grid. X-dimension is 0 at the right most edgde. Similarly the bottom most row is 0 in Y-dimension.

Appears in

Attribute Detail

<cell x="PositiveInteger"/>
Tag specific description

Horizontal index of the cell to be selected.

General description

See x description.

Defaults
<cell x="PositiveInteger"/>
NULL
<cell y="PositiveInteger"/>
Tag specific description

Vertical index of the cell to be selected.

General description

See y description.

Defaults
<cell y="PositiveInteger"/>
NULL

[toc] [elements] [attributes] [types]


<chart/>

<chart>
<data/>
<attributes/>{<attributes/>}
</chart>

Element description

This is the root tag for chart XML documents. It contains everything a chart image generator needs to generate one image. In particular, it declares one chart data source, and at least one chart attribute set that tells all visual appearance details the chart image should be generated with. If a chart XML document defines more than one attribute set, one of them must be explicitly selected at chart image generation time, or else the first of them will be used by default.

Examples

<chart>
   <data>
      <column type="value" values="34 45 67 89"/>
      <column type="paint" values="red green blue orange"/>
   </data>
   <attributes>
      <area paint="red-vertical" color="black" stroke="2"/>
   </attributes>
</chart>

[toc] [elements] [attributes] [types]


<collection/>

<collection
source="Source" Name of the collection object from which the data is to be extracted.
>
{<collectionColumn/>}
{<collectionGroup/>}
</collection>

Element description

This tag defines a collection data source. Collection data source is used to import data from a collection object in a jsp page. The collection object should be added to the attributes of the pageContext of the page. The addition happens with:
pageContext.setAttribute("name",object);
, where the value of the name is the same as the value of the source attribute.

It is implicitly assumed that objects in a collection are all of the same data type and the first object in the collection fixes the data type for this collection. Therefore, the first element served from a collection should not be null. If the first element happens to be null, the column type of the collection will be set to label.

Examples

<collection source="summaryList"/>

<collection source="summaryList" >
   <collectionColumn name="summary data">
</collection>

Appears in

Attribute Detail

<collection source="Source"/>
Tag specific description

Name of the collection object from which the data is to be extracted.

General description

See source description.

Defaults
<collection source="Source"/>
NULL

[toc] [elements] [attributes] [types]


<collectionColumn/>

<collectionColumn
[dataFormat="DataFormat"] Format of the data values available from the collection.
[dataType="DataType"] Type of the data available from the collection.
[id="Id"] ID for the output column.
[name="Text"] Name for the output column.
[type="ColumnType"] Type for the output column.
>
</collectionColumn>

Element description

CollectionColumn can be used to define attributes for the imported collection data. For example, name for the imported column can be defined.

Appears in

Attribute Detail

<collectionColumn dataFormat="DataFormat"/>
Tag specific description

Format of the data values available from the collection.

General description

See dataFormat description.

Defaults
<collectionColumn dataFormat="DataFormat"/>
NULL
Footnotes
NoteAffectsDescription
note
all

For other charts but table, the dataFormat attribute represents data element string value parsing details, only. For formatting specification strings, please see labelFormat and valueFormat.

supported
table

Transforming a data value to a user readable text is supported only by table chart. Other charts have other ways, for example bars, of showing data values.

<collectionColumn dataType="DataType"/>
Tag specific description

Type of the data available from the collection.

General description

See dataType description.

Defaults
<collectionColumn dataType="DataType"/>
NULL
<collectionColumn id="Id"/>
Tag specific description

ID for the output column.

General description

See id description.

Defaults
<collectionColumn id="Id"/>
NULL
<collectionColumn name="Text"/>
Tag specific description

Name for the output column.

General description

See name description.

Defaults
<collectionColumn name="Text"/>
NULL
<collectionColumn type="ColumnType"/>
Tag specific description

Type for the output column.

General description

See type description.

Defaults
<collectionColumn type="ColumnType"/>
NULL

[toc] [elements] [attributes] [types]


<collectionGroup/>

<collectionGroup
[group="Id"] Column group data group.
[id="Id"] Channel group identity.
[name="Text"] Name for this value group.
type="ColumnType" The role this data channel plays in a chart.
>
{<collectionColumn/>}
</collectionGroup>

Element description

This tag joins two or more collection data channels into one composite channel. The tag works exactly as <group/>, but the joined channels are collection data channels. See <group/> for more documentation about grouping data channels.

Examples

<collection source="pairlist">
   <collectionGroup type="value" id="participants">
      <collectionColumn name="driver"/>
      <collectionColumn name="mapper"/>
   </collectionGroup>
</collection>

Appears in

Attribute Detail

<collectionGroup group="Id"/>
Tag specific description

Column group data group.

General description

See group description.

Defaults
<collectionGroup group="Id"/>
NULL
<collectionGroup id="Id"/>
Tag specific description

Channel group identity. <series/> tag id attributes may later refer to this identity value, in order to add or overwrite channel group attribute values.

General description

See id description.

Defaults
<collectionGroup id="Id"/>
NULL
<collectionGroup name="Text"/>
Tag specific description

Name for this value group.

General description

See name description.

Defaults
<collectionGroup name="Text"/>
NULL
<collectionGroup type="ColumnType"/>
Tag specific description

The role this data channel plays in a chart.

General description

See type description.

Defaults
<collectionGroup type="ColumnType"/>
NULL
Footnotes
NoteAffectsDescription
note
candlestick
ohlc
scatter

Only these charts expect structured data at the moment. The charts expect only structured value channels.

[toc] [elements] [attributes] [types]


<colorPoint/>

<colorPoint
color="PaintValue" Determines the color of the upper end of this point.
[interpolationMode="InterpolationMode"] Determines whether interpolation is used for this point in determining a color for rendering a data value.
[minColor="ColorValue"] Determines the color of the lower end of this point.
position="Position" Determines the position of this point in a color scale.
[positionType="PositionType"] Interpretation type for position.
>
</colorPoint>

Element description

Each color point defines a point in a color scale. The value of the point is defined by the position and positionType attributes.

When a data value is rendered, a possible value attached to the data value with a color channel is compared to the values of color points. The color point that has the smallest value that is greater than or equal to the value attached to a data value is selected. Therefore, there is a certain range of values attached to data values that correspond to the same color point. The maximum value of this range, which happens to be the value of the point itself, is considered to be the upper end of the point. The minimum value of this range, which is a value that is just a little bit greater than the value of the previous point, is considered to be the lower end of the point. The previous point is the point with a value that is the greatest of those points that have a value that is smaller than the value of this point.

Depending from the chart, the color(s) of the selected color point may be used in the rendering of the data value.

Appears in

Attribute Detail

<colorPoint color="PaintValue"/>
Tag specific description

Determines the color of the upper end of this point. If the minColor and interpolationMode attributes are not defined, this color is used for the whole range of values that correspond to this point.

General description

See color description.

Defaults
<colorPoint color="PaintValue"/>
NULL
Footnotes
NoteAffectsDescription
exception
all

If the minColor and interpolationMode attributes are defined, the type of this color is ColorValue, not PaintValue.

<colorPoint interpolationMode="InterpolationMode"/>
Tag specific description

Determines whether interpolation is used for this point in determining a color for rendering a data value.

General description

See interpolationMode description.

Defaults
<colorPoint interpolationMode="InterpolationMode"/>
<colorScale interpolationMode="InterpolationMode"/>
NULL
<colorPoint minColor="ColorValue"/>
Tag specific description

Determines the color of the lower end of this point. This color is used only if interpolationMode attribute has been defined for this point.

General description

See minColor description.

Defaults
<colorPoint minColor="ColorValue"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
area3d
bar3d
column3d
hex
legend
line3d
pie
pie3d
rect
table

These charts do not support minColor setting in plot tag.

<colorPoint position="Position"/>
Tag specific description

Determines the position of this point in a color scale.

General description

See position description.

Defaults
<colorPoint position="Position"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
area3d
bar3d
column3d
hex
legend
line3d
pie
pie3d
rect
table

These charts do not support position attribute on an axis (on axes, axis and marker tags.)

<colorPoint positionType="PositionType"/>
Tag specific description

Interpretation type for position.

General description

See positionType description.

Defaults
<colorPoint positionType="PositionType"/>
NULL
Footnotes
NoteAffectsDescription
note
all

If the position type is set to percent, the values of the position are restricted further. The values have to be integers that are greater than 0, but less than or equal to 100.

[toc] [elements] [attributes] [types]


<colorScale/>

<colorScale
[interpolationMode="InterpolationMode"] Provides default interpolation mode for the points of this scale.
>
{<colorPoint/>}
</colorScale>

Element description

Color scale defines how the values of color channels should be used for rendering the chart. Each color scale is composed of a number of color points. The color points that are collected to a color scale define a sequence of colors that are used for rendering the chart. The sequence can be continuous and cover all values in color channels or the sequence can have gaps for which no visible color is defined.

Appears in

Attribute Detail

<colorScale interpolationMode="InterpolationMode"/>
Tag specific description

Provides default interpolation mode for the points of this scale.

General description

See interpolationMode description.

Defaults
<colorScale interpolationMode="InterpolationMode"/>
NULL

[toc] [elements] [attributes] [types]


<column/>

<column
[dataFormat="DataFormat"] Data element string value interpretation details.
[dataType="DataType"] Data type tells how a string value should be interpreted as a data value.
[group="Id"] Column data group.
[id="Id"] Channel identity.
[name="Text"] Name for this column of values.
[separator="Separator"] Defines the separator character that separates individual data values in a values data string.
[sqlColumnIndex="ColumnIndex"] Associates the XML data column to a SQL column of given number.
[sqlColumnName="Text"] Associates the XML data column to a SQL column of given name.
type="ColumnType" The role this data channel plays in a chart.
[values="Values"] A list of data values.
>
{
text |
{<element/>} |
{<e/>}
}
</column>

Element description

This tag defines one data channel. A data channel contains a finite sequence of data values of equal type and significance. Some or even all of the elements in the sequence may have a special null value, signaling the absense of any specific value. A sequence may also be completely empty, containing zero elements.

Each channel has a column type that specifies for what purpose the data in this channel is meant for. For example, the channel may be flagged to contain data values to be visualized in chart specific way, or labels that explain and tag such values. Please see ColumnType for a list of recognized data channel types.

All elements in a single data channel share a common data type and data format. These attributes specify what kind of arithmetic operations can be applied on the data values, and how they may be parsed from and formatted as strings. Some example data types would be simple scalar values and Gregorian calendar dates; both can be expressed as decimal values, but when such decimal values are interpreted, it is vital to known which are expected.

Each data channel has also an identity with which it can be explicitly referenced at, and a channel group it belongs to. A channel that does not belong to any explicit group still belong to an implisit group of ungrouped channels. Chart image generators use channel identity and group to select values from data channels for various purposes. For example, label formatters make use of channel identities, while combination charts make use of channel groups.

In addition to the attributes given with the channel data, the interpreting and rendering of the channel data depends from a number of other attributes. These attributes are given in chart <series/> attribute tags. All attributes except channel identity given in series tag for the corresponding channel will override the corresponding attributes given with the channel data. This makes it possible to define generic data sources with default attribute sets without any prior knowledge of or restrictions over the applications the data is later used for. If a channel belongs to a specified channel group, channel specific series attributes are ignored.

Examples

<column id="results" type="value" values="1.4 562.2 -15.345 0"/>

<column id="colorcodes" separator="," type="paint">
   red,black
   <e>green</e>
   <element>blue</element>
</column>

<column id="dates" type="value" dataType="date" dataFormat="E-h:m">
   <element>Monday-9:0</element>
   <element>Wednesday-10:9</element>
   <element>Friday-11:58</element>
   <element>Sunday-13:33</element>
</column>

Appears in

Attribute Detail

<column dataFormat="DataFormat"/>
Tag specific description

Data element string value interpretation details.

General description

See dataFormat description.

Defaults
<column dataFormat="DataFormat"/>
NULL
Footnotes
NoteAffectsDescription
note
all

For other charts but table, the dataFormat attribute represents data element string value parsing details, only. For formatting specification strings, please see labelFormat and valueFormat.

supported
table

Transforming a data value to a user readable text is supported only by table chart. Other charts have other ways, for example bars, of showing data values.

<column dataType="DataType"/>
Tag specific description

Data type tells how a string value should be interpreted as a data value. This can be useful, for example, when retrieving data from database. String interpretation details may be further defined with data format attribute.

General description

See dataType description.

Defaults
<column dataType="DataType"/>
NULL
<column group="Id"/>
Tag specific description

Column data group. <axes/> tag dataGroup attribute may later be used to refer to this group identity to select input only from the channels belonging to the named data group. See group attribute for an example.

General description

See group description.

Defaults
<column group="Id"/>
NULL
Footnotes
NoteAffectsDescription
supported
combo

In combo charts, column group definition can be utilised.

<column id="Id"/>
Tag specific description

Channel identity. These identity values, if defined, are expected to be unique over all <column/> and <group/>tags within the same chart data source. <series/> tag id attributes may later refer to these identity values to select which data channel attribute values to modify. See id attribute for an example.

General description

See id description.

Defaults
<column id="Id"/>
NULL
<column name="Text"/>
Tag specific description

Name for this column of values.

In 3D charts, the name is displayed on the Z-axis of some chart types. If the name should not be displayed, the font of the Z-axis should be set to zero.

General description

See name description.

Defaults
<column name="Text"/>
NULL
Footnotes
NoteAffectsDescription
exception
scatter

name attribute in a column tag for a scatter chart does not have any effect on legend chart. name attribute of a group tag should be used instead.

<column separator="Separator"/>
Tag specific description

Defines the separator character that separates individual data values in a values data string.

<data>
   <column id="a" type="value" values="1 3 5"/>
   <column id="b" separator="x-x" type="value" values="2x4x6" />
</data>
Would define two columns "a" and "b", with three data values each.
General description

See separator description.

Defaults
<column separator="Separator"/>
white-space character
<column sqlColumnIndex="ColumnIndex"/>
Tag specific description

Associates the XML data column to a SQL column of given number. See sqlColumnName for an example.

General description

See sqlColumnIndex description.

Defaults
<column sqlColumnIndex="ColumnIndex"/>
NULL
<column sqlColumnName="Text"/>
Tag specific description

Associates the XML data column to a SQL column of given name. 'sqlColumnName' overrides 'sqlColumnIndex' if both are given. If neither are given, 'sqlColumnName' defaults to the XML data column id.

<chart:sql query="SELECT name,age FROM FRIENDS">
   <chart>
      <data>
         <column sqlColumnName="age" type="value"/>
         <column sqlColumnIndex="1" type="label"/>
      </data>
   </chart>
</chart:sql>
In this example, one would get chart representation of friends, so that name would be used as label and age as the value.
General description

See sqlColumnName description.

Defaults
<column sqlColumnName="Text"/>
NULL
<column type="ColumnType"/>
Tag specific description

The role this data channel plays in a chart.

General description

See type description.

Defaults
<column type="ColumnType"/>
NULL
<column values="Values"/>
Tag specific description

A list of data values. An alternative for <element> tags.

General description

See values description.

Defaults
<column values="Values"/>
NULL

[toc] [elements] [attributes] [types]


<csv/>

<csv
source="Source" URL to the csv file.
[separatorChar="PrintableCharacter"] Separator character separates columns in a data row.
[commentChar="PrintableCharacter"] Data rows beginning with this character are skipped.
[quotationChar="PrintableCharacter"] A text between two quotation characters is handled as one value.
[nullMarker="Text"] Missing data values are represented using this string in csv file.
[firstDataRow="PositiveInteger"] The row number of the first data row from the beginning of the file.
[namesRow="PositiveInteger"] This row is used to name columns.
>
{<csvColumn/>}
{<csvGroup/>}
</csv>

Element description

This tag defines a csv data source. CSV data source is used to import data from a text file. It is assumed that each data row is in its own line and columns are separated from each other by a separation character.

Examples

data.txt - config.xml -config2.xml

#performance summary
#employee;sales;costs
Mike;9000;5000
Anne;4000;4500
Leila;12000;6500
James;9000;5500
...


<csv source="http://fileserver:8080/chart/Data.txt" separatorChar=";" firstDataRow="3" />

<csv source="http://fileserver:8080/chart/Data.txt" namesRow="2" separatorChar=";"/>
   <csvColumn column="1" id="a" />
   <csvColumn column="3" id="b" />
   <csvColumn column="2" id="c" />
<csv/>

Appears in

Attribute Detail

<csv source="Source"/>
Tag specific description

URL to the csv file.

General description

See source description.

Defaults
<csv source="Source"/>
NULL
<csv separatorChar="PrintableCharacter"/>
Tag specific description

Separator character separates columns in a data row.

General description

See separatorChar description.

Defaults
<csv separatorChar="PrintableCharacter"/>
space character
<csv commentChar="PrintableCharacter"/>
Tag specific description

Data rows beginning with this character are skipped.

General description

See commentChar description.

Defaults
<csv commentChar="PrintableCharacter"/>
#
<csv quotationChar="PrintableCharacter"/>
Tag specific description

A text between two quotation characters is handled as one value.

General description

See quotationChar description.

Defaults
<csv quotationChar="PrintableCharacter"/>
"
<csv nullMarker="Text"/>
Tag specific description

Missing data values are represented using this string in csv file. When such string is encountered in csv file, a null data value is created to represent missing data value.

General description

See nullMarker description.

Defaults
<csv nullMarker="Text"/>
NULL
<csv firstDataRow="PositiveInteger"/>
Tag specific description

The row number of the first data row from the beginning of the file. Numbering starts from 1.

General description

See firstDataRow description.

Defaults
<csv firstDataRow="PositiveInteger"/>
NULL
<csv namesRow="PositiveInteger"/>
Tag specific description

This row is used to name columns. Numbering of rows starts from 1. The name row should consist of column names separated with separatorChar. The name row line can start with comment character(s) that are ignored.

General description

See namesRow description.

Defaults
<csv namesRow="PositiveInteger"/>
NULL

[toc] [elements] [attributes] [types]


<csvColumn/>

<csvColumn
column="Text" ID of the input column to be selected.
[dataFormat="DataFormat"] Format of the data values available from the collection.
[dataType="DataType"] Type of the data available from the collection.
[id="Id"] ID for the output column.
[name="Text"] Name for the output column.
[type="ColumnType"] Type for the output column.
>
</csvColumn>

Element description

CsvColumn is used for selecting the column that is to be imported from the text file. Selection is done by indicating the number of the column by using the column attribute. Extra information for the resulting column can also be given.

Appears in

Attribute Detail

<csvColumn column="Text"/>
Tag specific description

ID of the input column to be selected.

General description

See column description.

Defaults
<csvColumn column="Text"/>
NULL
<csvColumn dataFormat="DataFormat"/>
Tag specific description

Format of the data values available from the collection.

General description

See dataFormat description.

Defaults
<csvColumn dataFormat="DataFormat"/>
NULL
Footnotes
NoteAffectsDescription
note
all

For other charts but table, the dataFormat attribute represents data element string value parsing details, only. For formatting specification strings, please see labelFormat and valueFormat.

supported
table

Transforming a data value to a user readable text is supported only by table chart. Other charts have other ways, for example bars, of showing data values.

<csvColumn dataType="DataType"/>
Tag specific description

Type of the data available from the collection. If the type is not given and the data can not be expressed as a float, the type of the data is considered to be text.

General description

See dataType description.

Defaults
<csvColumn dataType="DataType"/>
float
<csvColumn id="Id"/>
Tag specific description

ID for the output column.

General description

See id description.

Defaults
<csvColumn id="Id"/>
NULL
<csvColumn name="Text"/>
Tag specific description

Name for the output column.

General description

See name description.

Defaults
<csvColumn name="Text"/>
NULL
<csvColumn type="ColumnType"/>
Tag specific description

Type for the output column.

General description

See type description.

Defaults
<csvColumn type="ColumnType"/>
NULL

[toc] [elements] [attributes] [types]


<csvGroup/>

<csvGroup
[group="Id"] Column group data group.
[id="Id"] Channel group identity.
[name="Text"] Name for this value group.
type="ColumnType" The role this data channel plays in a chart.
>
{<csvColumn/>}
</csvGroup>

Element description

This tag joins two or more csv data channels into one composite channel. The tag works exactly as <group/>, but the joined channels are csv data channels. See <group/> for more documentation about grouping data channels.

Examples

<csv source="http://fileserver:8080/chart/Data.txt" namesRow="2" separatorChar=";">
   <csvGroup type="value" id="items">
      <csvColumn column="hammer"/>
      <csvColumn column="nail"/>
      <csvColumn column="saw"/>
   </csvGroup>
</csv>

Appears in

Attribute Detail

<csvGroup group="Id"/>
Tag specific description

Column group data group.

General description

See group description.

Defaults
<csvGroup group="Id"/>
NULL
<csvGroup id="Id"/>
Tag specific description

Channel group identity. <series/> tag id attributes may later refer to this identity value, in order to add or overwrite channel group attribute values.

General description

See id description.

Defaults
<csvGroup id="Id"/>
NULL
<csvGroup name="Text"/>
Tag specific description

Name for this value group.

General description

See name description.

Defaults
<csvGroup name="Text"/>
NULL
<csvGroup type="ColumnType"/>
Tag specific description

The role this data channel plays in a chart.

General description

See type description.

Defaults
<csvGroup type="ColumnType"/>
NULL
Footnotes
NoteAffectsDescription
note
candlestick
ohlc
scatter

Only these charts expect structured data at the moment. The charts expect only structured value channels.

[toc] [elements] [attributes] [types]


<data/>

<data>
{<bean/>}
{<collection/>}
{<column/>}
{<csv/>}
{<group/>}
{<movingAverage/>}
{<pivot/>}
{<som/>}
{<somCellFilter/>}
{<sort/>}
{<sql/>}
{<xpath/>}
</data>

Element description

This tag defines a chart data source. A data source declares a number of data channels that each may contain a number of data elements. Data channels may also be grouped, in which case corresponding data elements in the grouped channels form more complex, structured data elements made of two or more simpler elements.

The data elements within each channel form data sequences where each element has a well-defined place within that sequence, and a corresponding index number. All elements with equal index numbers are said to correspond to each other. For example, the first element in a data value stream corresponds to the first element in a data label stream. When these two streams are then fed to a chart image generator, it will render the first label text next to the first data value. The same goes with grouped channels: the first elements in the grouped channels form the first complex element, and so on. Finally, when two or more streams are used together and some of them have fewer element than some other streams, all shorter streams are padded with null elements to make them all of equal length.

In certain circumtances, in particular when working with chart JSP tag libraries, a chart data source may omit the actual data elements alltogether, and rely on that the data itself will be fetched from some external source, like a SQL database or a non-XML data file. The data column declarations will then just tell how this external data will be mapped to corresponding chart data streams. Please see for example the SQL column index attribute in <column/> tag for a mechanism of how to bind SQL table columns to corresponding chart data streams.

Examples

<data>
   <group id="points" type="value">
      <column values="1 2 4 8 16 32"/>
      <column values="0.5 -4.3 -4.2 8 8.2 8.201"/>
   </group>
   <column id="texts" type="label" >
      <element>Sample 1</element>
      <element>Sample 2</element>
      <element>Sample 3</element>
      <element>Sample 4</element>
      <element>Sample 5</element>
   </column>
</data>

Appears in

[toc] [elements] [attributes] [types]


<directional/>

<directional
[lightColor="SolidColorValue"] Direct light color.
[direction="Direction"] Direction vector.
>
</directional>

Element description

This tag defines a directional light source that emits light rays parallel to a given 3D direction vector. The direction vector is expressed relative to chart world coordinate system. All chart 3D models are placed at world coordinate origo, while the camera the models are viewed through is always fixed at a point along the positive Z -axis from where it looks back towards the origo, along the negative Z -direction. Useful reference directions for any directional light source would therefore be:

Directional light intensity does not attenuate with distance. Direction vector length does not also affect the light intensity in any way, so directional vectors "0 0 -1" and "0 0 -1000" will have exactly the same effect.

Examples

<chart>
   <attributes>
      <lighting>
         <directional lightColor="white" direction="-1 -1 -1"/>
      </lighting>
   </attributes>
</chart>

Appears in

Attribute Detail

<directional lightColor="SolidColorValue"/>
Tag specific description

Direct light color.

General description

See lightColor description.

Defaults
<directional lightColor="SolidColorValue"/>
NULL
<directional direction="Direction"/>
Tag specific description

Direction vector. The direction specifies the direction vector of the illumination emanating from the light source. Light is emitted along parallel rays from an infinite distance away.

General description

See direction description.

Defaults
<directional direction="Direction"/>
NULL

[toc] [elements] [attributes] [types]


<e/>

<e>
DataValue
</e>

Element description

Alternate shorthand form of the <element/> tag.

Appears in

[toc] [elements] [attributes] [types]


<element/>

<element>
DataValue
</element>

Element description

This tag and it's equivalent shorthand version the <e/> tag define one data element within a data channel. The data element value is defined by tag body content, which will be interpreted according the rules set by enclosing data channel data type and data format.

In certain circumtances channel data is fetched from some external source, and all <element/> and <e/> tags, if any, are ignored. Please see <data/> tag documentation for more information.

Examples

<e>text without preceding and trailing whitespace</e>
<e> text with preceding and trailing whitespace </e>
<element>text with significant
newlines</element>

<column dataType="text">
   <element>1/2/2000</element>
</column>
<column dataType="date" dataFormat="us">
   <element>1/2/2000</element>
</column>
<column dataType="date" dataFormat="d/M/y">
   <element>1/2/2000</element>
</column>

Appears in

[toc] [elements] [attributes] [types]


<group/>

<group
[group="Id"] Column group data group.
[id="Id"] Channel group identity.
[name="Text"] Name for this value group.
type="ColumnType" The role this data channel plays in a chart.
>
{<column/>}
</group>

Element description

This tag joins two or more data channels into one composite channel. The new composite channel contains structured composite elements, made by corresponding member channel elements: for example, the first elements of all group member channels will together form the first element of the composite channel. The member elements retain their original values and characteristics, but the elements are now just bundled together, and treated as a single structured value. Likewise, the resulting group behaves like any other data channel.

Structured elements are used in particular with scatter charts that plot X,Y coordinate value pairs as points in a two-dimensional coordinate system. Indeed, such charts expect that their value channels contain composite elements made of two simple, arithmetically computable values like scalar, time, or date values. Please see DataType for more information.

It is possible to give series attributes for nested <column/> tags with <series /> tag. However, such attributes are usually ignored because there is no use for such attributes. For example, giving a paint for the X-coordinate of a coordinate value pair in a scatter chart does not affect anything, because the paint of the pair is used. For a table chart, however, giving a paint for the X-coordinate of a coordinate value pair has a noticeable effect.

Examples

<chart>
   <data>
      <group type="value" id="participants">
         <column name="height" values="150 165 176 180"/>
         <column name="weight" values="50 52 76 80"/>
      </group>
   </data>
   <attributes chartType="scatter"/>
</chart>

<group id="networthestimates" type="value">
   <column id="x-x">
      <e>1/1/2002</e>
      <e>3/1/2002</e>
      <e>6/1/2002</e>
      <e>9/1/2002</e>
   </column>
   <column id="y" values="1,000.000 1,100.000 800.000 1,500.000"/>
</group>

Appears in

Attribute Detail

<group group="Id"/>
Tag specific description

Column group data group.

General description

See group description.

Defaults
<group group="Id"/>
NULL
<group id="Id"/>
Tag specific description

Channel group identity. <series/> tag id attributes may later refer to this identity value, in order to add or overwrite channel group attribute values.

General description

See id description.

Defaults
<group id="Id"/>
NULL
<group name="Text"/>
Tag specific description

Name for this value group.

General description

See name description.

Defaults
<group name="Text"/>
NULL
<group type="ColumnType"/>
Tag specific description

The role this data channel plays in a chart.

General description

See type description.

Defaults
<group type="ColumnType"/>
NULL
Footnotes
NoteAffectsDescription
note
candlestick
ohlc
scatter

Only these charts expect structured data at the moment. The charts expect only structured value channels.

[toc] [elements] [attributes] [types]


<image/>

<image
[antialiasMode="AntialiasMode"] Preferred rendering antialiasing policy.
[contentType="ContentType"] Chart output format.
[height="Size"] Chart image vertical size.
[imageParams="ImageParams"] Image content specific parameters.
[resolution="Resolution"] Image pixels-per-millimeter resolution, if any.
[width="Size"] Defines chart image horizontal size.
>
</image>

Element description

This tag defines chart image attributes that define on what kind of "canvas" the chart will be painted at. In particular, a typical chart image is rendered on a raster image, made of a finite number of pixels. The number of these pixels limits the amount of details that can be painted on the chart canvas. A raster canvas size should therefore usually exceed certain minimum size, since any attempt to draw too fine details on a too coarse a raster image will loose much of the original information, and result only an unreadable mess of pixels.

It is difficult to give any exact formula for required minimum raster image size, but one coarse rule would be that a raster width and height in pixels should be at least ten times the number of data points that is to be drawn into it. In typical simple cases where there are maybe 10-20 data points this gives raster sizes about 100-200 pixels wide and high. This falls well into the range of typical image sizes displayable on typical desktop display devices. However, it is easy to see that if there is ten times more data, or the display device width and height is ten times smaller, the ratio between visualization details and canvas resolution falls rapidly.

To reduce the negative effects of coarse raster canvases, chart image generators apply smart space conservation strategies on chart graphics component layout and rendering when the size of a raster chart image is decreased below chart raster "natural" size. This ensures the best possible text and symbol readability even in the most tighly packed chart images, intended to be displayed for example in small mobile devices.

If there are no strict outside constrains on chart raster image size, chart image generators may also be given the freedom to select and use a raster image size of their own choosing by simply leaving the canvas width and height undetermined. The resulting natural chart raster image size will depend in very complex ways on the selected chart type, attributes, and data. It is also possible to set only either raster width and height, in which case the other dimension size will be determined automatically.

It is also possible to use SVG vector graphics canvas instead of a raster image canvas. This largely avoids the resolution problem discussed above, or rather delegates it on the image display phase where a SVG capable display device must solve the problem of displaying a given SVG image on a given resolution display device.

If the chart output format is chosen to be a variant of text, most of the attributes that are used with an image output format are ignored.

Examples

<image width="200" height="100"/>

<image contentType="image/svg+xml"/>

Appears in

Attribute Detail

<image antialiasMode="AntialiasMode"/>
Tag specific description

Preferred rendering antialiasing policy.

General description

See antialiasMode description.

Defaults
<image antialiasMode="AntialiasMode"/>
off
Footnotes
NoteAffectsDescription
unsupported
table

Table chart does not support antialiasing.

<image contentType="ContentType"/>
Tag specific description

Chart output format.

General description

See contentType description.

Defaults
<image contentType="ContentType"/>
image/png
<image height="Size"/>
Tag specific description

Chart image vertical size.

General description

See height description.

Defaults
<image height="Size"/>
300 (for 3d charts) | varies (for 2d charts)
Footnotes
NoteAffectsDescription
unsupported
table

Table chart ignores this attribute.

<image imageParams="ImageParams"/>
Tag specific description

Image content specific parameters.

General description

See imageParams description.

Defaults
<image imageParams="ImageParams"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
table

Table chart does not create an image and thus ignores image parameters.

<image resolution="Resolution"/>
Tag specific description

Image pixels-per-millimeter resolution, if any.

General description

See resolution description.

Defaults
<image resolution="Resolution"/>
1
<image width="Size"/>
Tag specific description

Defines chart image horizontal size.

General description

See width description.

Defaults
<image width="Size"/>
400 (for 3d charts) | varies (for 2d charts)
Footnotes
NoteAffectsDescription
note
table

Table chart creates a table with the given width. Rendering the table, however, might show a wider table. This can happen if the table with long texts in the cells is rendered with a browser, for example.

[toc] [elements] [attributes] [types]


<init/>

<init
[initializer="SOMInitializer"] SOM initialization method.
[height="Size"] Vertical size of the Self-Organized Map in cells.
[neighborhood="SOMNeighborhood"] Used neighborhood function.
[seed="PositiveInteger"] Seed for random number generator.
[topology="SOMTopology"] Used map topology.
[width="Size"] Horizontal size of the Self-Organized Map in cells.
>
</init>

Element description

Initialization parameters for SOM. Controls the size, topology, used neighborhood function, and the intialization of a Self-Organizing Map. If init tag is given, only initialization will be performed, unless there are other SOM controlling tags.

Examples

<init width="12" height="8" seed="342074" />

Appears in

Attribute Detail

<init initializer="SOMInitializer"/>
Tag specific description

SOM initialization method. If "linear" initializer is used, then the ordering phase can be left out. When using "rand" intializer, then the map training is usually made in two phases - i.e. two train-tags are needed.

General description

See initializer description.

Defaults
<init initializer="SOMInitializer"/>
linear
Footnotes
NoteAffectsDescription
supported
SOM

Requires SOM Extension.

<init height="Size"/>
Tag specific description

Vertical size of the Self-Organized Map in cells.

General description

See height description.

Defaults
<init height="Size"/>
2/3*width | f(sample count)
Footnotes
NoteAffectsDescription
unsupported
table

Table chart ignores this attribute.

<init neighborhood="SOMNeighborhood"/>
Tag specific description

Used neighborhood function. Affects to how the neighborhood is calculated (e.g. during training).

General description

See neighborhood description.

Defaults
<init neighborhood="SOMNeighborhood"/>
bubble
Footnotes
NoteAffectsDescription
supported
SOM

Requires SOM Extension.

<init seed="PositiveInteger"/>
Tag specific description

Seed for random number generator. Map initialization uses random numbers, so this affects to it. If all paramters are the same (including the seed) and the same data set is used, the resulted SOM will be the same.

General description

See seed description.

Defaults
<init seed="PositiveInteger"/>
null
Footnotes
NoteAffectsDescription
supported
SOM

Requires SOM Extension.

<init topology="SOMTopology"/>
Tag specific description

Used map topology. Affects to how the cells are laid onto the map and how the distances between cells are calcluated.

General description

See topology description.

Defaults
<init topology="SOMTopology"/>
hexagon
Footnotes
NoteAffectsDescription
supported
SOM

Requires SOM Extension.

<init width="Size"/>
Tag specific description

Horizontal size of the Self-Organized Map in cells.

General description

See width description.

Defaults
<init width="Size"/>
3/2*height | f(sample count)
Footnotes
NoteAffectsDescription
note
table

Table chart creates a table with the given width. Rendering the table, however, might show a wider table. This can happen if the table with long texts in the cells is rendered with a browser, for example.

[toc] [elements] [attributes] [types]


<label/>

<label
[clearLabels="Boolean"] Clears old labels from the SOM before labeling.
>
</label>

Element description

Labels SOM. If the labeling is asked for a ready-made SOM (given in the source-attribute of som-element), then the SOM is just labeled using the given data source. Otherwise the SOM is initialized and trained before labeling. If there are no given initialization nor training parameters then those tasks are performed using default parameters.

Examples

<label />

Appears in

Attribute Detail

<label clearLabels="Boolean"/>
Tag specific description

Clears old labels from the SOM before labeling. This is not necessary when creating a new SOM due to the fact that it hasn't got labels yet.

Typical case when labels are cleared is when the data contains several columns suitable for labeling and user asks relabeling. A typical case when labels are not cleared is when mapping new data rows to an existing SOM.

General description

See clearLabels description.

Defaults
<label clearLabels="Boolean"/>
false
Footnotes
NoteAffectsDescription
supported
SOM

Requires SOM Extension.

[toc] [elements] [attributes] [types]


<legend/>

<legend
[backColor="PaintValue"] Background borderline color.
[backPaint="PaintValue"] Background color of the legend box.
[backStroke="Stroke"] Legend background area borderline width and style.
[color="PaintValue"] Legend default color.
[font="Font"] Default legend font.
[gap="Percentage"] Relative gap between legend edge and symbols.
[height="Size"] Defines legend vertical size when the legend is embedded into chart image.
[hidden="Boolean"] Defines if legend should be hidden or not.
[labelColor="PaintValue"] Legend label color.
[labelFont="Font"] Legend label font.
[labelOffset="Size"] Distance between legend entries.
[legendAlignment="LegendAlignment"] Legend placement.
[legendType="LegendType"] Legend type.
[margin="MarginString"] Default margins around chart.
[marginBottom="Margin"] Bottom margin.
[marginLeft="Margin"] Left margin.
[marginRight="Margin"] Right margin.
[marginTop="Margin"] Top margin.
[orientation="Orientation"] Orientation of the legend.
[paint="PaintValue"] Default paint.
[stroke="Stroke"] Default legend line width and style.
[width="Size"] Defines legend horizontal size when the legend is embedded into chart image.
>
</legend>

Element description

This tag adds a legend to a chart image. A legend explains the symbols and color codes used in a chart, and therefore binds more meaning to the actual data visualizations.

The <legend/> tag attributes control legend placement relative to the actual chart, and some major appearance aspects like font and legend area background paint. All other layout and appearance aspects and legend content are derived automatically from the main chart.

Please note that legends may also be generated separately by selecting legend as the main chart type. This procedure produces a stand-alone legend image, which is useful when chart and and legends images need to be laid out carefully amongst some other content. However, if no custom legend layout control is needed, the <legend/> tag is the recommended method of legend construction.

Examples

<legend legendAlignment="down"/>

<legend paint="lightBlue" legendAlignment="left" marginLeft="10"/>

Appears in

Attribute Detail

<legend backColor="PaintValue"/>
Tag specific description

Background borderline color.

General description

See backColor description.

Defaults
<legend backColor="PaintValue"/>
<legend color="PaintValue"/>
black
Footnotes
NoteAffectsDescription
unsupported
table

Table chart ignores this setting.

<legend backPaint="PaintValue"/>
Tag specific description

Background color of the legend box.

General description

See backPaint description.

Defaults
<legend backPaint="PaintValue"/>
<legend paint="PaintValue"/>
NULL
<legend backStroke="Stroke"/>
Tag specific description

Legend background area borderline width and style.

General description

See backStroke description.

Defaults
<legend backStroke="Stroke"/>
<legend stroke="Stroke"/>
0
Footnotes
NoteAffectsDescription
note
legend

Chart and legend background areas are two separate things, and their appearance can be controlled separately. In particular, if they are both set, and a legend chart is drawn alone, the legend will be surrounded with two border lines, the outer one controlled by chart area background attributes, and the inner one controlled by legend background attribute.

unsupported
table

Table chart ignores this setting.

exception
area3d
bar3d
column3d
line3d

Only width setting is supported.

<legend color="PaintValue"/>
Tag specific description

Legend default color. If set, it will be used as the default color for all legend specific color settings for this legend. In particular, the following color settings will use this attribute as their default value.

Each listed attribute may later be set individually, overriding this generic setting.

General description

See color description.

Defaults
<legend color="PaintValue"/>
black
<legend font="Font"/>
Tag specific description

Default legend font. If set, it will be used as the default font for all legend specific font settings within this legend. In particular, the following font settings will gain a new default value.

Each listed attribute may later be set individually, overriding this generic setting.

General description

See font description.

Defaults
<legend font="Font"/>
<plot font="Font"/>
Serif-12
<legend gap="Percentage"/>
Tag specific description

Relative gap between legend edge and symbols. In particular, making the gap larger will make legend symbols relatively smaller, and vice versa.

General description

See gap description.

Defaults
<legend gap="Percentage"/>
20
<legend height="Size"/>
Tag specific description

Defines legend vertical size when the legend is embedded into chart image. The legend height may not exceed the chart image height.

General description

See height description.

Defaults
<legend height="Size"/>
varies
Footnotes
NoteAffectsDescription
unsupported
table

Table chart ignores this attribute.

<legend hidden="Boolean"/>
Tag specific description

Defines if legend should be hidden or not. If left undefined, the legend will be visible if a legend tag is defined, and hidden otherwise. In particular, even an empty legend tag will generate a visible legend.

General description

See hidden description.

Defaults
<legend hidden="Boolean"/>
false
Footnotes
NoteAffectsDescription
unsupported
area3d
bar3d
column3d
line3d

These charts do not support hidden attribute.

<legend labelColor="PaintValue"/>
Tag specific description

Legend label color. This color affects to the color of the text of the labels. The symbols before the texts take their color and paint values from column and plot tags.

General description

See labelColor description.

Defaults
<legend labelColor="PaintValue"/>
<legend color="PaintValue"/>
black
<legend labelFont="Font"/>
Tag specific description

Legend label font.

General description

See labelFont description.

Defaults
<legend labelFont="Font"/>
<legend font="Font"/>
<plot font="Font"/>
Serif-12
<legend labelOffset="Size"/>
Tag specific description

Distance between legend entries.

General description

See labelOffset description.

Defaults
<legend labelOffset="Size"/>
label font size / 4
Footnotes
NoteAffectsDescription
note
legend

The default value for horizontal and vertical label offsets may differ from each other in scale legends.

unsupported
hex
pie
pie3d
rect

These chart types do not draw axes or labels along them, so they do just ignore this setting.

unsupported
area3d
bar3d
column3d
line3d
table

These charts do not support labelOffset attribute.

supported
legend

Only legend chart supports label offset in the legend tag. Furthermore, legend chart does not draw axes or labels along them, so label offset in axes and axis tags is ignored.

<legend legendAlignment="LegendAlignment"/>
Tag specific description

Legend placement.

General description

See legendAlignment description.

Defaults
<legend legendAlignment="LegendAlignment"/>
right
<legend legendType="LegendType"/>
Tag specific description

Legend type.

General description

See legendType description.

Defaults
<legend legendType="LegendType"/>
NULL
Footnotes
NoteAffectsDescription
note
all

If the main chart does not support the type of the visualization scale that is selected for the legend, the information value of the legend is questionable.

<legend margin="MarginString"/>
Tag specific description

Default margins around chart. If set, it will be used as the default margin for all chart specific margin settings for this chart. In particular, the following margin settings will use this attribute as their default value.

Each listed attribute may later be set individually, overriding this generic setting.

General description

See margin description.

Defaults
<legend margin="MarginString"/>
0|5(if between chart and legend box)
<legend marginBottom="Margin"/>
Tag specific description

Bottom margin.

General description

See marginBottom description.

Defaults
<legend marginBottom="Margin"/>
<legend margin="Margin"/>
0|5(if between chart and legend box)
<legend marginLeft="Margin"/>
Tag specific description

Left margin.

General description

See marginLeft description.

Defaults
<legend marginLeft="Margin"/>
<legend margin="Margin"/>
0|5(if between chart and legend box)
<legend marginRight="Margin"/>
Tag specific description

Right margin.

General description

See marginRight description.

Defaults
<legend marginRight="Margin"/>
<legend margin="Margin"/>
0|5(if between chart and legend box)
<legend marginTop="Margin"/>
Tag specific description

Top margin.

General description

See marginTop description.

Defaults
<legend marginTop="Margin"/>
<legend margin="Margin"/>
0|5(if between chart and legend box)
<legend orientation="Orientation"/>
Tag specific description

Orientation of the legend.

General description

See orientation description.

Defaults
<legend orientation="Orientation"/>
horizontal (legendAlignment is down or up) | vertical (legendAlignment is left or right)
Footnotes
NoteAffectsDescription
exception
legend

Scale legends do not support center orientation.

note
legend

Only legend types that show scales support the selection of descending or ascending order of entries.

supported
legend

Only legend chart supports orientation attribute.

<legend paint="PaintValue"/>
Tag specific description

Default paint. If set, it will be used as the default paint for all paint specific settings for this legend. In particular, the following paint settings will use this attribute as their default value.

Each listed attribute may later be set individually, overriding this generic setting.

General description

See paint description.

Defaults
<legend paint="PaintValue"/>
NULL
<legend stroke="Stroke"/>
Tag specific description

Default legend line width and style. If set, it will be used as the default for all line width and style settings for this legend. In particular, the following line width and style settings will use this attribute as their default value.

Each listed attribute may later be set individually, overriding this generic setting.

General description

See stroke description.

Defaults
<legend stroke="Stroke"/>
0
Footnotes
NoteAffectsDescription
exception
area3d
bar3d
column3d
line3d

Only width setting is supported.

<legend width="Size"/>
Tag specific description

Defines legend horizontal size when the legend is embedded into chart image. The legend width may not exceed the chart image width.

General description

See width description.

Defaults
<legend width="Size"/>
varies
Footnotes
NoteAffectsDescription
note
table

Table chart creates a table with the given width. Rendering the table, however, might show a wider table. This can happen if the table with long texts in the cells is rendered with a browser, for example.

[toc] [elements] [attributes] [types]


<lighting/>

<lighting
[ambientColor="SolidColorValue"] Ambient light is that light that seems to come from all directions.
>
[<directional/>]
</lighting>

Element description

This tag defines lighting aspects applied on true 3D charts. Charts that do not use 3D modeling will ignore this tag.

Chart lighting is composed of an ambient light component, and any number of directional light components. The resulting lighting is the sum of all these light sources.

Examples

<lighting ambientColor="white"/>

<lighting ambientColor="white">
   <directional lightColor="yellow" direction="0 0 1" >
</lighting>

Appears in

Attribute Detail

<lighting ambientColor="SolidColorValue"/>
Tag specific description

Ambient light is that light that seems to come from all directions. Ambient reflections do not depend on the orientation or position of the Chart. The ambientColor attribute specifies the spectral color property of the ambient light emission.

General description

See ambientColor description.

Defaults
<lighting ambientColor="SolidColorValue"/>
black
Footnotes
NoteAffectsDescription
supported
area3d
bar3d
column3d
line3d
pie3d

These charts support the 3D lighting model.

[toc] [elements] [attributes] [types]


<marker/>

<marker
[alignment="Alignment"] Marker default alignment.
[color="PaintValue"] Marker default color.
[font="Font"] Marker default font.
[labelAlignment="Alignment"] Marker label alignment.
[labelColor="PaintValue"] Marker label color.
[labelFont="Font"] Marker label font.
[labelPaint="PaintValue"] Marker label background fill color.
[labelRotation="Degrees"] Marker label orientation.
[labelText="Text"] Marker label text.
[lineColor="PaintValue"] Marker line color.
[linePaint="PaintValue"] Paint for the area designated by the marker.
[lineStroke="Stroke"] Marker line width and style.
[paint="PaintValue"] Marker default paint.
[pointColor="PaintValue"] Symbol edge color.
[pointPaint="PaintValue"] Symbol interior color.
[pointShape="Shape"] Symbol shape.
[pointStroke="Stroke"] Symbol edge line width and style.
position="Position" Marker position.
[shape="Shape"] Sets default shape for the pointShape attribute.
[stroke="Stroke"] Default line width and style for this marker.
>
</marker>

Element description

This tag defines an axis value marker that highlights a certain point along an axis. Any number of markers may be defined, and each marker will hightlight exactly one point.

The exact marker visualization depends on the chart type in question, but in each case the marker is associated with a label text, a symbol, and a line that divides the axis range into values smaller and greater than given marker position value.

Examples

<chart>
   <data>
      <column type="value" values="100 150 200"/>
   </data>
   <attributes chartType="column">
      <axes>
         <axis dim="1">
            <marker position="200" linecolor="red" labelText="MAX"/>
         </axis>
      </axes>
   </attributes>
</chart>

<chart>
   <data>
      <column type="value" values="100 150 200"/>
   </data>
   <attributes chartType="column">
      <axes>
         <axis dim="1">
            <marker position="100" labelText="MIN"/>
            <marker position="200" labelText="MAX" linePaint="green-20%"/>
         </axis>
      </axes>
   </attributes>
</chart>

<chart>
   <data>
      <column type="value" values="100 150 200"/>
   </data>
   <attributes chartType="column">
      <axes>
         <axis dim="1">
            <marker position="100" labelText="MIN" linePaint="red-20%"/>
            <marker position="200" labelText="MAX" linePaint="green-20%"/>
            <marker position="after" linePaint="blue-20%"/>
         </axis>
      </axes>
   </attributes>
</chart>

Appears in

Attribute Detail

<marker alignment="Alignment"/>
Tag specific description

Marker default alignment. If set, it will be used as the default alignment for all marker specific alignment settings for this marker. In particular, the following alignment settings will use this attribute as their default value.

Each listed attribute may later be set individually, overriding this generic setting.

General description

See alignment description.

Defaults
<marker alignment="Alignment"/>
center
<marker color="PaintValue"/>
Tag specific description

Marker default color. If set, it will be used as the default color for all marker specific color settings for this marker. In particular, the following color settings will use this attribute as their default value.

Each listed attribute may later be set individually, overriding this generic setting.

General description

See color description.

Defaults
<marker color="PaintValue"/>
<axis color="PaintValue"/>
<axes color="PaintValue"/>
black
<marker font="Font"/>
Tag specific description

Marker default font. If set, it will be used as the default font for all marker specific font settings within this marker. In particular, the following font settings will gain a new default value.

Each listed attribute may later be set individually, overriding this generic setting.

General description

See font description.

Defaults
<marker font="Font"/>
<axis font="Font"/>
<axes font="Font"/>
Serif-12
<marker labelAlignment="Alignment"/>
Tag specific description

Marker label alignment.

General description

See labelAlignment description.

Defaults
<marker labelAlignment="Alignment"/>
<marker alignment="Alignment"/>
center
Footnotes
NoteAffectsDescription
exception
pie
pie3d

Only 'inside' and 'outside' values are implemented for pie charts.

unsupported
area3d
bar3d
column3d
line3d

These charts do not support alignment attribute.

<marker labelColor="PaintValue"/>
Tag specific description

Marker label color.

General description

See labelColor description.

Defaults
<marker labelColor="PaintValue"/>
<marker color="PaintValue"/>
<axis labelColor="PaintValue"/>
<axis color="PaintValue"/>
<axes labelColor="PaintValue"/>
<axes color="PaintValue"/>
black
<marker labelFont="Font"/>
Tag specific description

Marker label font.

General description

See labelFont description.

Defaults
<marker labelFont="Font"/>
<marker font="Font"/>
<axis labelFont="Font"/>
<axis font="Font"/>
<axes labelFont="Font"/>
<axes font="Font"/>
Serif-12
<marker labelPaint="PaintValue"/>
Tag specific description

Marker label background fill color.

General description

See labelPaint description.

Defaults
<marker labelPaint="PaintValue"/>
<marker paint="PaintValue"/>
NULL
<marker labelRotation="Degrees"/>
Tag specific description

Marker label orientation.

Please note that this is a marker specific attribute that does not inherit it's value from anywhere, and is therefore unaffected in particular by any axis value label rotation attributes.

General description

See labelRotation description.

Defaults
<marker labelRotation="Degrees"/>
0
Footnotes
NoteAffectsDescription
unsupported
hex
legend
pie
pie3d
rect

These chart types do not draw axes or labels along them, so they do just ignore this setting.

unsupported
area3d
bar3d
column3d
line3d

These chart types do draw axes or labels along them, but they do not support labelRotation attribute at the moment.

unsupported
table

Table chart does not support labelRotation attribute.

<marker labelText="Text"/>
Tag specific description

Marker label text. The label of a marker will reside next to the labels of the axis that this marker intersects.

General description

See labelText description.

Defaults
<marker labelText="Text"/>
NULL
<marker lineColor="PaintValue"/>
Tag specific description

Marker line color. This line consists of a line perpendicular to the marker's axis, and crossing the axis at the point given by the value of a position attribute.

General description

See lineColor description.

Defaults
<marker lineColor="PaintValue"/>
<marker color="PaintValue"/>
<axis gridColor="PaintValue"/>
<axis color="PaintValue"/>
<axes gridColor="PaintValue"/>
<axes color="PaintValue"/>
black
Footnotes
NoteAffectsDescription
unsupported
bar
bar3d
candlestick
column
column3d
hex
legend
line3d
ohlc
pie
pie3d
rect
table

These charts do not adjance data points with lines and thus ignore this setting.

<marker linePaint="PaintValue"/>
Tag specific description

Paint for the area designated by the marker. This paint will be applied to the area before the value of the position of this marker. Area until the position of the previous marker, if any, in the axis will be affected.

General description

See linePaint description.

Defaults
<marker linePaint="PaintValue"/>
<marker paint="PaintValue"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
bar
bar3d
candlestick
column
column3d
hex
legend
line3d
ohlc
pie
pie3d
rect
table

These charts do not adjance data points with lines and thus ignore this setting.

<marker lineStroke="Stroke"/>
Tag specific description

Marker line width and style. This setting affects the line that crosses the axis at the value given by the position attribute of this marker.

General description

See lineStroke description.

Defaults
<marker lineStroke="Stroke"/>
<marker stroke="Stroke"/>
<axis gridStroke="Stroke"/>
<axis stroke="Stroke"/>
<axes gridStroke="Stroke"/>
<axes stroke="Stroke"/>
(solid-)1
Footnotes
NoteAffectsDescription
unsupported
bar
bar3d
candlestick
column
column3d
hex
legend
line3d
ohlc
pie
pie3d
rect
table

These charts do not adjance data points with lines and thus ignore this setting.

exception
area3d
line3d

Only width setting is supported.

<marker paint="PaintValue"/>
Tag specific description

Marker default paint. If set, it will be used as the default paint for all marker specific paint settings for this marker. In particular, the following paint settings will use this attribute as their default value.

Each listed attribute may later be set individually, overriding this generic setting.

If this attribute is not set, the default values for the attributes listed above are taken from different axis attributes. See their documentation for defaulting details.

General description

See paint description.

Defaults
<marker paint="PaintValue"/>
NULL
<marker pointColor="PaintValue"/>
Tag specific description

Symbol edge color. The edges of the symbol of the marker are painted with this color.

General description

See pointColor description.

Defaults
<marker pointColor="PaintValue"/>
<marker color="PaintValue"/>
<axis ticColor="PaintValue"/>
<axis color="PaintValue"/>
<axes ticColor="PaintValue"/>
<axes color="PaintValue"/>
black
Footnotes
NoteAffectsDescription
unsupported
area3d
bar3d
column3d
hex
legend
line3d
pie3d
rect
table

These charts ignore this setting.

exception
line
scatter

The default value for these charts is "default".

exception
bar
candlestick
column
ohcl

These charts support shapes defined in marker tag.

<marker pointPaint="PaintValue"/>
Tag specific description

Symbol interior color. The interior of the symbol of the marker is painted with this color.

General description

See pointPaint description.

Defaults
<marker pointPaint="PaintValue"/>
<marker paint="PaintValue"/>
<axis paint="PaintValue"/>
<axes paint="PaintValue"/>
lightgray (for backPaint) | NULL (for marker pointPaint) | backPaint of plot tag (for labelPaint)
Footnotes
NoteAffectsDescription
unsupported
area3d
bar3d
column3d
hex
legend
line3d
ohcl
pie3d
rect
table

These charts ignore this setting.

exception
bar
column
line
pie
scatter

The default value for these charts is "default".

exception
candlestick

The default value for this chart is "white,black".

exception
bar
candlestick
column
ohcl

These charts support shapes defined in marker tag.

<marker pointShape="Shape"/>
Tag specific description

Symbol shape. The symbol of the marker has this shape.

General description

See pointShape description.

Defaults
<marker pointShape="Shape"/>
<marker shape="Shape"/>
tic mark
Footnotes
NoteAffectsDescription
unsupported
area3d
bar
bar3d
candlestick
column
column3d
hex
legend
line3d
ohcl
pie
pie3d
rect
table

These charts do not support custom shapes and thus they ignore this setting.

exception
bar
candlestick
column
ohcl

These charts support shapes defined in marker tag.

<marker pointStroke="Stroke"/>
Tag specific description

Symbol edge line width and style. The edges of the symbol of the marker are rendered with this stroke.

General description

See pointStroke description.

Defaults
<marker pointStroke="Stroke"/>
<marker stroke="Stroke"/>
<axis ticStroke="Stroke"/>
<axis stroke="Stroke"/>
<axes ticStroke="Stroke"/>
<axes stroke="Stroke"/>
(solid-)1
Footnotes
NoteAffectsDescription
unsupported
area3d
bar3d
column3d
hex
legend
line3d
pie3d
rect
table

These charts ignore this setting.

exception
bar
candlestick
column
ohcl

These charts support shapes defined in marker tag.

<marker position="Position"/>
Tag specific description

Marker position. This marker line will intersect this axis at this position.

General description

See position description.

Defaults
<marker position="Position"/>
NULL
Footnotes
NoteAffectsDescription
exception
bar
candlestick
column
combo
line
ohcl
scatter

When the value of the position is before or min, the marker is not drawn at all.

The position of after works as the position of max. The marker line is not drawn at the maximum data value of the axis, but the painting of the area before the marker is done.

unsupported
area3d
bar3d
column3d
hex
legend
line3d
pie
pie3d
rect
table

These charts do not support position attribute on an axis (on axes, axis and marker tags.)

<marker shape="Shape"/>
Tag specific description

Sets default shape for the pointShape attribute.

General description

See shape description.

Defaults
<marker shape="Shape"/>
tic mark
Footnotes
NoteAffectsDescription
unsupported
area3d
bar3d
column3d
combo
hex
legend
line3d
pie
pie3d
rect
table

These charts do not support shapes in any form and thus they ignore this setting.

exception
bar
candlestick
column
ohcl

These charts support only shapes defined in marker tag.

<marker stroke="Stroke"/>
Tag specific description

Default line width and style for this marker. If set, it will be used as the default for all marker specific line width and style settings for this marker. In particular, the following marker line width and style settings will use this attribute as their default value.

Each listed attribute may later be set individually, overriding this generic setting.

If this attribute is not set, the default values for the attributes listed above are taken from different axis attributes. See their documentation for defaulting details.

General description

See stroke description.

Defaults
<marker stroke="Stroke"/>
Footnotes
NoteAffectsDescription
exception
area3d
bar3d
column3d
line3d

Only width setting is supported.

[toc] [elements] [attributes] [types]


<memoryBuffer/>

<memoryBuffer>
{<bean/>}
{<collection/>}
{<column/>}
{<csv/>}
{<group/>}
{<movingAverage/>}
{<pivot/>}
{<sort/>}
{<sql/>}
{<xpath/>}
</memoryBuffer>

Element description

Memory buffer data source can be used to cache incoming data stream to the memory. This can be useful, for example, when training a SOM map.

Appears in

[toc] [elements] [attributes] [types]


<movAvgColumn/>

<movAvgColumn
column="Text" ID of the input column to be selected as the source.
id="Id" ID for the output column.
[name="Text"] Name for the output column.
[type="ColumnType"] Type for the output column.
>
</movAvgColumn>

Element description

This element is used to identify the column for which the average is calculated and to define the properties of the output column. Basically, one should select one column from the input data by column attribute.

If the given id is the same as of one of the input data series ids, then the matched input data series is replaced by the moving average in the output data. Otherwise, all input data series are present in the output data and a new column for moving average is added to the output data.

Appears in

Attribute Detail

<movAvgColumn column="Text"/>
Tag specific description

ID of the input column to be selected as the source.

General description

See column description.

Defaults
<movAvgColumn column="Text"/>
NULL
<movAvgColumn id="Id"/>
Tag specific description

ID for the output column.

General description

See id description.

Defaults
<movAvgColumn id="Id"/>
NULL
<movAvgColumn name="Text"/>
Tag specific description

Name for the output column. If the name is not specified, the output column will be named as:

General description

See name description.

Defaults
<movAvgColumn name="Text"/>
mov.avg. for <input column name>
mov.avg. for <input column id>
<movAvgColumn type="ColumnType"/>
Tag specific description

Type for the output column.

General description

See type description.

Defaults
<movAvgColumn type="ColumnType"/>
NULL

[toc] [elements] [attributes] [types]


<movingAverage/>

<movingAverage
[period="PositiveInteger"] Length of an average period.
[avgType="AverageType"] Type of moving average.
>
[<movAvgColumn/>]
<bean/> |
<collection/> |
<csv/> |
<movingAverage/> |
<pivot/> |
<sort/> |
<sql/> |
<xpath/>
</movingAverage>

Element description

With moving average element one can calculate simple and exponential moving averages from incoming data.

Simple moving average (SMA) is calculated by taking a group that has a length of period values from incoming data, summing the values together and dividing the sum by the number of values. The next SMA value is calculated by skipping the first incoming data value and taking the next group of values from which the SMA is calculated. Up to the first period-1 output values are undefined and set to null.

Exponential moving average (EMA) adjusts the previous exponential moving average value by a certain fraction of the current value. For example, EMA for given time t from input Data can be calculated as follows:

EMA[t] = ( (Data[t] - EMA[t-1] ) x Multiplier) + EMA[t-1]

where Multiplier is defined as:

Multiplier = 2 / (1 + period)

Thus the longer the period is the slower EMA is to adjust.

The first period-1 EMAs are not defined and are set to null. EMA[period] is calculated using SMA[period].

Missing null values are treated as follows: In SMA case, those values are not added to the sum and also the divisor is reduced by one. If all the values in the last group are null, then SMA is given a value of null. In EMA case, null values are just ignored and EMA stays the same as it was for the previous calculation.

Averaging calculation is done by selecting one incoming column, which will produce one extra outgoing column to the output data.

When using moving average element one should define at least the period for calculating average, and incoming data source. As a default simple moving average will be calculated. The first input data column of value type is selected unless the column for the average is specified with movAvgColumn. Output data will usually contain as many columns as the incoming data, plus one containing the output of the operation.

Examples


<movingAverage period="4"/>
   <sql source="..." query="..."/>
<movingAverage/>

<movingAverage avgType="exponential" period="3"/>
   <movAvgColumn column="price" id="avgprice" name="EMA(price)" />
   <csv url="...">
<movingAverage/>

Appears in

Attribute Detail

<movingAverage period="PositiveInteger"/>
Tag specific description

Length of an average period. For simple moving average this determines number of data values used for determining average value. For exponential moving average period affects how quickly average reacts to trend changes. The longer the period, the slower the exponential average is to adjust.

General description

See period description.

Defaults
<movingAverage period="PositiveInteger"/>
5
<movingAverage avgType="AverageType"/>
Tag specific description

Type of moving average.

General description

See avgType description.

Defaults
<movingAverage avgType="AverageType"/>
simple

[toc] [elements] [attributes] [types]


<normalize/>

<normalize
[weightsFrom="DataValue"] Input SOM map.
>
{<normalizeColumn/>}
<bean/> |
<collection/> |
<csv/> |
<movingAverage/> |
<pivot/> |
<sort/> |
<sql/> |
<xpath/>
</normalize>

Element description

This datasource can be used to normalize numeric input data. Normalization is done columnwise, by removin average and dividing by standard deviation. Purpose of this operation is to make all columns of equal weight, when euclidiean distance between datavectors is calculated. For example, when training SOM maps, it is often advisable to normalize input data.

As a default, all the input data columns of numeric format are normalized. Other data, such as labels, are passed through as is.

One can select only some of the input data columns. This can be done by introducing each imported column by normalizeColumn elements.

Each of the imported columns can be given a scalar weigth. After normalization is done, each element belonging to this column are multiplied by this factor. If the weight is negative, then normalization is omitted and the column is passed through as is.

Normalization can be reveserd. Meta information is attached to all normalized data.

Examples


<normalize>
   <csv> ... </csv>
</normalize>


<normalize>
   <csv> ... </csv>
   <normalizeColumn column="colA" weight="2">
   <normalizeColumn column="colB" >
   <normalizeColumn column="label" weight="-1">
</normalize>

Appears in

Attribute Detail

<normalize weightsFrom="DataValue"/>
Tag specific description

Input SOM map. If this input SOM map contains normalization information, it is used instead of normalization information derived from input data.

General description

See weightsFrom description.

Defaults
<normalize weightsFrom="DataValue"/>
NULL

[toc] [elements] [attributes] [types]


<normalizeColumn/>

<normalizeColumn
[column="Text"] ID of the input column to be selected from the result set.
[weight="DataValue"] This column is weighted by multiplying by this weight after normalization.
>
</normalizeColumn>

Element description

If any normalizeColumns have been defined, then only identified columns are imported. If columns are not given, all input data columns are subject to normalization operation.

Appears in

Attribute Detail

<normalizeColumn column="Text"/>
Tag specific description

ID of the input column to be selected from the result set.

General description

See column description.

Defaults
<normalizeColumn column="Text"/>
NULL
<normalizeColumn weight="DataValue"/>
Tag specific description

This column is weighted by multiplying by this weight after normalization. The default weight value is 1. If weight is given a negative value, then this column is passed through as is, without normalization. Negative weights can be used to include labels, for example.

General description

See weight description.

Defaults
<normalizeColumn weight="DataValue"/>
NULL

[toc] [elements] [attributes] [types]


<paintPoint/>

<paintPoint
[interpolationMode="InterpolationMode"] Determines whether interpolation is used for this point in determining a paint for rendering a data value.
[legendFormat="LegendFormat"] Legend entry text format.
[minPaint="ColorValue"] Determines the paint of the lower end of this point.
paint="PaintValue" Determines the paint of the upper end of this point.
position="Position" Determines the position of this point in a paint scale.
[positionType="PositionType"] Interpretation type for position.
>
</paintPoint>

Element description

Each paint point defines a point in a paint scale. The value of the point is defined by the position and positionType attributes.

When a data value is rendered, a possible value attached to the data value with a paint channel is compared to the values of paint points. The paint point that has the smallest value that is greater than or equal to the value attached to a data value is selected. Therefore, there is a certain range of values attached to data values that correspond to the same paint point. The maximum value of this range, which happens to be the value of the point itself, is considered to be the upper end of the point. The minimum value of this range, which is a value that is just a little bit greater than the value of the previous point, is considered to be the lower end of the point. The previous point is the point with a value that is the greatest of those points that have a value that is smaller than the value of this point.

Depending from the chart, the paint(s) of the selected paint point may be used in the rendering of the data value.

Appears in

Attribute Detail

<paintPoint interpolationMode="InterpolationMode"/>
Tag specific description

Determines whether interpolation is used for this point in determining a paint for rendering a data value.

General description

See interpolationMode description.

Defaults
<paintPoint interpolationMode="InterpolationMode"/>
<paintScale interpolationMode="InterpolationMode"/>
NULL
<paintPoint legendFormat="LegendFormat"/>
Tag specific description

Legend entry text format.

General description

See legendFormat description.

Defaults
<paintPoint legendFormat="LegendFormat"/>
<paintScale legendFormat="LegendFormat"/>
NULL
Footnotes
NoteAffectsDescription
note
legend

Only scale legend types support legendFormat.

<paintPoint minPaint="ColorValue"/>
Tag specific description

Determines the paint of the lower end of this point. This paint is used only if interpolationMode attribute has been defined for this point.

General description

See minPaint description.

Defaults
<paintPoint minPaint="ColorValue"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
area3d
bar3d
column3d
legend
line3d
pie
pie3d
table

These charts do not support minPaint setting in plot tag.

<paintPoint paint="PaintValue"/>
Tag specific description

Determines the paint of the upper end of this point. If the minPaint and interpolationMode attributes are not defined, this paint is used for the whole range of values that correspond to this point.

General description

See paint description.

Defaults
<paintPoint paint="PaintValue"/>
NULL
Footnotes
NoteAffectsDescription
exception
all

If the minPaint and interpolationMode attributes are defined, the type of this paint is ColorValue, not PaintValue.

<paintPoint position="Position"/>
Tag specific description

Determines the position of this point in a paint scale.

General description

See position description.

Defaults
<paintPoint position="Position"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
area3d
bar3d
column3d
hex
legend
line3d
pie
pie3d
rect
table

These charts do not support position attribute on an axis (on axes, axis and marker tags.)

<paintPoint positionType="PositionType"/>
Tag specific description

Interpretation type for position.

General description

See positionType description.

Defaults
<paintPoint positionType="PositionType"/>
NULL
Footnotes
NoteAffectsDescription
note
all

If the position type is set to percent, the values of the position are restricted further. The values have to be integers that are greater than 0, but less than or equal to 100.

[toc] [elements] [attributes] [types]


<paintScale/>

<paintScale
[interpolationMode="InterpolationMode"] Provides default interpolation mode for the points of this scale.
[legendFormat="LegendFormat"] Legend entry text format.
>
{<paintPoint/>}
</paintScale>

Element description

Paint scale defines how the values of paint channels should be used for rendering the chart. Each paint scale is composed of a number of paint points. The paint points that are collected to a paint scale define a sequence of paints that are used for rendering the chart. The sequence can be continuous and cover all values in paint channels or the sequence can have gaps for which no visible paint is defined.

Appears in

Attribute Detail

<paintScale interpolationMode="InterpolationMode"/>
Tag specific description

Provides default interpolation mode for the points of this scale.

General description

See interpolationMode description.

Defaults
<paintScale interpolationMode="InterpolationMode"/>
NULL
<paintScale legendFormat="LegendFormat"/>
Tag specific description

Legend entry text format.

General description

See legendFormat description.

Defaults
<paintScale legendFormat="LegendFormat"/>
NULL
Footnotes
NoteAffectsDescription
note
legend

Only scale legend types support legendFormat.

[toc] [elements] [attributes] [types]


<pivot/>

<pivot>
[<pivotCategories/>]
[<pivotSeries/>]
[<pivotValues/>]
<bean/> |
<collection/> |
<csv/> |
<movingAverage/> |
<pivot/> |
<sort/> |
<sql/> |
<xpath/>
</pivot>

Element description

Assume that one has collected transaction data similar to:
..time..|.tool.|.price
--------+------+-------
01.01.03|hammer| 1
01.02.03|knife | 4
01.05.03|hammer| 2
01.09.03|wedge | 5
01.10.03|knife | 2
....
and one would like to see graph of weekly sales generated by different tools. Required data manipulation can be performed by pivot operation.

First one should define input data source from which data is coming. Pivot can handle many different data sources. One should configure the pivot so that <pivotCategories> is linked with time (with a precision of a week), <pivotSeries> with tool and <pivotValues> with price.

A possible pivot configuration might look like:

<pivot>
   <pivotCategories column="time" step="week"/>
   <pivotSeries column="tool" />
   <pivotValues column="price" function="sum"/>
   <sql source="jdbc:..." query="select * from transactiontable"/>
</pivot>

Pivot operation will aggregate all pivot series within one pivot categories (all similar tools sold within one week) and determine value for this class. The value determination depends on the pivot value(s) and function selected (such as sum or count).

As a result one will get datastream similar to:

..week..|hammer| knife|wedge
--------+------+------+------
01.01.03|..18..|..8...|.14
01.08.03|..11..|..3...|.24
01.15.03|...5..|.13...|.12
01.22.03|..21..|..4...|..6
....

Data in the format above can be feeded, for example, to a column chart, to get graph of weekly sales generated by different tools.

The number of resulting data columns from pivot operation is not necessarily known before the operation. Even if the number of data columns were known, the column given for the pivot operation in the pivotSeries tag is not usually enough to be the column id of the resulting data columns. Due to these reasons, the resulting data columns, which are of value type, are identified with ids of column for pivotSeries + running numbering starting from 0. For example, if the configuration for pivot operation is:
...
<pivotSeries column="tool"/>
...
the resulting column ids after pivot operation will be:

tool0
tool1
tool2
...

The resulting column ids can be used for further purposes. For example, the column with which sort data source will sort given data can be identified with a column id that the pivot data source has generated.

It is possible to omit <pivotSeries>, <pivotCategories> and <pivotValues> configuration elements. Omitting:

Appears in

[toc] [elements] [attributes] [types]


<pivotCategories/>

<pivotCategories
column="Text" Column defines which input data source column is associated with pivot categories.
[dataFormat="DataFormat"] Input data values format.
[descending="Boolean"] Determines if the sorting order of category labels is descending.
[includeNulls="Boolean"] Determines whether null values in the pivot category column in the incoming data are accepted.
[max="DataValue"] Maximum value for category labels.
[min="DataValue"] Minimum value for category labels.
[step="DataValue"] Defines aggregating of categories.
>
</pivotCategories>

Element description

PivotCategories define input data column to be associated with one of the axis. Pivot operation determines values for category label and series name pairs. See the documentation of pivot element for an example.

A typical example is a column chart displaying value of products sold in different dates. Here products are associated with series names and dates with category labels. Column chart would display category labels on x-axis and value of different products in y-axis. Each pair of a series name and a category label would have a column in the chart unless the value for the pair would be zero.

Appears in

Attribute Detail

<pivotCategories column="Text"/>
Tag specific description

Column defines which input data source column is associated with pivot categories. The value of the attribute should match with the id of an input data column.

General description

See column description.

Defaults
<pivotCategories column="Text"/>
NULL
<pivotCategories dataFormat="DataFormat"/>
Tag specific description

Input data values format.

General description

See dataFormat description.

Defaults
<pivotCategories dataFormat="DataFormat"/>
NULL
Footnotes
NoteAffectsDescription
note
all

For other charts but table, the dataFormat attribute represents data element string value parsing details, only. For formatting specification strings, please see labelFormat and valueFormat.

supported
table

Transforming a data value to a user readable text is supported only by table chart. Other charts have other ways, for example bars, of showing data values.

<pivotCategories descending="Boolean"/>
Tag specific description

Determines if the sorting order of category labels is descending.

When ordering is done, the position of null values is after non null values no matter which ordering is chosen.

General description

See descending description.

Defaults
<pivotCategories descending="Boolean"/>
false
<pivotCategories includeNulls="Boolean"/>
Tag specific description

Determines whether null values in the pivot category column in the incoming data are accepted. If this attribute is given a true value, then these data tuples are included.

If null data values are accepted, a separate null category label is created for null data values in pivot category column. This category with a null label is served as the last category in the resulting data stream.

General description

See includeNulls description.

Defaults
<pivotCategories includeNulls="Boolean"/>
false
<pivotCategories max="DataValue"/>
Tag specific description

Maximum value for category labels. Only category labels that are smaller than or equal to this maximum value are accepted. Thus if the column of category label in incoming data tuple contains a data value greater than the maximum value, the incoming data tuple is ignored.

General description

See max description.

Defaults
<pivotCategories max="DataValue"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
table

Table chart shows all data values. Therefore, the chart ignores this attribute.

<pivotCategories min="DataValue"/>
Tag specific description

Minimum value for category labels. Only category labels that are greater than or equal to this minimum value are accepted. Thus if the column of category label in incoming data tuple contains a data value smaller than the minimum value, the incoming data tuple is ignored.

General description

See min description.

Defaults
<pivotCategories min="DataValue"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
table

Table chart shows all data values. Therefore, the chart ignores this attribute.

<pivotCategories step="DataValue"/>
Tag specific description

Defines aggregating of categories. All the categories belonging within this step are joined together.

For example, assume that the data type of categories is date. One could then define step to be a week. All dates belonging to the same week are joined together. Aggregated categories will be named by the starting date of a week.

General description

See step description.

Defaults
<pivotCategories step="DataValue"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
table

Table chart does not use units when drawing axes. Therefore, this attribute is ignored.

[toc] [elements] [attributes] [types]


<pivotSeries/>

<pivotSeries
column="Text" Defines which input data source column is associated with pivot series.
[dataFormat="DataFormat"] Input data values format.
[descending="Boolean"] Determines if the sorting order of series names is descending.
[includeNulls="Boolean"] Should null series names data be accepted.
[max="DataValue"] Maximum value for series names.
[min="DataValue"] Minimum value for series names.
[step="DataValue"] Defines aggregating of series names.
>
</pivotSeries>

Element description

PivotSeries define which input data column is associated with pivot series. See pivot tag description.

Appears in

Attribute Detail

<pivotSeries column="Text"/>
Tag specific description

Defines which input data source column is associated with pivot series. Column value should match the id of an input column.

General description

See column description.

Defaults
<pivotSeries column="Text"/>
NULL
<pivotSeries dataFormat="DataFormat"/>
Tag specific description

Input data values format.

General description

See dataFormat description.

Defaults
<pivotSeries dataFormat="DataFormat"/>
NULL
Footnotes
NoteAffectsDescription
note
all

For other charts but table, the dataFormat attribute represents data element string value parsing details, only. For formatting specification strings, please see labelFormat and valueFormat.

supported
table

Transforming a data value to a user readable text is supported only by table chart. Other charts have other ways, for example bars, of showing data values.

<pivotSeries descending="Boolean"/>
Tag specific description

Determines if the sorting order of series names is descending.

When ordering is done, the position of null values is after non null values no matter which ordering is chosen.

General description

See descending description.

Defaults
<pivotSeries descending="Boolean"/>
false
<pivotSeries includeNulls="Boolean"/>
Tag specific description

Should null series names data be accepted. It is possible that incoming data has null (i.e. missing) value in the column of pivot series. If this attribute is given a true value, then these kind of data tuples are included.

If null data values are accepted, a separate null series name is created for null data values in series name column.

General description

See includeNulls description.

Defaults
<pivotSeries includeNulls="Boolean"/>
false
<pivotSeries max="DataValue"/>
Tag specific description

Maximum value for series names. Only series names that are smaller or equal to this maximum value are accepted. Thus if the column of series name in incoming data tuple contains a data value greater than the maximum value, the incoming data tuple is ignored.

General description

See max description.

Defaults
<pivotSeries max="DataValue"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
table

Table chart shows all data values. Therefore, the chart ignores this attribute.

<pivotSeries min="DataValue"/>
Tag specific description

Minimum value for series names. Only series names that are greater or equal to this minimum value are accepted. Thus if the column of series name in incoming data tuple contains a data value smaller than the minimum value, the incoming data tuple is ignored.

General description

See min description.

Defaults
<pivotSeries min="DataValue"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
table

Table chart shows all data values. Therefore, the chart ignores this attribute.

<pivotSeries step="DataValue"/>
Tag specific description

Defines aggregating of series names. All the series names belonging within this step are joined together.

General description

See step description.

Defaults
<pivotSeries step="DataValue"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
table

Table chart does not use units when drawing axes. Therefore, this attribute is ignored.

[toc] [elements] [attributes] [types]


<pivotValues/>

<pivotValues
column="Text" Defines which input data source column is associated with pivot values.
[function="Function"] Defines the function to be used to join series values.
>
</pivotValues>

Element description

PivotValues defines which input data column is asssociated with pivot values. See pivot tag description for a description.

Appears in

Attribute Detail

<pivotValues column="Text"/>
Tag specific description

Defines which input data source column is associated with pivot values. The value of the attribute should match the id of a column in input data.

General description

See column description.

Defaults
<pivotValues column="Text"/>
NULL
<pivotValues function="Function"/>
Tag specific description

Defines the function to be used to join series values. In pivoting, each category - series pair will be assigned a value. All pivot values belonging to the same category - series name class are joined using this function.

General description

See function description.

Defaults
<pivotValues function="Function"/>
sum

[toc] [elements] [attributes] [types]


<plot/>

<plot
[alignment="Alignment"] Defines default generic alignment for plot tag.
[backPaint="PaintValue"] Backgrounds of data cells are painted with this color.
[color="PaintValue"] Defines default generic color for plot.
[dataFormat="DataFormat"] Output format of the data values.
[enclose="Boolean"] Controls if symbols are enclosed within plotting area.
[font="Font"] Defines default generic font for plot.
[lineAlignment="LineAlignment"] Border line alignment.
[lineColor="PaintValue"] Line color for data elements.
[linePaint="PaintValue"] Line fill color for data elements.
[lineSmoothness="Percentage"] Defines smoothness of curve joining data points.
[lineStroke="Stroke"] Line width and style for data elements.
[maxColor="ColorValue"] Upper color of draw color range for magnitude visualization.
[maxPaint="ColorValue"] Upper color of fill paint range for magnitude visualization.
[maxSize="Scale"] Upper size of size range for magnitude visualization.
[minColor="ColorValue"] Lower color of draw color range for magnitude visualization.
[minPaint="ColorValue"] Lower color of fill paint range for magnitude visualization.
[minSize="Scale"] Lower size of size range for magnitude visualization.
[paint="PaintValue"] Plot default paint.
[pointColor="PaintValue"] Symbol edge color.
[pointPaint="PaintValue"] Symbol interior color.
[pointShape="Shape"] Symbol shape.
[pointStroke="Stroke"] Symbol edge line width and style.
[shape="Shape"] Defines default generic shape for plot.
[stroke="Stroke"] Default plot line width and style.
[valueAlignment="Alignment"] Value label alignment.
[valueColor="PaintValue"] Value label text color.
[valueFont="Font"] Value label text font size and style.
[valueFormat="MessageFormat"] Value label text format.
[valuePaint="PaintValue"] Value label background fill color.
>
{<annotation/>}
[<colorScale/>]
[<paintScale/>]
[<shapeScale/>]
{<series/>}
</plot>

Element description

This tag defines plot area rendering attributes. The plot area is where anything related to a chart is drawn. The plot area resides over and is a subset of chart background area, while chart axis area, if there is one, resides over and is a subset of the plot area. In general, anything drawn on a chart image uses plot area attributes, unless a more specific attribute definition for the item being drawn is in effect.

Plot area attributes are defined within <attributes/> tag, and again in <axes/> tags. Any plot attribute not given within <axes/> tag inherit it's value from the general plot attributes.

Examples

<plot paint="red-vertical" color="black" stroke="2"/>

Appears in

Attribute Detail

<plot alignment="Alignment"/>
Tag specific description

Defines default generic alignment for plot tag. If set, it will be used as the default alignment for all plot specific alignment settings. In particular, the following alignment settings will gain a new default value.

Each listed attribute may later be set individually, overriding this generic setting.

General description

See alignment description.

Defaults
<plot alignment="Alignment"/>
center (line and scatter charts) | inside (pie and map charts) | outside (bar and column charts)
Footnotes
NoteAffectsDescription
unsupported
area3d
bar3d
column3d
line3d

These charts do not support alignment attribute.

<plot backPaint="PaintValue"/>
Tag specific description

Backgrounds of data cells are painted with this color.

General description

See backPaint description.

Defaults
<plot backPaint="PaintValue"/>
<plot paint="PaintValue"/>
default (for 3d charts) | default (pointPaint for bar, column, line, pie and scatter charts) | default (linePaint for area chart) | NULL (otherwise)
Footnotes
NoteAffectsDescription
supported
table

Only table chart supports back paint for series.

<plot color="PaintValue"/>
Tag specific description

Defines default generic color for plot. If set, it will be used as the default color for all plot specific color settings. In particular, the following color settings will gain a new default value.

Each listed attribute may later be set individually, overriding this generic setting.

General description

See color description.

Defaults
<plot color="PaintValue"/>
default (lineColor for line and scatter charts with multiseriesmode) | default (pointColor for line and scatter charts) | black (otherwise)
<plot dataFormat="DataFormat"/>
Tag specific description

Output format of the data values.

General description

See dataFormat description.

Defaults
<plot dataFormat="DataFormat"/>
NULL
Footnotes
NoteAffectsDescription
note
all

For other charts but table, the dataFormat attribute represents data element string value parsing details, only. For formatting specification strings, please see labelFormat and valueFormat.

supported
table

Transforming a data value to a user readable text is supported only by table chart. Other charts have other ways, for example bars, of showing data values.

<plot enclose="Boolean"/>
Tag specific description

Controls if symbols are enclosed within plotting area.

General description

See enclose description.

Defaults
<plot enclose="Boolean"/>
true
Footnotes
NoteAffectsDescription
unsupported
bar
candlestick
column
hex
ohlc
pie
pie3d
rect
table

These charts do not support shapes. Therefore, enclose attribute is not supported.

unsupported
area3d
bar3d
column3d
legend
line3d

These charts do not support enclosing.

<plot font="Font"/>
Tag specific description

Defines default generic font for plot. If set, it will be used as the default font for all plot specific font settings. In particular, the following font settings will gain a new default value.

Each listed attribute may later be set individually, overriding this generic setting.

General description

See font description.

Defaults
<plot font="Font"/>
Serif-12
<plot lineAlignment="LineAlignment"/>
Tag specific description

Border line alignment.

General description

See lineAlignment description.

Defaults
<plot lineAlignment="LineAlignment"/>
<plot alignment="LineAlignment"/>
center (line and scatter charts) | inside (pie and map charts) | outside (bar and column charts)
Footnotes
NoteAffectsDescription
note
map

Although lineAlignment takes it's default from an alignment attribute, most of the values that the alignment attribute may have are not supported by lineAlignment. Such values are ignored and the default lineAlignment value is used.

supported
map

Only map chart supports line alignment. Other charts do not draw multiple areas suitable for borders.

<plot lineColor="PaintValue"/>
Tag specific description

Line color for data elements. Borders of data elements will be drawn with this color where applicable.

General description

See lineColor description.

Defaults
<plot lineColor="PaintValue"/>
<plot color="PaintValue"/>
default (lineColor for line and scatter charts with multiseriesmode) | default (pointColor for line and scatter charts) | black (otherwise)
Footnotes
NoteAffectsDescription
unsupported
bar
bar3d
candlestick
column
column3d
hex
legend
line3d
ohlc
pie
pie3d
rect
table

These charts do not adjance data points with lines and thus ignore this setting.

<plot linePaint="PaintValue"/>
Tag specific description

Line fill color for data elements. Interior of data elements will be painted with this color where applicable.

General description

See linePaint description.

Defaults
<plot linePaint="PaintValue"/>
<plot paint="PaintValue"/>
default (for 3d charts) | default (pointPaint for bar, column, line, pie and scatter charts) | default (linePaint for area chart) | NULL (otherwise)
Footnotes
NoteAffectsDescription
unsupported
bar
bar3d
candlestick
column
column3d
hex
legend
line3d
ohlc
pie
pie3d
rect
table

These charts do not adjance data points with lines and thus ignore this setting.

<plot lineSmoothness="Percentage"/>
Tag specific description

Defines smoothness of curve joining data points.

General description

See lineSmoothness description.

Defaults
<plot lineSmoothness="Percentage"/>
0
Footnotes
NoteAffectsDescription
supported
line
scatter
These charts do not support lineSmoothness with pseudo 3D.
unsupported
area3d
bar
bar3d
candlestick
column
column3d
combo
hex
legend
line3d
ohcl
pie
pie3d
rect
table

These charts do not support lineSmoothness.

<plot lineStroke="Stroke"/>
Tag specific description

Line width and style for data elements. Borders of data elements will be drawn with this stroke where applicable.

General description

See lineStroke description.

Defaults
<plot lineStroke="Stroke"/>
<plot stroke="Stroke"/>
(solid-)1
Footnotes
NoteAffectsDescription
unsupported
bar
bar3d
candlestick
column
column3d
hex
legend
line3d
ohlc
pie
pie3d
rect
table

These charts do not adjance data points with lines and thus ignore this setting.

exception
area3d
line3d

Only width setting is supported.

<plot maxColor="ColorValue"/>
Tag specific description

Upper color of draw color range for magnitude visualization.

General description

See maxColor description.

Defaults
<plot maxColor="ColorValue"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
area3d
bar3d
column3d
hex
legend
line3d
pie
pie3d
rect
table

These charts do not support maxColor setting.

<plot maxPaint="ColorValue"/>
Tag specific description

Upper color of fill paint range for magnitude visualization.

General description

See maxPaint description.

Defaults
<plot maxPaint="ColorValue"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
area3d
bar3d
column3d
legend
line3d
pie
pie3d
table

These charts do not support maxPaint setting.

<plot maxSize="Scale"/>
Tag specific description

Upper size of size range for magnitude visualization.

General description

See maxSize description.

Defaults
<plot maxSize="Scale"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
area3d
bar
bar3d
candlestick
column
column3d
combo
hex
legend
line3d
ohcl
pie
pie3d
rect
table

These charts do not support such shapes that can be affected with maxSize. Therefore, these charts ignore this setting.

<plot minColor="ColorValue"/>
Tag specific description

Lower color of draw color range for magnitude visualization.

General description

See minColor description.

Defaults
<plot minColor="ColorValue"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
area3d
bar3d
column3d
hex
legend
line3d
pie
pie3d
rect
table

These charts do not support minColor setting in plot tag.

<plot minPaint="ColorValue"/>
Tag specific description

Lower color of fill paint range for magnitude visualization.

General description

See minPaint description.

Defaults
<plot minPaint="ColorValue"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
area3d
bar3d
column3d
legend
line3d
pie
pie3d
table

These charts do not support minPaint setting in plot tag.

<plot minSize="Scale"/>
Tag specific description

Lower size of size range for magnitude visualization.

General description

See minSize description.

Defaults
<plot minSize="Scale"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
area3d
bar
bar3d
candlestick
column
column3d
combo
hex
legend
line3d
ohcl
pie
pie3d
rect
table

These charts do not support such shapes that can be affected with minSize. Therefore, these charts ignore this setting.

<plot paint="PaintValue"/>
Tag specific description

Plot default paint. If set, it will be used as the default paint for the following plot specific paint settings. In particular, the valuePaint setting will not use this attribute as it's default value.

Each listed attribute may later be set individually, overriding this generic setting.

General description

See paint description.

Defaults
<plot paint="PaintValue"/>
default (for 3d charts) | default (pointPaint for bar, column, line, pie and scatter charts) | default (linePaint for area chart) | NULL (otherwise)
<plot pointColor="PaintValue"/>
Tag specific description

Symbol edge color. This attribute provides the default edge color for symbols of data points.

General description

See pointColor description.

Defaults
<plot pointColor="PaintValue"/>
<plot color="PaintValue"/>
default (lineColor for line and scatter charts with multiseriesmode) | default (pointColor for line and scatter charts) | black (otherwise)
Footnotes
NoteAffectsDescription
unsupported
area3d
bar3d
column3d
hex
legend
line3d
pie3d
rect
table

These charts ignore this setting.

exception
line
scatter

The default value for these charts is "default".

exception
bar
candlestick
column
ohcl

These charts support shapes defined in marker tag.

<plot pointPaint="PaintValue"/>
Tag specific description

Symbol interior color. This attribute provides the default interior color for symbols of data points.

General description

See pointPaint description.

Defaults
<plot pointPaint="PaintValue"/>
<plot paint="PaintValue"/>
default (for 3d charts) | default (pointPaint for bar, column, line, pie and scatter charts) | default (linePaint for area chart) | NULL (otherwise)
Footnotes
NoteAffectsDescription
unsupported
area3d
bar3d
column3d
hex
legend
line3d
ohcl
pie3d
rect
table

These charts ignore this setting.

exception
bar
column
line
pie
scatter

The default value for these charts is "default".

exception
candlestick

The default value for this chart is "white,black".

exception
bar
candlestick
column
ohcl

These charts support shapes defined in marker tag.

<plot pointShape="Shape"/>
Tag specific description

Symbol shape. This attribute provides the default shape for symbols of data points.

General description

See pointShape description.

Defaults
<plot pointShape="Shape"/>
<plot shape="Shape"/>
NULL
Footnotes
NoteAffectsDescription
unsupported
area3d
bar
bar3d
candlestick
column
column3d
hex
legend
line3d
ohcl
pie
pie3d
rect
table

These charts do not support custom shapes and thus they ignore this setting.

exception
bar
candlestick
column
ohcl

These charts support shapes defined in marker tag.

<plot pointStroke="Stroke"/>
Tag specific description

Symbol edge line width and style. This attribute provides the default stroke for symbols of data points.

General description

See pointStroke description.

Defaults
<plot pointStroke="Stroke"/>
<plot stroke="Stroke"/>
(solid-)1
Footnotes
NoteAffectsDescription
unsupported
area3d
bar3d
column3d
hex
legend
line3d
pie3d
rect
table

These charts ignore this setting.

exception
bar
candlestick
column
ohcl

These charts support shapes defined in marker tag.

<plot shape="Shape"/>
Tag specific description

Defines default generic shape for plot. If set, it will be used as the default shape for all plot specific shape settings. In particular, the following shape settings will gain a new default value.

Each listed attribute may later be set individually, overriding this generic setting.

General description

See shape description.

Defaults
<plot shape="Shape"/>
NULL
Footnotes
NoteAffectsDescription
exception
bar3d
column3d

These charts recognise shapes "col1" to "col7". Each shape defines different roundedness for the column. As a default, "col3" shape is used.

unsupported
area3d
bar3d
column3d
combo
hex
legend
line3d
pie
pie3d
rect
table

These charts do not support shapes in any form and thus they ignore this setting.

exception
bar
candlestick
column
ohcl

These charts support only shapes defined in marker tag.

<plot stroke="Stroke"/>
Tag specific description

Default plot line width and style. If set, it will be used as the default for all plot specific line width and style settings. In particular, the following line width and style settings will use this attribute as their default value.

Each listed attribute may later be set individually, overriding this generic setting.

General description

See stroke description.

Defaults
<plot stroke="Stroke"/>
(solid-)1
Footnotes
NoteAffectsDescription
exception
pie3d

Only width setting is supported.

unsupported
table

Table chart does not render any plot specific lines and thus ignores this setting.

exception
area3d
bar3d
column3d
line3d

Only width setting is support