コード例 #1
0
 def initialize(self):
     """Define StackedBarChart specific attributes.
     """
     self.table = TableLite(cellpadding=3, cellspacing=0)
     self.barfiles = barfiles
     self.colors = ('blue', 'red', 'yellow', 'purple', 'orange', 'green')
     self.bound_zero = "yes"
コード例 #2
0
    def initialize(self):
        """Initialize the chart properties.

        This method is overloaded by child classes.
        """
        self.table = TableLite(cellpadding=3, cellspacing=0)
        self.barfiles = barfiles
        # color keys for low, norm and hi indications
        self.barcolors = ('yellow', 'blue', 'red')
        # numeric values which determine the boundaries between color ranges
        self.thresholds = (0, 1E+09)
        #
        self.bound_zero = "no"