Echarts automatically changes colors

the bar chart automatically changes colors, lines, and pie charts during self-adaptation.
is the normal echarts creation process

.

later it is found that this is the reason why this is set

option.itemStyle = {
  normal: {
    color: function() {
      return colors[xx]
    }
  }
}
Menu