How to give custom color to antd charts treemap
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
}
}