diff options
author | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-07-02 00:48:34 (GMT) |
---|---|---|
committer | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-07-02 00:48:34 (GMT) |
commit | 6c0355d7194c60dcb778bb34a3df5a9bac511f37 (patch) | |
tree | 147cf3f35abac2bcb0966255176d9c67cc261491 /charts.py | |
parent | 1a133902641f5e81425fe330877f0c2b2c9fc17a (diff) |
Some charts.py fixes (sugarpycha)
Diffstat (limited to 'charts.py')
-rw-r--r-- | charts.py | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -20,9 +20,9 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -import pycha.bar -import pycha.line -import pycha.pie +import sugarpycha.bar +import sugarpycha.line +import sugarpycha.pie import cairo import gobject @@ -107,17 +107,18 @@ class Chart(gobject.GObject): self.height) if self.type == "vbar": - chart = pycha.bar.VerticalBarChart(self.surface, self.options) + chart = sugarpycha.bar.VerticalBarChart(self.surface, self.options) elif self.type == "hbar": - chart = pycha.bar.HorizontalBarChart(self.surface, self.options) + chart = sugarpycha.bar.HorizontalBarChart(self.surface, + self.options) elif self.type == "line": - chart = pycha.line.LineChart(self.surface, self.options) + chart = sugarpycha.line.LineChart(self.surface, self.options) elif self.type == "pie": self.options["legend"] = {"hide": "False"} - chart = pycha.pie.PieChart(self.surface, self.options) + chart = sugarpycha.pie.PieChart(self.surface, self.options) self.dataSet = [(data[0], [[0, data[1]]]) for data in sg.chart_data] |