Skip to content

Commit

Permalink
Fix/tooltip formatter (#28)
Browse files Browse the repository at this point in the history
* Update widget.config.json

* fix: fix number

* fix: fix number
  • Loading branch information
ranglang committed Dec 6, 2023
1 parent 52641af commit 1ef5840
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.2.9",
"version": "1.6.0",
"description": "my apitable widget chart",
"engines": {
"node": ">=8.x"
Expand Down
2 changes: 1 addition & 1 deletion src/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion widget.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1ef5840

Please sign in to comment.