summaryrefslogtreecommitdiff
path: root/drawing.go
diff options
context:
space:
mode:
authorsi9ma <hellob374@gmail.com>2021-05-27 13:30:48 +0800
committersi9ma <hellob374@gmail.com>2021-05-27 13:30:48 +0800
commitfaa50c3326f05833e560653f368b80cb2cf0fac0 (patch)
tree19267de839dbaaea9addf095f4f3425e300a2b5b /drawing.go
parent5bf3ea61547df2a36757f14bfba47bf22b747079 (diff)
feat: add disable option for chart xAxis and yAxis
Diffstat (limited to 'drawing.go')
-rw-r--r--drawing.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/drawing.go b/drawing.go
index 1d9a63b..83ec85b 100644
--- a/drawing.go
+++ b/drawing.go
@@ -966,7 +966,7 @@ func (f *File) drawPlotAreaCatAx(formatSet *formatChart) []*cAxs {
Max: max,
Min: min,
},
- Delete: &attrValBool{Val: boolPtr(false)},
+ Delete: &attrValBool{Val: boolPtr(formatSet.XAxis.None)},
AxPos: &attrValString{Val: stringPtr(catAxPos[formatSet.XAxis.ReverseOrder])},
NumFmt: &cNumFmt{
FormatCode: "General",
@@ -1020,7 +1020,7 @@ func (f *File) drawPlotAreaValAx(formatSet *formatChart) []*cAxs {
Max: max,
Min: min,
},
- Delete: &attrValBool{Val: boolPtr(false)},
+ Delete: &attrValBool{Val: boolPtr(formatSet.YAxis.None)},
AxPos: &attrValString{Val: stringPtr(valAxPos[formatSet.YAxis.ReverseOrder])},
NumFmt: &cNumFmt{
FormatCode: chartValAxNumFmtFormatCode[formatSet.Type],
@@ -1069,7 +1069,7 @@ func (f *File) drawPlotAreaSerAx(formatSet *formatChart) []*cAxs {
Max: max,
Min: min,
},
- Delete: &attrValBool{Val: boolPtr(false)},
+ Delete: &attrValBool{Val: boolPtr(formatSet.YAxis.None)},
AxPos: &attrValString{Val: stringPtr(catAxPos[formatSet.XAxis.ReverseOrder])},
TickLblPos: &attrValString{Val: stringPtr("nextTo")},
SpPr: f.drawPlotAreaSpPr(),