-
Notifications
You must be signed in to change notification settings - Fork 19.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] borderColor hides bar color with large data #18185
Comments
The current behavior seems to be reasonable. As for the candlestick series, we are considering provide a way to dynamically change the range of data one bar represents so that there won't be too many bars like the example. But for general series, I think the current behavior is as expected. |
okay @Ovilia, It was just to show the difference between 2 versions of Echarts. For me (personal opinion) the result in version 5.2.1 is correct , because the borderColor does not interact with bar color with large data (I'm surprised). But I am agree with you for general series. Not a bug probably , but the visualization was more fun with this version. That said thank you for your quick response. |
I seemed to misunderstand the demo to be a problem with candlestick series. This seems to be wrong with the bar series. |
This issue is labeled with Please have a look at How to debug ECharts if you'd like to give a try. 🤓 |
@nico-robert |
@kai890707 , thanks
Until something better it was my solution too. I'm newbie... The difficulty label is set to |
I don't think that's worth the work, people working with trading charts wouldn't use it. Candlestick charts are less about displaying a lot of numbers nicely, they're more about learning how a market behaves. Accordingly, a chart showing hourly candles is fundamentally distinct from a chart showing daily candles. Switching between both while zooming would mess up the view. Regarding improving candlesticks: a distinct color for just the wicks would be a nice addition. |
I looked into this problem, as you mentioned the issue is in the bar series (BarView.ts). In version 5.3.0-rc.1, commit 897081e [fix(bar): use rect instead of line to draw large paths], the createLarge function sets el.style.stroke to a color with el.useStyle(data.getVisual('style'));,. This causes the problem. If you reset el.style.stroke to null (default), the issue seems to be resolved and follows the behavior in 5.2.1. I’ve opened a pull request about this: #20465. |
fix(BarView): borderColor hides bar color with large data. close #18185
Version
5.4.1
Link to Minimal Reproduction
No response
Steps to Reproduce
I don't know if in version 5.2.1 It was the good result , but when I add
borderColor
property in ìtemStyle` (series), the color is not visible with large data, in 5.4.1 yes. So it hides the color of the bars.Current Behavior
In 5.4.1
Expected Behavior
The good result for me in 5.2.1
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: