Skip to content

Instantly share code, notes, and snippets.

View eesur's full-sized avatar

Sundar Singh eesur

View GitHub Profile
@eesur
eesur / README.md
Last active June 25, 2016 14:52 — forked from syntagmatic/README.md
Hexbin rendering

Play with rendering hexagons based on image colour mean values

Based/forked on code from Hexbin Heightmap

@eesur
eesur / README.md
Created June 7, 2016 10:26
d3js | force layout with rect
@eesur
eesur / README.md
Created June 7, 2016 10:03
d3js | circles update with force layout

based of this really nice example: pusher.com/dynamic-graphs-with-d3-js/

data generated in this format, looping over red, green, blue and incrementing the id:

render([{
    id: 1,
    color: 'red'
}, {
 id: 2,
@eesur
eesur / README.md
Last active June 1, 2016 16:20
d3js | world map circle area of each country
@eesur
eesur / README.md
Last active October 12, 2017 12:05
d3js | bubble chart quadrant

'A Bubble Chart is a multi-variable graph that resembles a combination of a Scatter plot and a Proportional Area Chart.' This example is split into a quadrant colouring the circles depending on the quadrant they fall into.

More info on Bubble Chart Chart built on d3fc

@eesur
eesur / README.md
Created April 12, 2016 10:27
d3js | rgb colour spaces
@eesur
eesur / README.md
Created March 13, 2016 20:01
d3js | responsive development with W.js

Simple example using W javascript library for responsive development with d3.js

Test by changing browser dimensions or rotating mobile. The rectangle remains the 1:4 ratio of the viewport.

@eesur
eesur / README.md
Last active May 3, 2021 18:40
d3js | Eisenhower matrix

Just two simple questions to prioritise tasks, using Eisenhower’s strategy matrix.

"Using the decision matrix, you will separate your actions based on four possibilities.

  • Urgent and important (tasks you will do immediately)
  • Important, but not urgent (tasks you will schedule to do later)
  • Urgent, but not important (tasks you will delegate to someone else)
  • Neither urgent nor important (tasks that you will eliminate)

The great thing about this matrix is that it can be used for broad productivity plans (“How should I spend my time each week?”) and for smaller, daily plans (“What should I do today?”)"

@eesur
eesur / README.md
Last active January 31, 2016 10:59
d3js | toggle yes no UI buttons

I needed some simple yes/no buttons that could be dropped into a prototype UI.

These toggle boolean yes and no buttons can be added into DOM as reusable UI elements. They can be passed custom click events.

Call the function and pass in container/selection as the argument:

var myButtons = noYesBtns('#some-id');
@eesur
eesur / README.md
Created January 8, 2016 18:11
d3.js | Web Audio API