-
Notifications
You must be signed in to change notification settings - Fork 44
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
front: fix longitudinal curve in op studies #5767
front: fix longitudinal curve in op studies #5767
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.
Thank you for this request. I am not sure about the whole duplication of behavior logic. Could you expand the capabilities of defineChart and drawCurve instead ?
front/src/modules/simulationResult/components/ChartHelpers/defineChartDoubleY.tsx
Outdated
Show resolved
Hide resolved
front/src/modules/simulationResult/components/SpaceCurvesSlopes.tsx
Outdated
Show resolved
Hide resolved
03ce570
to
449962f
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev #5767 +/- ##
=========================================
Coverage 27.63% 27.64%
Complexity 2136 2136
=========================================
Files 990 990
Lines 125811 125843 +32
Branches 2575 2575
=========================================
+ Hits 34771 34784 +13
- Misses 89550 89569 +19
Partials 1490 1490
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
very nice work!
one small issue:
curves start jump to zero when draging speedSpaceChart or slopesChart, maybe should you look to enableInteractivity
front/src/modules/simulationResult/components/ChartHelpers/defineChart.ts
Outdated
Show resolved
Hide resolved
dc2f281
to
93ea6a2
Compare
da219c6
to
ced9dde
Compare
ced9dde
to
2e1f388
Compare
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.
Almost there, great work !! 🎉 I left some comments
Thanks for the comments on enableInteractivity, it's super clear now :)
front/src/modules/simulationResult/components/ChartHelpers/defineChart.ts
Outdated
Show resolved
Hide resolved
front/src/modules/simulationResult/components/ChartHelpers/defineChart.ts
Outdated
Show resolved
Hide resolved
front/src/modules/simulationResult/components/ChartHelpers/defineChart.ts
Outdated
Show resolved
Hide resolved
front/src/modules/simulationResult/components/ChartHelpers/drawCurve.ts
Outdated
Show resolved
Hide resolved
front/src/modules/simulationResult/components/ChartHelpers/drawCurve.ts
Outdated
Show resolved
Hide resolved
front/src/modules/simulationResult/components/SpeedSpaceChart/d3Helpers.ts
Outdated
Show resolved
Hide resolved
front/src/modules/simulationResult/components/simulationResultsConsts.ts
Outdated
Show resolved
Hide resolved
front/src/modules/simulationResult/components/ChartHelpers/enableInteractivity.tsx
Outdated
Show resolved
Hide resolved
front/src/modules/simulationResult/components/ChartHelpers/enableInteractivity.tsx
Outdated
Show resolved
Hide resolved
front/src/modules/simulationResult/components/ChartHelpers/enableInteractivity.tsx
Outdated
Show resolved
Hide resolved
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.
Left 4 small comments, and 2 previous comments are still not resolved :)
front/src/modules/simulationResult/components/ChartHelpers/defineChart.ts
Outdated
Show resolved
Hide resolved
front/src/modules/simulationResult/components/ChartHelpers/defineChart.ts
Outdated
Show resolved
Hide resolved
front/src/modules/simulationResult/components/SpeedSpaceChart/SpeedSpaceChart.tsx
Outdated
Show resolved
Hide resolved
front/src/modules/simulationResult/components/SpaceTimeChart/SpaceTimeChart.tsx
Outdated
Show resolved
Hide resolved
7ccf6fd
to
1f865c7
Compare
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.
LGTM and tested !! ✅ Very nice PR ✅
already reviewed by maintainer
- add second Y axis to gev - modify enableInteractivity for new Y axis - comment enableInteractivity
1f865c7
to
8e12a5f
Compare
Add one additional Y axis on the right of the chart
Red curve (speed slopes) now stays in the frame
closes #4312