# 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: 11/25/2024, 4:10:50 PM