Giter VIP home page Giter VIP logo

Comments (4)

sgratzl avatar sgratzl commented on May 18, 2024

you can set the projection method used see https://github.com/sgratzl/chartjs-chart-geo#scales. I don't fully get what the issue is

from chartjs-chart-geo.

Offbeatmammal avatar Offbeatmammal commented on May 18, 2024

sorry, probably explained it poorly.
Currently the samples work either for US/States or the Germany specific, and rely on a variety of (untested) TopoJSON sources for other regions... the Natural Earth source seems to offer fairly complete datasets (though maybe they could be a little more current) but I'm struggling to actually get them working

am I missing a really obvious way to take a source of
fetch('https://raw.githubusercontent.com/mtraynham/natural-earth-topo/master/topojson/ne_50m_admin_1_states_provinces.json') .then((r) => r.json()) .then((data) => { ...
and filter it down so I'm only looking as States/Provinces for (say) Australia?

from chartjs-chart-geo.

sgratzl avatar sgratzl commented on May 18, 2024

I still don't fully understand the problem.

I quickly created https://codepen.io/sgratzl/pen/pobzjKE?editors=1010 and had no problem with the library

from chartjs-chart-geo.

Offbeatmammal avatar Offbeatmammal commented on May 18, 2024

d'oh, looking at my code again this morning and comparing to your example... I'd got the filtering wrong
thanks for your patience (and the sample that got me back on track!)

from chartjs-chart-geo.

Related Issues (20)

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.