Skip to content

Commit

Permalink
Update save_chart.go
Browse files Browse the repository at this point in the history
  • Loading branch information
TimLai666 committed Sep 17, 2024
1 parent 9c94367 commit 6ed0c5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plot/save_chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func SavePNG(chart Renderable, pngPath string) {

disableAnimation(chart)
setBackgroundToWhite(chart)

// 先將 Renderable 渲染為 HTML
var buf bytes.Buffer
if err := chart.Render(&buf); err != nil {
Expand Down

0 comments on commit 6ed0c5f

Please sign in to comment.