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] Allow palette configuration for metric #102035

Closed
Tracked by #57707
flash1293 opened this issue Jun 14, 2021 · 5 comments · Fixed by #116170
Closed
Tracked by #57707

[Lens] Allow palette configuration for metric #102035

flash1293 opened this issue Jun 14, 2021 · 5 comments · Fixed by #116170
Assignees
Labels
enhancement New value added to drive a business result Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@flash1293
Copy link
Contributor

There is a nice palette configuration UI for table coloring, but metric visualizations can't be colored based on the value. We should expose the same palette configuration UI to allow the user to set the coloring scheme in a way they are accustomed to.

The UI has to be restricted in some ways and defaults have to be found, because as there is just a single value it's not possible to default to "percentage of range"-based coloring as no range can be calculated.

A similar problem has to be solved for gauge visualizations

@flash1293 flash1293 changed the title [Lens] Allow palette configuration for meitrc [Lens] Allow palette configuration for metric Jun 14, 2021
@flash1293 flash1293 added enhancement New value added to drive a business result Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Jun 14, 2021
@elasticmachine
Copy link
Contributor

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

@ghudgins
Copy link

for metric we need to evaluate which features we keep:

  • should we do color continuity (maybe....)
  • default: 0-100 (easy, what visualize does) or try to infer a smarter default from the metric
  • don't do percentage mode as there are no ranges

@ghudgins
Copy link

additional question from planning week: what do we do if the user changes palettes

@ghudgins
Copy link

Nice to have: affordance when the aggregation is Percentile https://discuss.elastic.co/t/change-colour-of-metric-visualization-for-percentile-ranks-aggregation/277454/4

@flash1293
Copy link
Contributor Author

When doing this we should make sure the expression / renderer integration will be easy to integrate with #114116

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New value added to drive a business result Feature:Lens Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants