Git Product home page Git Product logo

Comments (1)

GopherJ avatar GopherJ commented on September 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.