fix: fix zero value of funnel chart, #43

This commit is contained in:
vicanso 2023-01-12 20:20:36 +08:00
parent 8ba9e2e1b2
commit d3f7a773af
2 changed files with 15 additions and 2 deletions

View file

@ -30,6 +30,8 @@ func main() {
60,
40,
20,
10,
0,
}
p, err := charts.FunnelRender(
values,
@ -40,6 +42,8 @@ func main() {
"Visit",
"Inquiry",
"Order",
"Pay",
"Cancel",
}),
)
if err != nil {