Skip to content

Instantly share code, notes, and snippets.

Freelancing – Open to exciting opportunities

Ashish Singh git-ashish

Freelancing – Open to exciting opportunities
View GitHub Profile

Faux-3d SVG globe using d3.geo.orthographic and a few radial gradients. Labels offset or hidden based on radians from current map center to enhance the effect.

Uncomment svg.append("g").attr("class","countries") for hover-able country outlines.


Building on this - experimenting with fake 3d svg arcs using two nested orthographic projections and cardinal line interpolation.

git-ashish / dabblet.css
Created Mar 23, 2014 — forked from anonymous/dabblet.css
CSS Rating Stars
View dabblet.css
.wrapper:hover label{
background-position:left bottom;
background:url('') no-repeat left bottom;

d3js Multiline chart with brushing and mouseover


This example, using satirical data from The Onion, demonstrates how to wrap long axis labels to fit on multiple lines.

git-ashish /
Last active Aug 29, 2015 — forked from wbotelhos/
phantomjs 1.9.7 installer Ubuntu
sudo apt-get remove phantomjs
sudo unlink /usr/local/bin/phantomjs
sudo unlink /usr/local/share/phantomjs
sudo unlink /usr/bin/phantomjs
cd /usr/local/share
View RadarChart.js
//Practically all this code comes from
//I only made some additions and aesthetic adjustments to make the chart look better
//(of course, that is only my point of view)
//Such as a better placement of the titles at each line end,
//adding numbers that reflect what each circular level stands for
//Not placing the last level and slight differences in color
//For a bit of extra information check the blog about it:
View gist:4147bb9db2f7492096eb

Cos I always forget it...

  1. sudo gem install rubygems-update
  2. sudo update_rubygems
View 50_top_paid_chicago_lobbyists.json

Created by Christopher Manning


Nodes are linked to nodes in neighboring cells. The cell's color is a function of its area.

The white lines are the Delaunay triangulation and the purple cells are the Voronoi diagram.