Skip to content

Instantly share code, notes, and snippets.

@timwis
Last active January 15, 2016 11:13
Show Gist options
  • Save timwis/b03fc4fb30e5c8265f6b to your computer and use it in GitHub Desktop.
Save timwis/b03fc4fb30e5c8265f6b to your computer and use it in GitHub Desktop.
City-owned properties VizWit configuration
{
"version": "2",
"header": {
"title": "City-owned Properties",
"description": "Properties owned by the City of Philadelphia",
"navigation": [
{
"label": "Download",
"url": "https://data.phila.gov/api/views/3h6i-2hfj/rows.csv?accessType=DOWNLOAD&bom=true"
}
]
},
"cards": [
{
"x": 0,
"y": 0,
"width": 6,
"height": 4,
"vizwit": {
"title": "Census Block Groups (2010)",
"chartType": "choropleth",
"provider": "socrata",
"domain": "data.phila.gov",
"dataset": "tqtk-pmbv",
"groupBy": ":@computed_region_6tz8_nbrg",
"boundaries": "https://data.phila.gov/resource/6tz8-nbrg.geojson?$limit=5000",
"boundariesLabel": "geoid10",
"boundariesId": "_feature_id",
"baseFilters": [
{
"field": "owner_1",
"expression": {
"type": "in",
"value": [
"CITY OF PHILA",
"CITY OF PHILADELPHIA",
"PHILA HOUSING AUTHORITY",
"REDEVELOPMENT AUTHORITY",
"PHILADELPHIA HOUSING",
"REDEVELOPMENT AUTHORITY O",
"PHILADELPHIA HOUSING AUTH",
"PHILADELPHIA REDEVELOPMEN",
"PHILA REDEVELOPMENT AUTH"
]
}
}
]
}
},
{
"x": 6,
"y": 0,
"width": 6,
"height": 4,
"vizwit": {
"title": "Council Districts (2016)",
"chartType": "choropleth",
"provider": "socrata",
"domain": "data.phila.gov",
"dataset": "tqtk-pmbv",
"groupBy": ":@computed_region_j2cn_knjf",
"boundaries": "https://data.phila.gov/resource/j2cn-knjf.geojson?$limit=5000",
"boundariesLabel": "district",
"boundariesId": "_feature_id",
"baseFilters": [
{
"field": "owner_1",
"expression": {
"type": "in",
"value": [
"CITY OF PHILA",
"CITY OF PHILADELPHIA",
"PHILA HOUSING AUTHORITY",
"REDEVELOPMENT AUTHORITY",
"PHILADELPHIA HOUSING",
"REDEVELOPMENT AUTHORITY O",
"PHILADELPHIA HOUSING AUTH",
"PHILADELPHIA REDEVELOPMEN",
"PHILA REDEVELOPMENT AUTH"
]
}
}
]
}
},
{
"x": 0,
"y": 4,
"width": 6,
"height": 4,
"vizwit": {
"title": "Zoning",
"chartType": "bar",
"provider": "socrata",
"domain": "data.phila.gov",
"dataset": "tqtk-pmbv",
"groupBy": "zoning",
"baseFilters": [
{
"field": "owner_1",
"expression": {
"type": "in",
"value": [
"CITY OF PHILA",
"CITY OF PHILADELPHIA",
"PHILA HOUSING AUTHORITY",
"REDEVELOPMENT AUTHORITY",
"PHILADELPHIA HOUSING",
"REDEVELOPMENT AUTHORITY O",
"PHILADELPHIA HOUSING AUTH",
"PHILADELPHIA REDEVELOPMEN",
"PHILA REDEVELOPMENT AUTH"
]
}
}
]
}
},
{
"x": 6,
"y": 4,
"width": 6,
"height": 4,
"vizwit": {
"title": "Category Code Description",
"chartType": "pie",
"provider": "socrata",
"domain": "data.phila.gov",
"dataset": "tqtk-pmbv",
"groupBy": "category_code_description",
"baseFilters": [
{
"field": "owner_1",
"expression": {
"type": "in",
"value": [
"CITY OF PHILA",
"CITY OF PHILADELPHIA",
"PHILA HOUSING AUTHORITY",
"REDEVELOPMENT AUTHORITY",
"PHILADELPHIA HOUSING",
"REDEVELOPMENT AUTHORITY O",
"PHILADELPHIA HOUSING AUTH",
"PHILADELPHIA REDEVELOPMEN",
"PHILA REDEVELOPMENT AUTH"
]
}
}
]
}
},
{
"x": 0,
"y": 8,
"width": 12,
"height": 4,
"vizwit": {
"title": "Owner 1",
"chartType": "bar",
"provider": "socrata",
"domain": "data.phila.gov",
"dataset": "tqtk-pmbv",
"groupBy": "owner_1",
"baseFilters": [
{
"field": "owner_1",
"expression": {
"type": "in",
"value": [
"CITY OF PHILA",
"CITY OF PHILADELPHIA",
"PHILA HOUSING AUTHORITY",
"REDEVELOPMENT AUTHORITY",
"PHILADELPHIA HOUSING",
"REDEVELOPMENT AUTHORITY O",
"PHILADELPHIA HOUSING AUTH",
"PHILADELPHIA REDEVELOPMEN",
"PHILA REDEVELOPMENT AUTH"
]
}
}
]
}
},
{
"x": 0,
"y": 12,
"width": 12,
"height": 5,
"vizwit": {
"title": "Properties",
"chartType": "table",
"provider": "socrata",
"domain": "data.phila.gov",
"dataset": "tqtk-pmbv",
"padded": true,
"baseFilters": [
{
"field": "owner_1",
"expression": {
"type": "in",
"value": [
"CITY OF PHILA",
"CITY OF PHILADELPHIA",
"PHILA HOUSING AUTHORITY",
"REDEVELOPMENT AUTHORITY",
"PHILADELPHIA HOUSING",
"REDEVELOPMENT AUTHORITY O",
"PHILADELPHIA HOUSING AUTH",
"PHILADELPHIA REDEVELOPMEN",
"PHILA REDEVELOPMENT AUTH"
]
}
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment