rwadurian/frontend/mining-app/lib/presentation/widgets/kline_chart
hailin cba7ff590a fix(mining-app): K线蜡烛图最小实体高度优化,消除横线"-"显示
问题:销毁时段(无交易)的小时K线中,open ≈ close(价差仅 ~2.8e-10),
蜡烛实体映射到像素后高度接近0,旧代码强制最小1px导致显示为横线"-"。

修复:将蜡烛实体最小高度从固定1px改为 max(bodyWidth * 0.4, 3.0)px,
即至少为蜡烛宽度的40%或3像素(取较大值),使 doji 蜡烛显示为
可辨识的小方块而非横线。有正常涨跌幅的蜡烛不受影响。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-04 21:31:52 -08:00
..
kline_chart_widget.dart fix(mining-app): 价格显示优化 + 涨跌幅精度再提升 2026-02-04 20:43:48 -08:00
kline_data_processor.dart feat(mining-app): add professional kline chart with technical indicators 2026-01-16 08:51:00 -08:00
kline_indicator_painter.dart fix(kline-chart): improve pinch-to-zoom and fullscreen display 2026-01-16 09:49:14 -08:00
kline_painter.dart fix(mining-app): K线蜡烛图最小实体高度优化,消除横线"-"显示 2026-02-04 21:31:52 -08:00
kline_volume_painter.dart feat(kline): implement true pan effect with scrollOffset 2026-01-19 21:43:45 -08:00