Closed kanchev closed 3 years ago
Currently legend only display color
and symbol
of series
Are you planning to support also borderColor for the legend?
Btw from technical point of view I assumed that the same logic is used to render symbols for the series and for the legend.
Yes it's a very common request. We will think about adding more visual properties in the legend. Thanks @kanchev
Series symbol is none, but legend symbol still rendered.
Fixed in #14497, released in 5.1.0.
General Questions
Issue Type
Issue Details
Symbol's border is not rendered at all in the legend for scatter series with itemStyle set with color, borderColor and borderWidth properties.
Expected Behavior
The borderColor and borderWidth properties are picked up from series itemStyle and rendered correctly in the legend.
Current Behavior
The border is rendered property in the grid but it's missing in the legend. Only the color property is used to fill the symbol.
Online Example
option = { xAxis: {}, yAxis: {}, legend: { show: true, orient: 'vertical' }, series: [{ symbolSize: 20, data: [ [1, 1] ], type: 'scatter', name: 'missing border', itemStyle: { color: 'green', borderColor: 'red', borderWidth: 5, } }] };
Paste this here: https://ecomfe.github.io/echarts-examples/public/editor.html?c=scatter-simple
Topics
Anything Else We Need to Know
Environment
ECharts version;ECharts 版本: {DESCRIBE_HERE} 4.2.0-rc.2
[ ] It happens only on certain browsers or operating systems. 对于特定浏览器或操作系统才会出现的问题,请提供相应环境信息:{BROWSER_VERSION_OR_OS_INFORMATION_HERE} I'm using Google Chrome, not sure if this happens with other browsers.