Tailwind CSS Datamaps
Datamaps are customizable SVG map visualizations for the web. They offer intuitive geospatial insights by transforming raw data into interactive visual formats.
Requires Additional Installation
Datamaps are customizable SVG map visualizations for the web. They offer intuitive geospatial insights by transforming raw data into interactive visual formats.
Installation
-
Install Datamaps
Install
datamapsvia npmTerminalnpm i datamaps -
Add the Datamaps JavaScript
Include the JavaScript
<script>near the end of your</body>tag:HTMLTo fix the stuck hover highlight / broken clicks issue in Chrome/Chromium, comment out themoveToFrontblock inhandleGeographyConfig:See Issue #557.// if ( ! /((MSIE)|(Trident))/.test(navigator.userAgent) ) { // moveToFront.call(this); // }
World datamap
Render a basic world map with Datamaps as a starting point for region-based data visualizations.