summaryrefslogtreecommitdiff
path: root/drawing.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2021-04-10 00:15:39 +0800
committerxuri <xuri.me@gmail.com>2021-04-10 00:15:39 +0800
commit1559dd31be6f394ed78129d763c4677cc26bb51c (patch)
tree59eeca51817a7e077e2206ee6800cdddc5911f09 /drawing.go
parenta8197485b5ca94f18f454eaae34af74500bd4dc3 (diff)
Support specifies that each data marker in the series has a different color
Diffstat (limited to 'drawing.go')
-rw-r--r--drawing.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/drawing.go b/drawing.go
index 0e5d948..8b517f9 100644
--- a/drawing.go
+++ b/drawing.go
@@ -271,7 +271,7 @@ func (f *File) drawBaseChart(formatSet *formatChart) *cPlotArea {
Val: stringPtr("clustered"),
},
VaryColors: &attrValBool{
- Val: boolPtr(true),
+ Val: boolPtr(formatSet.VaryColors),
},
Ser: f.drawChartSeries(formatSet),
Shape: f.drawChartShape(formatSet),
@@ -515,7 +515,7 @@ func (f *File) drawDoughnutChart(formatSet *formatChart) *cPlotArea {
return &cPlotArea{
DoughnutChart: &cCharts{
VaryColors: &attrValBool{
- Val: boolPtr(true),
+ Val: boolPtr(formatSet.VaryColors),
},
Ser: f.drawChartSeries(formatSet),
HoleSize: &attrValInt{Val: intPtr(75)},
@@ -555,7 +555,7 @@ func (f *File) drawPieChart(formatSet *formatChart) *cPlotArea {
return &cPlotArea{
PieChart: &cCharts{
VaryColors: &attrValBool{
- Val: boolPtr(true),
+ Val: boolPtr(formatSet.VaryColors),
},
Ser: f.drawChartSeries(formatSet),
},
@@ -568,7 +568,7 @@ func (f *File) drawPie3DChart(formatSet *formatChart) *cPlotArea {
return &cPlotArea{
Pie3DChart: &cCharts{
VaryColors: &attrValBool{
- Val: boolPtr(true),
+ Val: boolPtr(formatSet.VaryColors),
},
Ser: f.drawChartSeries(formatSet),
},
@@ -584,7 +584,7 @@ func (f *File) drawPieOfPieChart(formatSet *formatChart) *cPlotArea {
Val: stringPtr("pie"),
},
VaryColors: &attrValBool{
- Val: boolPtr(true),
+ Val: boolPtr(formatSet.VaryColors),
},
Ser: f.drawChartSeries(formatSet),
SerLines: &attrValString{},
@@ -601,7 +601,7 @@ func (f *File) drawBarOfPieChart(formatSet *formatChart) *cPlotArea {
Val: stringPtr("bar"),
},
VaryColors: &attrValBool{
- Val: boolPtr(true),
+ Val: boolPtr(formatSet.VaryColors),
},
Ser: f.drawChartSeries(formatSet),
SerLines: &attrValString{},