{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "div",
  "style": {
    "display": "=if(toString(@currentField) == '', 'none', 'flex')",
    "align-items": "center",
    "width": "100%"
  },
  "children": [
    {
      "elmType": "div",
      "style": {
        "flex-grow": "1",
        "height": "8px",
        "margin-right": "8px",
        "border-radius": "4px",
        "overflow": "hidden",
        "background-color": "#edebe9"
      },
      "children": [
        {
          "elmType": "div",
          "style": {
            "height": "100%",
            "width": "=if(@currentField > 100, '100%', @currentField + '%')",
            "background-color": "=if(@currentField >= 100, '#107c10', '#0078d4')"
          }
        }
      ]
    },
    {
      "elmType": "span",
      "style": { "min-width": "40px", "text-align": "right" },
      "txtContent": "=@currentField + ' %'"
    }
  ]
}
