The type of Heatmap chart is designed to represent the values of a matrix.
1 Example
This example shows the total sale by music genre and country
You see the parameterization of the box:

- Selector type of Heatmap graph.
- Column of the sentence with value to be displayed, in this case the country x_name.
- SQL statement to execute, in this case an XSQL-Script:
Copy
<call> <xsql-script name='jchart_heatmap'> <body> <vtable name='v_out'> <select> <columns> genre.name <alias name='x_name'/>, customer.country <alias name='y_name'/>, SUM(invoiceline.unitprice * invoiceline.quantity) <alias name='total'/> </columns> <from table='invoice'> <join table='invoiceline'> <on>invoice.invoiceid = invoiceline.invoiceid</on> <join table='track'> <on>track.trackid = invoiceline.trackid</on> <join table='genre'> <on>track.genreid = genre.genreid</on> </join> </join> </join> <join table='customer'> <on>invoice.customerid = customer.customerid</on> </join> </from> <group>1,2</group> </select> </vtable> <return><vtable.pivot name='v_out' pivotcolumns='y_name' datacolumns='total' /></return> </body> </xsql-script> ]]> </call>
* Starting from the table of invoices and grouping by gender and country.
The program loads the grouped data into a virtual table and pivots on the country column.
You can read more about the data pivot here

5. In the series, the column ' auto' is added to automatically determine the series.

2 Interacción
The colors can be expressed in function to several statistical factors by clicking on the button.
- Quantile
- Standard deviation
- Natural breaks
- Auto

