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 cell to the Heatmap usingisJsonData and by defining theadaptorType properties. In cell JSON data, the value for each cell is mapped using thexDataMapping ,yDataMapping andvalueMapping properties.
The tooltip is enabled in this example. To see the tooltip in action, hover the mouse over an item or tap an item on touch-enabled devices.
Injecting Module
Heatmap component features are separated into discrete feature-based modules. To use a tooltip, adaptor and the legend, inject the Tooltip, Adaptor and Legend module using the <Inject services={[Tooltip, Adaptor, Legend]} /> method.
Description
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 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.
The tooltip is enabled in this example. To see the tooltip in action, hover the mouse over an item or tap an item on touch-enabled devices.
Injecting Module
Heatmap component features are separated into discrete feature-based modules. To use a tooltip, adaptor and the legend, inject the Tooltip, Adaptor and Legend module using the {''} method.