Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/charts.py
diff options
context:
space:
mode:
authorAgustin Zubiaga <aguzubiaga97@gmail.com>2012-01-24 20:35:14 (GMT)
committer Agustin Zubiaga <aguzubiaga97@gmail.com>2012-01-24 20:35:14 (GMT)
commit922f02b292925da6a5920777f6decce40e53c07a (patch)
treef13b056d81327cbec982e72369654b2497e2247d /charts.py
parent068efab7e2fcf028c262d032139340756ccda869 (diff)
Save as image option, delete value option, toolbar redesign
Diffstat (limited to 'charts.py')
-rw-r--r--charts.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/charts.py b/charts.py
index cf3d0da..dc31ad5 100644
--- a/charts.py
+++ b/charts.py
@@ -35,7 +35,7 @@ class Chart(gobject.GObject):
__gsignals__ = {
'ready': (gobject.SIGNAL_RUN_FIRST, None, [str])}
- def __init__(self, type="vertical", width=800, height=600):
+ def __init__(self, type="vertical", width=600, height=460):
gobject.GObject.__init__(self)
self.dataSet = None
@@ -112,7 +112,7 @@ class Chart(gobject.GObject):
chart = pycha.line.LineChart(self.surface, self.options)
elif self.type == "pie":
- self.options["legend"] = {"hide" : "False"}
+ self.options["legend"] = {"hide": "False"}
chart = pycha.pie.PieChart(self.surface, self.options)
print sg.chart_data
self.dataSet = [(data[0], [[0, data[1]]]) for data in sg.chart_data]
@@ -122,4 +122,3 @@ class Chart(gobject.GObject):
self.surface.write_to_png(CHART_IMAGE)
self.emit("ready", CHART_IMAGE)
-