-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Create vis_type_xy plugin to replace histogram, area and line charts #78154
Create vis_type_xy plugin to replace histogram, area and line charts #78154
Conversation
- move editor config components from vislib to xy plugin - import editor values from xy to vislib - move vislib type definitions to xy plugin and reference from vislib - refactor types to be consistent with elastic-charts
- add toExpression method on visType - move vislib expression build into vislib plugin - update vis types for toExpressionAst method
- add color picker component - remove unused methods from MappedColors class - add legend toggle component - add elastic charts click transforms for filter and brush events
- add detailed tooltip option to render vislib style tooltip - add fitting functions for area and line charts - fix endzones to work with detailed tooltip - make detailed tooltip default for all old vislib types
- add extra loop with newChartUI enabled - update visChart pageObject to conform to either vislib or elastic charts - update visEditor pageObject to conform to either vislib or elastic charts - update services to account for changes from xy plugin and typescriptification - convert all visualize functional tests to typescript
- update tests to use either vislib or elastic charts - add loop for newChartUI tests
- refactor series filter logic to allow fn accessors - cleanup filter logic to reuse code - fix filters on _all buckets with no x metric
Sorry for the delay but this required changes in elastic charts to work. See changes in 8e7b5d0 Now when using ranges as split series with no x metric you will see something like... Also when using ranges as split series with range x metric you will see something like... All filters are working, still shows duplicated per #66595 |
@nickofthyme I am going to review this until the end of the week. Just FYI, there is this PR which if it is merged you may need to do some small adjustments on yours. |
@stratoula Good catch! See 6417be1 Fixed... ...and fixed... |
@ryankeairns Could you approve this as the @elastic/kibana-core-ui member? Please and thank you. |
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.
LGTM! I did a final test and I can't find any more bugs! Thank you @nickofthyme, great work ❤️
migrationVersion: { | ||
visualization: '7.11.0', | ||
}, | ||
migrationVersion: resp.body.saved_objects[0].migrationVersion, |
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.
yay 🎉
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.
The CSS changes look good (and very minor). I see there have been some adjustments for things like spacing, padding, etc., so I'll make a note to do another visual pass (post-merge) and touch up any remaining small bits.
Great work!
💔 Build Failed
Failed CI StepsMetrics [docs]
History
To update your PR or re-run it, just comment with: |
Summary
Release Notes: Use elastic chart library for bar/area/line charts in Visualize
Adds new implementation for
area
,line
andhistogram
vis types using@elastic/charts
in visualize.closes #77186 closes #63531 closes #51553 closes #39061 closes #29147 closes #13093 closes #12999 closes #4215 closes #59076 closes #41887 closes #43251 closes #45602
Future tasks:
Problematic case:
minInterval
linkUI changes to current vislib (flag disabled)
UI changes to new (flag enabled)
null
/missing
valuesUI changes to discover
Other notable changes:
vis_type_xy
plugindiscover
tocharts
plugindiscover
tocharts
pluginbuild_pipeline
tovis_type_vislib
pluginhistogram
,horizontal_bar
,area
andline
vis types intovis_type_xy
plugin and referenced fromvis_type_vislib
plugin.area
,line
andhistogram
vis types to add the propertiesisVislibChart
anddetailedTooltip
, used for backwards compatibility with vislib.Checklist
Release Notes
Replaces legacy visualize chart library with
@elastic/charts
. Toggled via advanced settings.