-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
polish graphs of simulator, true retention table and forgetting curve #3448
polish graphs of simulator, true retention table and forgetting curve #3448
Conversation
Ok, here's an actual problem: The last segment of the forgetting curve makes the mouse and the pop-up window with stats glitch |
Can we not divide the true retention table into three parts and have radio buttons to switch between them? Thoughts? |
Idk, I'm not sure that it's a good idea, but I'm not sure if it's a bad idea either. @user1823 thoughts? |
@Expertium It can be done only on narrow devices if possible. IMO it's better than scrolling. But, on wider screens, do you really need to see everything at once or is it better to have limited info on focus? This is the crux we need to consider even for narrow screen. It's fine if Sherlock doesn't want to do it if it can be done later. I want to hear dae's opinions. |
I agree. If we can't fit whole table on the screen, having radio buttons to switch is better than scrolling. |
Two questions for the simulator:
For 1) I had a solution of just doing Math.ceil(days, 7) in that one function where the graph is created. Not sure if this is right or not, but anyway, the original Math.round(days/50) will just result in 0 for days<25. |
The graphs axis looks different now. So maybe it's gone. |
The curve itself is still "dark on dark". How complicated would it be to define, say, 20 light colors for the dark theme and 20 dark colors for the light theme? |
The choices are limited: https://d3js.org/d3-scale-chromatic/categorical I'm not a professional UI designer. Suggestion is welcome. |
Everything looks a lot better now imo. |
The minimum width of the graph is still too wide unfortunately, so #3445 hasn't been solved yet. An easy way to test this locally is to start Anki with:
Then in Chrome, surf to http://10.0.0.2:40000/graphs (or the IP address of your computer). You can then resize the window to see how it looks on a mobile screen. Or you can paste that URL into Safari on an iPhone, and see it displayed there. Note how the other graphs have scrolled off to the right: Radio buttons were suggested earlier, and they're a reasonable solution if the user will typically only be looking at one of the tree (e.g. mature). If it's common for users to want to see all the data at once, perhaps it would be better to put the three tables in a flexbox, and have them automatically wrap on narrow devices, and display side by side on wider screens? Thank you for all the hard work you've put into these fixes! |
Source: https://forums.ankiweb.net/t/anki-24-10-beta/49989/23?u=l.m.sherlock
Simulator: “Simulation” is not cut off now.
True retention: the width is more adaptive.
Forgetting curve: don't display time, only date when the total elapsed time is >=365 days AND the currently selected timeframe is either “First year”.
also fix: