question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing symbol border in legend for scatter series

See original GitHub issue

General Questions

Issue Type

  • I have a question to ask about how to use ECharts to …;我想提问如何使用 ECharts 实现某功能
  • I have a bug to report;我想要报 bug
  • I have a feature to request, e.g.: I’d like a new feature that …;我需要一个新功能
  • I have a feature to enhance, e.g.: The current feature should be improved in the way that …;我希望改进某个功能
  • There’s something wrong with the documents;文档有些问题
  • Others, or I’m not sure which issue types to choose here;其他,或我不知道应该选什么类型

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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
kanchevcommented, Jan 7, 2019

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.

1reaction
pissangcommented, Jan 8, 2019

Yes it’s a very common request. We will think about adding more visual properties in the legend. Thanks @kanchev

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing symbol border in legend for scatter series · Issue #9689
The border is rendered property in the grid but it's missing in the legend. Only the color property is used to fill the...
Read more >
change border from around legend from a scatterplot
I would suggest par(bty="l",las=1) scatterplot(Comp1~ln1wr|Season, moose, xlab = "Risk", ylab = "Principal component 1", labels= row.names(moose), ...
Read more >
Syntax: PROC SGPLOT KEYLEGEND Statement
specifies whether the border around the legend is visible. The BORDER option shows the border. The NOBORDER option hides the border. Default ...
Read more >
legend: Add Legends to Plots - Rdrr.io
Arguments ; col. the color of points or lines appearing in the legend. ; border. the border color for the boxes (used only...
Read more >
Getting rid of border/box around legend - Statalist
I'm relatively new to Stata and trying to create a graph with a legend that satisfies my aesthetic prejudices but can't seem to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found