I’m trying to create a Gauge Chart to display the average value from a list of entitities using a datasource like this:
<valueCollectionDatasource id="testDs"
maxResults="1">
<query>
<![CDATA[SELECT AVG(a.porcentajeAvance) as avgAmount FROM planmejoramiento$Accion a]]>
</query>
<properties>
<property datatype="double"
name="avgAmount"/>
</properties>
</valueCollectionDatasource>
The documentation states that the arrow is displayed using this XML tag:
<chart:arrows>
<chart:arrow value="60"/>
</chart:arrows>
But it doesn’t mention how to take the value from a datasource. I tried using the property name of the datasource but it gives an error
<chart:arrows>
<chart:arrow value="avgAmount"/>
</chart:arrows>
Any clue that can help me to achieve this?