Skip to content

Packed circles ​

Proportions as circles, gathered around the largest.

Code ​

ts
createChart(host, {
  type: "pack",
  data: [
    {
      name: "Bread",
      value: 48
    },
    {
      name: "Fruit",
      value: 36
    },
    {
      name: "Cheese",
      value: 27
    },
    {
      name: "Coffee",
      value: 22
    },
    {
      name: "Tea",
      value: 17
    },
    {
      name: "Juice",
      value: 12
    },
    {
      name: "Nuts",
      value: 8
    },
    {
      name: "Honey",
      value: 6
    },
    {
      name: "Salt",
      value: 3
    }
  ]
});

Every field is in the API. Change this chart in the playground.

MIT License