Hi everyone,
I’m facing an issue in Kibana 8 related to how fields with no data are handled in visualizations (e.g., Enhanced Table).
In Kibana 7, when a field had no data, it would return 0
if the field was set to number format. This allowed me to apply CSS conditions like if value == 0
in computed styles, ensuring the field wouldn’t display anything.
However, in Kibana 8, the same fields seems to return null
when there’s no data. This behavior is problematic because:
- I can’t handle
null
values using the same conditions I used before. - While
if value <= 0
works, usingif value == 0
orif value < 0
does not produce the expected result. And I get confused about that!
I want to understand:
- How does Kibana 8 handle fields with no data differently than Kibana 7?
- What is the correct approach to control or format these
null
values in visualizations? - Is there a way to conditionally handle this without having to rewrite every CSS or computation rule?
Any help or suggestions on how to solve this would be greatly appreciated. Thank you!