Demonstrating jenks natural breaks implemented in simple-statistics.
Rendered by d3js, based on an example by Mike Bostock.
Demonstrating jenks natural breaks implemented in simple-statistics.
Rendered by d3js, based on an example by Mike Bostock.
This simple line chart is constructed from a TSV file storing the closing value of AAPL stock over the last few years. The chart employs conventional margins and a number of D3 features:
This also uses simple-statistics to derive a linear regression of the price changes.
(ns gh-finder.core | |
(:require [tentacles.repos :as repos]) | |
(:require [clojure.java.io :as io]) | |
(:require [clj-yaml.core :as yaml]) | |
(:gen-class)) | |
(defn auth | |
"get an authentication token from the environment" | |
[] | |
{:auth (System/getenv "GITHUB_TOKEN")}) |
Date | Nissan Leaf | Smart ED | Mitsubishi I EV | BMW Active E | Ford Focus | Honda Fit EV | Tesla Model S | Toyota RAV4 EV | Chevrolet Spark | |
---|---|---|---|---|---|---|---|---|---|---|
2010-12 | 19 | 0 | ||||||||
2011-01 | 87 | 16 | ||||||||
2011-02 | 67 | 16 | ||||||||
2011-03 | 298 | 0 | ||||||||
2011-04 | 573 | 0 | ||||||||
2011-05 | 1142 | 8 | ||||||||
2011-06 | 1708 | 0 | ||||||||
2011-07 | 931 | 1 | ||||||||
2011-08 | 1362 | 1 |
<?xml version="1.0" encoding="utf-8" ?> | |
<rss version="2.0" xml:base="/blog.rss" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:mapbox="http://mapbox.com/"> | |
<channel> | |
<title>Blog - Mapbox</title> | |
<link>https://www.mapbox.com/blog</link> | |
<description>Updates from the Mapbox team.</description> | |
<language>en</language> | |
<item> | |
<title>Kevin joins Mapbox!</title> |
<!doctype html> | |
<html> | |
<head> | |
<meta charset='utf-8' /> | |
<title>tokenizer.js documentation</title> | |
<meta name='viewport' content='width=device-width,initial-scale=1'> | |
<link href='assets/tachyons.min.css' type='text/css' rel='stylesheet' /> | |
<link href='assets/github.css' type='text/css' rel='stylesheet' /> | |
<style> | |
.navigation { |
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>SVG Swarm</title> | |
<style> | |
svg { | |
position: absolute; | |
top: 0; | |
} |