refactor: auto count the split number for x axis
This commit is contained in:
parent
3219ce521b
commit
c01f4001f1
6 changed files with 134 additions and 58 deletions
|
|
@ -51,12 +51,6 @@ func TestAutoDivide(t *testing.T) {
|
|||
}, autoDivide(600, 7))
|
||||
}
|
||||
|
||||
func TestMaxInt(t *testing.T) {
|
||||
assert := assert.New(t)
|
||||
|
||||
assert.Equal(5, maxInt(1, 3, 5, 2))
|
||||
}
|
||||
|
||||
func TestMeasureTextMaxWidthHeight(t *testing.T) {
|
||||
assert := assert.New(t)
|
||||
r, err := chart.SVG(400, 300)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue