Skip to content

Commit 68a1704

Browse files
pjh591029530Simmons
andauthored
This fix missing horizontal axis in scatter chart with negative values (qax-os#1953)
Co-authored-by: Simmons <1815481@qq.com>
1 parent 9c27836 commit 68a1704

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drawing.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -598,8 +598,7 @@ func (f *File) drawScatterChart(pa *cPlotArea, opts *Chart) *cPlotArea {
598598
DLbls: f.drawChartDLbls(opts),
599599
AxID: f.genAxID(opts),
600600
},
601-
CatAx: f.drawPlotAreaCatAx(pa, opts),
602-
ValAx: f.drawPlotAreaValAx(pa, opts),
601+
ValAx: append(f.drawPlotAreaCatAx(pa, opts), f.drawPlotAreaValAx(pa, opts)...),
603602
}
604603
}
605604

@@ -659,7 +658,7 @@ func (f *File) drawBubbleChart(pa *cPlotArea, opts *Chart) *cPlotArea {
659658
DLbls: f.drawChartDLbls(opts),
660659
AxID: f.genAxID(opts),
661660
},
662-
ValAx: []*cAxs{f.drawPlotAreaCatAx(pa, opts)[0], f.drawPlotAreaValAx(pa, opts)[0]},
661+
ValAx: append(f.drawPlotAreaCatAx(pa, opts), f.drawPlotAreaValAx(pa, opts)...),
663662
}
664663
if opts.BubbleSize > 0 && opts.BubbleSize <= 300 {
665664
plotArea.BubbleChart.BubbleScale = &attrValFloat{Val: float64Ptr(float64(opts.BubbleSize))}

0 commit comments

Comments
 (0)