summaryrefslogtreecommitdiff
path: root/src/histogram
diff options
context:
space:
mode:
authorMinijackson2014-10-23 20:43:03 +0200
committerMinijackson2014-10-23 20:43:03 +0200
commit9539c83b76244e21a562143fc1c22c3000968e5d (patch)
tree2518598983a38ad02733bc7f0ecbaa750987caa3 /src/histogram
parent25682dfbad10996b2e23ccbb3fef87636d919c03 (diff)
downloadwikistats-9539c83b76244e21a562143fc1c22c3000968e5d.tar.gz
Adding gathering of data (watchers, revisions) + beginnig of histogramhistogram
Diffstat (limited to 'src/histogram')
-rw-r--r--src/histogram/__init__.py19
1 files changed, 19 insertions, 0 deletions
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 @@
1"""
2Module used to generate the histogram
3"""
4import pygal
5
6
7class Histogram():
8 """Class used to generate an Histogram"""
9 def __init__(self, outfile, title="", data=""):
10 self.outfile = outfile
11 self.title = title
12 self.data = data
13 self.hist = pygal.Histogram()
14
15 def feed(self, data):
16 self.data = data
17
18 def generate(self):
19 pass