google

package
v2.20.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	TypeNumber = "number"
	TypeString = "string"
)
View Source
const (
	DefaultWidth    = 900
	DefaultHeight   = 500
	DefaultChartDiv = "chart_div"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Chart added in v2.19.6

type Chart interface {
	PageTitle() string
	ChartDivOrDefault() string
	DataTableJSON() []byte
	OptionsJSON() []byte
	WriteFilePage(filename string, perm os.FileMode) error
}

type Column

type Column struct {
	Type string
	Name string
}

type Columns added in v2.19.0

type Columns []Column

func (Columns) Names added in v2.19.0

func (cols Columns) Names() []string

func (Columns) NamesAny added in v2.19.0

func (cols Columns) NamesAny() []any

type DataTable added in v2.19.6

type DataTable [][]any

func DataTableFromHistogram added in v2.20.0

func DataTableFromHistogram(h *histogram.Histogram, inclUnordered, inclZeroCount, inclZeroCountTail bool) (DataTable, error)

DataTableFromHistogram is tested with barchart.

func DataTableFromTimeSeriesSet added in v2.20.0

func DataTableFromTimeSeriesSet(name string, sets []string, set timeseries.TimeSeriesSet) (DataTable, error)

func (DataTable) MustJSON added in v2.19.6

func (dt DataTable) MustJSON() []byte

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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