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
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