feat: support line chart draw function

This commit is contained in:
vicanso 2022-01-29 11:16:34 +08:00
parent 4ac419fce9
commit ccdaf70dcb
34 changed files with 1780 additions and 4672 deletions

10
util.go
View file

@ -24,6 +24,16 @@ package charts
import "github.com/wcharczuk/go-chart/v2"
func TrueFlag() *bool {
t := true
return &t
}
func FalseFlag() *bool {
f := false
return &f
}
func getDefaultInt(value, defaultValue int) int {
if value == 0 {
return defaultValue