diff --git a/src/AntDesign.Charts/wwwroot/ant-design-charts-blazor.js b/src/AntDesign.Charts/wwwroot/ant-design-charts-blazor.js index 460e116d..759d5ddf 100644 --- a/src/AntDesign.Charts/wwwroot/ant-design-charts-blazor.js +++ b/src/AntDesign.Charts/wwwroot/ant-design-charts-blazor.js @@ -122,7 +122,7 @@ function proccessObject(o) { if (o[attr] === null || o[attr] === undefined) delete o[attr]; else if (typeof o[attr] == 'object') { removeNullItem(o[attr]); - if (isEmptyObj(o[attr])) delete o[attr]; + if (isEmptyObj(o[attr]) && attr!="data") delete o[attr]; } } }