Comments (1)
Hello @asilcetin, to be able to use d3LChoropleth
, we need to prepare data
and maybe options
if you want to customlize, data should be a GeoJson
FeatureCollection
and the value for every zone should be in feature.properties
Here is what it looks like:
"data": { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": { "id": 61333, "name": "tech", "tags": [ "frigo" ], "rgb_color": null, "level": 0, "type": "map_zone", "value": 0.8 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 2.37260662004924, 48.8438652396112 ], [ 2.3726817580992, 48.8439130473407 ], [ 2.37271626348932, 48.8438892006837 ], [ 2.37266441507589, 48.8438575857975 ], [ 2.37261599913583, 48.8438285001021 ], [ 2.37258113243273, 48.8438516241332 ], [ 2.37260662004924, 48.8438652396112 ] ] ] } }, { "type": "Feature", "properties": { "id": 61332, "name": "sales", "tags": [ "café" ], "rgb_color": null, "level": 0, "type": "map_zone", "value": 0.5 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 2.37249370033574, 48.8437972465289 ], [ 2.37252585719145, 48.8437755677497 ], [ 2.37260859786514, 48.8438261515677 ], [ 2.37257680232242, 48.8438474690339 ], [ 2.37249370033574, 48.8437972465289 ] ] ] } }, { "type": "Feature", "properties": { "id": 61357, "name": "coffee", "tags": [ "café" ], "rgb_color": null, "level": 0, "type": "map_zone", "value": 0 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 2.37254728065663, 48.843755876192 ], [ 2.37273786465381, 48.8438700510955 ], [ 2.37271909501773, 48.8438873941188 ], [ 2.37253356438411, 48.8437732192153 ], [ 2.37254728065663, 48.843755876192 ] ] ] } }
Sorry for the late reply~
from vs.
Related Issues (14)
- Documentation for `tree` missing HOT 4
- d3-cluster replace node with text HOT 1
- Nothing showing for d3-grouped-area HOT 2
- Make stacking / custom colouring an option for d3-grouped-area HOT 1
- Assigning multiple colors HOT 2
- d3Timeline issues HOT 3
- forgot to export d3Circle from main.js HOT 1
- [Sugestion] captions HOT 5
- d3-timeline events for mouse drag and wheel zoom HOT 7
- There is a red vertical line when scale down the timeline HOT 12
- How to set default time range HOT 2
- Cannot resolve d3-vs in main.js HOT 29
- Error in beforeDestroy hook: "TypeError: Cannot read property 'disconnect' of undefined" HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vs.