Documentation ¶
Index ¶
- func AsFloat(value interface{}) float64
- func Bar3D(keys []int, dates []string, graphStyle graphStyle, columns []string, ...) *charts.Bar3D
- func BatchFileToGraph(batchFile string, configFile string) error
- func GenerateGraph(page *components.Page, graphType GraphDefinition, theme, dateformat string, ...) *components.Page
- func HandleColumnViewOperation(operationDefinition OperationDefinition, columnValues [][]interface{}) []interface{}
- func HermesCsvToGraph(inputFile string, config *Config, outputFile string) error
- func MakePage() *components.Page
- func MultiFileToGraph(inputFiles []string, config *Config, outputFile string) error
- func MultiplyColumnValues(columnValues []interface{}, factor float64) []interface{}
- func ReadFileData(inputFile string, config Config) (map[string][]interface{}, map[string]int, error)
- func SavePage(page *components.Page, outfile string) error
- func WriteDefaultConfigFile(configFile string) error
- type Config
- type GraphDefinition
- type OperationDefinition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BatchFileToGraph ¶
func GenerateGraph ¶
func GenerateGraph(page *components.Page, graphType GraphDefinition, theme, dateformat string, values [][]interface{}) *components.Page
graph generation
func HandleColumnViewOperation ¶
func HandleColumnViewOperation(operationDefinition OperationDefinition, columnValues [][]interface{}) []interface{}
func HermesCsvToGraph ¶
HermesCsvToGraph reads the hermes simulation output file and generates graphs as defined in the config file
func MultiFileToGraph ¶
func MultiplyColumnValues ¶
func MultiplyColumnValues(columnValues []interface{}, factor float64) []interface{}
func ReadFileData ¶
func SavePage ¶
func SavePage(page *components.Page, outfile string) error
SavePage saves the web page to a file
func WriteDefaultConfigFile ¶
write default config file
Types ¶
type Config ¶
type Config struct { // type of input file InputType string // number of header lines in the input file NumHeader int // date format of the input file DateFormat string `yaml:",omitempty"` // delimiter of the input file (e.g. tab, comma, space) Delimiter string // theme of the graph Theme string `yaml:",omitempty"` // selected names of the columns ColumnToGraph map[string]GraphDefinition // multiple files to be plotted MultiFiles bool `yaml:",omitempty"` }
func ReadConfigFile ¶
type GraphDefinition ¶
type GraphDefinition struct { // type of the graph GraphType string // title of the graph Title string // names of the columns to be plotted Columns []string // name of Date column DateColumn string // operation to be applied to the columns ColumnView []OperationDefinition `yaml:",omitempty"` }
type OperationDefinition ¶
type OperationDefinition struct { // type of the operation // OperationType string Operation string // name of the column to be operated Name string // multiply factor Multiply float64 `yaml:",omitempty"` // names of the columns to affected by the operation Columns []string // operation parameters Parameters map[string]interface{} `yaml:",omitempty"` }
Click to show internal directories.
Click to hide internal directories.