fix: fix series render of horizontal bar, #31

This commit is contained in:
vicanso 2022-11-03 21:31:53 +08:00
parent a88e607bfc
commit bdcc871ab1
4 changed files with 25 additions and 6 deletions

View file

@ -47,6 +47,8 @@ type YAxisOption struct {
Color Color
// The flag for show axis, set this to *false will hide axis
Show *bool
DivideCount int
Unit int
isCategoryAxis bool
}
@ -87,6 +89,7 @@ func (opt *YAxisOption) ToAxisOption(p *Painter) AxisOption {
SplitLineShow: true,
SplitLineColor: theme.GetAxisSplitLineColor(),
Show: opt.Show,
Unit: opt.Unit,
}
if !opt.Color.IsZero() {
axisOpt.FontColor = opt.Color