refactor: adjust legend to center as default

This commit is contained in:
vicanso 2022-01-30 18:27:18 +08:00
parent c4b5ac3f42
commit 29a1bdc1fb
2 changed files with 19 additions and 3 deletions

View file

@ -58,7 +58,6 @@ func NewLineChart(opt LineChartOption) (*Draw, error) {
return nil, err
}
opt.Legend.Style.Padding.Left += titleBox.Right
_, err = drawLegend(d, &opt.Legend, &theme)
if err != nil {
return nil, err