-
Notifications
You must be signed in to change notification settings - Fork 183
[statistics] dashboard reorganization, subtitles and age distribution #9937
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
base: main
Are you sure you want to change the base?
[statistics] dashboard reorganization, subtitles and age distribution #9937
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "Date Registered" filter appears broken.
When selecting a date, the query returns 500, with the following server-side error:
Column not found: 1054 Unknown column 'c.Date_registered' in 'where clause'
I have confirmed that my candidate table indeed contains this column.
Also, when selecting a first filter, a seemingly inconsequential console error, that calls itself a warning, appears:
Warning: Cannot update a component (`StudyProgression`) while rendering a different component (`QueryChartForm`). To locate the bad setState() call inside `QueryChartForm`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render Error Component Stack
at QueryChartForm (queryChartForm.js:13:57)
Seems to otherwise work as expected.
@jeffersoncasimir apologies for commit spam! I added the age distribution chart to this PR, and also cleaned up the module. There was a lot of dead frontend code. I think this will require a re-review unfortunately. It is currently failing tests but it is unrelated, so ready for review :) I updated the PR summary, but here are the new ones:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Features otherwise work nicely.
When hovering on a timepoint with no data, the custom tooltip says undefined
instead of showing 0 for all categories.
These features have highlighted a problem with the RB data. Maybe this is for a new issue, or maybe something can be done to avoid the scenario where negative ages are shown:

Also, please make sure all spline charts have this: spline: {interpolation: {type: 'monotone'}},
. It makes it so the splines don't overshoot the number they are targetting
…d_Filters_and_Registration_Date
Great work @skarya22 and @jeffersoncasimir |
@skarya22 could you mention in your PR description that this will be followed by Jefferson's PR with more EEGNet dashboard features -- e.g Examples missing from this one : my last comment plus
|
@christinerogers There are other issues for the other plots such as the size (GB/TB) that you mentioned which is assigned to @jeffersoncasimir #9944. Didn't think it was a good idea to include it all in one PR as this PR is already quite large. I am honestly not too sure how to make the subtitle better, as we had discussed the white background would make it look like a button which is not very good in terms of UX design... |
…d_Filters_and_Registration_Date
thanks Saagar-- that issue this pr shoulda been crosslinked to relate them, thanks for doing it just now |
@christinerogers I added percentage to the tooltip instead of as a toggle as the actual chart remains unchanged when toggled since percentage and count would be visible the same chart (except the y axis). Let me know if this is okay. I also made the subtitle the same size as the title, if that helps with the clarity I hadn't linked this PR and the issue since the issue is for a different plot. |
Brief summary of changes
Testing instructions (if applicable)
Link(s) to related issue(s)