]> git.ipfire.org Git - collecty.git/blobdiff - src/collecty/plugins/entropy.py
graph templates: Make some atttibutes easier to set
[collecty.git] / src / collecty / plugins / entropy.py
index 4296c772c8cf1e26305f159abdfbf3661d3500fd..e6e920d02ce528ff309d1c1efb46490dedbe4bce 100644 (file)
@@ -45,12 +45,15 @@ class GraphTemplateEntropy(base.GraphTemplate):
                "LINE3:entropytrend#000000",
        ]
 
-       rrd_graph_args = [
-               "--title", _("Available entropy"),
-               "--vertical-label", _("Bits"),
+       lower_limit = 0
 
-               "--lower-limit", "0", "--rigid",
-       ]
+       @property
+       def graph_title(self):
+               return _("Available entropy")
+
+       @property
+       def graph_vertical_label(self):
+               return _("Bit")
 
 
 class EntropyObject(base.Object):