-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Fix adhoc metrics in Polygon #6399
Conversation
{fd.metric && | ||
<div>{fd.metric}: <strong>{o.object[fd.metric]}</strong></div>} | ||
</div>); | ||
} else if (fd.line_column && (fd.line_type === 'geohash' || fd.line_type === 'zipcode')) { |
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.
add fd.metric
to else if condition
Is there any reason why it is separate?
? parseInt(formDataNumBuckets, 10) | ||
: 10; | ||
const [minValue, maxValue] = extent(features, d => d[metric]); | ||
const numBuckets = formDataNumBuckets ? parseInt(formDataNumBuckets, 10) : 10; |
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.
nit: Better to leave a DEFAULT_NUM_BUCKETS = 10
at the top of the file. Can we replace all the inline conditions in this file for better readability/consistency
b55fbe4
to
e734c8b
Compare
e734c8b
to
79ff176
Compare
Codecov Report
@@ Coverage Diff @@
## master #6399 +/- ##
=======================================
Coverage 77.31% 77.31%
=======================================
Files 67 67
Lines 9581 9581
=======================================
Hits 7408 7408
Misses 2173 2173 Continue to review full report at Codecov.
|
Addressed comments, mergin' |
* Fix adhoc metrics in Polygon * Addressing comments (cherry picked from commit 4c94447)
* Fix adhoc metrics in Polygon * Addressing comments
* Fix adhoc metrics in Polygon * Addressing comments (cherry picked from commit 170aaa2)
<ErrorBoundary>
at higher level to catch tooltip-related errors