Skip to content
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

OHLC charts #89

Merged
merged 7 commits into from
Jan 27, 2024
Merged

OHLC charts #89

merged 7 commits into from
Jan 27, 2024

Conversation

mindok
Copy link
Owner

@mindok mindok commented Jan 13, 2024

Overview

  • Adds OHLC (open-high-low-close) charts.

Features

  • Option for bull, bear, shadow colors
  • Option for zoom levels (so far only body width is affected)
  • Optional body border for candles
  • Uses crispEdges rendering option (looks way better when SVG container size and SVG size match 1:1)
  • Colorized bars optional

Code housekeeping

  • Added specs to all functions in ohlc.ex (except for protocol implementation ones)
  • Improved readability by removing pattern matching from function heads
  • Further improved readability through use of Extructure library

mindok and others added 6 commits December 29, 2023 17:09
make configurable zoom level and colors.
add crisp_edges option;
make colorized_bars optional;
make body border optional.
@mindok
Copy link
Owner Author

mindok commented Jan 13, 2024

@DaTrader - I have created this PR from your fork. Hopefully this is what you meant about approving a workflow.

@DaTrader
Copy link
Contributor

@mindok It's formatted now and I also optimized it a bit not to call a potentially expensive function twice.

@DaTrader
Copy link
Contributor

@mindok Can you please approve this?

@DaTrader
Copy link
Contributor

@mindok Can you please approve this?

@mindok ping!

@mindok mindok merged commit 997a0f0 into mindok:master Jan 27, 2024
8 checks passed
@mindok
Copy link
Owner Author

mindok commented Jan 27, 2024

Apologies for the delay @DaTrader - merged.

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.

2 participants