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

Is it possible to set x Axis to certain date? #804

Open
Tusenka opened this issue Jan 14, 2022 · 2 comments
Open

Is it possible to set x Axis to certain date? #804

Tusenka opened this issue Jan 14, 2022 · 2 comments

Comments

@Tusenka
Copy link

Tusenka commented Jan 14, 2022

For example I want to see data on jan 01, is it possible to programmatically set x axis to that data without moving cursor?

@Tusenka
Copy link
Author

Tusenka commented Jan 16, 2022

Found the solution here
https://github.com/rrag/react-stockcharts/blob/master/src/lib/scale/evaluator.js#L53
We can override data for clamp as a function.
I've made closure for clamp so it can access additional tracking data.

@rrag , thank you for sharing the code) It is very delicious

@VRspace4
Copy link

VRspace4 commented Aug 9, 2022

@Tusenka, do you mind sharing a snippet of the code you used to implement setting the X Axis to a certain date? Thanks in advance!

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