-
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue #46: Call toString before trim for cases when data is not l…
…oaded from CSV Make this version 2.0.0
- Loading branch information
Showing
4 changed files
with
5,693 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!doctype html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Test Data Array</title> | ||
<link href="../dist/css/d3.geomap.css" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<div class="container" id="main"> | ||
<h1>Test Data Array</h1> | ||
<div id="map"></div> | ||
</div> | ||
<script src="../node_modules/d3/build/d3.js"></script> | ||
<script src="../node_modules/d3-geo-projection/dist/d3-geo-projection.js"></script> | ||
<script src="../node_modules/topojson/dist/topojson.js"></script> | ||
<script src="../dist/js/d3.geomap.js"></script> | ||
<script> | ||
var map = d3.geomap.choropleth() | ||
.geofile('../dist/topojson/world/countries.json') | ||
.column('Requests') | ||
.unitId('iso3'); | ||
|
||
let data = [{iso3: 'RUS', Requests: 10}, {iso3: 'ESP', Requests: 2}, {iso3: 'AUS', Requests: 20}]; | ||
map.draw(d3.select('#map').datum(data)); | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.