simpleChart

package
v1.3.0-rc.0...-d217119 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 12 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"`
	CompareValueLink Link   `json:"compareValueLink,omitempty"`
	MainLink         Link   `json:"mainLink,omitempty"`
}
type Link struct {
	Target string                 `json:"target,omitempty"`
	Params map[string]interface{} `json:"params,omitempty"`
}

type SeriesData

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

type SimpleChart

type SimpleChart struct {
	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