common

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

Documentation

Index

Constants

View Source
const (
	ScenarioKeyTestDashboard = "test-dashboard"
)

Variables

This section is empty.

Functions

func NewBarProps

func NewBarProps(values []int64, categories []string, title, xFormatter string) cptype.ComponentProps

Types

type BarProps

type BarProps struct {
	ChartType string `json:"chartType"`
	Option    Option `json:"option"`
	Title     string `json:"title"`
}

type Data

type Data struct {
	Operations map[string]interface{} `json:"operations"`
	Value      int64                  `json:"value"`
}

type DataZoom

type DataZoom struct {
	EndValue       int64  `json:"endValue"`
	HandleSize     int64  `json:"handleSize"`
	Orient         string `json:"orient"`
	ShowDataShadow bool   `json:"showDataShadow"`
	ShowDetail     bool   `json:"showDetail"`
	StartValue     int64  `json:"startValue"`
	Throttle       int64  `json:"throttle"`
	Type           string `json:"type"`
	Width          int64  `json:"width"`
	ZoomLock       bool   `json:"zoomLock"`
}

type Grid

type Grid struct {
	Right int64 `json:"right"`
}

type Label

type Label struct {
	Show bool `json:"show"`
}

type Option

type Option struct {
	Animation bool                   `json:"animation"`
	DataZoom  []DataZoom             `json:"dataZoom"`
	Grid      Grid                   `json:"grid"`
	Series    []Series               `json:"series"`
	XAxis     []XAxis                `json:"xAxis"`
	YAxis     []YAxis                `json:"yAxis"`
	Style     map[string]interface{} `json:"style"`
}

type Series

type Series struct {
	Data  []Data                 `json:"data"`
	Label map[string]interface{} `json:"label"`
}

type Tooltip

type Tooltip struct {
	Show    bool   `json:"show"`
	Trigger string `json:"trigger"`
}

type XAxis

type XAxis struct {
	Type      string                 `json:"type"`
	AxisLabel map[string]interface{} `json:"axisLabel"`
}

type YAxis

type YAxis struct {
	Type      string                 `json:"type"`
	Data      []string               `json:"data"`
	Inverse   bool                   `json:"inverse"`
	AxisLabel map[string]interface{} `json:"axisLabel"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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