/+junk/pygooglechart-py3k

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/pygooglechart-py3k

« back to all changes in this revision

Viewing changes to pygooglechart.py

  • Committer: gak
  • Date: 2007-12-13 23:35:29 UTC
  • Revision ID: git-v1:90951c208c1b0ec6112cd85aacaa15eb2bf8b689
Fixed set_axis_labels to work with spaces

Show diffs side-by-side

added added

removed removed

Lines of Context:
413
413
 
414
414
    def set_axis_labels(self, axis_type, values):
415
415
        assert(axis_type in Axis.TYPES)
 
416
        values = [ urllib.quote(a) for a in values ]
416
417
        axis_index = len(self.axis)
417
418
        axis = LabelAxis(axis_index, axis_type, values)
418
419
        self.axis.append(axis)
432
433
            raise InvalidParametersException('Axis index %i has not been ' \
433
434
                'created' % axis)
434
435
 
435
 
    def set_axis_style(self, axis_index, colour, font_size=None, alignment=None):
 
436
    def set_axis_style(self, axis_index, colour, font_size=None, \
 
437
            alignment=None):
436
438
        try:
437
439
            self.axis[axis_index].set_style(colour, font_size, alignment)
438
440
        except IndexError: