From 1559dd31be6f394ed78129d763c4677cc26bb51c Mon Sep 17 00:00:00 2001 From: xuri Date: Sat, 10 Apr 2021 00:15:39 +0800 Subject: Support specifies that each data marker in the series has a different color --- drawing.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'drawing.go') 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{}, -- cgit v1.2.1