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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://cdn.jsdelivr.net/npm/vega@5"></script> | |
<script src="https://cdn.jsdelivr.net/npm/vega-lite@4"></script> | |
<script src="https://cdn.jsdelivr.net/npm/vega-embed"></script> | |
</head> | |
<body> | |
<div id="vis"></div> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://cdn.jsdelivr.net/npm/vega@5"></script> | |
<script src="https://cdn.jsdelivr.net/npm/vega-lite@4"></script> | |
<script src="https://cdn.jsdelivr.net/npm/vega-embed"></script> | |
</head> | |
<body> | |
<div id="vis"></div> | |
<script type="text/javascript"> |
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
{ | |
"height": 1000, | |
"data": { | |
"values": [ | |
{"hue": 0, "opacity": 0}, | |
{"hue": 0.01, "opacity": 0}, | |
{"hue": 0.02, "opacity": 0}, | |
{"hue": 0.03, "opacity": 0}, | |
{"hue": 0.04, "opacity": 0}, | |
{"hue": 0.05, "opacity": 0}, |
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
{ | |
"resolve": {"scale": {"color": "independent"}}, | |
"vconcat": [ | |
{ | |
"transform": [ | |
{ | |
"from": { | |
"data": { | |
"values": [ | |
{"pop": 5420, "zip": "97002", "pct": 0, "desc": "Aurora"}, |
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
{ | |
"data": { | |
"values": [ | |
{"cases": 10, "zip": "97002", "date": "6/17", "pct": 0.178}, | |
{"cases": 2, "zip": "97002", "date": "6/24", "pct": 0.035}, | |
{"cases": 1, "zip": "97002", "date": "7/1", "pct": 0.018000000000000016}, | |
{"cases": 0, "zip": "97002", "date": "7/8", "pct": 0}, | |
{"cases": 6, "zip": "97002", "date": "7/15", "pct": 0.10699999999999996}, | |
{"cases": 3, "zip": "97002", "date": "7/22", "pct": 0.05300000000000005}, | |
{"cases": 5, "zip": "97002", "date": "7/29", "pct": 0.08899999999999997}, |
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
{-# LANGUAGE TupleSections #-} | |
import Control.Applicative | |
import Control.Arrow | |
--import Data.Monoid | |
import Data.Traversable as T | |
import Data.Foldable as F | |
import Data.List as L | |
import Data.Function | |
--import Data.Tuple |
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
import Prelude | |
import Codec.Picture -- http://hackage.haskell.org/package/JuicyPixels | |
import Data.Ratio | |
import Control.Arrow | |
import Control.Monad | |
import Control.Applicative | |
import System.FilePath | |
import System.Directory | |
tn :: Int -> FilePath -> IO FilePath |