Trend charts should break down gracefully on missing data #42948
Labels
.Escalation
.Frontend
Priority:P1
Security holes w/o exploit, crashing, setup/upgrade, login, broken common features, correctness
.Regression
Bugs that were previously fixed and/or bugs unintentionally shipped with new features.
.Team/DashViz
Dashboard and Viz team
Type:Bug
Product defects
Visualization/Scalars
Numbers, progress bars, gauges
Milestone
Describe the bug
Trend visualization breaks down in an unhelpful way when data is incomplete.
To Reproduce
Error: The latest data point contains a null value
and the visualization breaks with the triangleExpected behavior
Logs
Console
Information about your Metabase installation
Severity
P2 - confusing
Additional context
The same data resulted in a different outcome in v1.48 - the change was computed based on the last two available values, though the dates were incorrect:
![image](https://private-user-images.githubusercontent.com/11080638/332420125-530921df-0b47-4b27-b211-7daaefc2905f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ2MTg4NTgsIm5iZiI6MTcyNDYxODU1OCwicGF0aCI6Ii8xMTA4MDYzOC8zMzI0MjAxMjUtNTMwOTIxZGYtMGI0Ny00YjI3LWIyMTEtN2RhYWVmYzI5MDVmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI1VDIwNDIzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY3ZmU4MTA0NmUxOWFhNGFiNTA3NzBiNzJlMDgwZjFjMzExMjk1ZTJlZWE2NTE0ZmEwYTdkZjVhZWViZDkwNzkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.hYGAXhA8Ptyx-shh7SvKhFSb_1LQAZxR9SLIF4JQZw8)
No response
The text was updated successfully, but these errors were encountered: