echarts

package
v8.0.8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Series

func Series(s ...*SeriesObject) map[string][]*SeriesObject

Types

type Dict

type Dict map[string]interface{}

type MetricLineItem

type MetricLineItem struct {
	Id    int     `json:"id"`
	Time  string  `json:"time"`
	Value float64 `json:"value"`
}

func AvgMetricLine

func AvgMetricLine(src []MetricLineItem) (target []MetricLineItem)

func SumMetricLine

func SumMetricLine(src []MetricLineItem) (target []MetricLineItem)

type NameValuePair

type NameValuePair struct {
	Name  string `json:"name"`
	Value int64  `json:"value"`
}

func NewNameValuePair

func NewNameValuePair(name string, value int64) *NameValuePair

func (*NameValuePair) Incr

func (d *NameValuePair) Incr()

type SeriesObject

type SeriesObject struct {
	Type string
	Data interface{}
	// contains filtered or unexported fields
}

func NewSeriesObject

func NewSeriesObject(Type string) *SeriesObject

func (*SeriesObject) MarshalJSON

func (d *SeriesObject) MarshalJSON() ([]byte, error)

func (*SeriesObject) SetAttr

func (d *SeriesObject) SetAttr(key string, value interface{})

type TimeValues

type TimeValues struct {
	// contains filtered or unexported fields
}

func NewTimeValues

func NewTimeValues() *TimeValues

func (*TimeValues) AddData

func (tv *TimeValues) AddData(time int64, value interface{})

func (*TimeValues) MarshalJSON

func (tv *TimeValues) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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