fix: fix series render of horizontal bar, #31
This commit is contained in:
parent
a88e607bfc
commit
bdcc871ab1
4 changed files with 25 additions and 6 deletions
3
yaxis.go
3
yaxis.go
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue