charts

package
v0.19.25 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chart

type Chart struct {
	Title    string
	Subtitle string
	Legend   []string
	XAxis    Series
	YAxis    Series
	Series   []Series
}

func MakeChart

func MakeChart(cfg ChartConfig, cols []string, transposed [][]string) (*Chart, error)

func (Chart) ToEcharts

func (c Chart) ToEcharts() (string, error)

type ChartConfig

type ChartConfig struct {
	Title      string
	Subtitle   string
	W, H       int
	Background color.Color
	Type       string
	Prec       int

	File string
}

func ParseArgs

func ParseArgs(opts map[string]string) (ChartConfig, error)

type Series

type Series struct {
	Name string
	Type string
	Data any
}

Jump to

Keyboard shortcuts

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