awful.widget.graph: Add a "scale" property
commit22ac877f461a829ddd1a9bd4ed2f4fb1a3bff49a
authorUli Schlachter <psychon@znc.in>
Mon, 8 Jun 2009 17:13:44 +0000 (8 19:13 +0200)
committerJulien Danjou <julien@danjou.info>
Tue, 9 Jun 2009 08:59:01 +0000 (9 10:59 +0200)
treedb89a5e8908c0fb42a485160f90177cc4f040aca
parent26f1904bc716e504ee8ae9779b203cf3aaaec50a
awful.widget.graph: Add a "scale" property

If this is set to true (default is false), then the graph widget automatically
scales its content to make it fit exactly. If "max_value" is also set, this is
the minimum "height" the graph will use.

This can be useful for graphes which monitor things like network bandwidth
which can vary a lot.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
lib/awful/widget/graph.lua.in