8000
Skip to content

Conversation

@lyw405
Copy link
Collaborator
@lyw405 lyw405 commented Aug 21, 2025

修复图表样式问题

修复了 candlestick 和 treemap 图表的样式问题。

修复内容

Candlestick 图表

  • 修复边界问题,防止图表元素贴边显示
  • 优化网格布局,确保文字显示完整
  • 改进成交量图表显示效果

Treemap 图表

  • 简化配置,移除冗余设置,参考echarts官网Basic Treemap
image image

lyw405 added 2 commits August 21, 2025 11:16
- Fix candlestick chart boundary and layout issues:
  * Set boundaryGap to true to prevent chart elements from touching edges
  * Adjust X-axis min/max values for better spacing (-0.2, length-0.8)
  * Increase grid margins (left: 12%, right: 10%) for better text visibility
  * Add volume Y-axis min: 0 to ensure proper volume chart display
  * Set volume bar width to 60% for better visibility

- Simplify treemap chart configuration:
  * Remove leafDepth and upperLabel settings that caused layout issues
  * Remove redundant itemStyle and levels configurations
  * Use ECharts default styling for cleaner appearance and better performance

Fixes hustcc#22
@hustcc
Copy link
Owner
hustcc commented Aug 21, 2025

帮忙加个小版本,我直接发包~

@lyw405
Copy link
Collaborator Author
lyw405 commented Aug 21, 2025

帮忙加个小版本,我直接发包~

@hustcc 已加

@hustcc
Copy link
Owner
hustcc commented Aug 21, 2025

小版本,0.6.1 就可以了🤗 我上个 cr 没说清楚!

@hustcc hustcc merged commit 1792abf into hustcc:main Aug 22, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix the chart style error

2 participants

0