feat: support line chart draw function
This commit is contained in:
parent
4ac419fce9
commit
ccdaf70dcb
34 changed files with 1780 additions and 4672 deletions
10
util.go
10
util.go
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue