-
Notifications
You must be signed in to change notification settings - Fork 125
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
Set max or min y value #20
Comments
@jxom I'm happy to implement this myself, I think I just need some pointers about how to get around the |
@nandorojo – yoo! I think this could be as simple as overriding the domain in |
I guess the API could look like: <LineChart.Provider data={data}>
<LineChart yDomain={{ min, max }}>
<LineChart.Path />
<LineChart>
</LineChart.Provider> |
Okay let me try that |
Should I call it Update I see that this probably doesn't make sense. |
Yeah, it's kinda weird coz |
But if |
Right...maybe we put |
RPReplay_Final1635380567.MP4This is looking good to me |
I'll push for you to test to make sure I got this right...but I think it's right. I can test it in my app too with real data (hard to know with mock) |
Stuck to |
I am showing a single day's trading value. For 1d, it's useful to compare to day to tomorrow's close price.
This is what happens for Robinhood vs my app:
The HOOD stock went down 10% since yesterday. However, based on the Wagmi chart, there isn't much visual representation of this. Robinhood, on the other hand, makes this pretty clear, by showing a large white gap above the chart.
Is there a way to dynamically set the
range
for the Y values? I envision something like this:The text was updated successfully, but these errors were encountered: