Skip to content

Instantly share code, notes, and snippets.

@caged
Forked from arfon/data.tsv
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caged/1f8fbb4e3c5e59a3a46d to your computer and use it in GitHub Desktop.
Save caged/1f8fbb4e3c5e59a3a46d to your computer and use it in GitHub Desktop.
date C Io JavaScript Lua Ruby Arc Erlang Objective-C VimL Ragel in Ruby Host Scala Emacs Lisp Python Shell Assembly Java Perl C++ Objective-J ActionScript OCaml Nu PHP Common Lisp CSS Clojure Matlab CoffeeScript ooc Fancy Racket Rust TeX Haskell TypeScript Elixir wisp Go C#
2008-02 4.545454545454546 4.545454545454546 9.090909090909092 2.272727272727273 79.54545454545455 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2008-03 7.4074074074074066 0 7.4074074074074066 7.4074074074074066 62.96296296296296 3.7037037037037033 3.7037037037037033 3.7037037037037033 3.7037037037037033 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2008-04 6.25 0 9.375 0 78.125 0 0 0 0 3.125 3.125 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2008-05 3.225806451612903 0 6.451612903225806 0 83.87096774193549 0 0 0 0 0 0 3.225806451612903 3.225806451612903 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2008-06 3.0303030303030303 0 9.090909090909092 0 78.78787878787878 0 0 3.0303030303030303 3.0303030303030303 0 0 0 0 3.0303030303030303 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2008-07 10.714285714285714 0 7.142857142857142 0 64.28571428571429 0 3.571428571428571 0 0 0 0 0 3.571428571428571 0 3.571428571428571 3.571428571428571 3.571428571428571 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2008-08 7.4074074074074066 0 14.814814814814813 0 74.07407407407408 0 3.7037037037037033 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2008-09 9.67741935483871 0 19.35483870967742 0 48.38709677419355 0 0 6.451612903225806 6.451612903225806 0 0 0 3.225806451612903 0 0 0 0 3.225806451612903 3.225806451612903 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2008-10 2.083333333333333 0 6.25 0 79.16666666666666 0 0 6.25 0 0 0 0 0 0 0 2.083333333333333 0 0 0 2.083333333333333 2.083333333333333 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2008-11 0 0 10.16949152542373 0 72.88135593220339 0 0 1.694915254237288 1.694915254237288 0 0 1.694915254237288 3.389830508474576 5.084745762711865 0 0 0 0 0 0 0 1.694915254237288 1.694915254237288 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2008-12 1.7241379310344827 0 18.96551724137931 0 58.620689655172406 0 0 5.172413793103448 0 0 0 0 1.7241379310344827 0 0 0 0 1.7241379310344827 0 0 1.7241379310344827 0 1.7241379310344827 1.7241379310344827 6.896551724137931 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2009-01 6.8493150684931505 0 5.47945205479452 0 60.273972602739725 0 2.73972602739726 10.95890410958904 0 0 0 0 2.73972602739726 4.10958904109589 0 1.36986301369863 0 0 0 0 0 0 1.36986301369863 1.36986301369863 0 1.36986301369863 1.36986301369863 0 0 0 0 0 0 0 0 0 0 0 0
2009-02 7.317073170731707 0 4.878048780487805 0 48.78048780487805 0 4.878048780487805 17.073170731707318 0 0 0 0 4.878048780487805 2.4390243902439024 0 0 4.878048780487805 0 0 0 0 0 2.4390243902439024 0 2.4390243902439024 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2009-03 13.636363636363635 0 18.181818181818183 0 36.36363636363637 0 0 13.636363636363635 0 0 0 0 9.090909090909092 0 0 4.545454545454546 0 0 0 0 0 0 4.545454545454546 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2009-04 18.181818181818183 0 9.090909090909092 4.545454545454546 40.909090909090914 0 0 13.636363636363635 0 0 0 0 4.545454545454546 4.545454545454546 0 0 0 4.545454545454546 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2009-05 8.333333333333332 0 12.5 12.5 50.0 0 0 4.166666666666666 0 0 0 0 4.166666666666666 4.166666666666666 0 0 0 0 0 0 0 0 0 0 4.166666666666666 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2009-06 0 0 26.666666666666668 0 33.33333333333333 0 0 6.666666666666667 0 0 0 0 0 0 0 0 6.666666666666667 13.333333333333334 0 0 0 0 0 6.666666666666667 0 0 0 6.666666666666667 0 0 0 0 0 0 0 0 0 0 0
2009-07 0 0 30.76923076923077 0 61.53846153846154 0 0 7.6923076923076925 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2009-08 12.5 0 20.833333333333336 4.166666666666666 50.0 0 0 0 0 0 0 0 0 8.333333333333332 0 0 0 4.166666666666666 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2009-09 11.11111111111111 0 22.22222222222222 0 55.55555555555556 0 0 11.11111111111111 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2009-10 6.666666666666667 0 20.0 0 26.666666666666668 0 0 20.0 6.666666666666667 0 0 0 13.333333333333334 0 0 0 0 6.666666666666667 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2009-11 6.666666666666667 0 33.33333333333333 6.666666666666667 20.0 0 6.666666666666667 0 0 0 0 0 6.666666666666667 0 0 0 0 6.666666666666667 0 0 0 0 6.666666666666667 0 0 0 0 0 6.666666666666667 0 0 0 0 0 0 0 0 0 0
2009-12 0 0 56.25 0 18.75 0 0 6.25 6.25 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12.5 0 0 0 0 0 0 0 0 0 0 0
2010-01 11.11111111111111 0 61.111111111111114 0 11.11111111111111 0 0 0 0 0 0 0 5.555555555555555 5.555555555555555 0 5.555555555555555 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2010-02 0 0 55.55555555555556 0 11.11111111111111 0 0 22.22222222222222 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 11.11111111111111 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2010-03 9.090909090909092 0 54.54545454545454 0 0 0 0 9.090909090909092 0 0 0 0 9.090909090909092 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9.090909090909092 9.090909090909092 0 0 0 0 0 0 0 0 0
2010-04 0 0 50.0 0 30.0 0 0 10.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10.0 0 0 0 0 0 0 0 0
2010-05 14.285714285714285 0 50.0 0 0 0 0 14.285714285714285 0 0 0 0 0 0 0 7.142857142857142 14.285714285714285 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2010-06 0 0 63.63636363636363 0 9.090909090909092 0 0 9.090909090909092 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9.090909090909092 0 0 0 0 0 0 9.090909090909092 0 0 0 0 0 0 0
2010-07 21.428571428571427 0 64.28571428571429 0 0 0 0 7.142857142857142 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7.142857142857142 0 0 0 0 0 0
2010-08 0 0 16.666666666666664 0 50.0 0 0 8.333333333333332 8.333333333333332 0 0 0 8.333333333333332 0 0 0 0 8.333333333333332 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2010-09 16.666666666666664 0 50.0 0 25.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8.333333333333332 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2010-10 14.285714285714285 0 28.57142857142857 0 14.285714285714285 0 0 0 14.285714285714285 0 0 0 0 14.285714285714285 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 14.285714285714285 0 0 0 0 0
2010-11 0 0 66.66666666666666 0 0 0 0 16.666666666666664 0 0 0 0 16.666666666666664 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2010-12 0 0 37.5 0 25.0 0 0 12.5 0 0 0 0 0 0 0 0 0 12.5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12.5 0 0 0 0
2011-01 25.0 0 25.0 0 25.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 25.0 0 0 0
2011-02 12.5 0 37.5 0 18.75 0 0 0 6.25 0 0 0 6.25 0 0 0 0 12.5 0 0 0 0 0 0 0 0 0 6.25 0 0 0 0 0 0 0 0 0 0 0
2011-03 11.11111111111111 0 33.33333333333333 0 33.33333333333333 0 5.555555555555555 16.666666666666664 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2011-04 33.33333333333333 0 22.22222222222222 0 0 0 0 0 11.11111111111111 0 0 0 0 0 0 0 0 33.33333333333333 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2011-05 37.5 0 50.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12.5 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2011-06 20.0 0 40.0 10.0 20.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2011-07 0 0 83.33333333333334 0 0 0 0 16.666666666666664 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2011-08 0 0 0 0 20.0 0 0 20.0 0 0 0 0 20.0 20.0 0 0 0 20.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2011-09 37.5 0 37.5 0 12.5 0 0 0 12.5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2011-10 0 0 80.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 20.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2011-11 0 0 60.0 0 0 0 0 0 0 0 0 0 0 20.0 0 0 0 0 0 0 0 0 0 0 20.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2011-12 0 0 50.0 0 0 0 0 50.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2012-01 25.0 0 0 0 25.0 0 0 0 0 0 0 0 0 0 0 0 0 25.0 0 0 0 0 0 0 25.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2012-02 0 0 0 0 50.0 0 0 0 0 0 0 0 50.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2012-03 100.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2012-04 0 0 100.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2012-05 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 100.0 0 0 0 0 0
2012-06 0 0 50.0 0 0 0 0 0 0 0 0 0 50.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2012-07 0 0 20.0 0 40.0 0 0 20.0 0 0 0 0 20.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2012-08 0 0 75.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 25.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2012-09 0 0 25.0 0 25.0 0 0 0 0 0 0 0 0 25.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 25.0 0 0
2012-10 0 0 50.0 0 25.0 0 0 0 0 0 0 0 0 0 0 0 0 25.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2012-11 0 0 66.66666666666666 0 33.33333333333333 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2012-12 0 0 100.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2013-02 0 0 40.0 0 20.0 0 0 20.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 20.0 0 0 0 0 0 0 0
2013-03 7.142857142857142 0 57.14285714285714 0 14.285714285714285 0 0 0 0 0 0 0 7.142857142857142 0 0 14.285714285714285 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2013-04 0 0 25.0 0 25.0 0 0 0 0 0 0 0 25.0 25.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2013-05 5.555555555555555 0 55.55555555555556 0 0 0 0 5.555555555555555 0 0 0 0 0 11.11111111111111 0 0 0 5.555555555555555 0 0 0 0 0 0 0 0 0 16.666666666666664 0 0 0 0 0 0 0 0 0 0 0
2013-06 11.538461538461538 0 46.15384615384615 0 3.8461538461538463 0 0 7.6923076923076925 0 0 0 0 7.6923076923076925 7.6923076923076925 0 0 0 3.8461538461538463 3.8461538461538463 0 0 0 0 0 3.8461538461538463 0 0 0 0 0 0 0 0 0 0 0 0 3.8461538461538463 0
2013-07 11.11111111111111 0 0 0 0 0 0 11.11111111111111 0 0 0 0 0 0 0 77.77777777777779 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2013-08 4.166666666666666 0 41.66666666666667 0 4.166666666666666 0 0 4.166666666666666 0 0 0 0 4.166666666666666 0 0 20.833333333333336 0 4.166666666666666 0 0 0 0 0 0 4.166666666666666 0 0 4.166666666666666 0 0 0 0 0 4.166666666666666 0 0 0 0 4.166666666666666
2013-09 0 0 50.0 0 0 0 0 20.0 0 0 0 0 0 0 0 0 0 10.0 0 0 0 0 0 0 0 0 0 10.0 0 0 0 0 0 10.0 0 0 0 0 0
2013-10 0 0 66.66666666666666 0 0 0 0 8.333333333333332 0 0 0 0 16.666666666666664 0 0 0 0 0 0 0 0 0 0 0 8.333333333333332 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2013-11 0 0 100.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2013-12 0 0 62.5 0 0 0 0 0 0 0 0 0 12.5 12.5 0 12.5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2014-01 8.333333333333332 0 50.0 0 8.333333333333332 0 0 0 0 0 0 0 8.333333333333332 0 0 0 0 0 0 0 0 0 0 0 16.666666666666664 0 0 0 0 0 0 0 0 0 0 0 0 8.333333333333332 0
2014-02 0 0 33.33333333333333 0 0 0 0 0 33.33333333333333 0 0 0 0 0 0 0 0 33.33333333333333 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2014-03 0 0 0 0 0 0 0 0 0 0 0 0 33.33333333333333 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 66.66666666666666
2014-04 14.285714285714285 0 57.14285714285714 0 14.285714285714285 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 14.285714285714285 0 0 0 0 0
2014-05 0 0 71.42857142857143 0 0 0 0 5.714285714285714 0 0 0 0 2.857142857142857 5.714285714285714 0 0 0 2.857142857142857 0 0 0 0 0 0 0 0 0 5.714285714285714 0 0 0 2.857142857142857 0 2.857142857142857 0 0 0 0 0
2014-06 0 0 50.0 0 0 0 0 10.0 0 0 0 0 0 10.0 0 0 0 10.0 0 0 0 0 0 0 0 0 0 0 0 0 10.0 0 0 0 0 0 0 0 10.0
2014-07 15.384615384615385 0 46.15384615384615 0 7.6923076923076925 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7.6923076923076925 15.384615384615385 0 0 0 0 0 0 0 0 0 0 0 7.6923076923076925 0
2014-09 0 0 25.0 0 25.0 0 0 25.0 25.0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
2014-10 15.384615384615385 0 46.15384615384615 0 0 0 0 0 0 0 0 0 7.6923076923076925 7.6923076923076925 0 7.6923076923076925 0 0 0 0 0 0 0 0 0 0 0 7.6923076923076925 0 0 0 0 0 0 0 0 0 0 7.6923076923076925
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font: 10px sans-serif;
}
.axis path,
.axis line {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
}
.axis line {
stroke-width: 1;
stroke: #fff;
stroke-opacity: 0.5;
shape-rendering: crispEdges;
}
.browser text {
text-anchor: end;
}
</style>
<body>
<script src="http://d3js.org/d3.v3.js"></script>
<script>
var margin = {top: 20, right: 140, bottom: 30, left: 50},
width = 10000 - margin.left - margin.right,
height = 850 - margin.top - margin.bottom;
var parseDate = d3.time.format("%Y-%m").parse,
formatPercent = d3.format(".0%");
var x = d3.time.scale()
.range([0, width]);
var y = d3.scale.linear()
.range([height, 0]);
var color = d3.scale.ordinal()
.domain(["ABAP", "AGS Script", "ANTLR", "APL", "ASP", "ATS", "ActionScript", "Ada", "Agda", "Alloy",
"ApacheConf", "Apex", "AppleScript", "Arc", "Arduino", "AsciiDoc", "AspectJ", "Assembly", "Augeas",
"AutoHotkey", "AutoIt", "Awk", "Batchfile", "Befunge", "BlitzBasic", "BlitzMax", "Bluespec", "Boo",
"Brainfuck", "Brightscript", "Bro", "C", "C#", "C++", "C-ObjDump", "C2hs Haskell", "CLIPS", "CMake",
"COBOL", "CSS", "Ceylon", "Chapel", "ChucK", "Cirru", "Clean", "Clojure", "CoffeeScript", "ColdFusion",
"ColdFusion CFC", "Common Lisp", "Component Pascal", "Coq", "Cpp-ObjDump", "Creole", "Crystal", "Cucumber",
"Cuda", "Cycript", "Cython", "D", "D-ObjDump", "DM", "DOT", "Darcs Patch", "Dart", "Diff", "Dogescript",
"Dylan", "E", "Ecere Projects", "ECL", "Eagle", "Eiffel", "Elixir", "Elm", "Emacs Lisp", "EmberScript",
"Erlang", "F#", "FLUX", "FORTRAN", "Factor", "Fancy", "Fantom", "Forth", "Frege", "G-code",
"Game Maker Language", "GAMS", "GAP", "GAS", "GDScript", "GLSL", "Genshi", "Gentoo Ebuild", "Gentoo Eclass",
"Gettext Catalog", "Glyph", "Gnuplot", "Go", "Gosu", "Grace", "Grammatical Framework",
"Graph Modeling Language", "Groff", "Groovy", "Groovy Server Pages", "HTML", "HTML+Django",
"HTML+ERB", "HTML+PHP", "HTTP", "Haml", "Handlebars", "Harbour", "Haskell", "Haxe", "Hy", "IDL",
"IGOR Pro", "INI", "Inno Setup", "Idris", "Inform 7", "IRC log", "Io", "Ioke", "Isabelle", "J", "JSON",
"JSON5", "JSONLD", "JSONiq", "Jade", "Java", "Java Server Pages", "JavaScript", "Julia", "KRL", "Kit",
"Kotlin", "LFE", "LLVM", "LOLCODE", "LSL", "LabVIEW", "Lasso", "Latte", "Less", "LilyPond", "Liquid",
"Literate Agda", "Literate CoffeeScript", "Literate Haskell", "LiveScript", "Logos", "Logtalk", "LookML",
"Lua", "M", "MTML", "Makefile", "Mako", "Markdown", "Mask", "Mathematica", "Matlab", "Max", "MediaWiki",
"Mercury", "MiniD", "Mirah", "Monkey", "Moocode", "MoonScript", "Myghty", "NSIS", "Nemerle", "NetLogo",
"Nginx", "Nimrod", "Nit", "Nix", "Nu", "NumPy", "OCaml", "ObjDump", "Objective-C", "Objective-C++",
"Objective-J", "Omgrofl", "Opa", "Opal", "OpenCL", "OpenEdge ABL", "OpenSCAD", "Org", "Ox", "Oxygene",
"PAWN", "PHP", "Pan", "Parrot", "Parrot Internal Representation", "Parrot Assembly", "Pascal", "Perl",
"Perl6", "PigLatin", "Pike", "Pod", "PogoScript", "PostScript", "PowerShell", "Processing", "Prolog",
"Propeller Spin", "Protocol Buffer", "Puppet", "Pure Data", "PureScript", "Python", "Python traceback",
"QML", "QMake", "R", "RDoc", "REALbasic", "RHTML", "RMarkdown", "Racket", "Ragel in Ruby Host",
"Raw token data", "Rebol", "Red", "Redcode", "RobotFramework", "Rouge", "Ruby", "Rust", "SAS", "SCSS",
"SQF", "SQL", "STON", "Sage", "Sass", "Scala", "Scaml", "Scheme", "Scilab", "Self", "Shell", "ShellSession",
"Shen", "Slash", "Slim", "Smalltalk", "Smarty", "SourcePawn", "Squirrel", "Standard ML", "Stata", "Stylus",
"SuperCollider", "Swift", "SystemVerilog", "TOML", "TXL", "Tcl", "Tcsh", "TeX", "Tea", "Textile", "Turing",
"Twig", "TypeScript", "Unified Parallel C", "UnrealScript", "VCL", "VHDL", "Vala", "Verilog", "VimL",
"Visual Basic", "Volt", "XC", "XML", "XProc", "XQuery", "XS", "XSLT", "Xojo", "Xtend", "YAML", "Zephir",
"Zimpl", "eC", "edn", "fish", "mupad", "nesC", "ooc", "reStructuredText", "wisp", "xBase"])
.range(["#660f6b", "#B9D9FF", "#9DC3FF", "#8a0707", "#6a40fd", "#1ac620", "#e3491a", "#02f88c", "#467C91",
"#cc5c24", "#067715", "#fc735e", "#d493d7", "#ca2afe", "#bd79d1", "#269cb5", "#1957b0", "#a67219",
"#955112", "#6594b9", "#36699B", "#0348d7", "#2416c6", "#1d4495", "#0bbb5f", "#cd6400", "#df9040",
"#d4bec1", "#98523e", "#872950", "#85b844", "#555", "#178600", "#f34b7d", "#b64cb4", "#92162f",
"#3dd2e2", "#3ddcff", "#559145", "#563d7c", "#770993", "#8dc63f", "#546cb8", "#aaaaff", "#3a81ad",
"#db5855", "#244776", "#ed2cd6", "#ed2cd6", "#3fb68b", "#b0ce4e", "#fd0801", "#60ba33", "#072981",
"#a4d60a", "#9242f2", "#87894d", "#a0d171", "#e613d8", "#fcd46d", "#545024", "#075ff1", "#055d92",
"#f68fff", "#98BAD6", "#1c3857", "#cca760", "#3ebc27", "#ccce35", "#aff255", "#8a1267", "#3994bc",
"#946d57", "#6e4a7e", "#860146", "#c065db", "#f64e3e", "#0faf8d", "#b845fc", "#33CCFF", "#4d41b1",
"#636746", "#7b9db4", "#dbded5", "#341708", "#00cafe", "#c14153", "#8ad353", "#f355f8", "#737526",
"#d93f5f", "#758979", "#515724", "#d6564e", "#47520f", "#c7ae50", "#3069da", "#e4cc98", "#f0a9f0",
"#375eab", "#82937f", "#51b912", "#ff0000", "#dea182", "#1324e1", "#e69f56", "#e96cca", "#45dde3",
"#5bfa25", "#a7167e", "#afb325", "#32be76", "#3fbb6c", "#80ad0a", "#0e60e3", "#29b544", "#f7941e",
"#7891b1", "#e3592c", "#4f41bb", "#0d13df", "#018f34", "#4c1935", "#fc4090", "#d78883", "#a9188d",
"#078193", "#fdcd00", "#3affde", "#b263fa", "#63e9cf", "#0ba758", "#1f7387", "#358828", "#b07219",
"#cef874", "#f1e05a", "#a270ba", "#f5c800", "#a4ab70", "#d74cf0", "#004200", "#d232c9", "#cc9900",
"#3d9970", "#265e93", "#2584c3", "#A8FF97", "#b23c26", "#47bcf5", "#361af3", "#18fc02", "#e6184a",
"#c35314", "#499886", "#78aacf", "#a2c43d", "#652B81", "#fa1fa1", "#f15616", "#0095d9", "#0cafca",
"#debbdd", "#d2977d", "#f97732", "#4fb169", "#bb92ac", "#ce279c", "#6b34a3", "#abcdef", "#8e803e",
"#c7a938", "#550ac6", "#a9dc14", "#6d08dc", "#b5ae9d", "#7a5015", "#0d3c6e", "#ff2b2b", "#e1b594",
"#37775b", "#0d8921", "#21b65e", "#c9df40", "#50fca0", "#3be133", "#4530f9", "#438eff", "#4886FC",
"#ff0c5a", "#cabbff", "#40fb97", "#f7ede0", "#7e9997", "#63ea9f", "#a9292c", "#751ee0", "#3a7d72",
"#5a63a3", "#dbb284", "#4F5D95", "#cc0000", "#f3ca0a", "#04e51f", "#689df0", "#b0ce4e", "#0298c3",
"#0298c3", "#fcd7de", "#066ab2", "#753c9e", "#d80074", "#813598", "#c592c6", "#2779ab", "#74283c",
"#2b446d", "#587723", "#cc5555", "#91de79", "#bcdc53", "#3581ba", "#27bf63", "#44a51c", "#2f262b",
"#198ce7", "#fd6241", "#dcfa1f", "#f18f69", "#ca8aa3", "#ae17ff", "#ff9c2e", "#00935c", "#358a5b",
"#ee0000", "#29a0e7", "#a18a5e", "#cc0088", "#701516", "#dea584", "#1E90FF", "#5cdc4c", "#FFCB1F",
"#73fea6", "#165cc2", "#44c005", "#568173", "#7dd3b0", "#b1119b", "#1e4aec", "#d77f6c", "#0579aa",
"#5861ce", "#1fa242", "#120F14", "#007eff", "#ff8877", "#596706", "#996873", "#f69e1d", "#529ea9",
"#dc566d", "#4907d1", "#a5a067", "#46390b", "#ffac45", "#343761", "#6e7c08", "#50be2b", "#e4cc98",
"#8e8ef7", "#3D6117", "#e29dac", "#a27ade", "#45f715", "#765ae5", "#31859c", "#755223", "#a54c4d",
"#0298c3", "#543978", "#ee7d06", "#848bf3", "#199c4b", "#945db7", "#0098db", "#ad1ca1", "#cbbeec",
"#d68660", "#2700e2", "#f9a681", "#88373f", "#0be5ba", "#994334", "#b7e30b", "#118f9e", "#f8b2e3",
"#386451", "#db5855", "#095a90", "#cb50dc", "#ffce3b", "#b0b77e", "#e04e71", "#7582D1", "#3a4040"]);
var xAxis = d3.svg.axis()
.tickSize(height)
.scale(x)
.orient("bottom");
var yAxis = d3.svg.axis()
.scale(y)
.orient("left")
.tickSize(width)
.tickFormat(formatPercent);
var area = d3.svg.area()
.x(function(d) { return x(d.date); })
.y0(function(d) { return y(d.y0); })
.y1(function(d) { return y(d.y0 + d.y); })
.interpolate('basis')
var stack = d3.layout.stack()
.values(function(d) { return d.value })
.y(function(d) { return +d.value / 100; })
.x(function(d) { return d.date })
var svg = d3.select("body").append("svg")
.attr("width", width + margin.left + margin.right)
.attr("height", height + margin.top + margin.bottom)
.append("g")
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");
d3.tsv("data.tsv", function(error, data) {
// Get the data in a more d3-frinedly format for time series visualization
languages = {}
data.forEach(function(month) {
var date = parseDate(month.date)
delete month.date
for(key in month) {
if(!languages[key]) languages[key] = []
languages[key].push({ date: date, value: month[key] })
}
})
data = d3.entries(languages)
var stackData = stack(data)
var first = stackData[0].value,
from = first[0].date,
until = first[first.length - 1].date
x.domain([from, until])
var language = svg.selectAll('.language')
.data(stackData)
.enter().append('g')
.attr('class', 'language')
language.append('path')
.attr('d', function(d) { return area(d.value) })
.style('fill', function(d) { return color(d.key) })
.on('click', function(d) { console.log(d.key) })
var legend = svg.selectAll(".legend")
.data(color.domain())
.enter().append("g")
.attr("class", "legend")
.attr("transform", function (d, i) { return "translate(120," + i * 20 + ")" });
legend.append("rect")
.attr("x", width - 18)
.attr("width", 18)
.attr("height", 18)
.style("fill", color);
legend.append("text")
.attr("x", width - 24)
.attr("y", 9)
.attr("dy", ".35em")
.style("text-anchor", "end")
.text(String);
svg.append("g")
.attr("class", "x axis")
.call(xAxis);
svg.append("g")
.attr('transform', 'translate(' + width + ',0)')
.attr("class", "y axis")
.call(yAxis);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment