feat: support mark point for line chart

This commit is contained in:
vicanso 2022-02-08 23:16:30 +08:00
parent 524eb79a8e
commit c0bb1654c2
11 changed files with 148 additions and 16 deletions

View file

@ -24,8 +24,6 @@ package charts
import (
"math"
"github.com/dustin/go-humanize"
)
type Range struct {
@ -69,7 +67,7 @@ func (r Range) Values() []string {
values := make([]string, 0)
for i := 0; i <= r.divideCount; i++ {
v := r.Min + float64(i)*offset
value := humanize.CommafWithDigits(v, 2)
value := commafWithDigits(v)
values = append(values, value)
}
return values