-
Notifications
You must be signed in to change notification settings - Fork 51
Pause graph when clicking #631
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
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #631 +/- ##
==========================================
+ Coverage 74.31% 74.44% +0.12%
==========================================
Files 460 462 +2
Lines 28545 28652 +107
Branches 588 588
==========================================
+ Hits 21214 21330 +116
+ Misses 7237 7229 -8
+ Partials 94 93 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 5 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ 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.
Doesn't this break graphs on screens? It should only really pause if you click drag a selection.
setSelect: [ | ||
(chart) => { | ||
// Pause the graph while selecting a range to zoom | ||
if (this.state == 'start' && chart.select.width > 0) { |
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.
triple equals
@@ -819,6 +839,10 @@ export default { | |||
setSelect: [ | |||
(chart) => { | |||
if (!this.zoomChart) { | |||
// Pause the graph while selecting an overview range to zoom | |||
if (this.state == 'start' && chart.select.width > 0) { |
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.
triple equals
@@ -641,7 +641,7 @@ export default { | |||
if (typeof rawValue === 'string' || isNaN(rawValue)) { | |||
return 'NaN' | |||
} else { | |||
return rawValue == null ? '--' : rawValue.toFixed(2) |
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.
Comparing against null is the one place where you should use double equals. That will catch both null and undefined. Probably need to change those back.
closes #571