web/haml/distribution_gauge.haml in fnordmetric-0.9.7 vs web/haml/distribution_gauge.haml in fnordmetric-1.0.0
- old
+ new
@@ -1,11 +1,11 @@
.report_view
%ul.ui_numbers(style="float:right;")
%li
.val
- %span.ui_value(data-value="#{@samples}")
+ %span.ui_value.samples(data-value="#{@samples}")
.title Number of Samples
%li
.val
%span.ui_value(data-value="#{@values.mean}")
.title Total Value Mean
@@ -94,25 +94,25 @@
elem: $('.widget_mmm_timeseries'),
height: 260,
no_headbar: true,
default_style: 'line',
series_resolutions: #{@zooms.to_json},
- series: [
- {
+ series: [
+ {
name: 'Max',
color: "#{FnordMetric::COLORS[-1]}",
data: #{@mmm_timeseries_arr.map{|t,v| {:x=>t.to_i,:y=>v[:max]} }.to_json}
},
- {
+ {
name: 'Min',
color: "#{FnordMetric::COLORS[-1]}",
data: #{@mmm_timeseries_arr.map{|t,v| {:x=>t.to_i,:y=>v[:min]} }.to_json}
},
- {
+ {
name: 'Mean',
color: "#{FnordMetric::COLORS[-2]}",
data: #{@mmm_timeseries_arr.map{|t,v| {:x=>t.to_i,:y=>v[:avg].average} }.to_json}
}
]
});
-
+