Writes the series to an OmniCanvas canvas.

        :param Canvas canvas: The canvas to write to.
        :param str name: The name to give the line graphic on the canvas.

def write_to_canvas(self, canvas, name):
        """Writes the series to an OmniCanvas canvas.

        :param Canvas canvas: The canvas to write to.
        :param str name: The name to give the line graphic on the canvas."""

        points = self.canvas_points()
        for point in points:
            canvas.add_oval(
             point[0] - (self.size() / 2), point[1] - (self.size() / 2),
             self.size(), self.size(),
             fill_color=self.color(), line_width=self.linewidth(), name=name
            )