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

Zoom y-axis to data on OHLC/Candlestick charts #171

Merged
merged 1 commit into from
Apr 16, 2019

Conversation

andy-lee-eng
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@Ro4052 Ro4052 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This behaviour is a lot nicer.

@Ro4052
Copy link
Collaborator

Ro4052 commented Apr 16, 2019

Do we still need the code that calculates the middle of the current y domain? Would this be used in the case than zooming doesn't cause any overflow in the y direction?

@Ro4052
Copy link
Collaborator

Ro4052 commented Apr 16, 2019

One minor issue is that the bollinger band can go off the chart and there is no way to drag it into view.

image

@andy-lee-eng
Copy link
Collaborator Author

Do we still need the code that calculates the middle of the current y domain? Would this be used in the case than zooming doesn't cause any overflow in the y direction?

This would still be used in other charts I think? e.g. I haven't changed the behaviour of the line chart when it has a date x-axis. Currently, this new behaviour only applies to OHLC charts.

@andy-lee-eng
Copy link
Collaborator Author

One minor issue is that the bollinger band can go off the chart and there is no way to drag it into view.

I don't think this is a big deal. We don't consider the bollinger bands the rest of the time either.

@Ro4052
Copy link
Collaborator

Ro4052 commented Apr 16, 2019

Do we still need the code that calculates the middle of the current y domain? Would this be used in the case than zooming doesn't cause any overflow in the y direction?

This would still be used in other charts I think? e.g. I haven't changed the behaviour of the line chart when it has a date x-axis. Currently, this new behaviour only applies to OHLC charts.

Ah, yes. I see.

@andy-lee-eng andy-lee-eng merged commit 74c2efa into develop Apr 16, 2019
@andy-lee-eng andy-lee-eng deleted the feature/zoom-to-data branch April 16, 2019 11:33
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