-
Notifications
You must be signed in to change notification settings - Fork 19.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
Dataset trans #13065
Merged
Merged
Dataset trans #13065
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Conflicts: # src/chart/graph/GraphSeries.ts # src/chart/sankey/SankeySeries.ts # src/data/helper/dimensionHelper.ts # src/model/mixin/dataFormat.ts # src/util/graphic.ts # src/util/states.ts
# Conflicts: # src/echarts.ts
Thanks for your contribution! The pull request is marked to be |
Congratulations! Your PR has been merged. Thanks for your contribution! 👍 |
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Brief Information
This pull request is in the type of:
Support dataset transform for:
Details
General
For example, suppose we have a data:
We can make three pies like this:
Or:
Filter transform
The
config
is a "conditional expression option", can be:For example:
Sort transform
By default, compare the raw value by JS relational operator.
If specify
parse: 'time'
, compare with parsed value.How to output multiple result
Register third-party transform
Boxplot case currently
ecStat case currently
Debug for users
Set
print: true
to print transform result data in browser console.This feature only work in dev mode.
New option
TODO
Memo
DO NOT expose the concept "data filter processor" to end users unless we really make sure that concept will not be changed any more forever.
Consider these cases that may tempt us to expose the concept of "data filter processor":
filterMode
) and may be not reliable (consider if we want to left some more points out of the window to make the line go through the edge of the cartesian)Drawback of expose the concept:
The solution for that scenario above:
Test cases
Currently:
test/data-transform.html
test/boxplot.html
test/data-transform-ecStat.html