Designed by Stephen Few, a bullet chart “provides a rich display of data in a small space.” A variation on a bar chart, bullet charts compare a given quantitative measure (such as profit or revenue) against qualitative ranges (e.g., poor, satisfactory, good) and related markers (e.g., the same measure a year ago). Layout inspired by Stephen Few. Implementation based on work by Clint Ivy, Jamie Love of N-Squared Software and Jason Davies. The "update" button randomizes the values slightly to demonstrate transitions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var stream = require('getstream'); | |
client = stream.connect('key', 'secret', 'id', { location: 'eu-central' }); | |
var feed = client.feed('user', 'foobar'); | |
var counter = 20; | |
var results = []; | |
function fetchFeed() { | |
var start = new Date().getTime(); | |
feed.get({limit:20}).then(function(data) { | |
results.push(new Date().getTime() - start); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var geobuf = require('geobuf'); | |
var Pbf = require('pbf'); | |
var geojson = {"type":"Feature","geometry":{"type":"Polygon","coordinates":[[[15,59.519541],[15.000173,59.519463],[15.000568,59.519205],[15.000731,59.519053],[15.000806,59.518856],[15.001023,59.518642],[15.001261,59.518276],[15.001603,59.518035],[15.001728,59.517982],[15.001837,59.51783],[15.002021,59.517526],[15.002096,59.517365],[15.002347,59.517196],[15.002393,59.516739],[15.00251,59.516281],[15.002696,59.515879],[15.002699,59.515771],[15.002773,59.515637],[15.003077,59.51545],[15.003028,59.515297],[15.003278,59.515191],[15.003495,59.514977],[15.003655,59.514915],[15.003849,59.514961],[15.004131,59.514963],[15.004497,59.515198],[15.004759,59.515299],[15.004863,59.515371],[15.005039,59.515435],[15.005142,59.515526],[15.005114,59.515735],[15.005452,59.515241],[15.005531,59.515094],[15.005582,59.514966],[15.005682,59.514909],[15.005699,59.514883],[15.005724,59.514847],[15.00548,59.514684],[15.00531,59.514413],[15.005066,59.514259],[15.004838,59.514204 |