chart

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

View Source
const RateTrendingSelectItemOperationKey cptype.OperationKey = "selectChartItem"

Variables

This section is empty.

Functions

This section is empty.

Types

type AxisLabel

type AxisLabel struct {
	Formatter string `json:"formatter"`
}

type Chart

type Chart struct {
	base.DefaultProvider

	PData []Data                 `json:"pData"`
	EData []Data                 `json:"eData"`
	XAxis XAxis                  `json:"xAxis"`
	State map[string]interface{} `json:"state"`
}

func (*Chart) Render

type Data

type Data struct {
	Value    string                                  `json:"value"`
	MetaData map[string]gshelper.SelectChartItemData `json:"metaData"`
}

type MetaData

type MetaData struct {
	Data PData `json:"data"`
}

type Operation

type Operation struct {
	Key      string                 `json:"key"`
	Reload   bool                   `json:"reload"`
	FillMeta string                 `json:"fillMeta"`
	Meta     map[string]interface{} `json:"meta"`
}

type OperationData

type OperationData struct {
	FillMeta string   `json:"fillMeta"`
	MetaData MetaData `json:"meta"`
}

type Option

type Option struct {
	Legend struct {
		Show bool `json:"show"`
	} `json:"legend"`
	Series []Series `json:"series"`
	XAxis  XAxis    `json:"xAxis"`
	YAxis  YAxis    `json:"yAxis"`
}

type PData

type PData struct {
	Data Data `json:"data"`
}

type Props

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

type Series

type Series struct {
	AreaStyle struct {
		Opacity float64 `json:"opacity"`
	} `json:"areaStyle"`
	Data  []Data `json:"data"`
	Label struct {
		Show bool `json:"show"`
	} `json:"label"`
	Name string `json:"name"`
}

type TestPlanV2

type TestPlanV2 struct {
	PipelineID uint64 `json:"pipelineID"`
	PlanID     uint64 `json:"planID"`
	Name       string `json:"name"`
}

type XAxis

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

type YAxis

type YAxis struct {
	AxisLabel AxisLabel `json:"axisLabel"`
}

Jump to

Keyboard shortcuts

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