We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff317fc commit 9b53a2aCopy full SHA for 9b53a2a
graph_objects/plotly.go
@@ -12,6 +12,10 @@ type Fig struct {
12
Config *Config `json:"config,omitempty"`
13
}
14
15
+func (fig *Fig) AddTraces(traces ...Trace) {
16
+ fig.Data = append(fig.Data, traces...)
17
+}
18
+
19
// This section is to workaround the omitempty for json serialization.
20
21
type Bool *bool
graph_objects/plotly.tmpl
@@ -14,6 +14,9 @@ type Fig struct {
22
0 commit comments