class_docstr: Svg related methods
class_docstr_tok: ["Svg","related","methods"]
docstr: Draw a solid gauge slice and background slice
docstr_tok: ["Draw","a","solid","gauge","slice","and","background","slice"]
code: def solid_gauge(
      self,
      serie_node,
      node,
      radius,
      small_radius,
      angle,
      start_angle,
      center,
      val,
      i,
      metadata,
      half_pie,
      end_angle,
      max_value,
  ):
      """Draw a solid gauge slice and background slice"""
      if angle == 2 * pi:
          angle = nearly_2pi
  
      if angle > 0:
          to = [
              coord_abs_project(center, radius, start_angle),
              coord_abs_project(center, radius, start_angle + angle),
              coord_abs_project(
                  center, small_radius, start_angle + angle
              ),
              coord_abs_project(center, small_radius, start_angle),
          ]
  
          self.node(
              node,
              "path",
              d="M%s A%s 0 %d 1 %s L%s A%s 0 %d 0 %s z"
              % (
                  to[0],
                  coord_dual(radius),
                  int(angle > pi),
                  to[1],
                  to[2],
                  coord_dual(small_radius),
                  int(angle > pi),
                  to[3],
              ),
              class_="slice reactive tooltip-trigger",
          )
      else:
          return
  
      x, y = coord_diff(
          center,
          coord_project(
              (radius + small_radius) / 2, start_angle + angle / 2
          ),
      )
      self.graph._static_value(
          serie_node, val, x, y, metadata, "middle"
      )
      self.graph._tooltip_data(
          node,
          val,
          x,
          y,
          "centered",
          self.graph._x_labels and self.graph._x_labels[i][0],
      )
  
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 10 for calling the Svg obj's underlying member method code with example usage: obj.solid_gauge(serie_node, node, radius, small_radius, angle, start_angle, center, val, i, metadata, half_pie, end_angle, max_value) without return types