package
Version:
v1.5.0
Opens a new window with list of versions in this module.
Published: Jan 6, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var (
Allocated = "Allocated"
Free_Allocate = "Free-Allocate"
Cannot_Allocate = "Cannot-Allocate"
Memory = "memory"
CPU = "cpu"
Pods = "pods"
)
type ChartData struct {
Label string `json:"label"`
Data []DataItem `json:"data"`
}
type DataItem struct {
Value float64 `json:"value"`
Name string `json:"name"`
Formatter string `json:"formatter"`
Color string `json:"color"`
}
type Grid struct {
Bottom int `json:"bottom"`
Top int `json:"top"`
ContainLabel bool `json:"containLabel"`
}
type Label struct {
Formatter string `json:"formatter"`
}
type Legend struct {
Data []string `json:"data"`
Bottom string `json:"bottom"`
}
type Option struct {
Color []string `json:"color"`
Legend Legend `json:"legend"`
Grid Grid `json:"grid"`
Series []Serie `json:"series"`
}
type Props struct {
Name string `json:"name"`
Option Option `json:"option"`
Title string `json:"title"`
Style Style `json:"style"`
}
type Serie struct {
Type string `json:"type"`
Radius string `json:"radius"`
}
type Style struct {
Flex int `json:"flex"`
}
type TextStyle struct {
FrontSize int `json:"frontSize"`
}
type Title struct {
Text string `json:"text"`
TextStyle TextStyle `json:"textStyle"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.