refactor: adjust legend to center as default
This commit is contained in:
parent
c4b5ac3f42
commit
29a1bdc1fb
2 changed files with 19 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue