使用 Echars 的 legend ,给data 动态赋值,怎么都不显示,除非写具体的 data: ['A', B', 'C'], 后来,不用给 legend的 data 赋值,直接写 legend: { }, 就行。