Discover Packages
github.com/erda-project/erda
modules
cmp
component-protocol
components
cmp-dashboard-nodes
common
chart
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: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
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.