/+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: 2008-08-23 07:00:14 UTC
  • Revision ID: git-v1:e63d169f495b38d136969976df66e5eb162b7baa
 - Fixed a bug with auto-scaling, where the minimum was always 0. (#6) (Rohit Jenveja)

Show diffs side-by-side

added added

removed removed

Lines of Context:
551
551
        if x_range is None:
552
552
            x_range = self.data_x_range()
553
553
            if x_range and x_range[0] > 0:
554
 
                x_range = (0, x_range[1])
 
554
                x_range = (x_range[0], x_range[1])
555
555
        self.scaled_x_range = x_range
556
556
 
557
557
        # Determine the y-axis range for scaling.
558
558
        if y_range is None:
559
559
            y_range = self.data_y_range()
560
560
            if y_range and y_range[0] > 0:
561
 
                y_range = (0, y_range[1])
 
561
                y_range = (y_range[0], y_range[1])
562
562
        self.scaled_y_range = y_range
563
563
 
564
564
        scaled_data = []