class_docstr: Svg related methods
class_docstr_tok: ["Svg","related","methods"]
docstr: Draw a svg line
docstr_tok: ["Draw","a","svg","line"]
code: def line(self, node, coords, close=False, **kwargs):
      """Draw a svg line"""
      line_len = len(coords)
      if len([c for c in coords if c[1] is not None]) < 2:
          return
      root = "M%s L%s Z" if close else "M%s L%s"
      origin_index = 0
      while origin_index < line_len and None in coords[origin_index]:
          origin_index += 1
      if origin_index == line_len:
          return
      if self.graph.horizontal:
          coord_format = lambda xy: "%f %f" % (xy[1], xy[0])
      else:
          coord_format = lambda xy: "%f %f" % xy
  
      origin = coord_format(coords[origin_index])
      line = " ".join(
          [
              coord_format(c)
              for c in coords[origin_index + 1 :]
              if None not in c
          ]
      )
      return self.node(node, "path", d=root % (origin, line), **kwargs)
  
imports: from __future__ import division
  import io
  import json
  import os
  from datetime import date, datetime
  from math import pi
  from numbers import Number
  from urllib.parse import quote_plus
  from pygal import __version__
  from pygal.etree import etree
  from pygal.util import coord_abs_project, coord_diff, coord_dual, coord_format, coord_project, minify_css, template
label_desc: Use image node_id 7 for calling the Svg obj's underlying member method code with example usage: obj.line(node, coords, close) and returns: self