problem description
how to get the color of a column in the echarts histogram (or how to get the color of the corresponding legend in legend)
the environmental background of the problems and what methods you have tried
use myChart.component.legend.getColor (value), but error Cannot read property "legend" of undefined
related codes
/ / Please paste the code text below (do not replace the code with pictures)
var color=myChart.component.legend.getColor ("device registration rate");
console.log ("color" + color);
what result do you expect? What is the error message actually seen?
cannot get the legend object