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

[Visualizations] Fix bad color mapping with multiple split series #80801

Merged
merged 2 commits into from
Oct 16, 2020

Conversation

stratoula
Copy link
Contributor

@stratoula stratoula commented Oct 16, 2020

Summary

  • Missing unit test

Fixes #80760. It fixes the wrong color mapping when multiple split series were applied on the visualizations.

Before:
Screenshot 2020-10-16 at 11 35 18 AM

After the fix:
Screenshot 2020-10-16 at 11 35 08 AM

The problem was that the hsl function with 0.5 round it to 0 which results to black

Screenshot 2020-10-16 at 11 52 21 AM

Screenshot 2020-10-16 at 11 52 12 AM

@timroes
Copy link
Contributor

timroes commented Oct 16, 2020

Could you make sure this PR also fixes the behavior in TSVB that was described in the issue (I assume it should given the fix). And if so, we should remove the [Vislib] label.

@stratoula
Copy link
Contributor Author

Yes I can't replicate it on TSVB
Before the fix:
Screenshot 2020-10-16 at 1 15 00 PM

After:
Screenshot 2020-10-16 at 1 15 13 PM

@stratoula stratoula changed the title [Vislib] Fix bad color mapping with multiple split series [Visualizations] Fix bad color mapping with multiple split series Oct 16, 2020
@stratoula stratoula added Feature:Visualizations Generic visualization features (in case no more specific feature label is available) v7.10.0 v7.11.0 v8.0.0 bug Fixes for quality problems that affect the customer experience release_note:fix labels Oct 16, 2020
@timroes timroes added release_note:skip Skip the PR/issue when compiling release notes and removed release_note:fix labels Oct 16, 2020
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@stratoula stratoula marked this pull request as ready for review October 16, 2020 12:36
@stratoula stratoula requested a review from a team October 16, 2020 12:36
@stratoula stratoula added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Oct 16, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

Copy link
Contributor

@timroes timroes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested this on a xyaxis chart, seems to fix the issue. Makes also sense, that the color package accepts now 50 for 50% instead of 0.5 which d3.hsl did. Code LGTM

@stratoula stratoula merged commit b06a04d into elastic:master Oct 16, 2020
stratoula added a commit to stratoula/kibana that referenced this pull request Oct 16, 2020
…astic#80801)

* [Vislib] Fix bad color mapping with multiple split series

* Add unit test to cover the new colors generation
stratoula added a commit to stratoula/kibana that referenced this pull request Oct 16, 2020
…astic#80801)

* [Vislib] Fix bad color mapping with multiple split series

* Add unit test to cover the new colors generation
stratoula added a commit that referenced this pull request Oct 16, 2020
…0801) (#80829)

* [Vislib] Fix bad color mapping with multiple split series

* Add unit test to cover the new colors generation
stratoula added a commit that referenced this pull request Oct 16, 2020
…0801) (#80828)

* [Vislib] Fix bad color mapping with multiple split series

* Add unit test to cover the new colors generation
gmmorris added a commit to gmmorris/kibana that referenced this pull request Oct 19, 2020
* master: (51 commits)
  [Discover] Unskip flaky test (elastic#80670)
  Fix security solution template label (elastic#80754)
  [Ingest]: ignore 404, check if there are transforms in results. (elastic#80721)
  Moving loader to logo in header, add a slight 250ms pause (elastic#78879)
  [Security Solution][Cases] Fix bug with case connectors (elastic#80642)
  Update known-plugins.asciidoc (elastic#75388)
  [Lens] Add median operation (elastic#79453)
  Fix navigateToApp logic when navigating to the current app. (elastic#80809)
  [Visualizations] Fix bad color mapping with multiple split series (elastic#80801)
  [ILM] Add esErrorHandler for the new es js client (elastic#80302)
  Fix codeowners (elastic#80826)
  skip flaky suite (elastic#79463)
  [Timelion] Remove kui usage (elastic#80287)
  [Ingest Manager] add skipIfNoDockerRegistry to package_install_complete test (elastic#80779)
  [Alerting UI] Disable "Save" button for Alerts with broken Connectors (elastic#80579)
  Allow the default space to be accessed via `/s/default` (elastic#77109)
  Add script to identify plugin dependencies for TS project references migration (elastic#80463)
  [Search] Client side session service (elastic#76889)
  feat: 🎸 add separator for different context menu groups (elastic#80498)
  Lazy load reporting (elastic#80492)
  ...
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:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.10.0 v7.11.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bad color mapping with multiple split series
4 participants