Commit 16e2387f authored by Paul Asmuth's avatar Paul Asmuth
Browse files

timeline-widget: plot_style

parent a31e0a51
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -379,6 +379,7 @@ FnordMetric.namespace :ulikeme do
    :width => 50,
    :gauges => :events_per_second,
    :include_current => true,
    :plot_style => :areaspline,
    :autoupdate => 1
  }

@@ -389,6 +390,7 @@ FnordMetric.namespace :ulikeme do
    :width => 50,
    :gauges => :votes_per_second,
    :include_current => true,
    :plot_style => :areaspline,
    :autoupdate => 1
  }

+1 −0
Original line number Diff line number Diff line
@@ -10,6 +10,7 @@ class FnordMetric::TimelineWidget < FnordMetric::Widget
      :end_timestamp => ticks.last,
      :autoupdate => (@opts[:autoupdate] || 60),
      :include_current => !!@opts[:include_current],
      :plot_style => (@opts[:plot_style] || 'line'),
      :tick => tick
    )
  end
+5 −1
Original line number Diff line number Diff line
@@ -371,7 +371,11 @@ var FnordMetric = (function(){

      function drawChart(){
        chart = new Highcharts.Chart({     
          chart: { renderTo: 'container-'+widget_uid, defaultSeriesType: 'line', height: 270 },
          chart: { 
            renderTo: 'container-'+widget_uid, 
            defaultSeriesType: opts.plot_style, 
            height: 270 
          },
          series: [],
          title: { text: '' },
          xAxis: {       
+5 −2
Original line number Diff line number Diff line
@@ -137,6 +137,10 @@ call these methods from the event-handler block

==== Widget-Options: TimelineWidget

[plot_style] one of: line, areaspline
[include_current] show the current tick?
[autoupdate] auto-refresh the timeline every n secs (0 turns autoupdate off)

==== Widget-Options: Numbers-Widget

==== Widget-Options: ToplistWidget
@@ -286,12 +290,11 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

== Todos

  -> fix include_current
  -> timeline-widget: areaspline-option
  -> set_value / set_field
  -> bars-widget
  -> combine/calculation gauges via opts_gauge({}, &block) (+calculate ctr)
  -> timeline_widget: 'compare mode': compate gauge to yesterday
  -> fix include_current
  -> numbers_widget: handle decreasing vals
  -> make redis-addr and redis-prefix + listen-ports configurable
  -> referal tracking fu (parse googlequeries)