Returns or sets (if a value is provided) the series' colour.

        :param str color: If given, the series' colour will be set to this.
        :rtype: ``str``

def color(self, color=None):
        """Returns or sets (if a value is provided) the series' colour.

        :param str color: If given, the series' colour will be set to this.
        :rtype: ``str``"""

        if color is None:
            return self._color
        else:
            if not isinstance(color, str):
                raise TypeError("color must be str, not '%s'" % str(color))
            self._color = color