diff options
author | xuri <xuri.me@gmail.com> | 2019-12-28 15:05:44 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2019-12-28 15:05:44 +0800 |
commit | 8b960ee1e624bd2776a351a4a3b2ad04c29bae9a (patch) | |
tree | 6eef967a11bf69477fa8b00d3229e5aa03d4d555 /chart.go | |
parent | 5f3a4bc39f9cf2987104ffe57242a0526cdd9158 (diff) |
Fix #547 and #546, add default overlay element for the chart
Diffstat (limited to 'chart.go')
-rw-r--r-- | chart.go | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -657,7 +657,6 @@ func parseFormatChartSet(formatSet string) (*formatChart, error) { // // major_grid_lines // minor_grid_lines -// major_unit // reverse_order // maximum // minimum @@ -818,6 +817,7 @@ func (f *File) addChart(formatSet *formatChart) { }, }, }, + Overlay: &attrValBool{Val: boolPtr(false)}, }, View3D: &cView3D{ RotX: &attrValInt{Val: intPtr(chartView3DRotX[formatSet.Type])}, @@ -1627,9 +1627,6 @@ func (f *File) drawPlotAreaCatAx(formatSet *formatChart) []*cAxs { if formatSet.XAxis.MinorGridlines { axs[0].MinorGridlines = &cChartLines{SpPr: f.drawPlotAreaSpPr()} } - if formatSet.XAxis.MajorUnit != 0 { - axs[0].MajorUnit = &attrValFloat{Val: float64Ptr(formatSet.XAxis.MajorUnit)} - } if formatSet.XAxis.TickLabelSkip != 0 { axs[0].TickLblSkip = &attrValInt{Val: intPtr(formatSet.XAxis.TickLabelSkip)} } |