Shield security

Blocked threats fill a shield.

Chart type
Unit unit
Tier
Free Core
Collection
Unit & pictogram
Render
Live, site theme
View .md Agent setup
LIVE/unit/shield-security24 of 33 in Unit

Configuration

Raw Standalone
const options = {
  chart: {
    height: 420,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "unit",
    toolbar: {
      show: false
    }
  },
  series: [142, 64, 30, 8],
  labels: ["Phishing", "Malware", "Brute force", "Other"],
  colors: ["#0f766e", "#14b8a6", "#5eead4", "#94a3b8"],
  plotOptions: {
    unit: {
      positions: {
        name: "shield",
        category: "symbol",
        kind: "silhouette",
        rings: [
          [
            [0.5, 0],
            [1, 0.14],
            [0.95, 0.55],
            [0.5, 1],
            [0.05, 0.55],
            [0, 0.14]
          ]
        ],
        source: "original",
        minUnits: 12,
        aspect: 0.85,
        order: "rowsUp",
        cx: undefined,
        cy: undefined,
        shape: {
          name: "shield",
          category: "symbol",
          kind: "silhouette",
          minUnits: 12,
          order: "rowsUp",
          source: "original"
        },
        with: e=>St({...t,...e||{}}),
        outlined: function outlined(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.16;const n=t.rings.map(t=>{const n=t.reduce((t,e)=>t+e[0],0)/t.length,a=t.reduce((t,e)=>t+e[1],0)/t.length;return t.map(t=>{let o=b(t,2);return[n+(o[0]-n)*(1-e),a+(o[1]-a)*(1-e)]})});return St({...t,name:t.name+"-outlined",kind:"stroke",rings:t.rings.concat(n)})},
        fill: (t,n)=>wt(e,t,n),
        isUnitShape: true
      }
    }
  },
  title: {
    text: "Threats blocked this week"
  },
  theme: {
    mode: "light",
    preset: "coastal"
  }
}

const chart = new WestCoastCharts(document.querySelector('#chart'), options)
chart.render()