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

fix bug with colors and add numerous options #88

Open
wants to merge 4 commits into
base: ohlc
Choose a base branch
from

Conversation

DaTrader
Copy link
Contributor

@DaTrader DaTrader commented Jan 6, 2024

Bug fixes

  • Fixed logic with choosing candle/bar color based on open/close
  • Fixed shadow style

Enhancements

  • Added bull, bear, shadow colors options (instead of having them hardcoded)
  • Added zoom levels (so far only body width is affected)
  • Added optional body border for candles
  • Added crispEdges rendering option (looks way better when SVG container size and SVG size match 1:1)
  • Made 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

make configurable zoom level and colors.
add crisp_edges option;
make colorized_bars optional;
make body border optional.
@DaTrader
Copy link
Contributor Author

@mindok Saw your comment on the elixirforum but am not sure what more should I do. Can't you simply approve this "workflow" as it states it's awaiting your approval.

If not, then please guide me step by step. For the reference, I forked your project and committed to the ohlc branch and then created this PR here to merge it into your ohlc branch.

@mindok
Copy link
Owner

mindok commented Jan 13, 2024

@DaTrader - just saw this. For some reason I wasn't notified of the PR creation. I created a new one to include my original commits so we can merge straight into master. I'll move your comments across. If you're ok with that, I'll close this one.

@DaTrader
Copy link
Contributor Author

DaTrader commented Jan 15, 2024 via email

@inoas-nbw
Copy link

@mindok is this still active? It seems it is quite useful and stable esp combined with liveview, so opening up maintenance may help or asking for sponsorship etc... oss can be hard.

@mindok
Copy link
Owner

mindok commented Mar 25, 2024

Hi @inoas-nbw - thanks for the prompt... you are right - OSS can be hard when other aspects of life get a little crazy. I'll merge this one, the barchart PR and the OHLC/candles in one session - @DaTrader has done a great job on the OHLC work. Thanks for the nudge re: maintainers - I'll put something in the readme and announce on elixir forums to see if anyone is happy to help out with merging / reviews etc. I need to ask the community a couple of questions re: direction so it's a good time.

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.

3 participants