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
Created December 23, 2015 12:57
d3 | hello colour hue

Based on example from Generative Design Hello, Color P.1.0 book

The ability to directly influence 16, 777, 216 colours gives us amazing freedom. Simultaneous contrast–without which it would be be possible to perceive colors–is illustrated here by juxtaposing a number of color combinations...

The x-value of the mouse position defines the size of the inside colour field, the y-value the hue.

@eesur
eesur / README.md
Created January 5, 2016 12:48
d3 | Freaky Dot Patterns
@eesur
eesur / README.md
Created January 7, 2016 22:48
d3js | oboejs test

Simple test using oboejs for 'loading JSON using streaming, combining the convenience of DOM with the speed and fluidity of SAX'.

Pulling in data fromthe guardian open platform api with filter for articles containing keyword/filter 'code'.

@eesur
eesur / README.md
Created January 8, 2016 18:11
d3.js | Web Audio API
@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
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
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
Created April 12, 2016 10:27
d3js | rgb colour spaces
@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
Last active June 1, 2016 16:20
d3js | world map circle area of each country