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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg5MTkzNzAsIm5iZiI6MTcxODkxOTA3MCwicGF0aCI6Ii8xMTA4MDYzOC8zMzI0MjAxMjUtNTMwOTIxZGYtMGI0Ny00YjI3LWIyMTEtN2RhYWVmYzI5MDVmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIwVDIxMzExMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTA3ZGYyZjMyNDgxNGYwNDg5OTgzYzJlYTdjZjYwZWJiM2EzZTc5Y2EyZjNkN2RjODI0YmQ5YjYzMDA2MGZkMjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.YtDMwt8PbTmc0WHNB8MJFlBbjlkFTuT6TmvhG1Rj9ls)
No response
The text was updated successfully, but these errors were encountered: