Revert "Improvements to how the X Axis is rendered"
This commit is contained in:
parent
0ddb9e4ef1
commit
8bcb584aba
9 changed files with 20 additions and 38 deletions
1
axis.go
1
axis.go
|
|
@ -176,6 +176,7 @@ func (a *axisPainter) Render() (Box, error) {
|
|||
|
||||
unit := opt.Unit
|
||||
if unit <= 0 {
|
||||
|
||||
unit = ceilFloatToInt(float64(dataCount) / float64(fitTextCount))
|
||||
unit = chart.MaxInt(unit, opt.SplitNumber)
|
||||
// 偶数
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue