#167 Render legends correctly.
[ckanext-ga-report.git] / ckanext / ga_report / public / scripts / ckanext_ga_reports.js
blob:a/ckanext/ga_report/public/scripts/ckanext_ga_reports.js -> blob:b/ckanext/ga_report/public/scripts/ckanext_ga_reports.js
--- a/ckanext/ga_report/public/scripts/ckanext_ga_reports.js
+++ b/ckanext/ga_report/public/scripts/ckanext_ga_reports.js
@@ -16,7 +16,6 @@
         series: data ,
         height: 328
     });
-    graph.render();
     var x_axis = new Rickshaw.Graph.Axis.Time( { graph: graph } );
     var y_axis = new Rickshaw.Graph.Axis.Y( {
         graph: graph,
@@ -37,6 +36,7 @@
         return content;
       }
     } );
+    graph.render();
 };