burnoutChart

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 15 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 {
	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,omitempty"`
	Coord  []string `json:"coord"`
	Symbol string   `json:"symbol,omitempty"`
}

type Legend

type Legend struct {
	Show   bool     `json:"show"`
	Bottom bool     `json:"bottom"`
	Data   []string `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      []string               `json:"data"`
	Name      string                 `json:"name"`
	Type      string                 `json:"type"`
	Smooth    bool                   `json:"smooth"`
	ItemStyle map[string]interface{} `json:"itemStyle"`
	LineStyle map[string]interface{} `json:"lineStyle,omitempty"`
}

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"`
	Max       string                 `json:"max"`
}

Jump to

Keyboard shortcuts

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