{"id":"index.html","dependencies":[{"name":"./index.js","dynamic":true,"resolved":"/Users/jared/Desktop/ttt/examples/index.js","parent":"/Users/jared/Desktop/ttt/examples/index.html"},{"name":"./../assets/Gaegu-Light.ttf","dynamic":true,"resolved":"/Users/jared/Desktop/ttt/assets/Gaegu-Light.ttf","loc":{"line":3,"column":7},"parent":"/Users/jared/Desktop/ttt/examples/index.html"},{"name":"_css_loader","parent":"/Users/jared/Desktop/ttt/examples/index.html","resolved":"/usr/local/lib/node_modules/parcel-bundler/src/builtins/css-loader.js"},{"name":"/Users/jared/Desktop/ttt/.babelrc","includedInParent":true,"mtime":1568950622754},{"name":"/Users/jared/Desktop/ttt/package.json","includedInParent":true,"mtime":1568955325516}],"generated":{"html":"<!DOCTYPE html>\n<html>\n<head>\n\t<title>roughViz.js</title>\n\t<style>@font-face {\n\t\t    font-family: \"Gaegu\";\n\t\t    src: url(\"/6a8d5b48c50ea236038738d03b9330b5.ttf\");\n\t\t}\n\t    .wrapper {\n\t      display: flex;\n\t      flex: wrap;\n\t    }\n\t    h1, h2, h4 {\n\t    \tfont-family: 'Gaegu';\n\t    \tfont-weight: lighter;\n\t    \tpadding-bottom: 0;\n\t    \tmargin-bottom: 0;\n\t    \tmargin-top: 0;\n\t    }\n\n\t    h2 {\n\t    \tfont-family: 'Gaegu';\n\t    \tfont-size: 2.5rem;\n\t    }\n\n\t    p {\n\t    \tfont-family: 'Gaegu';\n\t    \tcolor: grey;\n\t    \tfont-size: 1.3rem;\n\t    }\n\n\t    .dot {\n\t\t    -webkit-animation:name 4s infinite;\n\t\t    stroke: black;\n\t\t}\n\n\t\t@-webkit-keyframes name {\n\t\t    0% {color: skyblue;}\n\t\t    25% {color: teal;}\n\t\t    50% {color: pink;}\n\t\t    75% {color: yellow;}\n\t\t    100% {color: coral;}\n\t\t}\n\n\t\t.project-grid {\n\t\t\t/*flex-direction: row;*/\n\t\t\twidth: 100%;\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: center;\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t.project-wrapper {\n\t\t\t/*width: 85%;*/\n\t\t\tflex-basis: 25%;\n\t\t\tpadding: 1.9rem;\n\t\t\tmargin-bottom: 0;\n\t\t}\n\n\t\t.desc {\n\t\t\tfont-size: 1.1rem;\n\t\t}\n\n\t\thr {\n\t\t\tmax-width: 50%;\n\t\t\topacity: .3;\n\t\t}\n\n\t\tcode  {\n\t\t    display: block;\n\t\t    text-align: left;\n\t\t    background: #f5f5f5;\n\t\t    padding-right: 0.5em;\n\t\t    color: #333333;\n\t\t    overflow-x: auto;\n\t\t    font-size: 0.8rem;\n\t\t    max-width: 100%;\n\t\t}\n\n\t\t.start {\n\t\t\tmax-width: 45%;\n\t\t}\n\n\n\t\tbody {\n\t\t\tbackground-color: #fff;\n\t\t}</style>\n</head>\n<body>\n\t<center>\n\t\t<h1 style=\"font-size: 8rem; letter-spacing: -4px;\"> roughViz<span class=\"dot\">.</span>js </h1>\n\t\t<!-- <h4> Chart Zoo </h4> -->\n\t\t<p> Reusable JavaScript library for creating sketchy/hand-drawn styled charts in the browser.<br>\n\t\t Based on D3v5 and rough.js.</p>\n\t</center>\n\t<div style=\"padding-left: 10%;\" id=\"example\"></div>\n\t<!-- <h1>Examples</h1> -->\n\n\n\t<center><h2>Qualities</h2></center>\n\t<center>\n\t<li class=\"project-grid\">\n\t\t<ul class=\"project-wrapper\">\n\t\t\t<h2>Flexible</h2>\n\t\t\t<p class=\"desc\">Charts can be created from multiple data-sources! Use inline JSON. Load your own local file. Link to data at some url.</p>\n\t\t</ul>\n\t\t<ul class=\"project-wrapper\">\n\t\t\t<h2>Aesthetic</h2>\n\t\t\t<p class=\"desc\">Create charts with beautiful, sketchy-looking aesthetics. Or just make charts that look like a bunch of scribbles. </p>\n\t\t</ul>\n\t\t<ul class=\"project-wrapper\">\n\t\t\t<h2>Simple</h2>\n\t\t\t<p class=\"desc\">roughViz has a very easy API. Just create a chart and specify the parameters. No more method chaining or nested JSON. </p>\n\t\t</ul>\n\t<!-- \t<ul class=\"project-wrapper\">\n\t\t\t<h2>Modern</h2>\n\t\t\t<p class=\"desc\">The code was written as an ES Module using ES6+ and D3v5+.</p>\n\t\t</ul> -->\n\t</li>\n\t<br><br>\n\t<p style=\"max-width: 70%;\"><b>Why?</b> roughViz was built to provide an easy way to create interactive, \"sketchy\" plots in the browser.\n\tUse these charts where the communication goal is to show intent or generality, and not absolute precision. \n\tOr just because they're fun and look weird.\n<!-- \t<br>While the charts are fun and look cool, they serve a valuable commincation purpose: communicating intent as opposed to a precise rendered graph.  -->\n</p>\n\n<br><br><br><br>\n\t<center><h2>Quick Start</h2></center>\n\t<hr>\n\t<br><br>\n\t<center>\n\t<p>Step 1: Load Library</p>\n\t<pre><code class=\"start\">\n&lt;!-- Step 1) Load D3.js --&gt;<br>&lt;script src=&quot;https://d3js.org/d3.v5.min.js&quot;&gt;&lt;/script&gt;<br><br>&lt;!-- Step 2) Load billboard.js with style --&gt;<br>&lt;script src=&quot;$YOUR_PATH/billboard.js&quot;&gt;&lt;/script&gt;<br><br>&lt;!-- Load with base style --&gt;<br>&lt;link rel=&quot;stylesheet&quot; href=&quot;$YOUR_PATH/billboard.css&quot;&gt;<br><br>&lt;!-- Or load different theme style --&gt;<br>&lt;link rel=&quot;stylesheet&quot; href=&quot;$YOUR_PATH/theme/insight.css&quot;&gt;<br>             \n\t</code></pre>\n\t<p>Step 2: Setup chart container</p>\t\n\t<pre><code class=\"start\">\n\t&lt;div id=&quot;chart&quot;&gt;&lt;/div&gt;\n\t</code></pre>\n\t<p>Step 3: Create chart</p>\t\n\t<pre><code class=\"start\">\nnew roughBars.Bar(\n  {\n    element: '#example',\n    data: 'https://gist.githubusercontent.com/mbostock/3310560/raw/98311dc46685ed02588afdcb69e5fa296febc1eb/letter-frequency.tsv',\n    labels: 'letter',\n    values: 'frequency',\n    height:window.innerHeight * 0.7,\n    width: window.innerWidth * 0.8,\n    roughness: 3,\n    color: 'pink',\n    fillWeight: 1,\n    strokeWidth: 0.5,\n    stroke: 'black',\n  }\n);\n\t</code></pre>\n\t<p>That's it!</p>\n</center>\n\n\n<br>\n\n<!-- \t<p>roughness</p>\n\t<p>fillStyle</p>\n\t<p>fillWeight</p>\n\t<p>strokeWidth</p>\n\t<br><br>\n\n -->\n\n\t<br><br><br><br>\n\t<center>\n\t\t<h2>Some Examples</h2>\n\t\t<p>(<a href=\"https://github.com/jwilber/roughViz\">View Full API</a>)</p>\n\t</center>\n\t<hr>\n\t<br><br>\n\t<div class=\"wrapper\">\n\t    <div id=\"vis0\"></div>\n\t    <pre><code>\nnew roughBars.Scatter(\n  {\n    element: '#vis0',\n    data: 'https://raw.githubusercontent.com/plotly/datasets/master/gapminder2007.csv',\n    title: 'Hans Rosling (Gapminder 2007)',\n    x: 'gdpPercap',\n    y: 'lifeExp',\n    radius: 'pop',\n    colorVar: 'continent',\n    highlightLabel: 'country',\n    roughness: 1.5,\n    width: window.innerWidth / 2,\n    height: 500,\n  }\n);\n</code></pre>\n\t</div>\n\t<div class=\"wrapper\">\n\t    <div id=\"vis1\"></div>\n\t    <pre><code>\nnew roughBars.Donut(\n  {\n    element: '#vis1',\n    data: 'https://raw.githubusercontent.com/jwilber/jenkem_data/master/regions.json',\n    title: 'Regions',\n    labels: 'region',\n    values: 'count',\n    roughness: 4,\n    colors: ['pink', 'coral', 'teal', 'skyblue'],\n    highlight: 'gold',\n    strokeWidth: 2,\n    titleFontSize: '25px',\n    fillWeight: 1.5,\n    fillStyle: 'zigzag-line',\n    width: window.innerWidth / 2,\n    height: 450,\n  }\n);\n\t    </code>\n\t</pre></div>\n\t<div class=\"wrapper\">\n\t    <div id=\"vis2\"></div>\n\t    <pre><code>new roughBars.Donut(\n  {\n    element: '#vis1',\n    data: 'https://raw.githubusercontent.com/jwilber/jenkem_data/master/regions.json',\n    title: 'Regions',\n    labels: 'region',\n    values: 'count',\n    width: window.innerWidth / 2,\n    roughness: 0,\n    radius: 'petal_width',\n    colors: ['pink', 'coral', 'teal', 'skyblue'],\n    bowing: 0.1,\n    highlight: 'gold',\n    // stroke: 'black',\n    strokeWidth: 1,\n    titleFontSize: '25px',\n    // fillWeight: 1.5,\n    // simplification: 5,\n    fillStyle: 'zigzag-line',\n    height: 450,\n    curbZero: false,\n  }\n);</code></pre>\n\t</div>\n\t<div class=\"wrapper\">\n\t    <div id=\"vis3\"></div>\n\t    <pre><code>new roughBars.Pie(\n  {\n    element: '#vis2',\n    data: {\n      labels: ['Reggae', 'Jah', 'Lax', 'd'],\n      values: [40, 400, 40]\n    },\n    title: 'My Free Time',\n    // titleFontSize: '55px',\n    width: window.innerWidth / 2,\n    roughness: 5,\n    // radius: 'petal_width',\n    colors: ['red', 'orange', 'blue', 'skyblue', 'red', 'green', 'black', 'grey'],\n    // bowing: 0.1,\n    stroke: 'black',\n    strokeWidth: 5,\n    strokeWidth: 3,\n    fillStyle: 'zigzag',\n    height: 400,\n    // font: 0,\n    fillWeight: 3.5,\n  }\n);</code></pre>\n\t</div>\n</center>\n\n\n\t<script src=\"/168726dbe96b3ce427e7fedce31bb0bc.js\"></script>\n</body>\n</html>\n\n\n<!-- \nWhy?\nComfortable: Easy API.\nFlexible: Allows you to enter data maunally, or from files. Plots are easily extendible.\nExtendible:\nAesthetic:\nEasy Interface:\nMODERN: es6 + D3V5\n -->"},"sourceMaps":null,"error":null,"hash":"56db021b5862c69159042ec5b5d704db","cacheData":{"env":{}}}