Sha256: 119b8043a9c9fc0d134071c4aecacd09202091d3e599248592bad2db1aa81f5e
Contents?: true
Size: 495 Bytes
Versions: 1
Compression:
Stored size: 495 Bytes
Contents
class FnordMetric::TimelineWidget < FnordMetric::Widget def data super.merge( :start_timestamp => range_to_i.first, :end_timestamp => range_to_i.last, :tick => tick.to_i, :delta => !!@options[:delta], :autoupdate => !!@options[:autoupdate], :metrics => metrics.map{ |m| m.token }, :widget_url => "/fnordmetric/widget_timeline.js?#{(rand*999).to_i}", :chart_type => (@options[:chart] || "line"), :widget_height => 320 ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fnordmetric-0.3.2 | lib/fnordmetric/timeline_widget.rb |