-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Brush animation #1402
Closed
Closed
Brush animation #1402
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
fb0531c
Brush animation during resize. Fix issue with brush resizing on chart…
kum-deepak 1b39fcd
- Consistent signature for redrawBrush
kum-deepak b982da5
Inlined functions `brushWidth` and `brushHeight`
kum-deepak b480d1e
CSS class name: handle--custom --> custom-brush-handle
kum-deepak 5ab03bf
Brush handles transition in Y axis as well in Bar charts.
kum-deepak a98d28c
Brush handles transition in line charts (composite charts)
kum-deepak 5f446e1
CSS class name: handle--custom --> custom-brush-handle
kum-deepak d5551d2
Enable brushing
kum-deepak c001c0e
Removed duplicate code between composite chart and coordinate grid mi…
kum-deepak 1e4ff94
Brushing is applied only to the container chart not to the children
kum-deepak dd640d8
Brushing support transition during resizing
kum-deepak 763ca3b
Resizing scatter brushing example
kum-deepak 03e21f8
Concept of `parentBrushOn`, fixes #1404.
kum-deepak 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Have you considered defaulting this the other way? I'm not clear which circumstances lead to infinite recursion, or which way is more backward-compatible
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.
If we set it to false, this will invoke the zoom handler in the focus chart, which in turn will invoke brush handler in the range chart. Whenever we are using focus/range chart pairs we need it true.
Examples where that is not the case like http://localhost:8888/web/examples/multi-focus.html, it can be false.
I chose the default to false as that will be the case if someone did not pass the parameter at all.
While at this example - what stops a series chart to be used as a range chart? The reason I am asking is that I have cleaned up some code in composite chart over iterations and it might have resolved the issue.
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.
I will actually love to name the 2nd parameter in
_chart.focus
toraiseEvents
instead ofnoRaiseEvents
. To use default valuefalse
, I had to settle for that name.