simpleChart

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chart

type Chart struct {
	XAxis  []string     `json:"xAxis"`
	Series []SeriesData `json:"series"`
}

type Data

type Data struct {
	Main         string `json:"main"`
	Sub          string `json:"sub"`
	CompareText  string `json:"compareText"`
	CompareValue string `json:"compareValue"`
	Chart        Chart  `json:"chart"`
}

type SeriesData

type SeriesData struct {
	Name string `json:"name"`
	Data []int  `json:"data"`
}

type SimpleChart

type SimpleChart struct {
	base.DefaultProvider
	Issues []dao.IssueItem `json:"-"`
	Type   string          `json:"type"`
	Data   Data            `json:"data"`
}

func (*SimpleChart) InitFromProtocol

func (s *SimpleChart) InitFromProtocol(ctx context.Context, c *cptype.Component) error

func (*SimpleChart) Render

func (*SimpleChart) SetToProtocolComponent

func (s *SimpleChart) SetToProtocolComponent(c *cptype.Component) error

Jump to

Keyboard shortcuts

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