test: add test for axis

This commit is contained in:
vicanso 2022-06-18 10:38:46 +08:00
parent 635e440e85
commit d3c6649cd9
12 changed files with 145 additions and 40 deletions

View file

@ -114,6 +114,5 @@ func main() {
err = writeFile(buf)
if err != nil {
panic(err)
}
)
}
}

View file

@ -430,7 +430,7 @@ func main() {
Left: 1,
Right: p.Width() - 1,
Bottom: top + 30,
})), charts.LegendPainterOption{
})), charts.LegendOption{
Left: "10",
Data: []string{
"Email",
@ -449,7 +449,7 @@ func main() {
Left: 1,
Right: p.Width() - 1,
Bottom: top + 30,
})), charts.LegendPainterOption{
})), charts.LegendOption{
Left: charts.PositionRight,
Data: []string{
"Email",
@ -470,7 +470,7 @@ func main() {
Left: 1,
Right: p.Width() - 1,
Bottom: top + 100,
})), charts.LegendPainterOption{
})), charts.LegendOption{
Top: "10",
Data: []string{
"Email",