Usage:
Just define a target div, and create a new instance, like so:
var carto = new makeCartogram({
element: document.querySelector(".chart")
});
Example: https://graphics.axios.com/2017-08-01-simple-cartogram/index.html
Simple reusable cartogram module for the United States
JavaScript
Usage:
Just define a target div, and create a new instance, like so:
var carto = new makeCartogram({
element: document.querySelector(".chart")
});
Example: https://graphics.axios.com/2017-08-01-simple-cartogram/index.html