refactor: auto count the split number for x axis

This commit is contained in:
vicanso 2022-02-06 09:55:27 +08:00
parent 3219ce521b
commit c01f4001f1
6 changed files with 134 additions and 58 deletions

View file

@ -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)