echarts icon indicating copy to clipboard operation
echarts copied to clipboard

Is it possible to have custom button near legend in chart

Open ukris opened this issue 10 years ago • 1 comments

问题简述 (One-line summary)

Is it possible to have custom button near legend in chart

版本及环境 (Version & Environment)

3.1.6

  • ECharts 版本 (ECharts version):3.1.6
  • 浏览器类型和版本 (Browser version):NA
  • 操作系统类型和版本 (OS Version):NA

重现步骤 (Steps to reproduce)

  1. I would like custom legend (button) such that when I click on it, I can enable disable a group of data
  2. For example, I have data showing revenue vs loss and let us say I have five products. I may want to toggle to show only revenue or only loss. Right now I have it as a stack bar for each product showing revenue and loss (with loss in -ve Y axis)

Th

期望结果 (Expected behaviour)

可能哪里有问题 (What went wrong)

ECharts配置项 (ECharts option)

option = {

}

其他信息 (Other comments)

ukris avatar Apr 21 '16 18:04 ukris

Maybe https://github.com/ecomfe/echarts/issues/3007#issuecomment-210398601 is helpful

pissang avatar Apr 25 '16 15:04 pissang