dataviz

package
v0.9.19 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpTrace

func DumpTrace(traces []xvm.Trace, g *gorgonia.ExprGraph, w io.Writer) error

DumpTrace suitable for https://github.com/vasturiano/timelines-chart

Example
g := gorgonia.NewGraph()
// Add elements
ctx, traceC := xvm.WithTracing(context.Background())
defer xvm.CloseTracing(ctx)
traces := make([]xvm.Trace, 0)
go func() {
	for v := range traceC {
		traces = append(traces, v)
	}
}()
machine := xvm.NewMachine(g)
err := machine.Run(ctx)
if err != nil {
	log.Fatal(err)
}
machine.Close()
DumpTrace(traces, g, os.Stdout)
Output:

Types

This section is empty.

Jump to

Keyboard shortcuts

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