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 <aguz@sugarlabs.org>2012-07-14 01:41:10 (GMT)
committer Agustin Zubiaga <aguz@sugarlabs.org>2012-07-14 01:41:10 (GMT)
commit795a69b19ffa007e0247b6b5a11c047012e72937 (patch)
tree67658307b4121fb22ca6b9d15221532f939a1816 /charts.py
parent54bccb64bea10e9d0fe0ad32ab50aaf07aa258a5 (diff)
More beautiful charts :)
Diffstat (limited to 'charts.py')
-rw-r--r--charts.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/charts.py b/charts.py
index ae9258c..2cc0208 100644
--- a/charts.py
+++ b/charts.py
@@ -53,6 +53,7 @@ class Chart(gobject.GObject):
'axis': {
'tickFontSize': 12,
'labelFontSize': 14,
+ 'lineColor': '#b3b3b3',
'x': {
'ticks': [dict(v=i, label=l[0]) for i,
l in enumerate(data)],
@@ -63,9 +64,12 @@ class Chart(gobject.GObject):
'label': 'Y',
}
},
+ 'stroke': {
+ 'width': 3
+ },
'background': {
'chartColor': '#FFFFFF',
- 'lineColor': '#d1e5ec'
+ 'lineColor': '#CCCCCC'
},
'colorScheme': {
'name': 'gradient',
@@ -79,9 +83,9 @@ class Chart(gobject.GObject):
"""Set the chart color scheme"""
self.options["colorScheme"]["args"] = {'initialColor': color}
- def set_line_color(self, color='#d1e5ec'):
+ def set_line_color(self, color='#000000'):
"""Set the chart line color"""
- self.options["background"]["lineColor"] = color
+ self.options["stroke"]["color"] = color
def set_x_label(self, text="X"):
"""Set the X Label"""