Skip to content

Commit

Permalink
build 0.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
benstoltz committed Jan 11, 2017
1 parent 1d0bc39 commit 172f354
Show file tree
Hide file tree
Showing 13 changed files with 2,355 additions and 0 deletions.
1,203 changes: 1,203 additions & 0 deletions dist/cedar.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/cedar.js.map

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions dist/cedar.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/cedar.min.js.map

Large diffs are not rendered by default.

119 changes: 119 additions & 0 deletions dist/charts/bar-horizontal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
{
"inputs": [
{ "name": "x", "type": [ "numeric", "string" ], "required": true },
{ "name": "y", "type": [ "string" ], "required": true }
],
"query": {
"orderByFields": "{x.field} DESC",
"groupByFieldsForStatistics": "{y.field}",
"outStatistics": [{
"statisticType": "sum",
"onStatisticField": "{x.field}",
"outStatisticFieldName": "{x.field}"
}]
},
"template":{
"padding": "strict",
"axes": [
{
"type": "x",
"scale": "x",
"titleOffset": 45,
"title": "{x.label}",
"tickPadding": 10,
"properties": {
"title": {
"fontSize": {"value": 15},
"fill": {"value": "#999"},
"fontWeight": {"value": "normal"}
},
"axis": {
"stroke": {"value": "#dbdad9"},
"strokeWidth": {"value": 1.5}
},
"ticks": {
"stroke": {"value": "#dbdad9"}
},
"labels": {
"fill": {"value": "#999"},
"angle": {"value": 0},
"baseline": {"value": "middle"}
}
}
},
{
"type": "y",
"scale": "y",
"titleOffset": 25,
"title": "{y.label}",
"padding": 0.25,
"properties": {
"title": {
"fontSize": {"value": 15},
"fill": {"value": "#999"},
"fontWeight": {"value": "normal"}
},
"axis": {
"stroke": {"value": "#dbdad9"},
"strokeWidth": {"value": 1.5}
},
"ticks": {
"stroke": {"value": "#dbdad9"}
},
"labels": {
"fill": {"value": "#999"},
"angle": {"value": 0},
"baseline": {"value": "middle"}
}
}
}
],
"data": [
{
"name": "table",
"format": {"property": "features"}
}
],
"marks": [
{
"from": {"data": "table"},
"properties": {
"enter": {
"height": {"band": true, "offset": -1, "scale": "y"},
"y": {"scale": "y", "field": "attributes.{y.field}"},
"x2": {"scale": "x", "field": "attributes.{x.field}"},
"x": {"scale": "x", "value": 0 }
},
"hover": {
"fill": {"value": "#29b6ea"}
},
"update": {
"fill": {"value": "#0079c1"}
}
},
"type": "rect"
}
],
"scales": [
{
"domain": {
"data": "table",
"field": "attributes.{y.field}"
},
"name": "y",
"range": "height",
"type": "ordinal",
"padding": 0.25
},
{
"domain": {
"data": "table",
"field": "attributes.{x.field}"
},
"name": "x",
"nice": true,
"range": "width"
}
]
}
}
108 changes: 108 additions & 0 deletions dist/charts/bar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
{
"inputs": [
{ "name": "x", "type": [ "string" ], "required": true },
{ "name": "y", "type": [ "numeric" ], "required": true }
],
"query": {},
"template":{
"padding": "strict",
"axes": [
{
"type": "x",
"scale": "x",
"titleOffset": 45,
"title": "{x.label}",
"properties": {
"title": {
"fontSize": {"value": 15},
"fill": {"value": "#999"},
"fontWeight": {"value": "normal"}
},
"axis": {
"stroke": {"value": "#dbdad9"},
"strokeWidth": {"value": 1.5}
},
"ticks": {
"stroke": {"value": "#dbdad9"}
},
"labels": {
"fill": {"value": "#999"},
"angle": {"value": -50},
"align": {"value": "right"},
"baseline": {"value": "middle"}
}
}
},
{
"type": "y",
"scale": "y",
"titleOffset": 45,
"title": "{y.label}",
"properties": {
"title": {
"fontSize": {"value": 15},
"fill": {"value": "#999"},
"fontWeight": {"value": "normal"}
},
"axis": {
"stroke": {"value": "#dbdad9"},
"strokeWidth": {"value": 1.5}
},
"ticks": {
"stroke": {"value": "#dbdad9"}
},
"labels": {
"fill": {"value": "#999"}
}
}
}
],
"data": [
{
"name": "table",
"format": {"property": "features"}
}
],
"marks": [
{
"from": {"data": "table"},
"properties": {
"enter": {
},
"update": {
"width": {"band": true, "offset": -1, "scale": "x"},
"x": {"field": "attributes.{x.field}", "scale": "x"},
"y": {"field": "attributes.{y.field}", "scale": "y"},
"y2": {"scale": "y", "value": 0 },
"fill": {"value": "#0079c1"}
},
"hover": {
"fill": {"value": "#29b6ea"}
}
},
"type": "rect"
}
],
"scales": [
{
"domain": {
"data": "table",
"field": "attributes.{x.field}"
},
"name": "x",
"range": "width",
"type": "ordinal",
"padding": 0.25
},
{
"domain": {
"data": "table",
"field": "attributes.{y.field}"
},
"name": "y",
"nice": true,
"range": "height"
}
]
}
}
Loading

0 comments on commit 172f354

Please sign in to comment.