Skip to content
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

[Lens] Heatmap with numeric color stops fail to load in dashboard #111104

Closed
dej611 opened this issue Sep 3, 2021 · 1 comment · Fixed by #111117
Closed

[Lens] Heatmap with numeric color stops fail to load in dashboard #111104

dej611 opened this issue Sep 3, 2021 · 1 comment · Fixed by #111117
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Lens impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@dej611
Copy link
Contributor

dej611 commented Sep 3, 2021

Describe the bug:

Dashboard cannot load a Heatmap with absolute number value defined palette color stops.

Steps to reproduce:

  1. Create a dashboard
  2. Create a Heatmap visualization via Lens
  3. Open the Heatmap metric dimension panel and click on the palette to customize it
  4. Just click the Number button
  5. Save and return
  6. 💥

Expected behavior:

The heatmap should load correctly as with percentage version.

Screenshots (if relevant):

heatmap_number_bug

Errors in browser console (if relevant):

Detected an unhandled Promise rejection.
TypeError: Cannot read property 'min' of undefined
utils.ts:97 Uncaught (in promise) TypeError: Cannot read property 'min' of undefined
    at getDataMinMax (utils.ts:97)
    at getOverallMinMax (utils.ts:85)
    at getPaletteStops (utils.ts:118)
    at applyPaletteParams (utils.ts:32)
    at getSafePaletteParams (utils.ts:19)
    at Object.getConfiguration (visualization.tsx:157)
    at state_helpers.ts:137
    at Array.reduce (<anonymous>)
    at validateDatasourceAndVisualization (state_helpers.ts:136)
    at persistedStateToExpression (state_helpers.ts:91)

Any additional context:

It seems that on embeddable bootstrap the frame.activeData gets accessed while it holds no data yet, leading to the code to throw an error.

@dej611 dej611 added bug Fixes for quality problems that affect the customer experience Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens labels Sep 3, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-vis-editors (Team:VisEditors)

@stratoula stratoula added the impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. label Sep 3, 2021
@dej611 dej611 self-assigned this Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Lens impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants