コード例 #1
0
 def make_bar_cell(self, dict):
     """return a TD object containing the scaled bar
     """
     cell = TD(bgcolor=self.bar_shade, html_escape="OFF")
     cell.append(self.gen_bar(dict['value'],
                              self.color_code(dict['value'])))
     return cell
コード例 #2
0
 def make_bar_cell(self, dict):
     """return a TD object containing the scaled bar
     """
     cell = TD(bgcolor=self.bar_shade, html_escape="OFF")
     cell.append(self.gen_bar(dict['value'],
                              self.color_code(dict['value'])))
     return cell
コード例 #3
0
ファイル: barchart.py プロジェクト: sleyzerzon/soar
 def make_bar_cell(self, dict):
     """return a TD object containing the scaled bar
     """
     cell = TD(bgcolor=self.bar_shade, html_escape="OFF")
     values = []
     for name in self.datalist.segment_names:
         values.append(dict[name])
     cell.append(self.gen_bar(values, self.colors))
     return cell
コード例 #4
0
 def make_bar_cell(self, dict):
     """return a TD object containing the scaled bar
     """
     cell = TD(bgcolor=self.bar_shade, html_escape="OFF")
     values = []
     for name in self.datalist.segment_names:
         values.append(dict[name])
     cell.append(self.gen_bar(values, self.colors))
     return cell