def add_graph(self, data, title=None, template=None, width=None, height=None, min_y=None, max_y=None,
                      xticks_spacing=None, customize_func=None, customize_kwargs=None):
            if width is None:
                width = self.default_items_size['graph'].width
            if height is None:
                height = self.default_items_size['graph'].height
            if template is not None:
                self.template = template
            template = self.template
            if self.graphs_per_row is not None and self.position_in_row > self.graphs_per_row:
                self.newline()
            self.items.append(ExcelGraphItem(data, title, template, self.top, self.left, width, height,
                                             min_y, max_y, xticks_spacing, customize_func, customize_kwargs))
            self.left += width
            self.curline_height = max(self.curline_height, height)
            self.position_in_row += 1