web/js/fnordmetric.bars_widget.js in fnordmetric-1.0.1 vs web/js/fnordmetric.bars_widget.js in fnordmetric-1.2.0

- old
+ new

@@ -96,23 +96,23 @@ label: values[n][0], y: values[n][1] }); } - graph = new Rickshaw.Graph(gconfig); + graph = new FnordMetric.rickshaw.Graph(gconfig); - new Rickshaw.Graph.Axis.Y({ + new FnordMetric.rickshaw.Graph.Axis.Y({ graph: graph, }).render(); graph.configure(gconfig); graph.render(); } function announce(evt){ if(evt.widget_key == opts.widget_key){ - if((evt.class == "widget_response") && (evt.cmd == "values_for")){ + if((evt.type == "widget_response") && (evt.cmd == "values_for")){ running_request = false; $(opts.elem).css('opacity', 1); values = evt.values; renderChart(); }