Create a gist now

Instantly share code, notes, and snippets.

Parking Violations VizWit configuration
{
"version":"2",
"header":{
"title":"Parking Violations",
"description":"This data set reflects parking violations reported by authorized agencies in Philadelphia. The data represented below is a sample of parking violations occurring between 2012-2015 with license plate numbers anonymized for privacy.",
"navigation":[
{
"label":"Download",
"url":"https://data.phila.gov/api/views/3bxz-a5sb/rows.csv?accessType=DOWNLOAD&bom=true"
}
]
},
"cards":[
{
"x":0,
"y":0,
"width":6,
"height":4,
"vizwit":{
"title":"Issue Date & Time",
"chartType":"datetime",
"provider":"socrata",
"domain":"data.phila.gov",
"dataset":"2pfz-fnns",
"groupBy":"date_trunc_ym(issue_date_and_time)",
"triggerField":"issue_date_and_time"
}
},
{
"x":6,
"y":0,
"width":6,
"height":4,
"vizwit":{
"title":"Zipcodes",
"chartType":"choropleth",
"provider":"socrata",
"domain":"data.phila.gov",
"dataset":"2pfz-fnns",
"groupBy":":@computed_region_8tb6_tjh9",
"boundaries":"https://data.phila.gov/resource/8tb6-tjh9.geojson",
"boundariesLabel":"code",
"boundariesId":"_feature_id"
}
},
{
"x":0,
"y":3,
"width":6,
"height":4,
"vizwit":{
"title":"Violation Description",
"chartType":"bar",
"provider":"socrata",
"domain":"data.phila.gov",
"dataset":"2pfz-fnns",
"groupBy":"violation_description"
}
},
{
"x":6,
"y":3,
"width":6,
"height":4,
"vizwit":{
"title":"Issuing Agency",
"description":"The agency that issued the violation",
"chartType":"pie",
"provider":"socrata",
"domain":"data.phila.gov",
"dataset":"2pfz-fnns",
"groupBy":"issuing_agency"
}
},
{
"x":0,
"y":6,
"width":12,
"height":5,
"vizwit":{
"title":"Parking Violations",
"chartType":"table",
"provider":"socrata",
"domain":"data.phila.gov",
"dataset":"2pfz-fnns",
"padded":true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment