--- a/ckanext/ga_report/templates/ga_report/ga_util.html +++ b/ckanext/ga_report/templates/ga_report/ga_util.html @@ -30,7 +30,7 @@ </table> -<div py:def="rickshaw_graph(items_json,id,debug=False)"> +<div py:def="rickshaw_graph(items_json,id)"> <div id="chart_container_$id" class="rickshaw_chart_container"> <div id="y_axis_$id" class="rickshaw_y_axis"></div> <div id="chart_$id" class="rickshaw_chart"></div> @@ -38,7 +38,7 @@ <script type="text/javascript"> $(function() { var series = ${items_json}; - <py:if test="debug">console.log(series);</py:if> + Rickshaw.Series.zeroFill(series); var palette = new Rickshaw.Color.Palette( { scheme: 'spectrum2001' } ); $.each(series, function(i, object) { object['color'] = palette.color();