# Basic

const config = {
  type: 'treemap',
  data: {
    datasets: [
      {
        label: 'My First dataset',
        tree: Utils.numbers(NUMBER_CFG),
        borderColor: (ctx) => colorFromRaw(ctx, true),
        borderWidth: 1,
        spacing: -0.5, // Animations look better when overlapping a little
        backgroundColor: (ctx) => colorFromRaw(ctx),
      }
    ],
  },
};
Last Updated: 1/27/2023, 2:32:53 PM