Locale (different languages)
Explore an example of a basic Heat.js instance configured with a locale file, making it easy to localize your heap map and support multiple languages.
Include Files
Make sure you include the following files:
<link rel="stylesheet" href="dist/heat.js.min.css">
<script src="dist/heat.min.js"></script>
<script src="dist/locale/it.js"></script>
Create DOM Element
Add a new DOM element to house the Heat.js instance:
<div id="heat-map" id="heat-map" data-heat-js="{ 'defaultView': 'map' }"></div>Result
More Information
Looking for another language option? View the complete list of languages supported by Heat.js here and learn how to localize your heat map.