-
Notifications
You must be signed in to change notification settings - Fork 137
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
Add a scrolling graph #83
Comments
Seems like we need to file some feedback first! From the digital lounges: Can the new Charts API allow for scrolling? similar to the health app's charts |U03HL00QL68|: Sorry, late answer forgot to hit send: Yes, charts should behave just like any other view in this regard. though you may have to set explicit frames on the chart to specify how big (wide? tall?) you want it to be |U03J7BQ7P9N|: We just couldn’t wait till the next Q&A, Ok I promise we are done now!!! 🤓 |U03HL00QL68|: Hey <@U03J21CNQ1G> I just realized the health app chart does scrolling that keeps the y-axis stationary, that specifically isn't supported, but we've received a few requests about this, but few feedbacks. So if you file a feedback for the Charts team, we'd appreciate it |
@scsinke check out the latest PR by Stewart Lynch 🙂 |
Sort of meets it but the headers get scrolled off, hopefully someone finds a way to allow the axis labels to be sticky when scrolling. |
@jordibruin yeah it's a scrolling graph, but still not the same feel as the version used in the apple health app. Maybe we can make some improvement to this one to make is more resembling to the apple version. |
As I mentioned in my comment above, stationary axis labels aren't supported right now so I don't think we'll get much more than this. 😞 |
Was curious about a smoke a mirrors type of workaround, e.g. HStack with around 30 pixels showing the axis (and clipping the rest of the chart) and a scroll view next to it containing a duplicate chart with axis labels disabled. Horrible solution but it might give the illusion/effect we are trying to achieve. Side effects:
|
Cool! let me try it out |
Very hacky but it's an approach we could explore more! @atrinh0 CleanShot.2022-07-21.at.15.33.54.mp4 |
Here's a gist that looks pretty promising for emulating the Health apps scrollable charts: |
https://developer.apple.com/videos/play/wwdc2023/10037/?time=469 This is now possible with iOS 17 |
The Apple Health app contains a graph that you can scroll. I think this would also be a good use case to implement.
I have no clue where to start yet, but maybe we can figure something out.
RPReplay_Final1657032449.MP4
The text was updated successfully, but these errors were encountered: