Versions in this module Expand all Collapse all v0 v0.5.0 May 19, 2024 Changes in this version type Renderer + func (r *Renderer) CreatePlotly(dir string) error + func (r *Renderer) WritePlotly(w io.Writer) error v0.4.0 Jun 20, 2021 Changes in this version + var MetaKeys = []MetaKey + func UnmarshalRole(obj json.RawMessage, role *Role) error + type Attribute struct + Anim bool + ArrayOK bool + Attributes map[string]*Attribute + Description string + Dflt interface{} + EditType string + Extras []interface{} + Flags []string + Items map[string]*Attribute + Max json.Number + Min json.Number + Name string + Parent *Attribute + Role Role + ValType ValType + Values []interface{} + func (attr *Attribute) String() string + type ConfigAttributes struct + Names map[string]*Attribute + func (attr *ConfigAttributes) UnmarshalJSON(b []byte) error + type Creator interface + Create func(name string) (io.WriteCloser, error) + type Defs struct + MetaKeys []string + ValObjects map[string]*ValObject + type Layout struct + LayoutAttributes LayoutAttributes + type LayoutAttributes struct + Names map[string]*Attribute + func (attr *LayoutAttributes) UnmarshalJSON(b []byte) error + type Meta struct + Description string + type MetaKey string + type Renderer struct + func NewRenderer(fs Creator, root *Root) (*Renderer, error) + func (r *Renderer) CreateConfig(dir string) error + func (r *Renderer) CreateLayout(dir string) error + func (r *Renderer) CreateTrace(dir string, name string) error + func (r *Renderer) CreateTraces(dir string) error + func (r *Renderer) CreateUnmarshal(dir string) error + func (r *Renderer) WriteConfig(w io.Writer) error + func (r *Renderer) WriteLayout(w io.Writer) error + func (r *Renderer) WriteTrace(traceName string, w io.Writer) error + func (r *Renderer) WriteUnmarshal(w io.Writer) error + type Role string + const RoleData + const RoleInfo + const RoleObject + const RoleStyle + type Root struct + Modified bool + SHA1 string + Schema *Schema + func LoadSchema(r io.Reader) (*Root, error) + type Schema struct + Config *ConfigAttributes + Defs *Defs + Layout Layout + Traces Traces + type Trace struct + Animatable bool + Attributes TraceAttributes + LayoutAttributes LayoutAttributes + Meta *Meta + Type string + type TraceAttributes struct + Names map[string]*Attribute + Type string + func (attr *TraceAttributes) Sorted() []string + func (attr *TraceAttributes) UnmarshalJSON(b []byte) error + type Traces map[string]*Trace + type ValObject struct + Description string + OtherOpts []string + RequiredOpts []string + type ValType string + const ValTypeAngle + const ValTypeAny + const ValTypeBoolean + const ValTypeColor + const ValTypeColorlist + const ValTypeColorscale + const ValTypeDataArray + const ValTypeEnum + const ValTypeFlagList + const ValTypeInfoArray + const ValTypeInteger + const ValTypeNumber + const ValTypeString + const ValTypeSubplotID