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

Candlestick hollow no longer dynamic #221

Closed
PalomarM97 opened this issue May 12, 2023 · 1 comment
Closed

Candlestick hollow no longer dynamic #221

PalomarM97 opened this issue May 12, 2023 · 1 comment

Comments

@PalomarM97
Copy link

Previously the CandlestickShape hollow attribute could be decided for each candle, for example,

in the version ^1.0.1 the code:

shape: ShapeAttr(
   encoder: (tuple) => CandlestickShape(
      strokeWidth: 2.5,
      hollow: !(tuple['end'] <= tuple['start'])
   ),
),

would result in something like this:

Simulator Screen Shot - iPhone 14 Pro - 2023-05-12 at 19 50 08

now, in the latest version(^2.1.0) using the following code:

shape: ShapeEncode(
  encoder: (tuple) => CandlestickShape(
    hollow: !(tuple['end'] <= tuple['start']),
    strokeWidth: 5,
  ),
),

results in the following:

image

image_160

It seems that now it only takes into account the first candle's values

@entronad
Copy link
Owner

Fixed in v2.2.0

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

No branches or pull requests

2 participants