Skip to content

Instantly share code, notes, and snippets.

@timwis
Created April 21, 2016 22:50
Show Gist options
  • Save timwis/0a3fa36ad77427a1de131caf07d251b5 to your computer and use it in GitHub Desktop.
Save timwis/0a3fa36ad77427a1de131caf07d251b5 to your computer and use it in GitHub Desktop.
VizWit - Vehicle & Pedestrian Investigations
{
"version": "2",
"header": {
"title": "Vehicle & Pedestrian Investigations",
"description": "Business licenses issued by the Department of Business Affairs and Consumer Protection in the City of Chicago from 2002 to the present. January 1, 2006 to present. Data is updated daily.",
"navigation": [
{
"label": "Download",
"url": "https://data.cityofchicago.org/api/views/r5kz-chrr/rows.csv?accessType=DOWNLOAD&bom=true"
}
]
},
"cards": [
{
"x": 0,
"y": 0,
"width": 12,
"height": 5,
"vizwit": {
"title": "Date and Time",
"description": "The date and time the investigation occurred",
"chartType": "datetime",
"provider": "socrata",
"domain": "data.phila.gov",
"dataset": "wu7j-iws6",
"groupBy": "date_trunc_ym(DATETIMEOCCUR)",
"triggerField": "DATETIMEOCCUR"
}
},
{
"x": 0,
"y": 5,
"width": 6,
"height": 4,
"vizwit": {
"title": "Police Districts",
"chartType": "choropleth",
"provider": "socrata",
"domain": "data.phila.gov",
"dataset": "wu7j-iws6",
"groupBy": ":@computed_region_bbgf_pidf",
"boundaries": "https://data.phila.gov/resource/bbgf-pidf.geojson?$limit=5000",
"boundariesLabel": "dist_num",
"boundariesId": "_feature_id"
}
},
{
"x": 6,
"y": 5,
"width": 6,
"height": 4,
"vizwit": {
"title": "Race",
"chartType": "pie",
"provider": "socrata",
"domain": "data.phila.gov",
"dataset": "wu7j-iws6",
"groupBy": "race"
}
},
{
"x": 0,
"y": 9,
"width": 6,
"height": 4,
"vizwit": {
"title": "Stop Type",
"chartType": "pie",
"provider": "socrata",
"domain": "data.phila.gov",
"dataset": "wu7j-iws6",
"groupBy": "stoptype"
}
},
{
"x": 6,
"y": 9,
"width": 6,
"height": 4,
"vizwit": {
"title": "Gender",
"chartType": "pie",
"provider": "socrata",
"domain": "data.phila.gov",
"dataset": "wu7j-iws6",
"groupBy": "gender"
}
},
{
"x": 0,
"y": 13,
"width": 12,
"height": 7,
"vizwit": {
"title": "Vehicle & Pedestrian Investigations",
"chartType": "table",
"provider": "socrata",
"domain": "data.phila.gov",
"dataset": "wu7j-iws6"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment