[reportlab-users] horizontalbarcharts with negative data

Nicholas Wieland nicholas_wieland at yahoo.it
Thu Aug 11 06:20:43 EDT 2005


Sorry, stupid cut'n paste:
 
class Bar (_DrawingEditorMixin, Drawing):
    def __init__(self, data, width = 120, height = 50, *args, **kwds):
      apply (Drawing.__init__, (self, width, height) + args, kwds)
      self._add (self, HorizontalBarChart (), name = 'chart', validate = None, desc = None)
      self.chart.width = 200
      self.chart.height = 90
      self.chart.x = 350
      self.chart.y = 5
      self.chart.valueAxis.valueMin = -0.4
      self.chart.valueAxis.valueMax = +0.4
      self.chart.categoryAxis.categoryNames = data ['cnames']
      self.chart.data = data ['delta']
      self._add (self, 0, name = 'preview', validate = None, desc = None)

 
 
  ngw

		
---------------------------------
Yahoo! Messenger: chiamate gratuite in tutto il mondo 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://two.pairlist.net/pipermail/reportlab-users/attachments/20050811/2b876c08/attachment.html


More information about the reportlab-users mailing list