diff options
author | xuri <xuri.me@gmail.com> | 2022-10-12 00:06:09 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-10-12 00:06:09 +0800 |
commit | 0e657c887bf505d62ce3bf685c518cd0ed7bc558 (patch) | |
tree | d0dce47211b4375430795a9d1d4abba5735b4359 /drawing.go | |
parent | c02346bafc6e098406f32ee0a183d45f3038c619 (diff) |
This closes #1368, fixes number parsing issue, adds support for create a 3D line chart
Diffstat (limited to 'drawing.go')
-rw-r--r-- | drawing.go | 26 |
1 files changed, 25 insertions, 1 deletions
@@ -224,8 +224,9 @@ func (f *File) addChart(opts *chartOptions, comboCharts []*chartOptions) { Col3DCylinderPercentStacked: f.drawBaseChart, Doughnut: f.drawDoughnutChart, Line: f.drawLineChart, - Pie3D: f.drawPie3DChart, + Line3D: f.drawLine3DChart, Pie: f.drawPieChart, + Pie3D: f.drawPie3DChart, PieOfPieChart: f.drawPieOfPieChart, BarOfPieChart: f.drawBarOfPieChart, Radar: f.drawRadarChart, @@ -553,6 +554,29 @@ func (f *File) drawLineChart(opts *chartOptions) *cPlotArea { } } +// drawLine3DChart provides a function to draw the c:plotArea element for line +// chart by given format sets. +func (f *File) drawLine3DChart(opts *chartOptions) *cPlotArea { + return &cPlotArea{ + Line3DChart: &cCharts{ + Grouping: &attrValString{ + Val: stringPtr(plotAreaChartGrouping[opts.Type]), + }, + VaryColors: &attrValBool{ + Val: boolPtr(false), + }, + Ser: f.drawChartSeries(opts), + DLbls: f.drawChartDLbls(opts), + AxID: []*attrValInt{ + {Val: intPtr(754001152)}, + {Val: intPtr(753999904)}, + }, + }, + CatAx: f.drawPlotAreaCatAx(opts), + ValAx: f.drawPlotAreaValAx(opts), + } +} + // drawPieChart provides a function to draw the c:plotArea element for pie // chart by given format sets. func (f *File) drawPieChart(opts *chartOptions) *cPlotArea { |