forked from interra/311-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashFromTest.json
1 lines (1 loc) · 5.21 KB
/
dashFromTest.json
1
{"title":"Philly 311 Data Visualized","backend":"cartodb","dataResources":[{"resourceHandle":"byServiceName","comment":"**All imported data is assumed to be in cartodb sql api return value format","resourceType":"cartodb","url":"https://phl.carto.com/api/v2/sql","query":"?q=SELECT service_name, COUNT(cartodb_id) FROM public_cases_fc WHERE service_name NOT IN ('Information Request') GROUP BY service_name ORDER BY count DESC LIMIT 10","data":{"rows":[{"service_name":"Maintenance Residential or Commercial","count":70021},{"service_name":"Rubbish/Recyclable Material Collection","count":57111},{"service_name":"Illegal Dumping","count":48269},{"service_name":"Abandoned Vehicle","count":45314},{"service_name":"Directory Assistance","count":40456},{"service_name":"Graffiti Removal","count":34435},{"service_name":"Street Defect","count":33976},{"service_name":"Street Light Outage","count":22678},{"service_name":"Vacant Lot Clean-Up","count":20308},{"service_name":"Vacant House or Commercial","count":18416}],"time":0.449,"fields":{"service_name":{"type":"string"},"count":{"type":"number"}},"total_rows":10}}],"regions":[{"id":"filters","children":[{"type":"Autocomplete","key":"include","label":"My Label","field":"service_name","multi":true,"operation":"IN","options":[{"label":"foo","value":"foo"},{"label":"bar","value":"bar"},{"label":"baz","value":"baz"}]},{"type":"Autocomplete","key":"exclude","label":"Number 2","field":"service_name","multi":true,"operation":"NOT IN","options":[{"label":"a","value":"a"},{"label":"b","value":"b"},{"label":"c","value":"c"}]},{"type":"Autocomplete","key":"start_date","label":"Start Date","field":"date","operation":">="},{"type":"Autocomplete","key":"end_date","label":"End Date","field":"date","operation":"<="}]},{"id":"region-1","children":[{"type":"Metric","value":"A","key":"metric-a","background":"red","caption":"caption a","icon":"tree","cardProps":{"cardClasses":["col-md-3"]}},{"type":"Metric","value":"B","key":"metric-b","background":"blue","caption":"caption b","icon":"rocket","cardProps":{"cardClasses":["col-md-3"]}},{"type":"Metric","value":"C","key":"metric-c","background":"green","caption":"caption c","icon":"telegram","cardProps":{"cardClasses":["col-md-3"]}},{"type":"Metric","value":"D","key":"metric-d","background":"black","caption":"caption d","icon":"shower","cardProps":{"cardClasses":["col-md-3"]}}]},{"id":"region-2","children":[{"type":"Chart","key":"chart-1","dataType":"NVD3Series","dataFields":[{"fieldName":"x","dataResource":"byServiceName","dataResourceField":"service_name"},{"fieldName":"y","dataResource":"byServiceName","dataResourceField":"count"}],"settings":{"type":"pieChart","labelType":"key","labelSunbeamLayout":true,"showLegend":false,"donut":true,"donutRatio":".65","height":"800"},"cardProps":{"header":"Request Type","subheader":"(excluding requests for information)","cardClasses":["col-md-6"],"iconClass":"fa fa-tree"},"data":[{"x":"Maintenance Residential or Commercial","y":70021},{"x":"Rubbish/Recyclable Material Collection","y":57111},{"x":"Illegal Dumping","y":48269},{"x":"Abandoned Vehicle","y":45314},{"x":"Directory Assistance","y":40456},{"x":"Graffiti Removal","y":34435},{"x":"Street Defect","y":33976},{"x":"Street Light Outage","y":22678},{"x":"Vacant Lot Clean-Up","y":20308},{"x":"Vacant House or Commercial","y":18416}]},{"type":"Chart","key":"chart-2","dataType":"NVD3Series","dataFields":[{"fieldName":"x","dataResource":"byServiceName","dataResourceField":"service_name"},{"fieldName":"y","dataResource":"byServiceName","dataResourceField":"count"}],"settings":{"type":"pieChart","labelType":"key","labelSunbeamLayout":true,"showLegend":false,"donut":true,"donutRatio":".65","height":"800"},"cardProps":{"header":"Request Type","subheader":"(excluding requests for information)","cardClasses":["col-md-6"],"iconClass":"fa fa-tree"},"data":[{"x":"Maintenance Residential or Commercial","y":70021},{"x":"Rubbish/Recyclable Material Collection","y":57111},{"x":"Illegal Dumping","y":48269},{"x":"Abandoned Vehicle","y":45314},{"x":"Directory Assistance","y":40456},{"x":"Graffiti Removal","y":34435},{"x":"Street Defect","y":33976},{"x":"Street Light Outage","y":22678},{"x":"Vacant Lot Clean-Up","y":20308},{"x":"Vacant House or Commercial","y":18416}]}]}],"dashboardData":[{"resourceHandle":"byServiceName","comment":"**All imported data is assumed to be in cartodb sql api return value format","resourceType":"cartodb","url":"https://phl.carto.com/api/v2/sql","query":"?q=SELECT service_name, COUNT(cartodb_id) FROM public_cases_fc WHERE service_name NOT IN ('Information Request') GROUP BY service_name ORDER BY count DESC LIMIT 10","data":{"rows":[{"service_name":"Maintenance Residential or Commercial","count":70021},{"service_name":"Rubbish/Recyclable Material Collection","count":57111},{"service_name":"Illegal Dumping","count":48269},{"service_name":"Abandoned Vehicle","count":45314},{"service_name":"Directory Assistance","count":40456},{"service_name":"Graffiti Removal","count":34435},{"service_name":"Street Defect","count":33976},{"service_name":"Street Light Outage","count":22678},{"service_name":"Vacant Lot Clean-Up","count":20308},{"service_name":"Vacant House or Commercial","count":18416}],"time":0.449,"fields":{"service_name":{"type":"string"},"count":{"type":"number"}},"total_rows":10}}]}