openspending-archive / openspending-wordpress-plugin

WordPress plugin to make openspendingjs visualisations easy to add to WordPress posts and pages
GNU General Public License v2.0
3 stars 0 forks source link

The bubble tree does not show if one of the levels contains empty fields #2

Closed mihi-tr closed 10 years ago

mihi-tr commented 10 years ago

If one of the levels contains empty fields, the visualisation does not show:

javascript error:

Uncaught TypeError: Object 12 has no method 'substr' openspending.min.js:113

trickvi commented 10 years ago

What do we want to happen when there's an empty field?

mihi-tr commented 10 years ago

Can we just not show the bubbles that are undefined, instead of failing in the javascript (this seems to be happening right now)

trickvi commented 10 years ago

Fixed