graphic
graphic copied to clipboard
如果某一个数据为空或者null,该什么处理
a value is null,haw to do?
const basicData = [ {'genre': 'Sports', 'sold': 275}, {'genre': 'Strategy', 'sold': null}, {'genre': 'Action', 'sold': 120}, {'genre': 'Shooter', 'sold': 350}, {'genre': 'Other', 'sold': 150}, ];
在 accessor 中将空值转换为 double.nan