datamade / bga-payroll

💰 How much do your public officials make?
4 stars 4 forks source link

Charting breaks for Units without Departments #380

Closed hancush closed 4 years ago

hancush commented 4 years ago

The console shows this error when viewing detail pages for Units that have no Departments:

highcharts.src.js:123 Uncaught Error: Highcharts error #13: www.highcharts.com/errors/13
    at Object.H.error (highcharts.src.js:123)
    at H.Chart.getContainer (highcharts.src.js:21359)
    at H.Chart.firstRender (highcharts.src.js:22366)
    at H.Chart.init (highcharts.src.js:20692)
    at H.Chart.getArgs (highcharts.src.js:20538)
    at new H.Chart (highcharts.src.js:20487)
    at Object.H.chart (highcharts.src.js:20516)
    at Object.make_composition_chart (chart_helper.js:140)
    at (index):403
hancush commented 4 years ago

An example of a unit without departments is the Three Rivers Library District. If you don't have this unit locally, you can find a unit without departments in the Django shell.