stackChart

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: 16 Imported by: 1 module, 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.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Colors = []string{
	"primary8", "primary7", "primary6", "primary5", "primary4", "primary3", "primary2", "primary1",
	"warning8", "warning7", "warning6", "warning5", "warning4", "warning3", "warning2", "warning1",
}

Functions

This section is empty.

Types

type DataZoom

type DataZoom struct {
	Type   string `json:"type"`
	Start  int    `json:"start"`
	End    int    `json:"end"`
	Height int    `json:"height"`
	Bottom int    `json:"bottom"`
}

type InParams

type InParams struct {
	FrontEndProjectID string `json:"projectId,omitempty"`
	FrontendUrlQuery  string `json:"filter__urlQuery,omitempty"`
	ProjectID         uint64
}

type Legend

type Legend struct {
	Show   bool     `json:"show"`
	Bottom bool     `json:"bottom"`
	Data   []string `json:"data"`
}

type Option

type Option struct {
	Grid     map[string]interface{} `json:"grid"`
	XAxis    XAxis                  `json:"xAxis"`
	YAxis    YAxis                  `json:"yAxis"`
	Legend   Legend                 `json:"legend"`
	DataZoom []DataZoom             `json:"dataZoom"`
	Tooltip  map[string]interface{} `json:"tooltip"`
	Color    []string               `json:"color"`
	Series   []Series               `json:"series"`
}

type Props

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

type Series

type Series struct {
	Data      []int                  `json:"data"`
	Name      string                 `json:"name"`
	Stack     string                 `json:"stack"`
	Type      string                 `json:"type"`
	Smooth    bool                   `json:"smooth"`
	Symbol    string                 `json:"symbol"`
	AreaStyle map[string]interface{} `json:"areaStyle"`
	LineStyle map[string]interface{} `json:"lineStyle"`
}

type StackChart

type StackChart struct {
	base.DefaultProvider

	InParams       InParams                                 `json:"-"`
	Type           string                                   `json:"type"`
	Props          Props                                    `json:"props"`
	Issues         []dao.IssueItem                          `json:"-"`
	StateMap       map[uint64]string                        `json:"-"`
	StatesTransMap map[time.Time][]dao.IssueStateTransition `json:"-"`
	DateMap        map[time.Time]map[uint64]int             `json:"-"`
	Dates          []time.Time                              `json:"-"`
	Itr            apistructs.Iteration                     `json:"-"`
	States         []dao.IssueState                         `json:"-"`
	// contains filtered or unexported fields
}

func (*StackChart) InitFromProtocol

func (f *StackChart) InitFromProtocol(ctx context.Context, c *cptype.Component) error

func (*StackChart) Render

func (*StackChart) SetToProtocolComponent

func (f *StackChart) SetToProtocolComponent(c *cptype.Component) error

type XAxis

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

type YAxis

type YAxis struct {
	Type      string                 `json:"type"`
	AxisLine  map[string]interface{} `json:"axisLine"`
	AxisLabel map[string]interface{} `json:"axisLabel"`
}

Jump to

Keyboard shortcuts

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