test: add test for legend and draw

This commit is contained in:
vicanso 2022-02-06 10:40:05 +08:00
parent c01f4001f1
commit 54f0195c53
4 changed files with 67 additions and 14 deletions

1
bar.go
View file

@ -43,6 +43,7 @@ func (bs *BarStyle) Style() chart.Style {
}
}
// Bar renders bar for chart
func (d *Draw) Bar(b chart.Box, style BarStyle) {
s := style.Style()