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
nullvalues using the same conditions I used before. - While
if value <= 0works, usingif value == 0orif value < 0does 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
nullvalues 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!