diff --git a/package.json b/package.json index 740e3f8..73a545e 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "version": "1.2.9", + "version": "1.6.0", "description": "my apitable widget chart", "engines": { "node": ">=8.x" diff --git a/src/helper.ts b/src/helper.ts index e02baec..cfd319a 100644 --- a/src/helper.ts +++ b/src/helper.ts @@ -205,7 +205,7 @@ export const getAggregationValue = (dataList: number[], type: string, precision } if (res != null) { // console.warn('Non-numeric field summary error'); - return isNumber(res) ? res : 0; + return isNumber(res) ? Number(res.toFixed(precision)) : 0; } return res; diff --git a/widget.config.json b/widget.config.json index 5fad8f7..8ffdc01 100644 --- a/widget.config.json +++ b/widget.config.json @@ -14,7 +14,7 @@ "authorLink": "https://developers.aitable.ai", "authorEmail": "developer@aitable.ai", "description": { - "zh-CN": "将数据展示为柱状图、条形图、饼状图、折线图或散点图,帮助你概览数据的全貌,方便决策和会议汇报", + "zh-CN": "将数据展示为柱状图、条形图、饼状图、折线图或散点图,帮助你概览数据的全貌,方便决策和会议汇报 ", "en-US": "Display data as bar, column, pie, line, or scatter charts to help you get a holistic view of your data for decision making and meeting reporting" }, "website": "https://help.aitable.ai/docs/guide/intro-widget-chart"