code: def format_sensor_bar(self, sensor):
          
          percentage = self.percentage(sensor.current, sensor.critical)
          bar = make_vertical_bar(int(percentage))
          if self.pango_enabled:
              if self.dynamic_color:
                  color = self.colors[int(percentage)]
                  return self.format_pango(color, bar)
          return bar
docs: Build and format a sensor bar. If pango is enabled bar color is per sensor.