chart

package
v0.0.0-...-9ac2298 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBarChart

func CreateBarChart(options *BarChartOpts)

func CreateLineChart

func CreateLineChart(options *LineChartOpts)

func CreatePieChart

func CreatePieChart(options *PieChartOpts)

Types

type BarChartItem

type BarChartItem struct {
	Name   string
	Values []float64
}

type BarChartOpts

type BarChartOpts struct {
	Output   string
	Title    string
	Subtitle string
	XAxis    []string
	Items    []BarChartItem
}

type LineChartItem

type LineChartItem struct {
	Name   string
	Values []float64
}

type LineChartOpts

type LineChartOpts struct {
	Output   string
	Title    string
	Subtitle string
	XAxis    []string
	Items    []LineChartItem
}

type PieChartItem

type PieChartItem struct {
	Name   string
	Values float64
}

type PieChartOpts

type PieChartOpts struct {
	Output    string
	Title     string
	Subtitle  string
	Radius    float64
	Format    string
	ShowLabel bool
	Items     []PieChartItem
}

Jump to

Keyboard shortcuts

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