Customizable Choropleth
Output Readme Download Replit Sel. & Copy Full

About

This repl provides a JavaScript file that allows the user to customize a generated SVG choropleth.

To view this on TripleLog, click here.

HTML

The index.html simply loads the map.svg file. The map.svg file should also work on its own.

CSS

Add CSS by editing the style.css file that is linked to in the head section or inline edit the style section in the head.

JavaScript

The script.js file simply adds a box to change the colors for the map. The box sizing needs to be properly scaled for a given viewBox.