want to set different colors for toolbox.feature.magicType, line chart, pie chart, stack chart with different colors, but did not find the relevant methods or properties, see clearly, now you can set them to unify the same color
option = {
toolbox: {
// borderColor:["-sharp1e90ff","-sharp22bb22","-sharp4b0082",],
show: true,
orient: "horizontal",
itemSize: "20",
itemGrap: "15",
feature: {
dataView: {
show: true,
iconStyle: {
borderColor: "-sharp1e90ff"
},
emphasis:{
iconStyle: {
borderColor: "-sharp1e90ff"
},
}
},
magicType: {
show: true,
type: ["line", "bar"],
iconStyle: {
borderColor: "-sharp22bb22"
},
emphasis:{
iconStyle: {
borderColor: "-sharp22bb22"
},
}
},
restore: {
show: true,
iconStyle: {
borderColor: "-sharp4b0082"
},
emphasis:{
iconStyle: {
borderColor: "-sharp4b0082"
},
}
},
saveAsImage: {
show: true,
iconStyle: {
borderColor: "-sharpd2691e"
},
emphasis:{
iconStyle: {
borderColor: "-sharpd2691e"
},
}
}
}
}
}