echart 的legend没有颜色 检查一下lenged.data的值是不是 string类型,string类型才会显示颜色。如下,否则就不会显示颜色 ... legend: { data: ['1', '2'], }, ...