chart

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Axis

type Axis struct {
	Type string   `json:"type"`
	Data []string `json:"data"`
}

type CategoryLine

type CategoryLine struct {
	Name string
	Data CategoryLineData
}

type CategoryLineData

type CategoryLineData struct {
	NumSucc  uint64
	NumBlock uint64
	NumFail  uint64
	NumInit  uint64
}

type Chart

type Chart struct {
	base.DefaultProvider
}

func (*Chart) Render

type Label

type Label struct {
	Show bool `json:"show"`
}

type Legend

type Legend struct {
	Show bool `json:"show"`
}

type Option

type Option struct {
	Color  []string     `json:"color"`
	Legend Legend       `json:"legend"`
	Series []SeriesItem `json:"series"`
	XAxis  Axis         `json:"xAxis"`
	YAxis  Axis         `json:"yAxis"`
}

type Props

type Props struct {
	ChartType string `json:"chartType"`
	Option    Option `json:"option"`
	PureChart bool   `json:"pureChart"`
}

type SeriesItem

type SeriesItem struct {
	Data  []string `json:"data"`
	Label Label    `json:"label"`
	Name  string   `json:"name"`
	Stack string   `json:"stack"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL