codeant-ai-for-open-source[bot] commented on PR #28038:
URL: https://github.com/apache/superset/pull/28038#issuecomment-4084255473
## **Sequence Diagram**
This PR fixes the BigNumber color evaluation path so zero is treated as a
valid numeric value instead of being skipped as falsy. The flow now applies
threshold color formatters for any valid number, while still skipping null and
undefined values.
```mermaid
sequenceDiagram
participant Chart
participant BigNumberViz
participant ColorFormatter
Chart->>BigNumberViz: Render big number value
BigNumberViz->>BigNumberViz: Check value is number and not NaN
alt Valid number including zero
BigNumberViz->>ColorFormatter: Get color from numeric value
ColorFormatter-->>BigNumberViz: Return threshold color
else Null or undefined
BigNumberViz->>BigNumberViz: Skip threshold formatter
end
BigNumberViz-->>Chart: Render big number with resolved color
```
---
*Generated by [CodeAnt AI](https://codeant.ai)*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]