def __init__(self, data, jfile, settings): self.annotations_map = [] AbstractBaseDateChart.__init__(self, data, jfile, settings) self._is_x_axis_date = self.settings['is_x_axis_date'] if self.layout_data['use_stacked_bars_ind'] == 'Y': header_len = len(self.chart_data['orig_header']) self._stacked_bar_annotation_indexes[0] = [0] * header_len self._stacked_bar_annotation_indexes[1] = [0] * header_len # for i in self.chart_data['orig_header']: # self._stacked_bar_annotation_indexes[0].append(0) # self._stacked_bar_annotation_indexes[1].append(0) if self._is_x_axis_date: self._prepare_axes_scaling(self.chart_data['orig_header']) else: self._prepare_y_axis_scaling()
def __init__(self, data, jfile, settings): AbstractBaseDateChart.__init__(self, data, jfile, settings) self._is_x_axis_date = True self._has_y_axis = True self._prepare_axes_scaling(self.chart_data['orig_header'])