tables

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const StyleSimple = "border:1px solid #000;border-collapse:collapse"

Variables

This section is empty.

Functions

func DataRowsToTableRows

func DataRowsToTableRows(rep []sts.RowInt64, axis []string, addQoQPct, addFunnelPct bool, countLabel, qoqLabel, funnelLabel string) ([][]string, []sts.RowFloat64, []sts.RowFloat64)

DataRowsToTableRows Builds rows from the output of statictimeseries.Report, array of []statictimeseries.RowInt64.

func FunnelDataToChart

func FunnelDataToChart(domId string, axis c3.C3Axis, funnelData []sts.RowFloat64) c3.C3Chart

func QoqDataToChart

func QoqDataToChart(domId string, axis c3.C3Axis, qoqData []sts.RowFloat64) c3.C3Chart

func SimpleTable

func SimpleTable(table TableData) string

func StreamSimpleTable

func StreamSimpleTable(qw422016 *qt422016.Writer, table TableData)

func WriteSimpleTable

func WriteSimpleTable(qq422016 qtio422016.Writer, table TableData)

Types

type TableData

type TableData struct {
	Id    string
	Style string // border:1px solid #000;border-collapse:collapse
	Rows  [][]string
}

TableData is used to hold generic, simple table data to be generated by a template using `SimpleTable`. Use with `DataRowsToTableRows` to convert output from `statictimeseries.Report` and `statictimeseries.ReportAxisX`. This is used in the C3 Bar Chart example.

Directories

Path Synopsis
examples
simple command

Jump to

Keyboard shortcuts

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