elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.7k stars 8.12k forks source link

[Lens] Color options for string cells in tables #179322

Closed teresaalvarezsoler closed 1 week ago

teresaalvarezsoler commented 5 months ago

Describe the feature: Users would like to have the ability to add colors to text/cells (non-numeric) in Lens Tables based on categorical values. This is only possible now for numerical values.

Describe a specific use case for the feature: Some use cases include setting colours for scales (high, med, low) or differentiating elements by colour (e.g. different cluster names, services, hosts, etc.)

In scope keyword fields, IP addresses, timestamps

Out of scope Intervals

elasticmachine commented 5 months ago

Pinging @elastic/kibana-visualizations (Team:Visualizations)

MichaelMarcialis commented 2 months ago

The latest design mockups for this issue have been crafted and are ready for handoff to engineering. Some key screenshots from the mockups can be found below. Please view the full Figma document for all mockups and developer notes.


Image

Image

Image

IanLee1521 commented 2 months ago

@MichaelMarcialis - you say intervals are out of scope, but just out of curiosity, what about something like regex matches? something like *.acmecorp.example ?

For IP Addresses, would we be able to match a full string IP? not a CIDR, but a literal 1.2.3.4 ip address for example

teresaalvarezsoler commented 2 months ago

Hi @IanLee1521, thanks for your questions. After doing a bit more research to get this ticket dev ready, we found it should be easy to support the values for IP fields. I'm changing the ticket description.

Regarding the support of regex for color assignment, it makes sense but it's a higher effort feature. I'm adding this request to the meta issue for Color mappings https://github.com/elastic/kibana/issues/167506 so we can discuss priorization with the team in the future.

IanLee1521 commented 1 month ago

Sounds good, thank you @teresaalvarezsoler !

IanLee1521 commented 1 week ago

This is awesome, thank you!!