Skip to content

Commit

Permalink
docs: fix event-and-action sample code (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkmr-jp committed May 6, 2024
1 parent c126e30 commit 6e5c28f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/en-us/event-and-action.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@ var (
func generatePieItems() []opts.PieData {
items := make([]opts.PieData, 0)
for i := 0; i < itemCntPie; i++ {
items = append(items, opts.PieData{Name: data[i], Value: rand.Intn(500)})
items = append(items, opts.PieData{Name: data[i], Value: rand.Intn(500)})
}
return items
}
return items

func PieWithDispatchAction() *charts.Pie {
const actionWithEchartsInstance = `
Expand Down

0 comments on commit 6e5c28f

Please sign in to comment.