Skip to content

Instantly share code, notes, and snippets.

View vogievetsky's full-sized avatar

Vadim Ogievetsky vogievetsky

View GitHub Profile
@vogievetsky
vogievetsky / README.md
Last active December 5, 2016 01:24 — forked from mbostock/.block
Multi-Series Line Chart

This line chart is constructed by looking at New York, San Francisco and Austin over the last three months.

The Plywood query to pull the data for this visualization is:

$('main')
  .filter($('time').in({ start: start, end: now }))
  .filter($('city').in(['San Francisco', 'New York', 'Austin']))
  .split('$city', 'City')
 .apply('Days',
@vogievetsky
vogievetsky / README.md
Last active January 24, 2016 05:36 — forked from mbostock/.block
Sized Donut Multiples

These 24 hour donut clocks represent the top 10 countries on wikipedia (by edits) showing which hours of the day are the most popular. The area of each donut is sized proportionately to the total edits of each country, such that the area of the arcs is comparable across countries.

The Plywood query to pull the data for this visualization is:

$('main')
  .filter($('time').in({ start: new Date('2015-11-01T00:00:00Z'), end: null }))
  .filter('$country != null')
 .split('$country', 'Country')
@vogievetsky
vogievetsky / README.md
Last active January 25, 2018 03:55 — forked from mbostock/.block
Grouped Bar Chart

This grouped bar chart is constructed by filtering on USA, splitting on state and then on time (by day of week). The time filter has no end date so as time progresses the numbers in this visualization will grow.

The Plywood query to pull the data for this visualization is:

$('main')
  .filter($('time').in({ start: new Date('2015-11-01T00:00:00Z'), end: null }))
  .filter('$region != null and $country == "United States"')
 .split('$region', 'State')
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'