Code Monkey home page Code Monkey logo

Comments (5)

markmarkoh avatar markmarkoh commented on May 19, 2024

Would it work to do something like this?:

   var map = new Datamap({
        scope: 'world',
        element: document.getElementById('container1'),
        done: function(datamap) {
          var graticule = d3.geo.graticule();
          datamap.svg.append("path")
            .datum(graticule)
            .attr("class", "graticule")
            .attr("d", datamap.path);
        },
       geographyConfig: {...}

from datamaps.

atmccann avatar atmccann commented on May 19, 2024

yeah! except strangely the right-most longitude line doesn't render -- what gives? thanks for the quick fix though!

my code here: https://gist.github.com/atmccann/7161145

from datamaps.

markmarkoh avatar markmarkoh commented on May 19, 2024

No problem!

And I have no idea why the right-most line doesn't show up. Just took a look - strange!

I'm going to close this issue since for the most part it's solved - but if you figure out why the line doesn't appear please leave a comment for future reference!

from datamaps.

markmarkoh avatar markmarkoh commented on May 19, 2024

For that projection, it looks like Bostock just draws a sphere over the country to handle that issue

http://bl.ocks.org/mbostock/3682698 (if you remove the <use> tags, you should see the same issue you have.

from datamaps.

atmccann avatar atmccann commented on May 19, 2024

ha, good catch!

On Fri, Oct 25, 2013 at 5:15 PM, Mark DiMarco [email protected]:

For that projection, it looks like Bostock just draws a sphere over the
country to handle that issue

http://bl.ocks.org/mbostock/3682698 (if you remove the tags, you
should see the same issue you have.


Reply to this email directly or view it on GitHubhttps://github.com//issues/30#issuecomment-27126517
.

Allison McCann
Graphics Editor, Businessweek
650.644.8381
www.allisontmccann.com

from datamaps.

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.