Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Figure ¶
type Figure struct { Data []map[string]any // slice of maps containing data for each trace Layout *map[string]any // optional map for defining the plot's layout }
func NewFigure ¶
NewFigure takes in a slice of maps. Each map is a trace for rendering and returns a pointer to the Figure object with a `nil` layout Figures with `nil` layout will have a `height` attribute assigned in JavaScript equal to available screen height / 1.25
func NewFigureWithLayout ¶
NewFigureWithLayout takes in a slice of maps for trace data, and a map defining the plots layout.
Click to show internal directories.
Click to hide internal directories.