I'm using Echarts to create treemap. I want to change the color of the tree to image. Like this.
itemStyle: { color: { image: require("./french.png"), }, },
I tried to use itemStyle, but it doesn't work! Is there a better way?
You can always use the graphic component. It let's you add any graphic object to your chart with given coordinates.
Just check the documentation of this component to know how to use it. https://echarts.apache.org/en/option.html#graphic