diff options
author | xuri <xuri.me@gmail.com> | 2022-08-24 00:00:47 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-08-24 00:00:47 +0800 |
commit | cb8bca0e92cbec30db10c2a2863ef81fd98a6138 (patch) | |
tree | ee88b5e9d15ebace0e702ad05ae84e4f10fe33c2 /styles.go | |
parent | ab12307393461e7055f664d296a3a0e686eebb39 (diff) |
This closes #1290 and closes #1328
- Add new smooth field in chart format parameter, support specify if smooth line chart
- Fix decimal number format round issue with build-in number format
Diffstat (limited to 'styles.go')
-rw-r--r-- | styles.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -852,7 +852,7 @@ func formatToInt(v, format string, date1904 bool) string { if err != nil { return v } - return fmt.Sprintf("%d", int64(f)) + return fmt.Sprintf("%d", int64(math.Round(f))) } // formatToFloat provides a function to convert original string to float |