-
Notifications
You must be signed in to change notification settings - Fork 627
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
Initialize Selections #4139
Merged
Merged
Initialize Selections #4139
Changes from 14 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
da30cf4
Add "init" property to initialize selections w/fields or channels.
arvind 491c96c
Allow interval selections to be initialized.
arvind 4fd55b6
Update existing tests for minor syntax changes introduced.
arvind ad1f0e7
Add compile- and run-time tests for initializing selections.
arvind f99be51
Support initializing selections with DateTime objects.
arvind 09f1c39
Support an array of initial values for multi-selections.
arvind 027708f
Use new `init` signal property.
arvind e69ffa3
Bump vega-util version to pull typings fix (vega/vega-util#10).
arvind c08e280
[Travis] Update schema (build: 20082)
dec3db2
[Travis] Update examples (build: 20082)
7f79658
Remove any type. See https://stackoverflow.com/questions/51571733/can…
domoritz ce396da
Merge commit '2f14410baf4d7cd0c4744799ae905de8132036f9' into as/initS…
kanitw 3afb9bf
Correct the type casting
kanitw 4f96f97
Fix typings while preserving logic + Add stricter type for selectionCmpt
kanitw abdc534
Fix init description
kanitw bd1b707
Rename `multiSignals` => `singleOrMultiSignals`
kanitw 5f45378
[Travis] Update schema (build: 21313)
2c81e16
[Travis] Update examples (build: 21313)
9c0f544
Remove unnecessary change to yarn.lock
kanitw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Oops, something went wrong.
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.
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.
From your examples in the main conversation page, it seems like
init
supports both (a) a mapping between field names and arrays of initial values and (b) a mapping between channels and arrays of initial values?If so, how does
init
know if a key is a channel or field name?(For example, what if my
data
is[{x:1, y:2}, ...]
-- how do I know if"x"
is a channel or a field?