google

package
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func LineChartMaterialPage

func LineChartMaterialPage(data LineChartMaterial) string

func StreamLineChartMaterialPage

func StreamLineChartMaterialPage(qw422016 *qt422016.Writer, data LineChartMaterial)

func WriteLineChartMaterialPage

func WriteLineChartMaterialPage(qq422016 qtio422016.Writer, data LineChartMaterial)

Types

type Column

type Column struct {
	Type string
	Name string
}

type LineChartMaterial

type LineChartMaterial struct {
	Title    string
	Subtitle string
	ChartDiv string
	Width    int
	Height   int
	Columns  []Column
	Data     [][]any
}

LineChartMaterial provides data for Google Material Line Charts described here: https://developers.google.com/chart/interactive/docs/gallery/linechart#examples

func LineChartMaterialFromTimeSeriesSet added in v2.7.1

func LineChartMaterialFromTimeSeriesSet(tss timeseries.TimeSeriesSet, yearLabel string) (LineChartMaterial, error)

func (*LineChartMaterial) ChartDivOrDefault

func (lcm *LineChartMaterial) ChartDivOrDefault() string

func (*LineChartMaterial) DataMatrixJSON

func (lcm *LineChartMaterial) DataMatrixJSON() []byte

func (*LineChartMaterial) HeightOrDefault

func (lcm *LineChartMaterial) HeightOrDefault() int

func (*LineChartMaterial) WidthOrDefault

func (lcm *LineChartMaterial) WidthOrDefault() int

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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