-
Notifications
You must be signed in to change notification settings - Fork 14.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
[SIP-5&6] Refactor line_multi #6058
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6058 +/- ##
=======================================
Coverage 77.56% 77.56%
=======================================
Files 47 47
Lines 9484 9484
=======================================
Hits 7356 7356
Misses 2128 2128 Continue to review full report at Codecov.
|
// add null values at the edges to fix multiChart bug when series with | ||
// different x values use different y axes | ||
if (lineCharts.length && lineCharts2.length) { | ||
let minx = Infinity; |
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: minX, maxX, minY, maxY are more readable
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.
In general it looks good to me! Thanks for the refactoring!
LGTM |
* Rewrite line_multi * move dir * add chartplugin for line_multi * rename var
Migrate the code for
line_multi
to remove dependency fromslice
and convert to react components with similar interface with the others.Add
ChartPlugin
forline_multi
similar to Add ChartPlugin and metadata for nvd3 and BigNumber vis #6085Also fix the potential bug that part of the
filters
are not applied.There was this line in the original code:
This line does not mutate the
filters
. On a quick pass it might seemsfd.filters
is concatenated to andfilters
is modified while in fact it returns a new concatenated array as a result, which was not received by any variable.@williaster @conglei @graceguo-supercat @michellethomas