Skip to content

Commit 1ef5840

Browse files
author
Caedman Ziwen Lan
authored
Fix/tooltip formatter (#28)
* Update widget.config.json * fix: fix number * fix: fix number
1 parent 52641af commit 1ef5840

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.2.9",
2+
"version": "1.6.0",
33
"description": "my apitable widget chart",
44
"engines": {
55
"node": ">=8.x"

src/helper.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export const getAggregationValue = (dataList: number[], type: string, precision
205205
}
206206
if (res != null) {
207207
// console.warn('Non-numeric field summary error');
208-
return isNumber(res) ? res : 0;
208+
return isNumber(res) ? Number(res.toFixed(precision)) : 0;
209209
}
210210

211211
return res;

widget.config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"authorLink": "https://developers.aitable.ai",
1515
"authorEmail": "[email protected]",
1616
"description": {
17-
"zh-CN": "将数据展示为柱状图、条形图、饼状图、折线图或散点图,帮助你概览数据的全貌,方便决策和会议汇报",
17+
"zh-CN": "将数据展示为柱状图、条形图、饼状图、折线图或散点图,帮助你概览数据的全貌,方便决策和会议汇报 ",
1818
"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"
1919
},
2020
"website": "https://help.aitable.ai/docs/guide/intro-widget-chart"

0 commit comments

Comments
 (0)