Documentation ¶
Index ¶
- func DrawGraphs(xfile string)
- func GetFloatColumn(rows [][]string, columnindex int, offset int) []float64
- type Chart
- type Exporter
- type Importer
- type LineChart
- func (l *LineChart) AddValues(values []float64, legend string) int
- func (l *LineChart) Legend() []string
- func (l *LineChart) SetYAxisR(values []float64, title string)
- func (l *LineChart) ValueMatrix() [][]float64
- func (l *LineChart) Values(i int) []float64
- func (l *LineChart) Xaxis() []float64
- func (l *LineChart) Xlegend() string
- func (l *LineChart) YaxisL() []float64
- func (l *LineChart) YaxisR() []float64
- func (l *LineChart) YlegendL() string
- func (l *LineChart) YlegendR() string
- type Session
- type Set
- type Visualizer
- type XlsxImporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Chart ¶
type Chart interface { Xaxis() []float64 Yaxis() []float64 Xlegend() string Ylegend() string Values() []float64 Legend() []string }
Chart represents each graph build of a coodinates system and (possibly multiple) data lines.
type Exporter ¶
type Exporter interface {
Generate(session Session)
}
Exporter export the internal object model to different data format. E.g. PDF, HTML, CSV ...
type LineChart ¶
type LineChart struct {
// contains filtered or unexported fields
}
LineChart is a diagram with one or more data lines.
func NewLineChart ¶
NewLineChart is the constructor for LineChart.
func (*LineChart) AddValues ¶
AddValues adds a new dataset (line) and its legend to the chart. It returns the index of the added dataset.
func (*LineChart) ValueMatrix ¶
ValueMatrix retrieves the values of the line plots.
type Session ¶
type Session interface { Config() tools.CommonConfig Read() Session Generate() }
A Session represents a list of configurations of graphs to be generated
type Set ¶
type Set struct {
// contains filtered or unexported fields
}
A Set represents a set of data on the chart, probably a line.
type Visualizer ¶
type Visualizer struct {
// contains filtered or unexported fields
}
A Visualizer renders controls the generation of a set of graphs.
func NewVisualizer ¶
func NewVisualizer() *Visualizer
NewVisualizer constructs a new object of type Visualizer.
type XlsxImporter ¶
type XlsxImporter struct { }
XlsxImporter is
func NewXlsxImporter ¶
func NewXlsxImporter() *XlsxImporter
NewXlsxImporter is a constructor for the struct XlsxImporter.
func (XlsxImporter) Read ¶
func (x XlsxImporter) Read(s Session)