options

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: GPL-2.0 Imports: 0 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GraphOptions

type GraphOptions struct {
	WidthPX  int
	HeightPX int
	// Graph Type
	Type GraphTypes
	// Title of the graph
	GraphTitle string
	// Labels for each bar
	Labels []string
	// Values must be a number type!
	Values []any
	// Colors for each bar
	Colors                 []string
	BackgroundColors       []string
	GraphBackgroundOpacity float64 // 0.0 - 1.0, background opacity of the bars/lines/dots/...
	GraphBorder            bool    // Border around the bars/lines/dots/...
	ShowResults            bool    // Show the results on the graph
}

type GraphTypes

type GraphTypes int
const (
	Bar GraphTypes = iota
	Line
	Pie
	Donut
)

Jump to

Keyboard shortcuts

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