gemhome / fnordmetric

(possible new home for) FnordMetric is a redis/ruby-based realtime Event-Tracking app
0 stars 1 forks source link

Add limit option to toplist #30

Open bf4 opened 10 years ago

bf4 commented 10 years ago

Issue by KieranP Friday Sep 28, 2012 at 05:53 GMT Originally opened as https://github.com/paulasmuth/fnordmetric/issues/101


It would be nice to specify a limit on toplists, rather than displaying all of them.

e.g.

  widget("Top Users",
    :title => "This Week's Top Users",
    :gauges => :user_pageviews_per_week,
    :type => :toplist,
    :width => 50,
    :autoupdate => 1,
    :limit => 5  # <- limits to top 5, rather than all
  )