viz

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BarChart

type BarChart struct {
	// contains filtered or unexported fields
}

func NewBarChart

func NewBarChart(title, subtitle string, xAxis []string, series []BarSeries) *BarChart

NewBarChart creates a new bar chart with the given title, subtitle, x-axis labels, and series

func (*BarChart) Render

func (bc *BarChart) Render(file string)

Render renders the bar chart to the given file

type BarSeries

type BarSeries struct {
	// contains filtered or unexported fields
}

func BenchmarkToBarSeries

func BenchmarkToBarSeries(bench benchmark.Benchmark) BarSeries

BenchmarkToBarSeries converts a benchmark to a bar series

func NewBarSeries

func NewBarSeries(name string, items []opts.BarData) BarSeries

NewBarSeries creates a new bar series with the given name and items

type LineChart

type LineChart struct {
	// contains filtered or unexported fields
}

func NewLineChart

func NewLineChart(title, subtitle string, xAxis []string, series []LineSeries) *LineChart

NewLineChart creates a new line chart with the given title, subtitle, x-axis labels, and series

func (*LineChart) Render

func (lc *LineChart) Render(file string)

Render renders the line chart to the given file

type LineSeries

type LineSeries struct {
	// contains filtered or unexported fields
}

func BenchmarkToLineSeries

func BenchmarkToLineSeries(bench benchmark.Benchmark) LineSeries

BenchmarkToLineSeries converts a benchmark to a line series

func NewLineSeries

func NewLineSeries(name string, items []opts.LineData) LineSeries

NewLineSeries creates a new line series with the given name and items

type Viz

type Viz interface {
	Render(file string)
}

Jump to

Keyboard shortcuts

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