def line(self, *args, **kwargs):
        """Adds a :py:class:`.LineSeries` to the chart.

        :param \*data: The data for the series as either (x,y) values or two big\
        tuples/lists of x and y values respectively.
        :param str name: The name to be associated with the series.
        :param str color: The hex colour of the line.
        :param str linestyle: The line pattern. See\
        `OmniCanvas docs <https://omnicanvas.readthedocs.io/en/latest/api/graph\
        ics.html#omnicanvas.graphics.ShapeGraphic.line_style>`_ for acceptable \
        values.
        :param Number linewidth: The width in pixels of the line.
        :raises ValueError: if the size and length of the data doesn't match\
        either format."""

        if "color" not in kwargs:
            kwargs["color"] = self.next_color()
        series = LineSeries(*args, **kwargs)
        self.add_series(series)