Reference¶
In the following sections all tag attributes can take a value or be a reference to a specific tag. The allowed syntaxes are:
tag#id. The attribute value will be replaced by the tag whose id is
id
(tags can be any allowed tag as marker, data, barChart…) . See for example the provided templatebarCharts.xml
in which there is the following line. The attribute value is replaced by the marker whose id islabelSet1
.<item key="label" value="marker#labelSet1" />
tag#id:integer1. The tag whose id is
id
must be an array.The attribute value will be replaced by the item at the position given byinteger1
.tag#id:integer1-integer2. The tag whose id is
id
must be an array.The attribute value will be replaced by the sub-array starting atinteger1
and ending atinteger2
.for#id:value. The tag is replaced by the curent value of the attribute
each
in the <for> tag.for#id:key. The tag is replaced by the curent key of the attribute
each
in the <for> tag.tag#id:for#idFor:key. The tag whose id is
id
must be an array.The attribute value will be replaced by the item at the position given by key of the currenteach
attribute of the <for> tag whose id isIdFor
.tag#id:for#idFor:value. The tag whose id is
id
must be an array.The attribute value will be replaced by the item at the position given by value of the currenteach
attribute of the <for> tag whose id isIdFor
.Tip
Examples of such syntaxes can be found in the file
Resources/Private/ChartsExamples/BarChartAdvanced.xml
which builds a flexible template able to display upto 9 data sets with 9 different colors in the same charts as explained in the tutorial section.