summaryrefslogtreecommitdiff
path: root/drawing.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-08-24 00:00:47 +0800
committerxuri <xuri.me@gmail.com>2022-08-24 00:00:47 +0800
commitcb8bca0e92cbec30db10c2a2863ef81fd98a6138 (patch)
treeee88b5e9d15ebace0e702ad05ae84e4f10fe33c2 /drawing.go
parentab12307393461e7055f664d296a3a0e686eebb39 (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 'drawing.go')
-rw-r--r--drawing.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/drawing.go b/drawing.go
index 5015d26..59b6d2a 100644
--- a/drawing.go
+++ b/drawing.go
@@ -543,9 +543,6 @@ func (f *File) drawLineChart(formatSet *formatChart) *cPlotArea {
},
Ser: f.drawChartSeries(formatSet),
DLbls: f.drawChartDLbls(formatSet),
- Smooth: &attrValBool{
- Val: boolPtr(false),
- },
AxID: []*attrValInt{
{Val: intPtr(754001152)},
{Val: intPtr(753999904)},
@@ -757,6 +754,7 @@ func (f *File) drawChartSeries(formatSet *formatChart) *[]cSer {
DLbls: f.drawChartSeriesDLbls(formatSet),
InvertIfNegative: &attrValBool{Val: boolPtr(false)},
Cat: f.drawChartSeriesCat(formatSet.Series[k], formatSet),
+ Smooth: &attrValBool{Val: boolPtr(formatSet.Series[k].Line.Smooth)},
Val: f.drawChartSeriesVal(formatSet.Series[k], formatSet),
XVal: f.drawChartSeriesXVal(formatSet.Series[k], formatSet),
YVal: f.drawChartSeriesYVal(formatSet.Series[k], formatSet),