Skip to content

Misalignment of candlestick, ohlc and box plots when using rangebreaks #4933

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

Closed
pavitrakumar78 opened this issue Jun 21, 2020 · 3 comments · Fixed by #4937
Closed

Misalignment of candlestick, ohlc and box plots when using rangebreaks #4933

pavitrakumar78 opened this issue Jun 21, 2020 · 3 comments · Fixed by #4937
Assignees
Labels
bug something broken

Comments

@pavitrakumar78
Copy link

Hi,

The candlesticks in my plot are not aligned (the sticks are misaligned with the candle) when I use the rangebreak option when generating the plot.

Here's a sample: https://codepen.io/pkmar78/pen/oNbZwmQ

This issue does not occur for all charts, the above is just one example of where it occurred when I was testing this. I also looked at previous issues when rangebreak where just sticks were displayed instead of candlesticks (#4742) but I'm not sure if this is also a similar bug.

This issue does not occur if I remove the rangebreak settings from the plot parameters.

Here's a pic of the misalignment:

image

Could this be due to non-uniform dates? or is there any other param that I should be using, but missing from my code?

Plotly version used: 1.54.3
Source: https://cdn.plot.ly/plotly-1.54.3.min.js

@archmoj archmoj added the bug something broken label Jun 22, 2020
@archmoj
Copy link
Contributor

archmoj commented Jun 22, 2020

@pavitrakumar78
Thanks for the report.

@archmoj
Copy link
Contributor

archmoj commented Jun 22, 2020

Not only candlestick but also ohlc and box are affected.
Here is a demo.

@archmoj archmoj changed the title Misalignment of candlestick when using rangebreak Misalignment of candlestick, ohlc and box plots when using rangebreaks Jun 22, 2020
@archmoj archmoj self-assigned this Jun 22, 2020
@pavitrakumar78
Copy link
Author

@archmoj Thank you for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants