burnoutChart

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BurnoutChart

type BurnoutChart struct {
	base.DefaultProvider

	Type   string          `json:"type"`
	Props  Props           `json:"props"`
	Issues []dao.IssueItem `json:"-"`
}

func (*BurnoutChart) InitFromProtocol

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

func (*BurnoutChart) Render

func (*BurnoutChart) SetToProtocolComponent

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

type Data

type Data struct {
	Name  string   `json:"name"`
	Coord []string `json:"coord"`
}

type Legend

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

type MarkLine

type MarkLine struct {
	Label     map[string]interface{} `json:"label"`
	LineStyle map[string]interface{} `json:"lineStyle"`
	Data      [][]Data               `json:"data"`
}

type Option

type Option struct {
	XAxis   XAxis                  `json:"xAxis"`
	YAxis   YAxis                  `json:"yAxis"`
	Legend  Legend                 `json:"legend"`
	Tooltip map[string]interface{} `json:"tooltip"`
	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"`
	Type      string                 `json:"type"`
	Smooth    bool                   `json:"smooth"`
	ItemStyle map[string]interface{} `json:"itemStyle"`
	MarkLine  MarkLine               `json:"markLine"`
}

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