[openspending-dev] OS visuals not displaying after new data set added

Adam Stiles adam.d.stiles at gmail.com
Wed Apr 10 20:16:14 UTC 2013


Hello,

We have OS widgets on our *NOT YET PUBLIC* site:
http://openbudgetoakland.org/pre-launch/oak11-13adopted.html

It was displaying properly until I created a new data set on OpenSpending
and changed the corresponding JS variables to create new visuals on this
page.

Here are the changes I made:
https://github.com/adstiles/openbudgetoakland/commit/5c598fabbde5ab7e1ef71305c25d8a9154d75b73

Here is our data set:
http://openspending.org/oakland-adopted-budget-fy-2011-13-expenditures

Note that "2011" is the year even though this data set has both 2011 and
2012; I'm assuming this okay if I'm trying to make a visual of 2011, but
maybe this is the problem?

Here are the errors I'm seeing, which don't seem to indicate the changes I
made, so maybe something on the OS side?


   1. GET
   http://openspending.org/api/2/aggregate?callback=aggregate_ZGF0YXNldD1vYWts…expenditures&drilldown=Child+Fund%7CUnit%7CDepartment&cut=time.year%3A2011<http://openspending.org/api/2/aggregate?callback=aggregate_ZGF0YXNldD1vYWtsYW5kLWFkb3B0ZWQtYnVkZ2V0LWZ5LTIwMTEtMTMtZXhwZW5kaXR1cmVzJmRyaWxsZG93bj1DaGlsZCtGdW5kJTdDVW5pdCU3Q0RlcGFydG1lbnQmY3V0PXRpbWUueWVhciUzQTIwMTE&dataset=oakland-adopted-budget-fy-2011-13-expenditures&drilldown=Child+Fund%7CUnit%7CDepartment&cut=time.year%3A2011>400
(Bad Request)
   jquery.min.js:4<http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js>
      1. sendjquery.min.js:4<http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js>
      2. f.extend.ajaxjquery.min.js:4<http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js>
      3. r.getTreeboot.js:3<http://openspending.org/static/openspendingjs/prod/boot.js>
      4. OpenSpending.Aggregatorboot.js:3<http://openspending.org/static/openspendingjs/prod/boot.js>
      5. updatemain.js:90<http://openspending.org/static/openspendingjs/widgets/treemap/main.js>
      6. initmain.js:116<http://openspending.org/static/openspendingjs/widgets/treemap/main.js>
      7. (anonymous
function)main.js:267<http://openspending.org/static/openspendingjs/widgets/treemap/main.js>
      8. njquery.min.js:2<http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js>
      9. o.fireWithjquery.min.js:2<http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js>
      10. o.firejquery.min.js:2<http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js>
      11. yepnope.completemain.js:274<http://openspending.org/static/openspendingjs/widgets/treemap/main.js>
      12. e.hasOwnProperty.fboot.js:1<http://openspending.org/static/openspendingjs/prod/boot.js>
      13. (anonymous
function)boot.js:1<http://openspending.org/static/openspendingjs/prod/boot.js>
      14. u


      1. Uncaught TypeError: Cannot read property 'label' of undefined
         main.js:106<http://openspending.org/static/openspendingjs/widgets/aggregate_table/main.js>
            1. (anonymous
function)main.js:106<http://openspending.org/static/openspendingjs/widgets/aggregate_table/main.js>
            2. S.mapboot.js:1<http://openspending.org/static/openspendingjs/prod/boot.js>
            3. generateColumnsmain.js:105<http://openspending.org/static/openspendingjs/widgets/aggregate_table/main.js>
            4. updatemain.js:78<http://openspending.org/static/openspendingjs/widgets/aggregate_table/main.js>
            5. $.ajax.successmain.js:191<http://openspending.org/static/openspendingjs/widgets/aggregate_table/main.js>
            6. njquery.min.js:2<http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js>
            7. o.fireWithjquery.min.js:2<http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js>
            8. wjquery.min.js:4<http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js>
            9. d.onload.d.onreadystatechange



            1. GET
               http://openspending.org/api/2/aggregate?callback=aggregate_ZGF0YXNldD1vYWts…dget-fy-2011-13-expenditures&drilldown=Child+Fund%7CUnit%7CDepartment&cut=<http://openspending.org/api/2/aggregate?callback=aggregate_ZGF0YXNldD1vYWtsYW5kLWFkb3B0ZWQtYnVkZ2V0LWZ5LTIwMTEtMTMtZXhwZW5kaXR1cmVzJmRyaWxsZG93bj1DaGlsZCtGdW5kJTdDVW5pdCU3Q0RlcGFydG1lbnQmY3V0PQ&dataset=oakland-adopted-budget-fy-2011-13-expenditures&drilldown=Child+Fund%7CUnit%7CDepartment&cut=>400
(Bad Request)
               jquery.min.js:4<http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js>
                  1.
sendjquery.min.js:4<http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js>
                  2.
f.extend.ajaxjquery.min.js:4<http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js>
                  3.
r.getTreeboot.js:3<http://openspending.org/static/openspendingjs/prod/boot.js>
                  4.
OpenSpending.Aggregatorboot.js:3<http://openspending.org/static/openspendingjs/prod/boot.js>
                  5.
updatemain.js:84<http://openspending.org/static/openspendingjs/widgets/bubbletree/main.js>
                  6.
initmain.js:109<http://openspending.org/static/openspendingjs/widgets/bubbletree/main.js>
                  7. (anonymous
function)main.js:123<http://openspending.org/static/openspendingjs/widgets/bubbletree/main.js>
                  8.
njquery.min.js:2<http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js>
                  9.
o.fireWithjquery.min.js:2<http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js>
                  10.
o.firejquery.min.js:2<http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js>
                  11.
yepnope.completemain.js:130<http://openspending.org/static/openspendingjs/widgets/bubbletree/main.js>
                  12.
e.hasOwnProperty.fboot.js:1<http://openspending.org/static/openspendingjs/prod/boot.js>
                  13. (anonymous
function)boot.js:1<http://openspending.org/static/openspendingjs/prod/boot.js>
                  14. u





THANKS for any help!

Adam

-- 
Adam Stiles
510.280.4862
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/openspending-dev/attachments/20130410/6320d6c9/attachment.html>


More information about the openspending-dev mailing list