Skip to content

Commit

Permalink
This fix missing horizontal axis in scatter chart with negative values (
Browse files Browse the repository at this point in the history
#1953)

Co-authored-by: Simmons <[email protected]>
  • Loading branch information
pjh591029530 and Simmons authored Jul 17, 2024
1 parent 9c27836 commit 68a1704
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drawing.go
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,7 @@ func (f *File) drawScatterChart(pa *cPlotArea, opts *Chart) *cPlotArea {
DLbls: f.drawChartDLbls(opts),
AxID: f.genAxID(opts),
},
CatAx: f.drawPlotAreaCatAx(pa, opts),
ValAx: f.drawPlotAreaValAx(pa, opts),
ValAx: append(f.drawPlotAreaCatAx(pa, opts), f.drawPlotAreaValAx(pa, opts)...),
}
}

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

0 comments on commit 68a1704

Please sign in to comment.