How to give custom color to antd charts treemap

enter image description here

I have integrated the antd charts treemap and its looking really bad


You can assign custom colors... in Chart configuration object add color property like this

config = {
...
    color: ({ name }) => {
      if (name === "分类 10") {
        return "lightblue";
      }
      return "red";
      // return color
    }
}