diff options
author | Minijackson | 2014-10-23 20:43:03 +0200 |
---|---|---|
committer | Minijackson | 2014-10-23 20:43:03 +0200 |
commit | 9539c83b76244e21a562143fc1c22c3000968e5d (patch) | |
tree | 2518598983a38ad02733bc7f0ecbaa750987caa3 /src/histogram/__init__.py | |
parent | 25682dfbad10996b2e23ccbb3fef87636d919c03 (diff) | |
download | wikistats-9539c83b76244e21a562143fc1c22c3000968e5d.tar.gz |
Adding gathering of data (watchers, revisions) + beginnig of histogramhistogram
Diffstat (limited to 'src/histogram/__init__.py')
-rw-r--r-- | src/histogram/__init__.py | 19 |
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 | """ | ||
2 | Module used to generate the histogram | ||
3 | """ | ||
4 | import pygal | ||
5 | |||
6 | |||
7 | class 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 | ||