Logo-shaped story

Customers re-form from clusters into a brand mark (our own wave logo).

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

Configuration

Raw Standalone
const options = {
  chart: {
    height: 400,
    fontFamily: "Inter, Geist, \"IBM Plex Sans\", system-ui, sans-serif",
    type: "unit",
    toolbar: {
      show: false
    }
  },
  series: [160, 110, 70],
  labels: ["Pro", "Team", "Free"],
  plotOptions: {
    unit: {
      positions: {
        name: "wave-logo",
        category: "custom",
        kind: "silhouette",
        rings: [
          [
            [0, 0],
            [0.2, 0],
            [0.3, 0.5],
            [0.4, 0],
            [0.6, 0],
            [0.7, 0.5],
            [0.8, 0],
            [1, 0],
            [0.8, 1],
            [0.6, 1],
            [0.5, 0.5],
            [0.4, 1],
            [0.2, 1]
          ]
        ],
        source: "user",
        minUnits: 1,
        aspect: 1.6666666666666667,
        order: "cols",
        shape: {
          name: "wave-logo",
          category: "custom",
          kind: "silhouette",
          minUnits: 1,
          order: "cols",
          source: "user"
        },
        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: "340 customers, one brand"
  },
  theme: {
    mode: "light",
    preset: "coastal"
  }
}

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