This sample visualizes the number of international tourist arrivals in millions of the most visited destinations in the world.
In this example, you can see how to bind JSON data and configure the Heatmap using the data adaptor support.
You can bind the JSON data with information for each individual cell to the Heatmap using isJsonData
and by defining the adaptorType
properties. In cell JSON data, the value for each
cell is mapped using the xDataMapping
, yDataMapping
and valueMapping
properties.
Tooltip is enabled in this example, to see the tooltip in action, hover a point or tap on a point in touch enabled devices.
Injecting Module
Heatmap component features are segregated into individual feature-wise modules. To use data adaptor support,
we need to inject Adaptor
module using Heatmap.Inject(Adaptor)
method, to use a tooltip,
inject the Tooltip
module using the Heatmap.Inject(Tooltip)
method, and use a legend
by injecting the Legend
module using the Heatmap.Inject(Legend)
method.