From 9539c83b76244e21a562143fc1c22c3000968e5d Mon Sep 17 00:00:00 2001 From: Minijackson Date: Thu, 23 Oct 2014 20:43:03 +0200 Subject: Adding gathering of data (watchers, revisions) + beginnig of histogram --- src/histogram/__init__.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/histogram/__init__.py (limited to 'src/histogram') diff --git a/src/histogram/__init__.py b/src/histogram/__init__.py new file mode 100644 index 0000000..a01612f --- /dev/null +++ b/src/histogram/__init__.py @@ -0,0 +1,19 @@ +""" +Module used to generate the histogram +""" +import pygal + + +class Histogram(): + """Class used to generate an Histogram""" + def __init__(self, outfile, title="", data=""): + self.outfile = outfile + self.title = title + self.data = data + self.hist = pygal.Histogram() + + def feed(self, data): + self.data = data + + def generate(self): + pass -- cgit v1.2.3