Skip to content

Instantly share code, notes, and snippets.

@markmarkoh
Created January 27, 2014 21:35
Show Gist options
  • Save markmarkoh/8657832 to your computer and use it in GitHub Desktop.
Save markmarkoh/8657832 to your computer and use it in GitHub Desktop.
Specifying arcs with different colors in Datamaps.js
var paths = [
{
"origin":{"latitude":42.350939,"longitude":-71.05229},
"destination":{"latitude":35.466872,"longitude":139.622747},
"options": {"strokeWidth": 2, "strokeColor": "rgba(0,0,255,0.33)"}
},
{
"origin":{"latitude":42.350939,"longitude":-71.05229},
"destination":{"latitude":39.908617,"longitude":19.581969},
"options": {"strokeWidth": 1, "strokeColor": "rgba(0,0,255,0.33)"}
}
...
];
// http://datamaps.github.io
@thecristen
Copy link

Hm, that's a fair point.
As for using the fillKey, ah, I hadn't thought to define the arc widths that way! I think that would be really spiffy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment