forked from elastic/elastic-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(brush): add multi axis brushing
This commit allow the consumer to configure the direction used for the brush tool. The direction is by default along the X axis, but can be changed to be along the Y axis or have a rectangular selection along both axis. For the Y axis values, we are returning an array of values, one for each Y axis defined (this is determined by the groupId associated with different axis/series groups) BREAKING CHANGE: The type used by the `BrushEndListener` is now changed to reflect this change. The new type is on form of `{ x?: [number, number]; y?: Array<{ groupId: GroupId; values: [number, number]; }> }` where x contains an array of [min,max] values, and the y property is an optional array of objects, containing the GroupId and the values of the brush for that specific axis. fix elastic#587
- Loading branch information
Showing
7 changed files
with
234 additions
and
115 deletions.
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
Oops, something went wrong.