Chorolpleth

is a thematic map in which areas are shaded or patterned in proportion to the measurement of the statistical variable being displayed on the map, such as population density or per-capita income.
Home / Demo / Chorolpleth
Chorolpleth

Renderer: SVG overlay on MapboxJS

Module: vizart-geo

Data: Sales performance per U.S. states

Doc: API

import { choropleth } from 'vizart-geo';
import 'vizart-geo/dist/vizart-geo.css';

const chart = choropleth('#chart', {
	data: {
		x: { name: 'states', type: 'string', accessor: 'name'} ,
		y: [ { name: 'sales', type: 'number', accessor: 'sales'} ],
	}
});

d3.json('./data/sales_us.json', function(data){
	chart.render(data);
});