echarts [Feature] about legend.emphasis api

yxyvkwin  于 7个月前  发布在  Echarts
关注(0)|答案(1)|浏览(74)

What problem does this feature solve?

Is set in the legend [emphasis] (https://echarts.apache.org/zh/option.html#legend.emphasis), why doesn't work, is I write the wrong case, or provide the configuration items of chaos here

What does the proposed API look like?

I also tried the same configuration, series.emphasis, but it seems to have no effect, a little confused

3b6akqbq

3b6akqbq1#

legend.emphasis is only for selectorLabel. Try this:

legend: {
    selector: true,
    selectorLabel: { color: 'green' },
    emphasis: {
      selectorLabel: {
        backgroundColor: 'pink',
        color: 'brown',
      }
    }
  },

相关问题