[BOUNTY #426] Add OHLC Candlestick Chart support#579
Conversation
- New Candlestick chart type supporting OHLC (Open, High, Low, Close) data - Bullish/bearish color differentiation (green/red by default) - Wick/shadow lines for high-low range - Open/close price tick marks - Configurable colors, up/down fill modes, tick visibility - Custom tooltip formatting showing OHLC values - Comprehensive test suite (11 test functions) Closes Kozea#426
|
Hi @glepretre 👋 I implemented the OHLC Candlestick Chart support as requested in #426. The implementation includes:
Would appreciate a review when you get a chance. Happy to make any adjustments needed. Thanks! |
|
Hi @zhaog100, Thanks for your PR but as a front-end developer I don't have sufficient expertise in Python nor the Pygal project to properly review this PR or validate the associated bounty. My contributions to the project have been limited to docs and small maintenance fixes rather than core features. You will need to involve other maintainers who have stronger experience with Python and Pygal. Thank you for your understanding. |
|
@glepretre No problem at all, I appreciate your honesty! Could you recommend other maintainers who might be able to review this? Perhaps @aucopinata or others with more experience in the core chart implementations? I'm happy to ping them. Also, if there's anyone from the bounty sponsor side who could help validate, that would be great too. Thanks! |
|
Hi @Kozea, I've completed the OHLC candlestick chart implementation with: ✅ Full Implementation:
✅ Ready for Review:
Could you please recommend a reviewer or take a look when you have time? Thanks for the opportunity! 🚀 |
Summary
Implements OHLC Candlestick Charts as requested in #426.
Features
Candlestickchart type accepting 4-tuple(open, high, low, close)dataConfiguration Options
bullish_color'#00cc00'bearish_color'#cc0000'show_openTrueshow_closeTrueup_down'both''up'/'down'/'both'- which candles to fillUsage Example
Implementation Details
Boxchart)Graphbase class with proper_compute,_plotoverrides_valuesproperty to flatten OHLC tuples for correct y-axis range_value_formatfor OHLC tooltip displayTests
11 test functions covering: basic rendering, colors, custom colors, tooltips, empty data, single point, doji, multiple series, up_down modes, tick visibility, and SVG structure.
Closes #426