cuba-platform/charts

totalText attribute of ValueAxis is not loaded from descriptor

Closed this issue · 0 comments

Environment

  • Platform version: 7.2
  • Client type: Web

Description of the bug or enhancement

  • Minimal reproducible example
  1. Add the following chart configuration to your project:
Chart configuration
<charts:serialChart id="serialChart"
                    categoryField="category"
                    backgroundAlpha="0.8"
                    width="100%"
                    height="100%">
    <charts:categoryAxis gridPosition="START"/>
    <charts:graphs>
        <charts:graph id="graph1"
                      fillAlphas="1"
                      title="graph 1"
                      type="COLUMN"
                      valueField="col1"/>
        <charts:graph id="graph2"
                      fillAlphas="1"
                      title="graph 2"
                      type="COLUMN"
                      valueField="col2"/>
    </charts:graphs>
    <charts:valueAxes>
        <charts:axis id="valueAxis"
                     baseValue="1"
                     logarithmic="true"
                     precision="5"
                     stackType="REGULAR"
                     totalText="[[total]]"
                     title="Axis title">
        </charts:axis>
    </charts:valueAxes>
    <charts:legend enabled="true"
                   useGraphSettings="true"/>
    <charts:data>
        <charts:item>
            <charts:property name="category" value="category-1"/>
            <charts:property name="col1" value="8"/>
            <charts:property name="col2" value="5"/>
        </charts:item>
        <charts:item>
            <charts:property name="category" value="category-2"/>
            <charts:property name="col1" value="6"/>
            <charts:property name="col2" value="7"/>
        </charts:item>
        <charts:item>
            <charts:property name="category" value="category-3"/>
            <charts:property name="col1" value="2"/>
            <charts:property name="col2" value="3"/>
        </charts:item>
    </charts:data>
</charts:serialChart>
  • Expected behavior
    image
  • Actual behavior
    image