The type of Gauge graph is designed to represent a clock with a value and through ranges determine its value.

1 Example

In this example, the total sales profit per year is shown.

You see the parameterization of the box:



  1. Selector type of Gauge graph.
  2. Filter by combo of the column the_year and multiple graphics mode and so show all the graphics per year.
  3. SQL statement to execute, in this case:
Copy
<select>
    <columns>
        YEAR(invoicedate)  the_year,
        SUM(invoiceline.quantity * invoiceline.unitprice) - SUM(invoiceline.quantity * track.costprice) <alias name='the_profit'/>
    </columns>
    <from table='invoice'>
        <join table='invoiceline'>
            <on>invoice.invoiceid = invoiceline.invoiceid</on>
            <join table='track'>
                <on>invoiceline.trackid = track.trackid</on>    
            </join>
        </join> 
    </from>
    <group>1</group>
    <order>1</order>
</select>

4.You see the symbology


5. The column ' the_profit' is added to the series


The result is: