Documentation
¶
Index ¶
- Constants
- func DataRowsToTableRows(rep []sts.RowInt64, axis []string, addQoQPct, addFunnelPct bool, ...) ([][]string, []sts.RowFloat64, []sts.RowFloat64)
- func FunnelDataToChart(domId string, axis c3.C3Axis, funnelData []sts.RowFloat64) c3.C3Chart
- func QoqDataToChart(domId string, axis c3.C3Axis, qoqData []sts.RowFloat64) c3.C3Chart
- func SimpleTable(table TableData) string
- func StreamSimpleTable(qw422016 *qt422016.Writer, table TableData)
- func WriteSimpleTable(qq422016 qtio422016.Writer, table TableData)
- type TableData
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 QoqDataToChart ¶
func SimpleTable ¶
func StreamSimpleTable ¶
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.
Click to show internal directories.
Click to hide internal directories.