<div id ='chart'>
<h3><code>geometry();</code></h3>
<p>Split a country into <code>'states'</code>, <code>'counties'</code> or <code>'land'</code>(give an overview of the whole country).<br>  
<code><b>Note:</b></code> To be able to split into different states or countries the TopoJSON need to include the data of the parameter.</p>  
</div>  
<div id="elm"></div>
#chart{
  margin: 1em;
}
//RedSift
//geometry()
//enable different geometry view for each country
//Parameters include land, states, counties

let geo = d3_rs_geo.html()
                   .projection('geoAlbersUsa')
                   .geometry('states');  //

    d3.select('#elm')
      .datum({ url: 'https://static.redsift.io/thirdparty/topojson/examples/us-10m.json'}) //world topoJSON
      .call(geo);
View Compiled

External CSS

  1. //static.redsift.io/reusable/ui-rs-core/latest/css/ui-rs-core.min.css

External JavaScript

  1. //d3js.org/d3.v4.min.js
  2. //static.redsift.io/reusable/d3-rs-geo/latest/d3-rs-geo.umd-es2015.min.js