added orphan share rate graph
[p2pool.git] / web-static / graphs.html
index 11adc6c..6de46cb 100644 (file)
@@ -94,7 +94,7 @@
                 return {"area": top, "mean": bottom==0?null:top/bottom};
             }
             
-            function plot(g, unit, total_unit, lines, stack, proportion_view, isnt_first) {
+            function plot(g, unit, total_unit, lines, stack, proportion_view) {
                 // lines is a list of objects which have attributes data, color, and label
                 
                 var orig_unit = unit;
                 ]);
                 plot_later(d3.select("#local_shares"), "H/s", "H", [
                     {"url": "../web/graph_data/local_share_hash_rate/last_" + lowerperiod, "color": "#0000FF", "label": "Total"},
-                    //{"url": getData("../web/graph_data/local_dead_share_hash_rate/last_" + lowerperiod, "color": "#FF0000", "label": "Dead"}
+                    {"url": "../web/graph_data/local_dead_share_hash_rate/last_" + lowerperiod, "color": "#FF0000", "label": "Dead"},
+                    {"url": "../web/graph_data/local_orphan_share_hash_rate/last_" + lowerperiod, "color": "#00FF00", "label": "Orphan"}
                 ]);
                 plot_later(d3.select("#payout"), currency_info.symbol, null, [
                     {"url": "../web/graph_data/current_payout/last_" + lowerperiod, "color": "#0000FF"}