Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BlueShades = []WeightedColor{ {Value: 0.0, Color: color.RGBA{R: 0xea, G: 0xf8, B: 0xfd, A: 1}}, {Value: 0.1, Color: color.RGBA{R: 0xbf, G: 0xeb, B: 0xfa, A: 1}}, {Value: 0.2, Color: color.RGBA{R: 0x94, G: 0xdd, B: 0xf6, A: 1}}, {Value: 0.3, Color: color.RGBA{R: 0x69, G: 0xd0, B: 0xf2, A: 1}}, {Value: 0.4, Color: color.RGBA{R: 0x3f, G: 0xc2, B: 0xef, A: 1}}, {Value: 0.5, Color: color.RGBA{R: 0x14, G: 0xb5, B: 0xeb, A: 1}}, {Value: 0.6, Color: color.RGBA{R: 0x10, G: 0x94, B: 0xc0, A: 1}}, {Value: 0.7, Color: color.RGBA{R: 0x0d, G: 0x73, B: 0x96, A: 1}}, {Value: 0.8, Color: color.RGBA{R: 0x09, G: 0x52, B: 0x6b, A: 1}}, {Value: 0.9, Color: color.RGBA{R: 0x05, G: 0x31, B: 0x40, A: 1}}, {Value: 1.0, Color: color.RGBA{R: 0x02, G: 0x10, B: 0x15, A: 1}}, }
BlueShades https://mdigi.tools/color-shades/
View Source
var Bytes = Unit{TickSuffix: "B", UnitFmt: "%{y:.4s}B"}
View Source
var GreenShades = []WeightedColor{ {Value: 0.0, Color: color.RGBA{R: 0xed, G: 0xf7, B: 0xf2}}, {Value: 0.1, Color: color.RGBA{R: 0xc9, G: 0xe8, B: 0xd7}}, {Value: 0.2, Color: color.RGBA{R: 0xa5, G: 0xd9, B: 0xbc}}, {Value: 0.3, Color: color.RGBA{R: 0x81, G: 0xca, B: 0xa2}}, {Value: 0.4, Color: color.RGBA{R: 0x5e, G: 0xbb, B: 0x87}}, {Value: 0.5, Color: color.RGBA{R: 0x44, G: 0xa1, B: 0x6e}}, {Value: 0.6, Color: color.RGBA{R: 0x35, G: 0x7e, B: 0x55}}, {Value: 0.7, Color: color.RGBA{R: 0x26, G: 0x5a, B: 0x3d}}, {Value: 0.8, Color: color.RGBA{R: 0x17, G: 0x36, B: 0x25}}, {Value: 0.9, Color: color.RGBA{R: 0x08, G: 0x12, B: 0x0c}}, {Value: 1.0, Color: color.RGBA{}}, }
View Source
var PinkShades = []WeightedColor{ {Value: 0.0, Color: color.RGBA{R: 0xfe, G: 0xe7, B: 0xf3, A: 1}}, {Value: 0.1, Color: color.RGBA{R: 0xfc, G: 0xb6, B: 0xdc, A: 1}}, {Value: 0.2, Color: color.RGBA{R: 0xf9, G: 0x85, B: 0xc5, A: 1}}, {Value: 0.3, Color: color.RGBA{R: 0xf7, G: 0x55, B: 0xae, A: 1}}, {Value: 0.4, Color: color.RGBA{R: 0xf5, G: 0x24, B: 0x96, A: 1}}, {Value: 0.5, Color: color.RGBA{R: 0xdb, G: 0x0a, B: 0x7d, A: 1}}, {Value: 0.6, Color: color.RGBA{R: 0xaa, G: 0x08, B: 0x61, A: 1}}, {Value: 0.7, Color: color.RGBA{R: 0x7a, G: 0x06, B: 0x45, A: 1}}, {Value: 0.8, Color: color.RGBA{R: 0x49, G: 0x03, B: 0x2a, A: 1}}, {Value: 0.9, Color: color.RGBA{R: 0x18, G: 0x01, B: 0x0e, A: 1}}, {Value: 1.0, Color: color.RGBA{A: 1}}, }
Functions ¶
Types ¶
type Config ¶
type Config struct { // Series contains the plots we want to show and how we want to show them. Series []interface{} `json:"series"` // Events contains a list of 'events time series' names. Series with // these names must be sent alongside other series. An event time series // is just made of timestamps with no associated value, each of which // gets plotted as a vertical line over another plot. Events []string `json:"events"` }
type HeapmapHover ¶
type Heatmap ¶
type Heatmap struct { Name string `json:"name"` Title string `json:"title"` Type string `json:"type"` UpdateFreq int `json:"updateFreq"` InfoText string `json:"infoText"` Events string `json:"events"` Layout struct { Yaxis struct { Title string `json:"title"` TickMode string `json:"tickmode"` TickVals []float64 `json:"tickvals"` TickText []float64 `json:"ticktext"` } `json:"yaxis"` } `json:"layout"` Colorscale []WeightedColor `json:"colorscale"` Buckets []float64 `json:"buckets"` CustomData []float64 `json:"custom_data"` Hover HeapmapHover `json:"hover"` }
type List ¶
type List struct {
// contains filtered or unexported fields
}
List holds all the plots that statsviz knows about. Some plots might be disabled, if they rely on metrics that are unknown to the current Go version.
type Scatter ¶
type Scatter struct { Name string `json:"name"` Title string `json:"title"` Type string `json:"type"` UpdateFreq int `json:"updateFreq"` InfoText string `json:"infoText"` Events string `json:"events"` Layout struct { Yaxis struct { Title string `json:"title"` TickSuffix string `json:"ticksuffix"` } `json:"yaxis"` } `json:"layout"` Subplots []Subplot `json:"subplots"` }
type WeightedColor ¶
func (WeightedColor) MarshalJSON ¶
func (c WeightedColor) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.