-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[ML] Data visualizer: Use KibanaThemeProvider #121286
[ML] Data visualizer: Use KibanaThemeProvider #121286
Conversation
Pinging @elastic/ml-ui (:ml) |
@@ -37,6 +38,7 @@ export interface DataVisualizerStartDependencies { | |||
security?: SecurityPluginSetup; | |||
share: SharePluginStart; | |||
lens?: LensPublicStart; | |||
charts?: ChartsPluginStart; |
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.
charts
is now a required plugin and so doesn't need to be optional here.
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.
Changed in 69c0bd3
} = useDataVisualizerKibana(); | ||
|
||
const chartTheme = charts?.theme.useChartsTheme(); |
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.
Making charts
non optional as per my previous comment means we can lose the ?
here
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.
Changed in 69c0bd3
Tested and LGTM 🎉 |
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
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
* [ML] Data visualizer: Use KibanaThemeProvider * [ML] Edits following review
* [ML] Data visualizer: Use KibanaThemeProvider * [ML] Edits following review
Summary
Adapts the
data_visualizer
plugin to use theKibanaThemeProvider
implementation.Also contains a fix for the document count chart when viewing inside the ML plugin in dark theme, where the mouseover highlight wasn't adapting to the theme - the theme is now passed to the elastic chart in the
Settings
section.Before:
After:
Part of #119007 and #118866.
Checklist