Skip to content

Instantly share code, notes, and snippets.

View ep2247's full-sized avatar

Emily Padvorac ep2247

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
svg {
font: 10px sans-serif;
}
<!DOCTYPE html>
<meta charset="utf-8">
<style>
svg {
font: 10px sans-serif;
}
.background path {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
svg {
font: 10px sans-serif;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.2.3/d3.min.js"></script>
<script src="https://d3js.org/d3-scale-chromatic.v1.min.js"></script>
<script src="https://fb.me/react-with-addons-15.1.0.js"></script>
<script src="https://fb.me/react-dom-15.1.0.js"></script>
{
"config": {"view": {"width": 400, "height": 300}},
"hconcat": [
{
"mark": {"type": "bar", "stroke": "Black"},
"encoding": {
"color": {"value": "LightGrey"},
"x": {
"type": "quantitative",
"aggregate": "mean",
<!DOCTYPE html>
<html>
<head>
<style>
.vega-actions a {
margin-right: 12px;
color: #757575;
font-weight: normal;
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.3.0.json",
"config": {
"view": {
"height": 300,
"width": 400
}
},
"data": {
"values": [
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json", "data": {
"url": "https://raw.githubusercontent.com/hvo/datasets/master/nyc_restaurants_by_cuisine.json",
"format": { "type": "json" } },
"transform": [
{"filter": "datum._vgsid_<=25"}
],
"selection": {
"search": {
"bind": {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.2.3/d3.min.js"></script>
<script src="https://d3js.org/d3-scale-chromatic.v1.min.js"></script>
<title>JS Bin</title>
<style id="jsbin-css">