Skip to content

Instantly share code, notes, and snippets.

@chriswhong
Last active January 15, 2016 22:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save chriswhong/c8341b1f6d53f3fd1852 to your computer and use it in GitHub Desktop.
Save chriswhong/c8341b1f6d53f3fd1852 to your computer and use it in GitHub Desktop.
{
"version": "2",
"header": {
"title": "NYC 311 Data",
"description": "The last 3 million NYC 311 complaints",
"navigation": [
{
"label": "Download",
"url": ""
}
]
},
"cards": [
{
"x": 0,
"y": 0,
"width": 6,
"height": 2,
"vizwit": {
"title": "Number of Complaints",
"chartType": "callout",
"provider": "cartodb",
"domain": "cwhong.cartodb.com",
"dataset": "union_311",
"aggregateFunction": "count",
"valueFormat": "0,0",
"limit": 1,
"baseFilters": [
]
}
},
{
"x": 0,
"y": 2,
"width": 12,
"height": 5,
"vizwit": {
"title": "Created Date",
"description": "Date the complaint was created",
"chartType": "datetime",
"provider": "cartodb",
"domain": "cwhong.cartodb.com",
"dataset":"union_311",
"groupBy":"date_trunc('month', created_date)",
"triggerField": "created_date"
}
},{
"x": 0,
"y": 8,
"width": 12,
"height": 5,
"vizwit": {
"title": "Agency",
"chartType": "bar",
"provider": "cartodb",
"domain": "cwhong.cartodb.com",
"dataset": "union_311",
"groupBy": "agency"
}
},{
"x": 0,
"y": 5,
"width": 4,
"height": 4,
"vizwit": {
"title": "Borough",
"description": "Borough Breakdown",
"chartType": "pie",
"provider": "cartodb",
"domain": "cwhong.cartodb.com",
"dataset": "union_311",
"groupBy": "borough"
}
},{
"x": 4,
"y": 5,
"width": 4,
"height": 4,
"vizwit": {
"title": "Status",
"description": "Ticket Status",
"chartType": "pie",
"provider": "cartodb",
"domain": "cwhong.cartodb.com",
"dataset": "union_311",
"groupBy": "status"
}
},
{
"x": 0,
"y": 11,
"width": 12,
"height": 7,
"vizwit": {
"title": "311 Complaints",
"chartType": "table",
"provider": "cartodb",
"domain": "cwhong.cartodb.com",
"dataset": "union_311"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment