Skip to content

Instantly share code, notes, and snippets.

@timwis
Forked from marks/chicago-crimes.v2.json
Last active January 17, 2016 21:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timwis/d0ee099865d729922a8b to your computer and use it in GitHub Desktop.
Save timwis/d0ee099865d729922a8b to your computer and use it in GitHub Desktop.
Chicago crime incidents VizWit configuration
{
"version": "2",
"header": {
"title": "Crime Incidents in Chicago",
"description": "This dataset reflects reported incidents of crime (with the exception of murders where data exists for each victim) that occurred in the City of Chicago from 2001 to present, minus the most recent seven days. Data is extracted from the Chicago Police Department's CLEAR (Citizen Law Enforcement Analysis and Reporting) system. In order to protect the privacy of crime victims, addresses are shown at the block level only and specific locations are not identified.",
"navigation": [{
"label": "Download",
"url": "https://data.cityofchicago.org/api/views/ijzp-q8t2/rows.csv?accessType=DOWNLOAD&bom=true"
}]
},
"cards": [{
"x": 0,
"y": 0,
"width": 6,
"height": 4,
"vizwit": {
"title": "Date",
"chartType": "datetime",
"chartType2": "line",
"domain": "data.cityofchicago.org",
"dataset": "6zsd-86xi",
"groupBy": "date_trunc_ym(date)",
"triggerField": "date"
}
}, {
"x": 6,
"y": 0,
"width": 6,
"height": 4,
"vizwit": {
"title": "Primary Type",
"description": "Where no arrest was made",
"chartType": "bar",
"domain": "data.cityofchicago.org",
"dataset": "6zsd-86xi",
"groupBy": "primary_type",
"filters": [{
"field": "arrest",
"expression": {
"type": "=",
"value": false
}
}]
}
}, {
"x": 0,
"y": 4,
"width": 4,
"height": 4,
"vizwit": {
"title": "Arrest Made",
"chartType": "pie",
"domain": "data.cityofchicago.org",
"dataset": "6zsd-86xi",
"groupBy": "arrest"
}
}, {
"x": 4,
"y": 4,
"width": 4,
"height": 4,
"vizwit": {
"title": "District",
"chartType": "bar",
"domain": "data.cityofchicago.org",
"dataset": "6zsd-86xi",
"groupBy": "district"
}
}, {
"x": 8,
"y": 4,
"width": 4,
"height": 4,
"vizwit": {
"title": "Wards",
"chartType": "choropleth",
"domain": "data.cityofchicago.org",
"dataset": "6zsd-86xi",
"groupBy": ":@computed_region_43wa_7qmu",
"boundaries": "https://data.cityofchicago.org/resource/43wa-7qmu.geojson?$limit=5000",
"boundariesLabel": "ward",
"boundariesId": "_feature_id"
}
}, {
"x": 0,
"y": 8,
"width": 12,
"height": 5,
"vizwit": {
"title": "Crime Incidents",
"chartType": "table",
"domain": "data.cityofchicago.org",
"dataset": "6zsd-86xi",
"padded": true,
"columnsToHide": ["id", "x_coordinate", "y_coordinate"]
}
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment