chart

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Charts = map[string]*Chart{}

Charts 已载入图表

Functions

func Load

func Load(cfg config.Config) error

Load 加载数据表格

func LoadBuildIn

func LoadBuildIn(dir string, prefix string) error

LoadBuildIn 从制品中读取

func LoadFrom

func LoadFrom(dir string, prefix string) error

LoadFrom 从特定目录加载

func ProcessData

func ProcessData(process *gou.Process) interface{}

ProcessData xiang.chart.data 查询数据分析图表中定义的数据

func ProcessSetting

func ProcessSetting(process *gou.Process) interface{}

ProcessSetting xiang.chart.setting 查询数据分析图表中定义的数据

Types

type Chart

type Chart struct {
	gou.Flow
	APIs    map[string]share.API    `json:"apis,omitempty"`
	Filters map[string]share.Filter `json:"filters,omitempty"`
	Page    share.Page              `json:"page,omitempty"`
}

Chart 图表格式

func LoadChart

func LoadChart(source []byte, name string) (*Chart, error)

LoadChart 载入数据表格

func Select

func Select(name string) *Chart

Select 读取已加载图表

func (Chart) GetData

func (chart Chart) GetData(params map[string]interface{}) interface{}

GetData 运行 flow 返回数值

func (*Chart) SetupAPIs

func (chart *Chart) SetupAPIs()

SetupAPIs 设定API数据

Jump to

Keyboard shortcuts

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