Axes

<axes>
    <axis role="string" visible="Boolean" optional="Boolean">
        <id>
        <name>
        <title>
        <layout>
        <coloring>
        <grid>
        <tick>
        <labels>
        <stacking>
        <scaling>
        <expressions>
    ...
Attribute Type or Value Description
role string The unique role of the axis. See Roles and Identifiers for values.
visible Boolean Specifies whether the axis is displayed in the chart
optional Boolean Specifies whether you must assign expressions to the axis
Element Description
<id> The axis identifier. This positive integer is specific to each chart axis.
Note You can use it to assign expressions to or unassign them from the axis. See Updating the Expressions of an Axis.
<name> The internal name of the axis as a string. Cannot be changed.
<title> The axis Title. In addition, the <separator> element defines the character used as label separator in the axis title when no custom label is defined. Maximum length is 256.
<layout> Attributes:
  • reverseOrder, a Boolean that defines whether labels order is reversed on the category axis
  • continuous, a Boolean that defines the layout of the category axis in a continuous mode
  • adjust (Boolean)
If adjust is true, then horizontal and vertical proportionalities can be defined. Their possible types are:
  • Auto. No value has to be set.
  • Fixed, which defines a value in unit
  • Proportional, which defines a ratio whose range is [0.0, 1.0] with a step of 0.01
<coloring> The axis Colors.
<grid> The color and background color of the grid around axis labels. See Colors.
Note For category axes only.
<tick> Attributes:
  • color
  • length, whose value range is [2, 8]
  • margin between the tick and its label, with range [0, 8]
  • densityMode, that can be either Auto or Fixed
  • density, whose value range is [0, 4] if densityMode is Fixed
<labels> The axis Labels.
<stacking> Attributes of the axis stacking mode:
  • mode (Unstacked|Stacked|GloballyStacked)
  • stacked100percent (true|false)
Note For value axes only.
<scaling> The axis scaling mode used to determine the axis ticks. See Scaling.
Note For value axes only.
<expressions> The formulas assigned to the axis. The number of expressions depends on the chart type and axis role. For example, you can assign only one expression per axis in the TagCloud chart.

Attribute of an expression of a Bar, Line, Surface, Dual, or Combined chart:

  • regionType (Default|Bars|Lines|Surfaces)

Attribute of an expression of a HeatMap, TreeMap, or TagCloud chart for the measures on value axes:

  • polarity (Auto|Ascending|Descending|Neutral)

Example

Value Role Axis
<axis role="Value" visible="true" optional="false">
    <id>2</id>
    <name>Value Axis 1</name>
    <title visible="true">
        <style>
            <border thickness="None">
                <color rgb="#000000" alpha="255"/>
            </border>
            <background>
                <color rgb="#000000" alpha="0"/>
            </background>
            <font size="8" face="Arial" italic="false" bold="true" strikethrough="false" underline="false" rgb="#000000"/>
        </style>
        <layout spacing="0"/>
        <separator>&amp;</separator>
    </title>
    <layout adjust="false"/>
    <coloring>
        <color rgb="#707070" alpha="255"/>
    </coloring>
    <tick length="5" margin="4" densityMode="Fixed" density="2"/>
    <labels visible="true" orientation="Auto" staggered="false">
        <font size="8" face="Arial" italic="false" bold="true" strikethrough="false" underline="false" rgb="#707070"/>
        <numberFormat default="true" sample="1,234567E3" type="Custom">
            <template positive="SCIENTIFIC"/>
        </numberFormat>
    </labels>
    <stacking mode="GloballyStacked" stacked100percent="false"/>
    <scaling mode="Linear" unitScaleFactor="0" roundMinMaxValues="false">
        <minValue type="Auto"/>
        <maxValue type="Auto"/>
    </scaling>
    <expressions>
         <formula regionType="Default" dataType="Numeric" dataObjectId="DP0.DO7">=[Revenue]</formula>
    </expressions>
</axis>

Example

Category Role Axis
<axis role="MainCategory" visible="true" optional="false"> 
    <id>0</id>  
    <name>Main Category Axis</name>  
    <title visible="true"> 
        <style> 
            <border thickness="None"> 
                <color alpha="255" rgb="#000000"/> 
            </border>  
            <background> 
                <color alpha="0" rgb="#000000"/> 
            </background>  
            <font size="8" face="Arial" italic="false" bold="true" strikethrough="false" underline="false" rgb="#000000"/> 
        </style>  
        <layout spacing="0"/>  
        <separator>&amp;</separator> 
    </title>  
    <layout reverseOrder="false" continuous="false" adjust="false"/>  
    <coloring> 
        <color alpha="255" rgb="#707070"/> 
    </coloring>  
    <grid> 
        <color alpha="255" rgb="#dadada"/>  
        <background> 
            <color alpha="0" rgb="#000000"/> 
        </background> 
    </grid>  
    <tick length="4" margin="0"/>  
    <labels visible="true" orientation="Auto" deleteMode="Auto" autoResize="false"> 
        <font size="8" face="Arial" italic="false" bold="true" strikethrough="false" underline="false" rgb="#707070"/> 
    </labels>  
    <expressions> 
        <formula dataType="String" dataObjectId="DP0.DO39">=[Country]</formula>  
        <formula dataType="String" dataObjectId="DP0.DO31">=[Year]</formula> 
    </expressions> 
</axis>