From b5698144d9ccbee5f18ce2b5c2dd1dd08b1f3bf4 Mon Sep 17 00:00:00 2001 From: metalblueberry Date: Sun, 19 May 2024 17:40:20 +0200 Subject: [PATCH 01/17] Try to implement arrayok types --- examples/scatter/main.go | 6 +++ graph_objects/scatter_gen.go | 6 ++- types/arrayok.go | 32 +++++++++++ types/arrayok_test.go | 101 +++++++++++++++++++++++++++++++++++ 4 files changed, 144 insertions(+), 1 deletion(-) create mode 100644 types/arrayok.go create mode 100644 types/arrayok_test.go diff --git a/examples/scatter/main.go b/examples/scatter/main.go index 6ae717c..c116a49 100644 --- a/examples/scatter/main.go +++ b/examples/scatter/main.go @@ -5,6 +5,7 @@ import ( grob "github.com/MetalBlueberry/go-plotly/graph_objects" "github.com/MetalBlueberry/go-plotly/offline" + "github.com/MetalBlueberry/go-plotly/types" ) func main() { @@ -30,6 +31,11 @@ func main() { X: t, Y: y, Mode: grob.ScatterModeMarkers, + Marker: &grob.ScatterMarker{ + Size: types.ArrayOKfloat64{ + Value: 12, + }, + }, }, }, } diff --git a/graph_objects/scatter_gen.go b/graph_objects/scatter_gen.go index 4c0f8dd..1ee1b22 100644 --- a/graph_objects/scatter_gen.go +++ b/graph_objects/scatter_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types" +) + var TraceTypeScatter TraceType = "scatter" func (trace *Scatter) GetType() TraceType { @@ -1247,7 +1251,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size types.ArrayOKfloat64 `json:"size,omitempty"` // Sizemin // arrayOK: false diff --git a/types/arrayok.go b/types/arrayok.go new file mode 100644 index 0000000..867645e --- /dev/null +++ b/types/arrayok.go @@ -0,0 +1,32 @@ +package types + +import "encoding/json" + +type ArrayOKfloat64 struct { + Value float64 + Array []float64 +} + +func (arrayOK *ArrayOKfloat64) MarshalJSON() ([]byte, error) { + if arrayOK.Array != nil { + return json.Marshal(arrayOK.Array) + } + return json.Marshal(arrayOK.Value) +} + +func (arrayOK *ArrayOKfloat64) UnmarshalJSON(data []byte) error { + var array []float64 + err := json.Unmarshal(data, &array) + if err != nil { + var value float64 + err := json.Unmarshal(data, &value) + if err != nil { + return err + } + arrayOK.Value = value + return nil + } + arrayOK.Array = array + return nil + +} diff --git a/types/arrayok_test.go b/types/arrayok_test.go new file mode 100644 index 0000000..6462376 --- /dev/null +++ b/types/arrayok_test.go @@ -0,0 +1,101 @@ +package types_test + +import ( + "encoding/json" + "testing" + + "github.com/MetalBlueberry/go-plotly/types" + . "github.com/onsi/gomega" +) + +type TestMarshallScenario struct { + Name string + Input types.ArrayOKfloat64 + Expected string +} + +func TestTypes(t *testing.T) { +} + +func TestFloat64Marshal(t *testing.T) { + RegisterTestingT(t) + + table := []TestMarshallScenario{ + { + Name: "A single number", + Input: types.ArrayOKfloat64{ + Value: 12.3, + }, + Expected: "12.3", + }, + { + Name: "A single number in a list", + Input: types.ArrayOKfloat64{ + Array: []float64{12.3}, + }, + Expected: "[12.3]", + }, + { + Name: "Multiple values", + Input: types.ArrayOKfloat64{ + Array: []float64{1, 2, 3, 4.5}, + }, + Expected: "[1,2,3,4.5]", + }, + } + for _, tt := range table { + t.Run(tt.Name, func(t *testing.T) { + result, err := json.Marshal(tt.Input) + Expect(err).To(BeNil()) + Expect(string(result)).To(Equal(tt.Expected)) + + }) + + } + +} + +type TestUnmarshallScenario struct { + Name string + Input string + Expected types.ArrayOKfloat64 +} + +func TestFloat64Unmarshal(t *testing.T) { + RegisterTestingT(t) + + table := []TestUnmarshallScenario{ + { + Name: "A single number", + Input: "12.3", + Expected: types.ArrayOKfloat64{ + Value: 12.3, + }, + }, + { + Name: "A single number in a list", + Input: "[12.3]", + Expected: types.ArrayOKfloat64{ + Array: []float64{12.3}, + }, + }, + { + Name: "Multiple values", + Input: "[1,2,3,4.5]", + Expected: types.ArrayOKfloat64{ + Array: []float64{1, 2, 3, 4.5}, + }, + }, + } + for _, tt := range table { + t.Run(tt.Name, func(t *testing.T) { + result := types.ArrayOKfloat64{} + err := json.Unmarshal([]byte(tt.Input), &result) + Expect(err).To(BeNil()) + Expect(result).To(Equal(tt.Expected)) + + }) + + } + +} From c7622dba21feef846a5d72d209a1bc37ab7ade88 Mon Sep 17 00:00:00 2001 From: metalblueberry Date: Sun, 19 May 2024 17:48:06 +0200 Subject: [PATCH 02/17] Cleanup --- types/arrayok.go | 21 +++++++++++++-------- types/arrayok_test.go | 5 +---- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/types/arrayok.go b/types/arrayok.go index 867645e..a15c22d 100644 --- a/types/arrayok.go +++ b/types/arrayok.go @@ -15,18 +15,23 @@ func (arrayOK *ArrayOKfloat64) MarshalJSON() ([]byte, error) { } func (arrayOK *ArrayOKfloat64) UnmarshalJSON(data []byte) error { + arrayOK.Array = nil + arrayOK.Value = 0 + var array []float64 err := json.Unmarshal(data, &array) - if err != nil { - var value float64 - err := json.Unmarshal(data, &value) - if err != nil { - return err - } - arrayOK.Value = value + if err == nil { + arrayOK.Array = array return nil } - arrayOK.Array = array + + var value float64 + err = json.Unmarshal(data, &value) + if err != nil { + return err + } + arrayOK.Value = value + return nil return nil } diff --git a/types/arrayok_test.go b/types/arrayok_test.go index 6462376..22f96be 100644 --- a/types/arrayok_test.go +++ b/types/arrayok_test.go @@ -14,9 +14,6 @@ type TestMarshallScenario struct { Expected string } -func TestTypes(t *testing.T) { -} - func TestFloat64Marshal(t *testing.T) { RegisterTestingT(t) @@ -45,7 +42,7 @@ func TestFloat64Marshal(t *testing.T) { } for _, tt := range table { t.Run(tt.Name, func(t *testing.T) { - result, err := json.Marshal(tt.Input) + result, err := json.Marshal(&tt.Input) Expect(err).To(BeNil()) Expect(string(result)).To(Equal(tt.Expected)) From 7e935393367bacb96441ad4953ab4c1e29ce54ae Mon Sep 17 00:00:00 2001 From: metalblueberry Date: Tue, 21 May 2024 23:07:50 +0200 Subject: [PATCH 03/17] use generics --- types/arrayok.go | 57 ++++++++++++++++++++++--------------------- types/arrayok_test.go | 18 +++++++------- 2 files changed, 38 insertions(+), 37 deletions(-) diff --git a/types/arrayok.go b/types/arrayok.go index a15c22d..ca3578b 100644 --- a/types/arrayok.go +++ b/types/arrayok.go @@ -1,37 +1,38 @@ package types -import "encoding/json" +import ( + "encoding/json" + "reflect" +) -type ArrayOKfloat64 struct { - Value float64 - Array []float64 +type ArrayOK[T any] struct { + Value T + Array []T } -func (arrayOK *ArrayOKfloat64) MarshalJSON() ([]byte, error) { - if arrayOK.Array != nil { - return json.Marshal(arrayOK.Array) - } - return json.Marshal(arrayOK.Value) +func (arrayOK *ArrayOK[T]) MarshalJSON() ([]byte, error) { + if arrayOK.Array!= nil { + return json.Marshal(arrayOK.Array) + } + return json.Marshal(arrayOK.Value) } -func (arrayOK *ArrayOKfloat64) UnmarshalJSON(data []byte) error { - arrayOK.Array = nil - arrayOK.Value = 0 +func (arrayOK *ArrayOK[T]) UnmarshalJSON(data []byte) error { + arrayOK.Array = nil + arrayOK.Value = reflect.Zero(reflect.TypeOf(arrayOK.Value)).Interface().(T) - var array []float64 - err := json.Unmarshal(data, &array) - if err == nil { - arrayOK.Array = array - return nil - } + var array []T + err := json.Unmarshal(data, &array) + if err == nil { + arrayOK.Array = array + return nil + } - var value float64 - err = json.Unmarshal(data, &value) - if err != nil { - return err - } - arrayOK.Value = value - return nil - return nil - -} + var value T + err = json.Unmarshal(data, &value) + if err!= nil { + return err + } + arrayOK.Value = value + return nil +} \ No newline at end of file diff --git a/types/arrayok_test.go b/types/arrayok_test.go index 22f96be..bd06f4c 100644 --- a/types/arrayok_test.go +++ b/types/arrayok_test.go @@ -10,7 +10,7 @@ import ( type TestMarshallScenario struct { Name string - Input types.ArrayOKfloat64 + Input types.ArrayOK[float64] Expected string } @@ -20,21 +20,21 @@ func TestFloat64Marshal(t *testing.T) { table := []TestMarshallScenario{ { Name: "A single number", - Input: types.ArrayOKfloat64{ + Input: types.ArrayOK[float64]{ Value: 12.3, }, Expected: "12.3", }, { Name: "A single number in a list", - Input: types.ArrayOKfloat64{ + Input: types.ArrayOK[float64]{ Array: []float64{12.3}, }, Expected: "[12.3]", }, { Name: "Multiple values", - Input: types.ArrayOKfloat64{ + Input: types.ArrayOK[float64]{ Array: []float64{1, 2, 3, 4.5}, }, Expected: "[1,2,3,4.5]", @@ -55,7 +55,7 @@ func TestFloat64Marshal(t *testing.T) { type TestUnmarshallScenario struct { Name string Input string - Expected types.ArrayOKfloat64 + Expected types.ArrayOK[float64] } func TestFloat64Unmarshal(t *testing.T) { @@ -65,28 +65,28 @@ func TestFloat64Unmarshal(t *testing.T) { { Name: "A single number", Input: "12.3", - Expected: types.ArrayOKfloat64{ + Expected: types.ArrayOK[float64]{ Value: 12.3, }, }, { Name: "A single number in a list", Input: "[12.3]", - Expected: types.ArrayOKfloat64{ + Expected: types.ArrayOK[float64]{ Array: []float64{12.3}, }, }, { Name: "Multiple values", Input: "[1,2,3,4.5]", - Expected: types.ArrayOKfloat64{ + Expected: types.ArrayOK[float64]{ Array: []float64{1, 2, 3, 4.5}, }, }, } for _, tt := range table { t.Run(tt.Name, func(t *testing.T) { - result := types.ArrayOKfloat64{} + result := types.ArrayOK[float64]{} err := json.Unmarshal([]byte(tt.Input), &result) Expect(err).To(BeNil()) Expect(result).To(Equal(tt.Expected)) From 6a6d9b3bce03eb7a6d57515592be8ab8d7edf6df Mon Sep 17 00:00:00 2001 From: metalblueberry Date: Tue, 21 May 2024 23:16:26 +0200 Subject: [PATCH 04/17] add string test cases --- types/arrayok_test.go | 89 ++++++++++++++++++++++++++++++++++++++----- 1 file changed, 79 insertions(+), 10 deletions(-) diff --git a/types/arrayok_test.go b/types/arrayok_test.go index bd06f4c..bd42e5e 100644 --- a/types/arrayok_test.go +++ b/types/arrayok_test.go @@ -8,16 +8,16 @@ import ( . "github.com/onsi/gomega" ) -type TestMarshallScenario struct { +type TestMarshallScenario[T any] struct { Name string - Input types.ArrayOK[float64] + Input types.ArrayOK[T] Expected string } func TestFloat64Marshal(t *testing.T) { RegisterTestingT(t) - table := []TestMarshallScenario{ + scenarios := []TestMarshallScenario[float64]{ { Name: "A single number", Input: types.ArrayOK[float64]{ @@ -40,28 +40,62 @@ func TestFloat64Marshal(t *testing.T) { Expected: "[1,2,3,4.5]", }, } - for _, tt := range table { + + for _, tt := range scenarios { t.Run(tt.Name, func(t *testing.T) { result, err := json.Marshal(&tt.Input) Expect(err).To(BeNil()) Expect(string(result)).To(Equal(tt.Expected)) - }) + } +} + +func TestStringMarshal(t *testing.T) { + RegisterTestingT(t) + scenarios := []TestMarshallScenario[string]{ + { + Name: "A single string", + Input: types.ArrayOK[string]{ + Value: "hello", + }, + Expected: `"hello"`, + }, + { + Name: "A single string in a list", + Input: types.ArrayOK[string]{ + Array: []string{"hello"}, + }, + Expected: `["hello"]`, + }, + { + Name: "Multiple strings", + Input: types.ArrayOK[string]{ + Array: []string{"hello", "world", "foo", "bar"}, + }, + Expected: `["hello","world","foo","bar"]`, + }, } + for _, tt := range scenarios { + t.Run(tt.Name, func(t *testing.T) { + result, err := json.Marshal(&tt.Input) + Expect(err).To(BeNil()) + Expect(string(result)).To(Equal(tt.Expected)) + }) + } } -type TestUnmarshallScenario struct { +type TestUnmarshallScenario[T any] struct { Name string Input string - Expected types.ArrayOK[float64] + Expected types.ArrayOK[T] } func TestFloat64Unmarshal(t *testing.T) { RegisterTestingT(t) - table := []TestUnmarshallScenario{ + scenarios := []TestUnmarshallScenario[float64]{ { Name: "A single number", Input: "12.3", @@ -84,15 +118,50 @@ func TestFloat64Unmarshal(t *testing.T) { }, }, } - for _, tt := range table { + + for _, tt := range scenarios { t.Run(tt.Name, func(t *testing.T) { result := types.ArrayOK[float64]{} err := json.Unmarshal([]byte(tt.Input), &result) Expect(err).To(BeNil()) Expect(result).To(Equal(tt.Expected)) - }) + } +} + +func TestStringUnmarshal(t *testing.T) { + RegisterTestingT(t) + scenarios := []TestUnmarshallScenario[string]{ + { + Name: "A single string", + Input: `"hello"`, + Expected: types.ArrayOK[string]{ + Value: "hello", + }, + }, + { + Name: "A single string in a list", + Input: `["hello"]`, + Expected: types.ArrayOK[string]{ + Array: []string{"hello"}, + }, + }, + { + Name: "Multiple strings", + Input: `["hello","world","foo","bar"]`, + Expected: types.ArrayOK[string]{ + Array: []string{"hello", "world", "foo", "bar"}, + }, + }, } + for _, tt := range scenarios { + t.Run(tt.Name, func(t *testing.T) { + result := types.ArrayOK[string]{} + err := json.Unmarshal([]byte(tt.Input), &result) + Expect(err).To(BeNil()) + Expect(result).To(Equal(tt.Expected)) + }) + } } From 4012c505b77a851e019cbbb09b83d00a5ef9868b Mon Sep 17 00:00:00 2001 From: metalblueberry Date: Wed, 22 May 2024 22:52:49 +0200 Subject: [PATCH 05/17] add example with a custom struct --- types/arrayok_test.go | 87 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/types/arrayok_test.go b/types/arrayok_test.go index bd42e5e..207f597 100644 --- a/types/arrayok_test.go +++ b/types/arrayok_test.go @@ -165,3 +165,90 @@ func TestStringUnmarshal(t *testing.T) { }) } } + +type Color struct { + Red int `json:"red"` + Green int `json:"green"` + Blue int `json:"blue"` +} + +func TestColorUnmarshal(t *testing.T) { + RegisterTestingT(t) + + scenarios := []TestUnmarshallScenario[Color]{ + { + Name: "A single color", + Input: `{"red": 255, "green": 255, "blue": 255}`, + Expected: types.ArrayOK[Color]{ + Value: Color{Red: 255, Green: 255, Blue: 255}, + }, + }, + { + Name: "A single color in a list", + Input: `[{"red": 255, "green": 255, "blue": 255}]`, + Expected: types.ArrayOK[Color]{ + Array: []Color{{Red: 255, Green: 255, Blue: 255}}, + }, + }, + { + Name: "Multiple colors", + Input: `[{"red": 255, "green": 255, "blue": 255}, {"red": 0, "green": 0, "blue": 0}, {"red": 0, "green": 255, "blue": 0}]`, + Expected: types.ArrayOK[Color]{ + Array: []Color{ + {Red: 255, Green: 255, Blue: 255}, + {Red: 0, Green: 0, Blue: 0}, + {Red: 0, Green: 255, Blue: 0}, + }, + }, + }, + } + + for _, tt := range scenarios { + t.Run(tt.Name, func(t *testing.T) { + result := types.ArrayOK[Color]{} + err := json.Unmarshal([]byte(tt.Input), &result) + Expect(err).To(BeNil()) + Expect(result).To(Equal(tt.Expected)) + }) + } +} + +func TestColorMarshal(t *testing.T) { + RegisterTestingT(t) + + scenarios := []TestMarshallScenario[Color]{ + { + Name: "A single color", + Input: types.ArrayOK[Color]{ + Value: Color{Red: 255, Green: 255, Blue: 255}, + }, + Expected: `{"red":255,"green":255,"blue":255}`, + }, + { + Name: "A single color in a list", + Input: types.ArrayOK[Color]{ + Array: []Color{{Red: 255, Green: 255, Blue: 255}}, + }, + Expected: `[{"red":255,"green":255,"blue":255}]`, + }, + { + Name: "Multiple colors", + Input: types.ArrayOK[Color]{ + Array: []Color{ + {Red: 255, Green: 255, Blue: 255}, + {Red: 0, Green: 0, Blue: 0}, + {Red: 0, Green: 255, Blue: 0}, + }, + }, + Expected: `[{"red":255,"green":255,"blue":255},{"red":0,"green":0,"blue":0},{"red":0,"green":255,"blue":0}]`, + }, + } + + for _, tt := range scenarios { + t.Run(tt.Name, func(t *testing.T) { + result, err := json.Marshal(&tt.Input) + Expect(err).To(BeNil()) + Expect(string(result)).To(Equal(tt.Expected)) + }) + } +} From cbb590d54bcc80e4708b80d2477c515e34fc5057 Mon Sep 17 00:00:00 2001 From: metalblueberry Date: Wed, 22 May 2024 22:53:47 +0200 Subject: [PATCH 06/17] fix pipeline --- graph_objects/scatter_gen.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/graph_objects/scatter_gen.go b/graph_objects/scatter_gen.go index 1ee1b22..4c0f8dd 100644 --- a/graph_objects/scatter_gen.go +++ b/graph_objects/scatter_gen.go @@ -2,10 +2,6 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. -import ( - "github.com/MetalBlueberry/go-plotly/types" -) - var TraceTypeScatter TraceType = "scatter" func (trace *Scatter) GetType() TraceType { @@ -1251,7 +1247,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size types.ArrayOKfloat64 `json:"size,omitempty"` + Size float64 `json:"size,omitempty"` // Sizemin // arrayOK: false From d9c5d51c99ff0e9eea4cb0f11b448e567452d1d8 Mon Sep 17 00:00:00 2001 From: metalblueberry Date: Wed, 22 May 2024 22:57:11 +0200 Subject: [PATCH 07/17] format --- types/arrayok.go | 50 +++++++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/types/arrayok.go b/types/arrayok.go index ca3578b..06df101 100644 --- a/types/arrayok.go +++ b/types/arrayok.go @@ -1,38 +1,40 @@ package types import ( - "encoding/json" - "reflect" + "encoding/json" + "reflect" ) +// ArrayOK is a type that allows you to define a single value or an array of values, But not both. +// If Array is defined, Value will be ignored. type ArrayOK[T any] struct { - Value T - Array []T + Value T + Array []T } func (arrayOK *ArrayOK[T]) MarshalJSON() ([]byte, error) { - if arrayOK.Array!= nil { - return json.Marshal(arrayOK.Array) - } - return json.Marshal(arrayOK.Value) + if arrayOK.Array != nil { + return json.Marshal(arrayOK.Array) + } + return json.Marshal(arrayOK.Value) } func (arrayOK *ArrayOK[T]) UnmarshalJSON(data []byte) error { - arrayOK.Array = nil - arrayOK.Value = reflect.Zero(reflect.TypeOf(arrayOK.Value)).Interface().(T) + arrayOK.Array = nil + arrayOK.Value = reflect.Zero(reflect.TypeOf(arrayOK.Value)).Interface().(T) - var array []T - err := json.Unmarshal(data, &array) - if err == nil { - arrayOK.Array = array - return nil - } + var array []T + err := json.Unmarshal(data, &array) + if err == nil { + arrayOK.Array = array + return nil + } - var value T - err = json.Unmarshal(data, &value) - if err!= nil { - return err - } - arrayOK.Value = value - return nil -} \ No newline at end of file + var value T + err = json.Unmarshal(data, &value) + if err != nil { + return err + } + arrayOK.Value = value + return nil +} From 12b477d9d21876a60d7412fe0e1ea5feb576eb85 Mon Sep 17 00:00:00 2001 From: metalblueberry Date: Wed, 22 May 2024 23:42:01 +0200 Subject: [PATCH 08/17] Add a nested case to consider null values --- types/arrayok_test.go | 113 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 109 insertions(+), 4 deletions(-) diff --git a/types/arrayok_test.go b/types/arrayok_test.go index 207f597..380e0d3 100644 --- a/types/arrayok_test.go +++ b/types/arrayok_test.go @@ -86,7 +86,7 @@ func TestStringMarshal(t *testing.T) { } } -type TestUnmarshallScenario[T any] struct { +type TestUnmarshalScenario[T any] struct { Name string Input string Expected types.ArrayOK[T] @@ -95,7 +95,7 @@ type TestUnmarshallScenario[T any] struct { func TestFloat64Unmarshal(t *testing.T) { RegisterTestingT(t) - scenarios := []TestUnmarshallScenario[float64]{ + scenarios := []TestUnmarshalScenario[float64]{ { Name: "A single number", Input: "12.3", @@ -132,7 +132,7 @@ func TestFloat64Unmarshal(t *testing.T) { func TestStringUnmarshal(t *testing.T) { RegisterTestingT(t) - scenarios := []TestUnmarshallScenario[string]{ + scenarios := []TestUnmarshalScenario[string]{ { Name: "A single string", Input: `"hello"`, @@ -175,7 +175,7 @@ type Color struct { func TestColorUnmarshal(t *testing.T) { RegisterTestingT(t) - scenarios := []TestUnmarshallScenario[Color]{ + scenarios := []TestUnmarshalScenario[Color]{ { Name: "A single color", Input: `{"red": 255, "green": 255, "blue": 255}`, @@ -252,3 +252,108 @@ func TestColorMarshal(t *testing.T) { }) } } + +func TestNestedArrayOKUnmarshal(t *testing.T) { + type Color struct { + Red int `json:"red"` + Green int `json:"green"` + Blue int `json:"blue"` + } + + tests := []struct { + Name string + Input interface{} + Expected string + }{ + { + Name: "Nested ArrayOK within another struct", + Input: struct { + Name string `json:"name"` + Colors *types.ArrayOK[Color] `json:"colors"` + }{ + Name: "Test", + Colors: &types.ArrayOK[Color]{ + Array: []Color{ + {Red: 255, Green: 255, Blue: 255}, + {Red: 0, Green: 0, Blue: 0}, + {Red: 0, Green: 255, Blue: 0}, + }, + }, + }, + Expected: `{"name":"Test","colors":[{"red":255,"green":255,"blue":255},{"red":0,"green":0,"blue":0},{"red":0,"green":255,"blue":0}]}`, + }, + { + Name: "Nested ArrayOK within another struct with nil Colors", + Input: struct { + Name string `json:"name"` + Colors *types.ArrayOK[Color] `json:"colors"` + }{ + Name: "Test", + Colors: nil, + }, + Expected: `{"name":"Test","colors":null}`, + }, + } + + for _, tt := range tests { + t.Run(tt.Name, func(t *testing.T) { + bytes, err := json.Marshal(tt.Input) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + + if string(bytes) != tt.Expected { + t.Errorf("expected %s, but got %s", tt.Expected, string(bytes)) + } + }) + } +} +func TestNestedArrayOKMarshal(t *testing.T) { + tests := []struct { + Name string + Input interface{} + Expected string + }{ + { + Name: "Marshal ArrayOK nested within another struct with actual value", + Input: struct { + Name string `json:"name"` + Colors *types.ArrayOK[Color] `json:"colors"` + }{ + Name: "Test", + Colors: &types.ArrayOK[Color]{ + Array: []Color{ + {Red: 255, Green: 255, Blue: 255}, + {Red: 0, Green: 0, Blue: 0}, + {Red: 0, Green: 255, Blue: 0}, + }, + }, + }, + Expected: `{"name":"Test","colors":[{"red":255,"green":255,"blue":255},{"red":0,"green":0,"blue":0},{"red":0,"green":255,"blue":0}]}`, + }, + { + Name: "Marshal ArrayOK nested within another struct with nil value", + Input: struct { + Name string `json:"name"` + Colors *types.ArrayOK[Color] `json:"colors"` + }{ + Name: "Test", + Colors: nil, + }, + Expected: `{"name":"Test","colors":null}`, + }, + } + + for _, tt := range tests { + t.Run(tt.Name, func(t *testing.T) { + bytes, err := json.Marshal(tt.Input) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + + if string(bytes) != tt.Expected { + t.Errorf("expected %s, but got %s", tt.Expected, string(bytes)) + } + }) + } +} From 5664c3b71a6fea70bae174399c7b25c85327f47e Mon Sep 17 00:00:00 2001 From: metalblueberry Date: Wed, 22 May 2024 23:42:56 +0200 Subject: [PATCH 09/17] cleanup --- examples/scatter/main.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/examples/scatter/main.go b/examples/scatter/main.go index c116a49..6ae717c 100644 --- a/examples/scatter/main.go +++ b/examples/scatter/main.go @@ -5,7 +5,6 @@ import ( grob "github.com/MetalBlueberry/go-plotly/graph_objects" "github.com/MetalBlueberry/go-plotly/offline" - "github.com/MetalBlueberry/go-plotly/types" ) func main() { @@ -31,11 +30,6 @@ func main() { X: t, Y: y, Mode: grob.ScatterModeMarkers, - Marker: &grob.ScatterMarker{ - Size: types.ArrayOKfloat64{ - Value: 12, - }, - }, }, }, } From cda0973cc4ba452f4c52cb7b26b4102af9f9966e Mon Sep 17 00:00:00 2001 From: metalblueberry Date: Sat, 25 May 2024 18:20:08 +0200 Subject: [PATCH 10/17] Give it a try with null values --- types/arrayok.go | 23 ++++- types/arrayok_test.go | 220 +++++++++++++++++++++++++++--------------- 2 files changed, 159 insertions(+), 84 deletions(-) diff --git a/types/arrayok.go b/types/arrayok.go index 06df101..f8f6750 100644 --- a/types/arrayok.go +++ b/types/arrayok.go @@ -2,13 +2,28 @@ package types import ( "encoding/json" - "reflect" ) +func ArrayOKValue[T any](value T) ArrayOK[*T] { + v := &value + return ArrayOK[*T]{Value: &v} +} + +func ArrayOKArray[T any](array ...T) ArrayOK[*T] { + out := make([]*T, len(array)) + for i, v := range array { + value := v + out[i] = &value + } + return ArrayOK[*T]{ + Array: out, + } +} + // ArrayOK is a type that allows you to define a single value or an array of values, But not both. // If Array is defined, Value will be ignored. type ArrayOK[T any] struct { - Value T + Value *T Array []T } @@ -21,7 +36,7 @@ func (arrayOK *ArrayOK[T]) MarshalJSON() ([]byte, error) { func (arrayOK *ArrayOK[T]) UnmarshalJSON(data []byte) error { arrayOK.Array = nil - arrayOK.Value = reflect.Zero(reflect.TypeOf(arrayOK.Value)).Interface().(T) + arrayOK.Value = nil var array []T err := json.Unmarshal(data, &array) @@ -35,6 +50,6 @@ func (arrayOK *ArrayOK[T]) UnmarshalJSON(data []byte) error { if err != nil { return err } - arrayOK.Value = value + arrayOK.Value = &value return nil } diff --git a/types/arrayok_test.go b/types/arrayok_test.go index 380e0d3..1f91cf4 100644 --- a/types/arrayok_test.go +++ b/types/arrayok_test.go @@ -17,28 +17,36 @@ type TestMarshallScenario[T any] struct { func TestFloat64Marshal(t *testing.T) { RegisterTestingT(t) - scenarios := []TestMarshallScenario[float64]{ + scenarios := []TestMarshallScenario[*float64]{ { - Name: "A single number", - Input: types.ArrayOK[float64]{ - Value: 12.3, - }, + Name: "A single number", + Input: types.ArrayOKValue(12.3), Expected: "12.3", }, { - Name: "A single number in a list", - Input: types.ArrayOK[float64]{ - Array: []float64{12.3}, - }, + Name: "A single number in a list", + Input: types.ArrayOKArray(12.3), Expected: "[12.3]", }, { - Name: "Multiple values", - Input: types.ArrayOK[float64]{ - Array: []float64{1, 2, 3, 4.5}, - }, + Name: "Multiple values", + Input: types.ArrayOKArray(1, 2, 3, 4.5), Expected: "[1,2,3,4.5]", }, + { + Name: "Nil Value", + Input: types.ArrayOK[*float64]{}, + Expected: "null", + }, + { + Name: "Nil Array", + Input: func() types.ArrayOK[*float64] { + original := types.ArrayOKArray(1.2, 0, 3.4) + original.Array[1] = nil + return original + }(), + Expected: "[1.2,null,3.4]", + }, } for _, tt := range scenarios { @@ -53,28 +61,36 @@ func TestFloat64Marshal(t *testing.T) { func TestStringMarshal(t *testing.T) { RegisterTestingT(t) - scenarios := []TestMarshallScenario[string]{ + scenarios := []TestMarshallScenario[*string]{ { - Name: "A single string", - Input: types.ArrayOK[string]{ - Value: "hello", - }, + Name: "A single string", + Input: types.ArrayOKValue("hello"), Expected: `"hello"`, }, { - Name: "A single string in a list", - Input: types.ArrayOK[string]{ - Array: []string{"hello"}, - }, + Name: "A single string in a list", + Input: types.ArrayOKArray("hello"), Expected: `["hello"]`, }, { - Name: "Multiple strings", - Input: types.ArrayOK[string]{ - Array: []string{"hello", "world", "foo", "bar"}, - }, + Name: "Multiple strings", + Input: types.ArrayOKArray("hello", "world", "foo", "bar"), Expected: `["hello","world","foo","bar"]`, }, + { + Name: "Nil Value", + Input: types.ArrayOK[*string]{}, + Expected: "null", + }, + { + Name: "Nil Array", + Input: func() types.ArrayOK[*string] { + original := types.ArrayOKArray("hello", "", "world") + original.Array[1] = nil + return original + }(), + Expected: `["hello",null,"world"]`, + }, } for _, tt := range scenarios { @@ -95,33 +111,41 @@ type TestUnmarshalScenario[T any] struct { func TestFloat64Unmarshal(t *testing.T) { RegisterTestingT(t) - scenarios := []TestUnmarshalScenario[float64]{ + scenarios := []TestUnmarshalScenario[*float64]{ { - Name: "A single number", - Input: "12.3", - Expected: types.ArrayOK[float64]{ - Value: 12.3, - }, + Name: "A single number", + Input: "12.3", + Expected: types.ArrayOKValue(12.3), }, { - Name: "A single number in a list", - Input: "[12.3]", - Expected: types.ArrayOK[float64]{ - Array: []float64{12.3}, - }, + Name: "A single number in a list", + Input: "[12.3]", + Expected: types.ArrayOKArray(12.3), }, { - Name: "Multiple values", - Input: "[1,2,3,4.5]", - Expected: types.ArrayOK[float64]{ - Array: []float64{1, 2, 3, 4.5}, - }, + Name: "Multiple values", + Input: "[1,2,3,4.5]", + Expected: types.ArrayOKArray(1, 2, 3, 4.5), + }, + { + Name: "Nil Value", + Input: "null", + Expected: types.ArrayOK[*float64]{}, + }, + { + Name: "Nil Array", + Input: "[1.2,null,3.4]", + Expected: func() types.ArrayOK[*float64] { + original := types.ArrayOKArray(1.2, 0, 3.4) + original.Array[1] = nil + return original + }(), }, } for _, tt := range scenarios { t.Run(tt.Name, func(t *testing.T) { - result := types.ArrayOK[float64]{} + result := types.ArrayOK[*float64]{} err := json.Unmarshal([]byte(tt.Input), &result) Expect(err).To(BeNil()) Expect(result).To(Equal(tt.Expected)) @@ -132,33 +156,41 @@ func TestFloat64Unmarshal(t *testing.T) { func TestStringUnmarshal(t *testing.T) { RegisterTestingT(t) - scenarios := []TestUnmarshalScenario[string]{ + scenarios := []TestUnmarshalScenario[*string]{ { - Name: "A single string", - Input: `"hello"`, - Expected: types.ArrayOK[string]{ - Value: "hello", - }, + Name: "A single string", + Input: `"hello"`, + Expected: types.ArrayOKValue("hello"), }, { - Name: "A single string in a list", - Input: `["hello"]`, - Expected: types.ArrayOK[string]{ - Array: []string{"hello"}, - }, + Name: "A single string in a list", + Input: `["hello"]`, + Expected: types.ArrayOKArray("hello"), }, { - Name: "Multiple strings", - Input: `["hello","world","foo","bar"]`, - Expected: types.ArrayOK[string]{ - Array: []string{"hello", "world", "foo", "bar"}, - }, + Name: "Multiple strings", + Input: `["hello","world","foo","bar"]`, + Expected: types.ArrayOKArray("hello", "world", "foo", "bar"), + }, + { + Name: "Nil Value", + Input: "null", + Expected: types.ArrayOK[*string]{}, + }, + { + Name: "Nil Array", + Input: `["hello",null,"world"]`, + Expected: func() types.ArrayOK[*string] { + original := types.ArrayOKArray("hello", "", "world") + original.Array[1] = nil + return original + }(), }, } for _, tt := range scenarios { t.Run(tt.Name, func(t *testing.T) { - result := types.ArrayOK[string]{} + result := types.ArrayOK[*string]{} err := json.Unmarshal([]byte(tt.Input), &result) Expect(err).To(BeNil()) Expect(result).To(Equal(tt.Expected)) @@ -175,37 +207,51 @@ type Color struct { func TestColorUnmarshal(t *testing.T) { RegisterTestingT(t) - scenarios := []TestUnmarshalScenario[Color]{ + scenarios := []TestUnmarshalScenario[*Color]{ { - Name: "A single color", - Input: `{"red": 255, "green": 255, "blue": 255}`, - Expected: types.ArrayOK[Color]{ - Value: Color{Red: 255, Green: 255, Blue: 255}, - }, + Name: "A single color", + Input: `{"red": 255, "green": 255, "blue": 255}`, + Expected: types.ArrayOKValue(Color{Red: 255, Green: 255, Blue: 255}), }, { Name: "A single color in a list", Input: `[{"red": 255, "green": 255, "blue": 255}]`, - Expected: types.ArrayOK[Color]{ - Array: []Color{{Red: 255, Green: 255, Blue: 255}}, + Expected: types.ArrayOK[*Color]{ + Array: []*Color{{Red: 255, Green: 255, Blue: 255}}, }, }, { Name: "Multiple colors", Input: `[{"red": 255, "green": 255, "blue": 255}, {"red": 0, "green": 0, "blue": 0}, {"red": 0, "green": 255, "blue": 0}]`, - Expected: types.ArrayOK[Color]{ - Array: []Color{ + Expected: types.ArrayOK[*Color]{ + Array: []*Color{ {Red: 255, Green: 255, Blue: 255}, {Red: 0, Green: 0, Blue: 0}, {Red: 0, Green: 255, Blue: 0}, }, }, }, + { + Name: "Nil Value", + Input: "null", + Expected: types.ArrayOK[*Color]{}, + }, + { + Name: "Nil Array", + Input: `[{"red": 255, "green": 255, "blue": 255}, null, {"red": 0, "green": 0, "blue": 0}]`, + Expected: types.ArrayOK[*Color]{ + Array: []*Color{ + {Red: 255, Green: 255, Blue: 255}, + nil, + {Red: 0, Green: 0, Blue: 0}, + }, + }, + }, } for _, tt := range scenarios { t.Run(tt.Name, func(t *testing.T) { - result := types.ArrayOK[Color]{} + result := types.ArrayOK[*Color]{} err := json.Unmarshal([]byte(tt.Input), &result) Expect(err).To(BeNil()) Expect(result).To(Equal(tt.Expected)) @@ -216,25 +262,23 @@ func TestColorUnmarshal(t *testing.T) { func TestColorMarshal(t *testing.T) { RegisterTestingT(t) - scenarios := []TestMarshallScenario[Color]{ + scenarios := []TestMarshallScenario[*Color]{ { - Name: "A single color", - Input: types.ArrayOK[Color]{ - Value: Color{Red: 255, Green: 255, Blue: 255}, - }, + Name: "A single color", + Input: types.ArrayOKValue(Color{Red: 255, Green: 255, Blue: 255}), Expected: `{"red":255,"green":255,"blue":255}`, }, { Name: "A single color in a list", - Input: types.ArrayOK[Color]{ - Array: []Color{{Red: 255, Green: 255, Blue: 255}}, + Input: types.ArrayOK[*Color]{ + Array: []*Color{{Red: 255, Green: 255, Blue: 255}}, }, Expected: `[{"red":255,"green":255,"blue":255}]`, }, { Name: "Multiple colors", - Input: types.ArrayOK[Color]{ - Array: []Color{ + Input: types.ArrayOK[*Color]{ + Array: []*Color{ {Red: 255, Green: 255, Blue: 255}, {Red: 0, Green: 0, Blue: 0}, {Red: 0, Green: 255, Blue: 0}, @@ -242,6 +286,22 @@ func TestColorMarshal(t *testing.T) { }, Expected: `[{"red":255,"green":255,"blue":255},{"red":0,"green":0,"blue":0},{"red":0,"green":255,"blue":0}]`, }, + { + Name: "Nil Value", + Input: types.ArrayOK[*Color]{}, + Expected: "null", + }, + { + Name: "Nil Array", + Input: types.ArrayOK[*Color]{ + Array: []*Color{ + {Red: 255, Green: 255, Blue: 255}, + nil, + {Red: 0, Green: 0, Blue: 0}, + }, + }, + Expected: `[{"red":255,"green":255,"blue":255},null,{"red":0,"green":0,"blue":0}]`, + }, } for _, tt := range scenarios { From 14beba4069751ec08f0d0cabfd40fe602a0d5af8 Mon Sep 17 00:00:00 2001 From: metalblueberry Date: Sat, 25 May 2024 18:30:54 +0200 Subject: [PATCH 11/17] wops! --- types/arrayok.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/types/arrayok.go b/types/arrayok.go index f8f6750..ee8d7be 100644 --- a/types/arrayok.go +++ b/types/arrayok.go @@ -6,7 +6,7 @@ import ( func ArrayOKValue[T any](value T) ArrayOK[*T] { v := &value - return ArrayOK[*T]{Value: &v} + return ArrayOK[*T]{Value: v} } func ArrayOKArray[T any](array ...T) ArrayOK[*T] { @@ -23,7 +23,7 @@ func ArrayOKArray[T any](array ...T) ArrayOK[*T] { // ArrayOK is a type that allows you to define a single value or an array of values, But not both. // If Array is defined, Value will be ignored. type ArrayOK[T any] struct { - Value *T + Value T Array []T } @@ -36,7 +36,6 @@ func (arrayOK *ArrayOK[T]) MarshalJSON() ([]byte, error) { func (arrayOK *ArrayOK[T]) UnmarshalJSON(data []byte) error { arrayOK.Array = nil - arrayOK.Value = nil var array []T err := json.Unmarshal(data, &array) @@ -50,6 +49,6 @@ func (arrayOK *ArrayOK[T]) UnmarshalJSON(data []byte) error { if err != nil { return err } - arrayOK.Value = &value + arrayOK.Value = value return nil } From a543fa1374215cbb7f8a24e6c0c7deec4cf0be91 Mon Sep 17 00:00:00 2001 From: metalblueberry Date: Wed, 14 Aug 2024 14:02:01 +0200 Subject: [PATCH 12/17] attempt 1 --- examples/bar_custom/main.go | 12 +- examples/colorscale/main.go | 4 +- examples/shapes/main.go | 4 +- examples/stargazers/main.go | 6 +- examples/waterfall_bar_chart/main.go | 20 +- generated/v2.19.0/graph_objects/bar_gen.go | 184 ++++----- .../v2.19.0/graph_objects/barpolar_gen.go | 126 +++---- generated/v2.19.0/graph_objects/box_gen.go | 88 ++--- .../v2.19.0/graph_objects/candlestick_gen.go | 70 ++-- generated/v2.19.0/graph_objects/carpet_gen.go | 82 ++--- .../v2.19.0/graph_objects/choropleth_gen.go | 94 ++--- .../graph_objects/choroplethmapbox_gen.go | 96 ++--- generated/v2.19.0/graph_objects/cone_gen.go | 100 ++--- generated/v2.19.0/graph_objects/config_gen.go | 10 +- .../v2.19.0/graph_objects/contour_gen.go | 96 ++--- .../graph_objects/contourcarpet_gen.go | 56 +-- .../graph_objects/densitymapbox_gen.go | 88 ++--- generated/v2.19.0/graph_objects/funnel_gen.go | 148 ++++---- .../v2.19.0/graph_objects/funnelarea_gen.go | 118 +++--- .../v2.19.0/graph_objects/heatmap_gen.go | 88 ++--- .../v2.19.0/graph_objects/heatmapgl_gen.go | 70 ++-- .../v2.19.0/graph_objects/histogram2d_gen.go | 92 ++--- .../graph_objects/histogram2dcontour_gen.go | 98 ++--- .../v2.19.0/graph_objects/histogram_gen.go | 140 +++---- generated/v2.19.0/graph_objects/icicle_gen.go | 140 +++---- generated/v2.19.0/graph_objects/image_gen.go | 58 +-- .../v2.19.0/graph_objects/indicator_gen.go | 54 +-- .../v2.19.0/graph_objects/isosurface_gen.go | 98 ++--- generated/v2.19.0/graph_objects/layout_gen.go | 314 ++++++++-------- generated/v2.19.0/graph_objects/mesh3d_gen.go | 102 ++--- generated/v2.19.0/graph_objects/ohlc_gen.go | 76 ++-- .../v2.19.0/graph_objects/parcats_gen.go | 46 +-- .../v2.19.0/graph_objects/parcoords_gen.go | 44 +-- generated/v2.19.0/graph_objects/pie_gen.go | 134 +++---- generated/v2.19.0/graph_objects/plotly_gen.go | 110 +++++- .../v2.19.0/graph_objects/pointcloud_gen.go | 64 ++-- generated/v2.19.0/graph_objects/sankey_gen.go | 152 ++++---- .../v2.19.0/graph_objects/scatter3d_gen.go | 150 ++++---- .../v2.19.0/graph_objects/scatter_gen.go | 176 ++++----- .../graph_objects/scattercarpet_gen.go | 142 +++---- .../v2.19.0/graph_objects/scattergeo_gen.go | 140 +++---- .../v2.19.0/graph_objects/scattergl_gen.go | 136 +++---- .../graph_objects/scattermapbox_gen.go | 124 +++---- .../v2.19.0/graph_objects/scatterpolar_gen.go | 140 +++---- .../graph_objects/scatterpolargl_gen.go | 124 +++---- .../v2.19.0/graph_objects/scattersmith_gen.go | 140 +++---- .../graph_objects/scatterternary_gen.go | 142 +++---- generated/v2.19.0/graph_objects/splom_gen.go | 106 +++--- .../v2.19.0/graph_objects/streamtube_gen.go | 102 ++--- .../v2.19.0/graph_objects/sunburst_gen.go | 128 +++---- .../v2.19.0/graph_objects/surface_gen.go | 90 ++--- generated/v2.19.0/graph_objects/table_gen.go | 128 +++---- .../v2.19.0/graph_objects/treemap_gen.go | 140 +++---- generated/v2.19.0/graph_objects/violin_gen.go | 74 ++-- generated/v2.19.0/graph_objects/volume_gen.go | 98 ++--- .../v2.19.0/graph_objects/waterfall_gen.go | 126 +++---- generated/v2.29.1/graph_objects/bar_gen.go | 184 ++++----- .../v2.29.1/graph_objects/barpolar_gen.go | 126 +++---- generated/v2.29.1/graph_objects/box_gen.go | 88 ++--- .../v2.29.1/graph_objects/candlestick_gen.go | 70 ++-- generated/v2.29.1/graph_objects/carpet_gen.go | 82 ++--- .../v2.29.1/graph_objects/choropleth_gen.go | 94 ++--- .../graph_objects/choroplethmapbox_gen.go | 96 ++--- generated/v2.29.1/graph_objects/cone_gen.go | 100 ++--- generated/v2.29.1/graph_objects/config_gen.go | 10 +- .../v2.29.1/graph_objects/contour_gen.go | 96 ++--- .../graph_objects/contourcarpet_gen.go | 56 +-- .../graph_objects/densitymapbox_gen.go | 88 ++--- generated/v2.29.1/graph_objects/funnel_gen.go | 148 ++++---- .../v2.29.1/graph_objects/funnelarea_gen.go | 136 +++---- .../v2.29.1/graph_objects/heatmap_gen.go | 88 ++--- .../v2.29.1/graph_objects/heatmapgl_gen.go | 70 ++-- .../v2.29.1/graph_objects/histogram2d_gen.go | 92 ++--- .../graph_objects/histogram2dcontour_gen.go | 98 ++--- .../v2.29.1/graph_objects/histogram_gen.go | 140 +++---- generated/v2.29.1/graph_objects/icicle_gen.go | 158 ++++---- generated/v2.29.1/graph_objects/image_gen.go | 58 +-- .../v2.29.1/graph_objects/indicator_gen.go | 54 +-- .../v2.29.1/graph_objects/isosurface_gen.go | 98 ++--- generated/v2.29.1/graph_objects/layout_gen.go | 348 +++++++++--------- generated/v2.29.1/graph_objects/mesh3d_gen.go | 102 ++--- generated/v2.29.1/graph_objects/ohlc_gen.go | 76 ++-- .../v2.29.1/graph_objects/parcats_gen.go | 46 +-- .../v2.29.1/graph_objects/parcoords_gen.go | 44 +-- generated/v2.29.1/graph_objects/pie_gen.go | 152 ++++---- generated/v2.29.1/graph_objects/plotly_gen.go | 110 +++++- .../v2.29.1/graph_objects/pointcloud_gen.go | 64 ++-- generated/v2.29.1/graph_objects/sankey_gen.go | 156 ++++---- .../v2.29.1/graph_objects/scatter3d_gen.go | 150 ++++---- .../v2.29.1/graph_objects/scatter_gen.go | 176 ++++----- .../graph_objects/scattercarpet_gen.go | 142 +++---- .../v2.29.1/graph_objects/scattergeo_gen.go | 140 +++---- .../v2.29.1/graph_objects/scattergl_gen.go | 136 +++---- .../graph_objects/scattermapbox_gen.go | 124 +++---- .../v2.29.1/graph_objects/scatterpolar_gen.go | 140 +++---- .../graph_objects/scatterpolargl_gen.go | 124 +++---- .../v2.29.1/graph_objects/scattersmith_gen.go | 140 +++---- .../graph_objects/scatterternary_gen.go | 142 +++---- generated/v2.29.1/graph_objects/splom_gen.go | 106 +++--- .../v2.29.1/graph_objects/streamtube_gen.go | 102 ++--- .../v2.29.1/graph_objects/sunburst_gen.go | 146 ++++---- .../v2.29.1/graph_objects/surface_gen.go | 90 ++--- generated/v2.29.1/graph_objects/table_gen.go | 128 +++---- .../v2.29.1/graph_objects/treemap_gen.go | 158 ++++---- generated/v2.29.1/graph_objects/violin_gen.go | 74 ++-- generated/v2.29.1/graph_objects/volume_gen.go | 98 ++--- .../v2.29.1/graph_objects/waterfall_gen.go | 126 +++---- generated/v2.31.1/graph_objects/bar_gen.go | 184 ++++----- .../v2.31.1/graph_objects/barpolar_gen.go | 126 +++---- generated/v2.31.1/graph_objects/box_gen.go | 88 ++--- .../v2.31.1/graph_objects/candlestick_gen.go | 70 ++-- generated/v2.31.1/graph_objects/carpet_gen.go | 82 ++--- .../v2.31.1/graph_objects/choropleth_gen.go | 94 ++--- .../graph_objects/choroplethmapbox_gen.go | 96 ++--- generated/v2.31.1/graph_objects/cone_gen.go | 100 ++--- generated/v2.31.1/graph_objects/config_gen.go | 10 +- .../v2.31.1/graph_objects/contour_gen.go | 96 ++--- .../graph_objects/contourcarpet_gen.go | 56 +-- .../graph_objects/densitymapbox_gen.go | 88 ++--- generated/v2.31.1/graph_objects/funnel_gen.go | 148 ++++---- .../v2.31.1/graph_objects/funnelarea_gen.go | 136 +++---- .../v2.31.1/graph_objects/heatmap_gen.go | 88 ++--- .../v2.31.1/graph_objects/heatmapgl_gen.go | 70 ++-- .../v2.31.1/graph_objects/histogram2d_gen.go | 92 ++--- .../graph_objects/histogram2dcontour_gen.go | 98 ++--- .../v2.31.1/graph_objects/histogram_gen.go | 140 +++---- generated/v2.31.1/graph_objects/icicle_gen.go | 158 ++++---- generated/v2.31.1/graph_objects/image_gen.go | 58 +-- .../v2.31.1/graph_objects/indicator_gen.go | 54 +-- .../v2.31.1/graph_objects/isosurface_gen.go | 98 ++--- generated/v2.31.1/graph_objects/layout_gen.go | 348 +++++++++--------- generated/v2.31.1/graph_objects/mesh3d_gen.go | 102 ++--- generated/v2.31.1/graph_objects/ohlc_gen.go | 76 ++-- .../v2.31.1/graph_objects/parcats_gen.go | 46 +-- .../v2.31.1/graph_objects/parcoords_gen.go | 44 +-- generated/v2.31.1/graph_objects/pie_gen.go | 152 ++++---- generated/v2.31.1/graph_objects/plotly_gen.go | 110 +++++- .../v2.31.1/graph_objects/pointcloud_gen.go | 64 ++-- generated/v2.31.1/graph_objects/sankey_gen.go | 156 ++++---- .../v2.31.1/graph_objects/scatter3d_gen.go | 150 ++++---- .../v2.31.1/graph_objects/scatter_gen.go | 176 ++++----- .../graph_objects/scattercarpet_gen.go | 142 +++---- .../v2.31.1/graph_objects/scattergeo_gen.go | 140 +++---- .../v2.31.1/graph_objects/scattergl_gen.go | 136 +++---- .../graph_objects/scattermapbox_gen.go | 124 +++---- .../v2.31.1/graph_objects/scatterpolar_gen.go | 140 +++---- .../graph_objects/scatterpolargl_gen.go | 124 +++---- .../v2.31.1/graph_objects/scattersmith_gen.go | 140 +++---- .../graph_objects/scatterternary_gen.go | 142 +++---- generated/v2.31.1/graph_objects/splom_gen.go | 106 +++--- .../v2.31.1/graph_objects/streamtube_gen.go | 102 ++--- .../v2.31.1/graph_objects/sunburst_gen.go | 146 ++++---- .../v2.31.1/graph_objects/surface_gen.go | 90 ++--- generated/v2.31.1/graph_objects/table_gen.go | 128 +++---- .../v2.31.1/graph_objects/treemap_gen.go | 158 ++++---- generated/v2.31.1/graph_objects/violin_gen.go | 74 ++-- generated/v2.31.1/graph_objects/volume_gen.go | 98 ++--- .../v2.31.1/graph_objects/waterfall_gen.go | 126 +++---- generator/renderer.go | 8 +- .../templates/{plotly.tmpl => plotly.go} | 113 +++++- generator/typefile.go | 15 +- 161 files changed, 8898 insertions(+), 8466 deletions(-) rename generator/templates/{plotly.tmpl => plotly.go} (63%) diff --git a/examples/bar_custom/main.go b/examples/bar_custom/main.go index ccd611e..8250e6e 100644 --- a/examples/bar_custom/main.go +++ b/examples/bar_custom/main.go @@ -54,15 +54,17 @@ func main() { Type: grob.TraceTypeBar, X: xValue, Y: yValue, - Text: toString(yValue), + Text: grob.ArrayOKArray(toString(yValue)...), Textposition: grob.BarTextpositionAuto, Hoverinfo: grob.BarHoverinfoNone, Marker: &grob.BarMarker{ - Color: markerColor.Hex(), // Use colorfull - Opacity: 0.6, + Color: grob.ArrayOKValue(grob.UseColor(grob.Color( + markerColor.Hex(), // Use colorfull + ))), + Opacity: grob.ArrayOKValue(0.6), Line: &grob.BarMarkerLine{ - Color: "rgb(8,48,107)", // Or just write the string - Width: 1.5, + Color: grob.ArrayOKValue(grob.UseColor("rgb(8,48,107)")), // Or just write the string + Width: grob.ArrayOKValue(1.5), }, }, } diff --git a/examples/colorscale/main.go b/examples/colorscale/main.go index f66347a..1ec1199 100644 --- a/examples/colorscale/main.go +++ b/examples/colorscale/main.go @@ -51,10 +51,10 @@ func main() { Cmin: 0, Cmid: 5, Cmax: 10, - Color: z, + Color: grob.ArrayOKArray(grob.UseColorScaleValues(z)...), Colorscale: colorScale, Showscale: grob.True, - Size: 4, + Size: grob.ArrayOKValue(4.0), }, }, }, diff --git a/examples/shapes/main.go b/examples/shapes/main.go index ad707dd..e87da92 100644 --- a/examples/shapes/main.go +++ b/examples/shapes/main.go @@ -40,7 +40,7 @@ func main() { Line: grob.ScatterLine{ Color: "LightSeaGreen", Width: 4, - Dash: grob.Scatter3dLineDashDashdot, + Dash: string(grob.Scatter3dLineDashDashdot), }, }, { @@ -52,7 +52,7 @@ func main() { Line: grob.ScatterLine{ Color: "MediumPurple", Width: 4, - Dash: grob.Scatter3dLineDashDot, + Dash: string(grob.Scatter3dLineDashDot), }, }, }, diff --git a/examples/stargazers/main.go b/examples/stargazers/main.go index 0c7d30a..dbedeb4 100644 --- a/examples/stargazers/main.go +++ b/examples/stargazers/main.go @@ -55,7 +55,7 @@ func main() { x := []string{} y := []int{} text := []string{} - link := []string{} + link := []interface{}{} for i := 0; i < len(starredAt); i++ { x = append(x, starredAt[i].StarredAt.Format(time.RFC3339)) @@ -71,8 +71,8 @@ func main() { Type: grob.TraceTypeScatter, X: x, Y: y, - Text: text, - Meta: link, + Text: grob.ArrayOKArray(text...), + Meta: grob.ArrayOKArray(link...), Mode: grob.ScatterModeLines + "+" + grob.ScatterModeMarkers, Name: "Stars", Line: &grob.ScatterLine{ diff --git a/examples/waterfall_bar_chart/main.go b/examples/waterfall_bar_chart/main.go index de13ed0..38eb8d1 100644 --- a/examples/waterfall_bar_chart/main.go +++ b/examples/waterfall_bar_chart/main.go @@ -124,7 +124,7 @@ func main() { X: xData, Y: []int{0, 430, 0, 570, 370, 370, 0}, Marker: &grob.BarMarker{ - Color: "rgba(1,1,1,0.0)", + Color: grob.ArrayOKValue(grob.UseColor("rgba(1,1,1,0.0)")), }, Type: grob.TraceTypeBar, } @@ -135,10 +135,10 @@ func main() { X: xData, Y: []int{430, 260, 690, 0, 0, 0, 0}, Marker: &grob.BarMarker{ - Color: "rgba(55,128,191,0.7)", + Color: grob.ArrayOKValue(grob.UseColor("rgba(55,128,191,0.7)")), Line: &grob.BarMarkerLine{ - Color: "rgba(55,128,191,1.0)", - Width: 2, + Color: grob.ArrayOKValue(grob.UseColor("rgba(55,128,191,1.0)")), + Width: grob.ArrayOKValue(2.0), }, }, Type: grob.TraceTypeBar, @@ -150,10 +150,10 @@ func main() { X: xData, Y: []int{0, 0, 0, 120, 200, 320, 0}, Marker: &grob.BarMarker{ - Color: "rgba(219, 64, 82, 0.7)", + Color: grob.ArrayOKValue(grob.UseColor("rgba(219, 64, 82, 0.7)")), Line: &grob.BarMarkerLine{ - Color: "rgba(219, 64, 82, 1.0)", - Width: 2, + Color: grob.ArrayOKValue(grob.UseColor("rgba(219, 64, 82, 1.0)")), + Width: grob.ArrayOKValue(2.0), }, }, Type: grob.TraceTypeBar, @@ -165,10 +165,10 @@ func main() { X: xData, Y: []int{0, 0, 0, 0, 0, 0, 370}, Marker: &grob.BarMarker{ - Color: "rgba(50,171, 96, 0.7)", + Color: grob.ArrayOKValue(grob.UseColor("rgba(50,171, 96, 0.7)")), Line: &grob.BarMarkerLine{ - Color: "rgba(50,171,96,1.0)", - Width: 2, + Color: grob.ArrayOKValue(grob.UseColor("rgba(50,171,96,1.0)")), + Width: grob.ArrayOKValue(2.0), }, }, Type: grob.TraceTypeBar, diff --git a/generated/v2.19.0/graph_objects/bar_gen.go b/generated/v2.19.0/graph_objects/bar_gen.go index 91a9839..6dd89f8 100644 --- a/generated/v2.19.0/graph_objects/bar_gen.go +++ b/generated/v2.19.0/graph_objects/bar_gen.go @@ -19,19 +19,19 @@ type Bar struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. - Alignmentgroup String `json:"alignmentgroup,omitempty"` + Alignmentgroup string `json:"alignmentgroup,omitempty"` // Base // arrayOK: true // type: any // Sets where the bar base is drawn (in position axis units). In *stack* or *relative* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead. - Base interface{} `json:"base,omitempty"` + Base ArrayOK[*interface{}] `json:"base,omitempty"` // Basesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `base`. - Basesrc String `json:"basesrc,omitempty"` + Basesrc string `json:"basesrc,omitempty"` // Cliponaxis // arrayOK: false @@ -55,7 +55,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -87,7 +87,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -97,25 +97,25 @@ type Bar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -127,7 +127,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextanchor // default: end @@ -143,7 +143,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -169,37 +169,37 @@ type Bar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Offset // arrayOK: true // type: number // Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead. - Offset float64 `json:"offset,omitempty"` + Offset ArrayOK[*float64] `json:"offset,omitempty"` // Offsetgroup // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. - Offsetgroup String `json:"offsetgroup,omitempty"` + Offsetgroup string `json:"offsetgroup,omitempty"` // Offsetsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `offset`. - Offsetsrc String `json:"offsetsrc,omitempty"` + Offsetsrc string `json:"offsetsrc,omitempty"` // Opacity // arrayOK: false @@ -241,7 +241,7 @@ type Bar struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -263,25 +263,25 @@ type Bar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `value` and `label`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -293,7 +293,7 @@ type Bar struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -315,13 +315,13 @@ type Bar struct { // arrayOK: true // type: number // Sets the bar width (in position axis units). - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` // X // arrayOK: false @@ -351,7 +351,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -375,7 +375,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -405,7 +405,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -429,7 +429,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // BarErrorX @@ -451,13 +451,13 @@ type BarErrorX struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -545,13 +545,13 @@ type BarErrorY struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -621,37 +621,37 @@ type BarHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // BarHoverlabel @@ -667,31 +667,31 @@ type BarHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -701,13 +701,13 @@ type BarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // BarInsidetextfont Sets the font used for `text` lying inside the bar. @@ -717,37 +717,37 @@ type BarInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // BarLegendgrouptitleFont Sets this legend group's title font. @@ -763,7 +763,7 @@ type BarLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -783,7 +783,7 @@ type BarLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // BarMarkerColorbarTickfont Sets the color bar's tick label font @@ -799,7 +799,7 @@ type BarMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -821,7 +821,7 @@ type BarMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -847,7 +847,7 @@ type BarMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // BarMarkerColorbar @@ -999,7 +999,7 @@ type BarMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -1041,7 +1041,7 @@ type BarMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -1053,7 +1053,7 @@ type BarMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -1065,7 +1065,7 @@ type BarMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -1077,7 +1077,7 @@ type BarMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -1163,7 +1163,7 @@ type BarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1181,7 +1181,7 @@ type BarMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -1193,13 +1193,13 @@ type BarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // BarMarkerPattern Sets the pattern within the marker. @@ -1209,25 +1209,25 @@ type BarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -1251,31 +1251,31 @@ type BarMarkerPattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // BarMarker @@ -1315,7 +1315,7 @@ type BarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1337,7 +1337,7 @@ type BarMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Line // role: Object @@ -1347,13 +1347,13 @@ type BarMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Pattern // role: Object @@ -1379,37 +1379,37 @@ type BarOutsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // BarSelectedMarker @@ -1463,7 +1463,7 @@ type BarStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // BarTextfont Sets the font used for `text`. @@ -1473,37 +1473,37 @@ type BarTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // BarUnselectedMarker diff --git a/generated/v2.19.0/graph_objects/barpolar_gen.go b/generated/v2.19.0/graph_objects/barpolar_gen.go index 6ffaa48..bb51934 100644 --- a/generated/v2.19.0/graph_objects/barpolar_gen.go +++ b/generated/v2.19.0/graph_objects/barpolar_gen.go @@ -19,13 +19,13 @@ type Barpolar struct { // arrayOK: true // type: any // Sets where the bar base is drawn (in radial axis units). In *stack* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead. - Base interface{} `json:"base,omitempty"` + Base ArrayOK[*interface{}] `json:"base,omitempty"` // Basesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `base`. - Basesrc String `json:"basesrc,omitempty"` + Basesrc string `json:"basesrc,omitempty"` // Customdata // arrayOK: false @@ -37,7 +37,7 @@ type Barpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dr // arrayOK: false @@ -61,7 +61,7 @@ type Barpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -71,25 +71,25 @@ type Barpolar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -101,13 +101,13 @@ type Barpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -133,31 +133,31 @@ type Barpolar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Offset // arrayOK: true // type: number // Shifts the angular position where the bar is drawn (in *thetatunit* units). - Offset float64 `json:"offset,omitempty"` + Offset ArrayOK[*float64] `json:"offset,omitempty"` // Offsetsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `offset`. - Offsetsrc String `json:"offsetsrc,omitempty"` + Offsetsrc string `json:"offsetsrc,omitempty"` // Opacity // arrayOK: false @@ -181,7 +181,7 @@ type Barpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `r`. - Rsrc String `json:"rsrc,omitempty"` + Rsrc string `json:"rsrc,omitempty"` // Selected // role: Object @@ -213,13 +213,13 @@ type Barpolar struct { // arrayOK: true // type: string // Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace's coordinates. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Theta // arrayOK: false @@ -237,7 +237,7 @@ type Barpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `theta`. - Thetasrc String `json:"thetasrc,omitempty"` + Thetasrc string `json:"thetasrc,omitempty"` // Thetaunit // default: degrees @@ -255,7 +255,7 @@ type Barpolar struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -277,13 +277,13 @@ type Barpolar struct { // arrayOK: true // type: number // Sets the bar angular width (in *thetaunit* units). - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // BarpolarHoverlabelFont Sets the font used in hover labels. @@ -293,37 +293,37 @@ type BarpolarHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // BarpolarHoverlabel @@ -339,31 +339,31 @@ type BarpolarHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -373,13 +373,13 @@ type BarpolarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // BarpolarLegendgrouptitleFont Sets this legend group's title font. @@ -395,7 +395,7 @@ type BarpolarLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -415,7 +415,7 @@ type BarpolarLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // BarpolarMarkerColorbarTickfont Sets the color bar's tick label font @@ -431,7 +431,7 @@ type BarpolarMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -453,7 +453,7 @@ type BarpolarMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -479,7 +479,7 @@ type BarpolarMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // BarpolarMarkerColorbar @@ -631,7 +631,7 @@ type BarpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -673,7 +673,7 @@ type BarpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -685,7 +685,7 @@ type BarpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -697,7 +697,7 @@ type BarpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -709,7 +709,7 @@ type BarpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -795,7 +795,7 @@ type BarpolarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -813,7 +813,7 @@ type BarpolarMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -825,13 +825,13 @@ type BarpolarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // BarpolarMarkerPattern Sets the pattern within the marker. @@ -841,25 +841,25 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -883,31 +883,31 @@ type BarpolarMarkerPattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // BarpolarMarker @@ -947,7 +947,7 @@ type BarpolarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -969,7 +969,7 @@ type BarpolarMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Line // role: Object @@ -979,13 +979,13 @@ type BarpolarMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Pattern // role: Object @@ -1055,7 +1055,7 @@ type BarpolarStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // BarpolarUnselectedMarker diff --git a/generated/v2.19.0/graph_objects/box_gen.go b/generated/v2.19.0/graph_objects/box_gen.go index dd134e5..cdee58c 100644 --- a/generated/v2.19.0/graph_objects/box_gen.go +++ b/generated/v2.19.0/graph_objects/box_gen.go @@ -19,7 +19,7 @@ type Box struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. - Alignmentgroup String `json:"alignmentgroup,omitempty"` + Alignmentgroup string `json:"alignmentgroup,omitempty"` // Boxmean // default: %!s() @@ -43,7 +43,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -73,7 +73,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -89,25 +89,25 @@ type Box struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -119,7 +119,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Jitter // arrayOK: false @@ -131,7 +131,7 @@ type Box struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -163,7 +163,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `lowerfence`. - Lowerfencesrc String `json:"lowerfencesrc,omitempty"` + Lowerfencesrc string `json:"lowerfencesrc,omitempty"` // Marker // role: Object @@ -179,7 +179,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `mean`. - Meansrc String `json:"meansrc,omitempty"` + Meansrc string `json:"meansrc,omitempty"` // Median // arrayOK: false @@ -191,25 +191,25 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `median`. - Mediansrc String `json:"mediansrc,omitempty"` + Mediansrc string `json:"mediansrc,omitempty"` // Meta // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. For box traces, the name will also be used for the position coordinate, if `x` and `x0` (`y` and `y0` if horizontal) are missing and the position axis is categorical - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Notched // arrayOK: false @@ -227,7 +227,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `notchspan`. - Notchspansrc String `json:"notchspansrc,omitempty"` + Notchspansrc string `json:"notchspansrc,omitempty"` // Notchwidth // arrayOK: false @@ -239,7 +239,7 @@ type Box struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. - Offsetgroup String `json:"offsetgroup,omitempty"` + Offsetgroup string `json:"offsetgroup,omitempty"` // Opacity // arrayOK: false @@ -269,7 +269,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `q1`. - Q1src String `json:"q1src,omitempty"` + Q1src string `json:"q1src,omitempty"` // Q3 // arrayOK: false @@ -281,7 +281,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `q3`. - Q3src String `json:"q3src,omitempty"` + Q3src string `json:"q3src,omitempty"` // Quartilemethod // default: linear @@ -299,7 +299,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `sd`. - Sdsrc String `json:"sdsrc,omitempty"` + Sdsrc string `json:"sdsrc,omitempty"` // Selected // role: Object @@ -325,13 +325,13 @@ type Box struct { // arrayOK: true // type: string // Sets the text elements associated with each sample value. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -343,7 +343,7 @@ type Box struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -365,7 +365,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `upperfence`. - Upperfencesrc String `json:"upperfencesrc,omitempty"` + Upperfencesrc string `json:"upperfencesrc,omitempty"` // Visible // default: %!s(bool=true) @@ -413,7 +413,7 @@ type Box struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -437,7 +437,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -467,7 +467,7 @@ type Box struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -491,7 +491,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // BoxHoverlabelFont Sets the font used in hover labels. @@ -501,37 +501,37 @@ type BoxHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // BoxHoverlabel @@ -547,31 +547,31 @@ type BoxHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -581,13 +581,13 @@ type BoxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // BoxLegendgrouptitleFont Sets this legend group's title font. @@ -603,7 +603,7 @@ type BoxLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -623,7 +623,7 @@ type BoxLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // BoxLine @@ -757,7 +757,7 @@ type BoxStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // BoxUnselectedMarker diff --git a/generated/v2.19.0/graph_objects/candlestick_gen.go b/generated/v2.19.0/graph_objects/candlestick_gen.go index 2436227..7381192 100644 --- a/generated/v2.19.0/graph_objects/candlestick_gen.go +++ b/generated/v2.19.0/graph_objects/candlestick_gen.go @@ -25,7 +25,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `close`. - Closesrc String `json:"closesrc,omitempty"` + Closesrc string `json:"closesrc,omitempty"` // Customdata // arrayOK: false @@ -37,7 +37,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Decreasing // role: Object @@ -53,7 +53,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `high`. - Highsrc String `json:"highsrc,omitempty"` + Highsrc string `json:"highsrc,omitempty"` // Hoverinfo // default: all @@ -65,7 +65,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -75,13 +75,13 @@ type Candlestick struct { // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -93,7 +93,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Increasing // role: Object @@ -103,7 +103,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -135,25 +135,25 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `low`. - Lowsrc String `json:"lowsrc,omitempty"` + Lowsrc string `json:"lowsrc,omitempty"` // Meta // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -171,7 +171,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `open`. - Opensrc String `json:"opensrc,omitempty"` + Opensrc string `json:"opensrc,omitempty"` // Selectedpoints // arrayOK: false @@ -193,13 +193,13 @@ type Candlestick struct { // arrayOK: true // type: string // Sets hover text elements associated with each sample point. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to this trace's sample points. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -211,7 +211,7 @@ type Candlestick struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -253,7 +253,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -277,7 +277,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Yaxis // arrayOK: false @@ -289,7 +289,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` } // CandlestickDecreasingLine @@ -329,37 +329,37 @@ type CandlestickHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // CandlestickHoverlabel @@ -375,31 +375,31 @@ type CandlestickHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -409,13 +409,13 @@ type CandlestickHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` // Split // arrayOK: false @@ -467,7 +467,7 @@ type CandlestickLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -487,7 +487,7 @@ type CandlestickLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // CandlestickLine @@ -513,7 +513,7 @@ type CandlestickStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // CandlestickHoverlabelAlign Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines diff --git a/generated/v2.19.0/graph_objects/carpet_gen.go b/generated/v2.19.0/graph_objects/carpet_gen.go index 9a7e6ab..cc97281 100644 --- a/generated/v2.19.0/graph_objects/carpet_gen.go +++ b/generated/v2.19.0/graph_objects/carpet_gen.go @@ -35,7 +35,7 @@ type Carpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `a`. - Asrc String `json:"asrc,omitempty"` + Asrc string `json:"asrc,omitempty"` // B // arrayOK: false @@ -57,13 +57,13 @@ type Carpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `b`. - Bsrc String `json:"bsrc,omitempty"` + Bsrc string `json:"bsrc,omitempty"` // Carpet // arrayOK: false // type: string // An identifier for this carpet, so that `scattercarpet` and `contourcarpet` traces can specify a carpet plot on which they lie - Carpet String `json:"carpet,omitempty"` + Carpet string `json:"carpet,omitempty"` // Cheaterslope // arrayOK: false @@ -87,7 +87,7 @@ type Carpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Da // arrayOK: false @@ -115,7 +115,7 @@ type Carpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgrouptitle // role: Object @@ -137,19 +137,19 @@ type Carpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -165,7 +165,7 @@ type Carpet struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -195,7 +195,7 @@ type Carpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -213,7 +213,7 @@ type Carpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // CarpetAaxisTickfont Sets the tick font. @@ -229,7 +229,7 @@ type CarpetAaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -251,7 +251,7 @@ type CarpetAaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -277,7 +277,7 @@ type CarpetAaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // CarpetAaxis @@ -317,7 +317,7 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -383,7 +383,7 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -407,13 +407,13 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets a axis label prefix. - Labelprefix String `json:"labelprefix,omitempty"` + Labelprefix string `json:"labelprefix,omitempty"` // Labelsuffix // arrayOK: false // type: string // Sets a axis label suffix. - Labelsuffix String `json:"labelsuffix,omitempty"` + Labelsuffix string `json:"labelsuffix,omitempty"` // Linecolor // arrayOK: false @@ -449,7 +449,7 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Minorgriddash String `json:"minorgriddash,omitempty"` + Minorgriddash string `json:"minorgriddash,omitempty"` // Minorgridwidth // arrayOK: false @@ -561,7 +561,7 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -579,13 +579,13 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticksuffix // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -597,7 +597,7 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -609,7 +609,7 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Title // role: Object @@ -635,7 +635,7 @@ type CarpetBaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -657,7 +657,7 @@ type CarpetBaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -683,7 +683,7 @@ type CarpetBaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // CarpetBaxis @@ -723,7 +723,7 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -789,7 +789,7 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -813,13 +813,13 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets a axis label prefix. - Labelprefix String `json:"labelprefix,omitempty"` + Labelprefix string `json:"labelprefix,omitempty"` // Labelsuffix // arrayOK: false // type: string // Sets a axis label suffix. - Labelsuffix String `json:"labelsuffix,omitempty"` + Labelsuffix string `json:"labelsuffix,omitempty"` // Linecolor // arrayOK: false @@ -855,7 +855,7 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Minorgriddash String `json:"minorgriddash,omitempty"` + Minorgriddash string `json:"minorgriddash,omitempty"` // Minorgridwidth // arrayOK: false @@ -967,7 +967,7 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -985,13 +985,13 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticksuffix // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -1003,7 +1003,7 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -1015,7 +1015,7 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Title // role: Object @@ -1041,7 +1041,7 @@ type CarpetFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1063,7 +1063,7 @@ type CarpetLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1083,7 +1083,7 @@ type CarpetLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // CarpetStream @@ -1099,7 +1099,7 @@ type CarpetStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // CarpetAaxisAutorange Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided, then `autorange` is set to *false*. diff --git a/generated/v2.19.0/graph_objects/choropleth_gen.go b/generated/v2.19.0/graph_objects/choropleth_gen.go index 68e304c..0dbf433 100644 --- a/generated/v2.19.0/graph_objects/choropleth_gen.go +++ b/generated/v2.19.0/graph_objects/choropleth_gen.go @@ -47,13 +47,13 @@ type Choropleth struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Featureidkey // arrayOK: false // type: string // Sets the key in GeoJSON features which is used as id to match the items included in the `locations` array. Only has an effect when `geojson` is set. Support nested property, for example *properties.name*. - Featureidkey String `json:"featureidkey,omitempty"` + Featureidkey string `json:"featureidkey,omitempty"` // Geo // arrayOK: false @@ -77,7 +77,7 @@ type Choropleth struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -87,25 +87,25 @@ type Choropleth struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -117,13 +117,13 @@ type Choropleth struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -157,7 +157,7 @@ type Choropleth struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Marker // role: Object @@ -167,19 +167,19 @@ type Choropleth struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Reversescale // arrayOK: false @@ -217,13 +217,13 @@ type Choropleth struct { // arrayOK: true // type: string // Sets the text elements associated with each location. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -235,7 +235,7 @@ type Choropleth struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -287,7 +287,7 @@ type Choropleth struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // ChoroplethColorbarTickfont Sets the color bar's tick label font @@ -303,7 +303,7 @@ type ChoroplethColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -325,7 +325,7 @@ type ChoroplethColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -351,7 +351,7 @@ type ChoroplethColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ChoroplethColorbar @@ -503,7 +503,7 @@ type ChoroplethColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -545,7 +545,7 @@ type ChoroplethColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -557,7 +557,7 @@ type ChoroplethColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -569,7 +569,7 @@ type ChoroplethColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -581,7 +581,7 @@ type ChoroplethColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -637,37 +637,37 @@ type ChoroplethHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ChoroplethHoverlabel @@ -683,31 +683,31 @@ type ChoroplethHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -717,13 +717,13 @@ type ChoroplethHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ChoroplethLegendgrouptitleFont Sets this legend group's title font. @@ -739,7 +739,7 @@ type ChoroplethLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -759,7 +759,7 @@ type ChoroplethLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ChoroplethMarkerLine @@ -769,25 +769,25 @@ type ChoroplethMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ChoroplethMarker @@ -801,13 +801,13 @@ type ChoroplethMarker struct { // arrayOK: true // type: number // Sets the opacity of the locations. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` } // ChoroplethSelectedMarker @@ -841,7 +841,7 @@ type ChoroplethStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ChoroplethUnselectedMarker diff --git a/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go b/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go index 0e82db1..0d192bf 100644 --- a/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go +++ b/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go @@ -25,7 +25,7 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Determines if the choropleth polygons will be inserted before the layer with the specified ID. By default, choroplethmapbox traces are placed above the water layers. If set to '', the layer will be inserted above every existing layer. - Below String `json:"below,omitempty"` + Below string `json:"below,omitempty"` // Coloraxis // arrayOK: false @@ -53,13 +53,13 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Featureidkey // arrayOK: false // type: string // Sets the key in GeoJSON features which is used as id to match the items included in the `locations` array. Support nested property, for example *properties.name*. - Featureidkey String `json:"featureidkey,omitempty"` + Featureidkey string `json:"featureidkey,omitempty"` // Geojson // arrayOK: false @@ -77,7 +77,7 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -87,25 +87,25 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variable `properties` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -117,13 +117,13 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -151,7 +151,7 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Marker // role: Object @@ -161,19 +161,19 @@ type Choroplethmapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Reversescale // arrayOK: false @@ -217,13 +217,13 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Sets the text elements associated with each location. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -235,7 +235,7 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -287,7 +287,7 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // ChoroplethmapboxColorbarTickfont Sets the color bar's tick label font @@ -303,7 +303,7 @@ type ChoroplethmapboxColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -325,7 +325,7 @@ type ChoroplethmapboxColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -351,7 +351,7 @@ type ChoroplethmapboxColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ChoroplethmapboxColorbar @@ -503,7 +503,7 @@ type ChoroplethmapboxColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -545,7 +545,7 @@ type ChoroplethmapboxColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -557,7 +557,7 @@ type ChoroplethmapboxColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -569,7 +569,7 @@ type ChoroplethmapboxColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -581,7 +581,7 @@ type ChoroplethmapboxColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -637,37 +637,37 @@ type ChoroplethmapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ChoroplethmapboxHoverlabel @@ -683,31 +683,31 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -717,13 +717,13 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ChoroplethmapboxLegendgrouptitleFont Sets this legend group's title font. @@ -739,7 +739,7 @@ type ChoroplethmapboxLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -759,7 +759,7 @@ type ChoroplethmapboxLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ChoroplethmapboxMarkerLine @@ -769,25 +769,25 @@ type ChoroplethmapboxMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ChoroplethmapboxMarker @@ -801,13 +801,13 @@ type ChoroplethmapboxMarker struct { // arrayOK: true // type: number // Sets the opacity of the locations. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` } // ChoroplethmapboxSelectedMarker @@ -841,7 +841,7 @@ type ChoroplethmapboxStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ChoroplethmapboxUnselectedMarker diff --git a/generated/v2.19.0/graph_objects/cone_gen.go b/generated/v2.19.0/graph_objects/cone_gen.go index 36ce302..7348633 100644 --- a/generated/v2.19.0/graph_objects/cone_gen.go +++ b/generated/v2.19.0/graph_objects/cone_gen.go @@ -77,7 +77,7 @@ type Cone struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo // default: x+y+z+norm+text+name @@ -89,7 +89,7 @@ type Cone struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -99,25 +99,25 @@ type Cone struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variable `norm` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -129,13 +129,13 @@ type Cone struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -165,19 +165,19 @@ type Cone struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -229,13 +229,13 @@ type Cone struct { // arrayOK: true // type: string // Sets the text elements associated with the cones. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // U // arrayOK: false @@ -247,13 +247,13 @@ type Cone struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `u` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Uhoverformat String `json:"uhoverformat,omitempty"` + Uhoverformat string `json:"uhoverformat,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -265,7 +265,7 @@ type Cone struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `u`. - Usrc String `json:"usrc,omitempty"` + Usrc string `json:"usrc,omitempty"` // V // arrayOK: false @@ -277,7 +277,7 @@ type Cone struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `v` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Vhoverformat String `json:"vhoverformat,omitempty"` + Vhoverformat string `json:"vhoverformat,omitempty"` // Visible // default: %!s(bool=true) @@ -289,7 +289,7 @@ type Cone struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `v`. - Vsrc String `json:"vsrc,omitempty"` + Vsrc string `json:"vsrc,omitempty"` // W // arrayOK: false @@ -301,13 +301,13 @@ type Cone struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `w` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Whoverformat String `json:"whoverformat,omitempty"` + Whoverformat string `json:"whoverformat,omitempty"` // Wsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `w`. - Wsrc String `json:"wsrc,omitempty"` + Wsrc string `json:"wsrc,omitempty"` // X // arrayOK: false @@ -319,13 +319,13 @@ type Cone struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -337,13 +337,13 @@ type Cone struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -355,13 +355,13 @@ type Cone struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `zaxis.hoverformat`. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // ConeColorbarTickfont Sets the color bar's tick label font @@ -377,7 +377,7 @@ type ConeColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -399,7 +399,7 @@ type ConeColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -425,7 +425,7 @@ type ConeColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ConeColorbar @@ -577,7 +577,7 @@ type ConeColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -619,7 +619,7 @@ type ConeColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -631,7 +631,7 @@ type ConeColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -643,7 +643,7 @@ type ConeColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -655,7 +655,7 @@ type ConeColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -711,37 +711,37 @@ type ConeHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ConeHoverlabel @@ -757,31 +757,31 @@ type ConeHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -791,13 +791,13 @@ type ConeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ConeLegendgrouptitleFont Sets this legend group's title font. @@ -813,7 +813,7 @@ type ConeLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -833,7 +833,7 @@ type ConeLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ConeLighting @@ -917,7 +917,7 @@ type ConeStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ConeAnchor Sets the cones' anchor with respect to their x/y/z positions. Note that *cm* denote the cone's center of mass which corresponds to 1/4 from the tail to tip. diff --git a/generated/v2.19.0/graph_objects/config_gen.go b/generated/v2.19.0/graph_objects/config_gen.go index 4f14501..2b9e074 100644 --- a/generated/v2.19.0/graph_objects/config_gen.go +++ b/generated/v2.19.0/graph_objects/config_gen.go @@ -71,13 +71,13 @@ type Config struct { // arrayOK: false // type: string // Sets the text appearing in the `showLink` link. - LinkText String `json:"linkText,omitempty"` + LinkText string `json:"linkText,omitempty"` // Locale // arrayOK: false // type: string // Which localization should we use? Should be a string like 'en' or 'en-US'. - Locale String `json:"locale,omitempty"` + Locale string `json:"locale,omitempty"` // Locales // arrayOK: false @@ -95,7 +95,7 @@ type Config struct { // arrayOK: false // type: string // Mapbox access token (required to plot mapbox trace types) If using an Mapbox Atlas server, set this option to '' so that plotly.js won't attempt to authenticate to the public Mapbox server. - MapboxAccessToken String `json:"mapboxAccessToken,omitempty"` + MapboxAccessToken string `json:"mapboxAccessToken,omitempty"` // ModeBarButtons // arrayOK: false @@ -131,7 +131,7 @@ type Config struct { // arrayOK: false // type: string // When set it determines base URL for the 'Edit in Chart Studio' `showEditInChartStudio`/`showSendToCloud` mode bar button and the showLink/sendData on-graph link. To enable sending your data to Chart Studio Cloud, you need to set both `plotlyServerURL` to 'https://chart-studio.plotly.com' and also set `showSendToCloud` to true. - PlotlyServerURL String `json:"plotlyServerURL,omitempty"` + PlotlyServerURL string `json:"plotlyServerURL,omitempty"` // QueueLength // arrayOK: false @@ -221,7 +221,7 @@ type Config struct { // arrayOK: false // type: string // Set the URL to topojson used in geo charts. By default, the topojson files are fetched from cdn.plot.ly. For example, set this option to: /dist/topojson/ to render geographical feature using the topojson files that ship with the plotly.js module. - TopojsonURL String `json:"topojsonURL,omitempty"` + TopojsonURL string `json:"topojsonURL,omitempty"` // TypesetMath // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/contour_gen.go b/generated/v2.19.0/graph_objects/contour_gen.go index aa1fafd..715cd30 100644 --- a/generated/v2.19.0/graph_objects/contour_gen.go +++ b/generated/v2.19.0/graph_objects/contour_gen.go @@ -63,7 +63,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -81,7 +81,7 @@ type Contour struct { // arrayOK: false // type: color // Sets the fill color if `contours.type` is *constraint*. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. - Fillcolor Color `json:"fillcolor,omitempty"` + Fillcolor ColorWithColorScale `json:"fillcolor,omitempty"` // Hoverinfo // default: all @@ -93,7 +93,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -109,13 +109,13 @@ type Contour struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: false @@ -127,7 +127,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -139,13 +139,13 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -171,19 +171,19 @@ type Contour struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Ncontours // arrayOK: false @@ -233,13 +233,13 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: false // type: string // For this trace it only has an effect if `coloring` is set to *heatmap*. Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `x`, `y`, `z` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate string `json:"texttemplate,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -257,7 +257,7 @@ type Contour struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -299,7 +299,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -323,7 +323,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Xtype // default: %!s() @@ -359,7 +359,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -383,7 +383,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Ytype // default: %!s() @@ -407,7 +407,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zmax // arrayOK: false @@ -431,7 +431,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // ContourColorbarTickfont Sets the color bar's tick label font @@ -447,7 +447,7 @@ type ContourColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -469,7 +469,7 @@ type ContourColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -495,7 +495,7 @@ type ContourColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ContourColorbar @@ -647,7 +647,7 @@ type ContourColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -689,7 +689,7 @@ type ContourColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -701,7 +701,7 @@ type ContourColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -713,7 +713,7 @@ type ContourColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -725,7 +725,7 @@ type ContourColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -787,7 +787,7 @@ type ContourContoursLabelfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -819,7 +819,7 @@ type ContourContours struct { // arrayOK: false // type: string // Sets the contour label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. - Labelformat String `json:"labelformat,omitempty"` + Labelformat string `json:"labelformat,omitempty"` // Operation // default: = @@ -871,37 +871,37 @@ type ContourHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ContourHoverlabel @@ -917,31 +917,31 @@ type ContourHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -951,13 +951,13 @@ type ContourHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ContourLegendgrouptitleFont Sets this legend group's title font. @@ -973,7 +973,7 @@ type ContourLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -993,7 +993,7 @@ type ContourLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ContourLine @@ -1009,7 +1009,7 @@ type ContourLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Smoothing // arrayOK: false @@ -1037,7 +1037,7 @@ type ContourStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ContourTextfont For this trace it only has an effect if `coloring` is set to *heatmap*. Sets the text font. @@ -1053,7 +1053,7 @@ type ContourTextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/contourcarpet_gen.go b/generated/v2.19.0/graph_objects/contourcarpet_gen.go index 09066a0..9cc4c90 100644 --- a/generated/v2.19.0/graph_objects/contourcarpet_gen.go +++ b/generated/v2.19.0/graph_objects/contourcarpet_gen.go @@ -31,7 +31,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `a`. - Asrc String `json:"asrc,omitempty"` + Asrc string `json:"asrc,omitempty"` // Atype // default: %!s() @@ -67,7 +67,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `b`. - Bsrc String `json:"bsrc,omitempty"` + Bsrc string `json:"bsrc,omitempty"` // Btype // default: %!s() @@ -79,7 +79,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // The `carpet` of the carpet axes on which this contour trace lies - Carpet String `json:"carpet,omitempty"` + Carpet string `json:"carpet,omitempty"` // Coloraxis // arrayOK: false @@ -111,7 +111,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Da // arrayOK: false @@ -129,7 +129,7 @@ type Contourcarpet struct { // arrayOK: false // type: color // Sets the fill color if `contours.type` is *constraint*. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. - Fillcolor Color `json:"fillcolor,omitempty"` + Fillcolor ColorWithColorScale `json:"fillcolor,omitempty"` // Hovertext // arrayOK: false @@ -141,7 +141,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -153,13 +153,13 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -185,19 +185,19 @@ type Contourcarpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Ncontours // arrayOK: false @@ -243,7 +243,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transpose // arrayOK: false @@ -255,7 +255,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -315,7 +315,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // ContourcarpetColorbarTickfont Sets the color bar's tick label font @@ -331,7 +331,7 @@ type ContourcarpetColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -353,7 +353,7 @@ type ContourcarpetColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -379,7 +379,7 @@ type ContourcarpetColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ContourcarpetColorbar @@ -531,7 +531,7 @@ type ContourcarpetColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -573,7 +573,7 @@ type ContourcarpetColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -585,7 +585,7 @@ type ContourcarpetColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -597,7 +597,7 @@ type ContourcarpetColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -609,7 +609,7 @@ type ContourcarpetColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -671,7 +671,7 @@ type ContourcarpetContoursLabelfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -703,7 +703,7 @@ type ContourcarpetContours struct { // arrayOK: false // type: string // Sets the contour label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. - Labelformat String `json:"labelformat,omitempty"` + Labelformat string `json:"labelformat,omitempty"` // Operation // default: = @@ -761,7 +761,7 @@ type ContourcarpetLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -781,7 +781,7 @@ type ContourcarpetLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ContourcarpetLine @@ -797,7 +797,7 @@ type ContourcarpetLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Smoothing // arrayOK: false @@ -825,7 +825,7 @@ type ContourcarpetStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ContourcarpetAtype If *array*, the heatmap's x coordinates are given by *x* (the default behavior when `x` is provided). If *scaled*, the heatmap's x coordinates are given by *x0* and *dx* (the default behavior when `x` is not provided). diff --git a/generated/v2.19.0/graph_objects/densitymapbox_gen.go b/generated/v2.19.0/graph_objects/densitymapbox_gen.go index 21699df..ebbd8c8 100644 --- a/generated/v2.19.0/graph_objects/densitymapbox_gen.go +++ b/generated/v2.19.0/graph_objects/densitymapbox_gen.go @@ -25,7 +25,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Determines if the densitymapbox trace will be inserted before the layer with the specified ID. By default, densitymapbox traces are placed below the first layer of type symbol If set to '', the layer will be inserted above every existing layer. - Below String `json:"below,omitempty"` + Below string `json:"below,omitempty"` // Coloraxis // arrayOK: false @@ -53,7 +53,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo // default: all @@ -65,7 +65,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -75,25 +75,25 @@ type Densitymapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -105,7 +105,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Lat // arrayOK: false @@ -117,13 +117,13 @@ type Densitymapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `lat`. - Latsrc String `json:"latsrc,omitempty"` + Latsrc string `json:"latsrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -151,25 +151,25 @@ type Densitymapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `lon`. - Lonsrc String `json:"lonsrc,omitempty"` + Lonsrc string `json:"lonsrc,omitempty"` // Meta // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -181,13 +181,13 @@ type Densitymapbox struct { // arrayOK: true // type: number // Sets the radius of influence of one `lon` / `lat` point in pixels. Increasing the value makes the densitymapbox trace smoother, but less detailed. - Radius float64 `json:"radius,omitempty"` + Radius ArrayOK[*float64] `json:"radius,omitempty"` // Radiussrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `radius`. - Radiussrc String `json:"radiussrc,omitempty"` + Radiussrc string `json:"radiussrc,omitempty"` // Reversescale // arrayOK: false @@ -221,13 +221,13 @@ type Densitymapbox struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -239,7 +239,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -287,7 +287,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // DensitymapboxColorbarTickfont Sets the color bar's tick label font @@ -303,7 +303,7 @@ type DensitymapboxColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -325,7 +325,7 @@ type DensitymapboxColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -351,7 +351,7 @@ type DensitymapboxColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // DensitymapboxColorbar @@ -503,7 +503,7 @@ type DensitymapboxColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -545,7 +545,7 @@ type DensitymapboxColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -557,7 +557,7 @@ type DensitymapboxColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -569,7 +569,7 @@ type DensitymapboxColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -581,7 +581,7 @@ type DensitymapboxColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -637,37 +637,37 @@ type DensitymapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // DensitymapboxHoverlabel @@ -683,31 +683,31 @@ type DensitymapboxHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -717,13 +717,13 @@ type DensitymapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // DensitymapboxLegendgrouptitleFont Sets this legend group's title font. @@ -739,7 +739,7 @@ type DensitymapboxLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -759,7 +759,7 @@ type DensitymapboxLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // DensitymapboxStream @@ -775,7 +775,7 @@ type DensitymapboxStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // DensitymapboxColorbarExponentformat Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. diff --git a/generated/v2.19.0/graph_objects/funnel_gen.go b/generated/v2.19.0/graph_objects/funnel_gen.go index 11f9103..1418682 100644 --- a/generated/v2.19.0/graph_objects/funnel_gen.go +++ b/generated/v2.19.0/graph_objects/funnel_gen.go @@ -19,7 +19,7 @@ type Funnel struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. - Alignmentgroup String `json:"alignmentgroup,omitempty"` + Alignmentgroup string `json:"alignmentgroup,omitempty"` // Cliponaxis // arrayOK: false @@ -47,7 +47,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -71,7 +71,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -81,25 +81,25 @@ type Funnel struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `percentInitial`, `percentPrevious` and `percentTotal`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -111,7 +111,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextanchor // default: middle @@ -127,7 +127,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -153,19 +153,19 @@ type Funnel struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Offset // arrayOK: false @@ -177,7 +177,7 @@ type Funnel struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. - Offsetgroup String `json:"offsetgroup,omitempty"` + Offsetgroup string `json:"offsetgroup,omitempty"` // Opacity // arrayOK: false @@ -215,7 +215,7 @@ type Funnel struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -243,25 +243,25 @@ type Funnel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `percentInitial`, `percentPrevious`, `percentTotal`, `label` and `value`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -273,7 +273,7 @@ type Funnel struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -315,7 +315,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -339,7 +339,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -363,7 +363,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -387,7 +387,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // FunnelConnectorLine @@ -403,7 +403,7 @@ type FunnelConnectorLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -439,37 +439,37 @@ type FunnelHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelHoverlabel @@ -485,31 +485,31 @@ type FunnelHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -519,13 +519,13 @@ type FunnelHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // FunnelInsidetextfont Sets the font used for `text` lying inside the bar. @@ -535,37 +535,37 @@ type FunnelInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelLegendgrouptitleFont Sets this legend group's title font. @@ -581,7 +581,7 @@ type FunnelLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -601,7 +601,7 @@ type FunnelLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // FunnelMarkerColorbarTickfont Sets the color bar's tick label font @@ -617,7 +617,7 @@ type FunnelMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -639,7 +639,7 @@ type FunnelMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -665,7 +665,7 @@ type FunnelMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // FunnelMarkerColorbar @@ -817,7 +817,7 @@ type FunnelMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -859,7 +859,7 @@ type FunnelMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -871,7 +871,7 @@ type FunnelMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -883,7 +883,7 @@ type FunnelMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -895,7 +895,7 @@ type FunnelMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -981,7 +981,7 @@ type FunnelMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -999,7 +999,7 @@ type FunnelMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -1011,13 +1011,13 @@ type FunnelMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // FunnelMarker @@ -1057,7 +1057,7 @@ type FunnelMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1079,7 +1079,7 @@ type FunnelMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Line // role: Object @@ -1089,13 +1089,13 @@ type FunnelMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1117,37 +1117,37 @@ type FunnelOutsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelStream @@ -1163,7 +1163,7 @@ type FunnelStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // FunnelTextfont Sets the font used for `text`. @@ -1173,37 +1173,37 @@ type FunnelTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelConstraintext Constrain the size of text inside or outside a bar to be no larger than the bar itself. diff --git a/generated/v2.19.0/graph_objects/funnelarea_gen.go b/generated/v2.19.0/graph_objects/funnelarea_gen.go index 58e3e1f..21e0da3 100644 --- a/generated/v2.19.0/graph_objects/funnelarea_gen.go +++ b/generated/v2.19.0/graph_objects/funnelarea_gen.go @@ -37,7 +37,7 @@ type Funnelarea struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dlabel // arrayOK: false @@ -59,7 +59,7 @@ type Funnelarea struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -69,25 +69,25 @@ type Funnelarea struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `label`, `color`, `value`, `text` and `percent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -99,7 +99,7 @@ type Funnelarea struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextfont // role: Object @@ -121,13 +121,13 @@ type Funnelarea struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `labels`. - Labelssrc String `json:"labelssrc,omitempty"` + Labelssrc string `json:"labelssrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -153,19 +153,19 @@ type Funnelarea struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -177,7 +177,7 @@ type Funnelarea struct { // arrayOK: false // type: string // If there are multiple funnelareas that should be sized according to their totals, link them by providing a non-empty group id here shared by every trace in the same group. - Scalegroup String `json:"scalegroup,omitempty"` + Scalegroup string `json:"scalegroup,omitempty"` // Showlegend // arrayOK: false @@ -215,25 +215,25 @@ type Funnelarea struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `label`, `color`, `value`, `text` and `percent`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Title // role: Object @@ -249,7 +249,7 @@ type Funnelarea struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -267,7 +267,7 @@ type Funnelarea struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `values`. - Valuessrc String `json:"valuessrc,omitempty"` + Valuessrc string `json:"valuessrc,omitempty"` // Visible // default: %!s(bool=true) @@ -311,37 +311,37 @@ type FunnelareaHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelareaHoverlabel @@ -357,31 +357,31 @@ type FunnelareaHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -391,13 +391,13 @@ type FunnelareaHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // FunnelareaInsidetextfont Sets the font used for `textinfo` lying inside the sector. @@ -407,37 +407,37 @@ type FunnelareaInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelareaLegendgrouptitleFont Sets this legend group's title font. @@ -453,7 +453,7 @@ type FunnelareaLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -473,7 +473,7 @@ type FunnelareaLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // FunnelareaMarkerLine @@ -483,25 +483,25 @@ type FunnelareaMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // FunnelareaMarker @@ -517,7 +517,7 @@ type FunnelareaMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `colors`. - Colorssrc String `json:"colorssrc,omitempty"` + Colorssrc string `json:"colorssrc,omitempty"` // Line // role: Object @@ -537,7 +537,7 @@ type FunnelareaStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // FunnelareaTextfont Sets the font used for `textinfo`. @@ -547,37 +547,37 @@ type FunnelareaTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelareaTitleFont Sets the font used for `title`. Note that the title's font used to be set by the now deprecated `titlefont` attribute. @@ -587,37 +587,37 @@ type FunnelareaTitleFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelareaTitle @@ -637,7 +637,7 @@ type FunnelareaTitle struct { // arrayOK: false // type: string // Sets the title of the chart. If it is empty, no title is displayed. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // FunnelareaHoverlabelAlign Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines diff --git a/generated/v2.19.0/graph_objects/heatmap_gen.go b/generated/v2.19.0/graph_objects/heatmap_gen.go index af04e8c..de3fa7e 100644 --- a/generated/v2.19.0/graph_objects/heatmap_gen.go +++ b/generated/v2.19.0/graph_objects/heatmap_gen.go @@ -53,7 +53,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -77,7 +77,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -93,13 +93,13 @@ type Heatmap struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: false @@ -111,7 +111,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -123,13 +123,13 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -151,19 +151,19 @@ type Heatmap struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -207,13 +207,13 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: false // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `x`, `y`, `z` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate string `json:"texttemplate,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -231,7 +231,7 @@ type Heatmap struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -279,7 +279,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -303,7 +303,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Xtype // default: %!s() @@ -345,7 +345,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -369,7 +369,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Ytype // default: %!s() @@ -393,7 +393,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zmax // arrayOK: false @@ -423,7 +423,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // HeatmapColorbarTickfont Sets the color bar's tick label font @@ -439,7 +439,7 @@ type HeatmapColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -461,7 +461,7 @@ type HeatmapColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -487,7 +487,7 @@ type HeatmapColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // HeatmapColorbar @@ -639,7 +639,7 @@ type HeatmapColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -681,7 +681,7 @@ type HeatmapColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -693,7 +693,7 @@ type HeatmapColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -705,7 +705,7 @@ type HeatmapColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -717,7 +717,7 @@ type HeatmapColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -773,37 +773,37 @@ type HeatmapHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // HeatmapHoverlabel @@ -819,31 +819,31 @@ type HeatmapHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -853,13 +853,13 @@ type HeatmapHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // HeatmapLegendgrouptitleFont Sets this legend group's title font. @@ -875,7 +875,7 @@ type HeatmapLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -895,7 +895,7 @@ type HeatmapLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // HeatmapStream @@ -911,7 +911,7 @@ type HeatmapStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // HeatmapTextfont Sets the text font. @@ -927,7 +927,7 @@ type HeatmapTextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/heatmapgl_gen.go b/generated/v2.19.0/graph_objects/heatmapgl_gen.go index d581134..709e102 100644 --- a/generated/v2.19.0/graph_objects/heatmapgl_gen.go +++ b/generated/v2.19.0/graph_objects/heatmapgl_gen.go @@ -47,7 +47,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -71,7 +71,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -87,7 +87,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgrouptitle // role: Object @@ -109,19 +109,19 @@ type Heatmapgl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -155,7 +155,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -173,7 +173,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -209,7 +209,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Xtype // default: %!s() @@ -239,7 +239,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Ytype // default: %!s() @@ -287,7 +287,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // HeatmapglColorbarTickfont Sets the color bar's tick label font @@ -303,7 +303,7 @@ type HeatmapglColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -325,7 +325,7 @@ type HeatmapglColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -351,7 +351,7 @@ type HeatmapglColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // HeatmapglColorbar @@ -503,7 +503,7 @@ type HeatmapglColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -545,7 +545,7 @@ type HeatmapglColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -557,7 +557,7 @@ type HeatmapglColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -569,7 +569,7 @@ type HeatmapglColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -581,7 +581,7 @@ type HeatmapglColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -637,37 +637,37 @@ type HeatmapglHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // HeatmapglHoverlabel @@ -683,31 +683,31 @@ type HeatmapglHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -717,13 +717,13 @@ type HeatmapglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // HeatmapglLegendgrouptitleFont Sets this legend group's title font. @@ -739,7 +739,7 @@ type HeatmapglLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -759,7 +759,7 @@ type HeatmapglLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // HeatmapglStream @@ -775,7 +775,7 @@ type HeatmapglStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // HeatmapglColorbarExponentformat Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. diff --git a/generated/v2.19.0/graph_objects/histogram2d_gen.go b/generated/v2.19.0/graph_objects/histogram2d_gen.go index 163eea1..0296020 100644 --- a/generated/v2.19.0/graph_objects/histogram2d_gen.go +++ b/generated/v2.19.0/graph_objects/histogram2d_gen.go @@ -37,7 +37,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Set the `xbingroup` and `ybingroup` default prefix For example, setting a `bingroup` of *1* on two histogram2d traces will make them their x-bins and y-bins match separately. - Bingroup String `json:"bingroup,omitempty"` + Bingroup string `json:"bingroup,omitempty"` // Coloraxis // arrayOK: false @@ -65,7 +65,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Histfunc // default: count @@ -89,7 +89,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -99,13 +99,13 @@ type Histogram2d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variable `z` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Ids // arrayOK: false @@ -117,13 +117,13 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -149,19 +149,19 @@ type Histogram2d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Nbinsx // arrayOK: false @@ -211,7 +211,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variable `z` - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate string `json:"texttemplate,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -223,7 +223,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -253,7 +253,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Set a group of histogram traces which will have compatible x-bin settings. Using `xbingroup`, histogram2d and histogram2dcontour traces (on axes of the same axis type) can have compatible x-bin settings. Note that the same `xbingroup` value can be used to set (1D) histogram `bingroup` - Xbingroup String `json:"xbingroup,omitempty"` + Xbingroup string `json:"xbingroup,omitempty"` // Xbins // role: Object @@ -275,13 +275,13 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -299,7 +299,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Set a group of histogram traces which will have compatible y-bin settings. Using `ybingroup`, histogram2d and histogram2dcontour traces (on axes of the same axis type) can have compatible y-bin settings. Note that the same `ybingroup` value can be used to set (1D) histogram `bingroup` - Ybingroup String `json:"ybingroup,omitempty"` + Ybingroup string `json:"ybingroup,omitempty"` // Ybins // role: Object @@ -321,13 +321,13 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -345,7 +345,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zmax // arrayOK: false @@ -375,7 +375,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // Histogram2dColorbarTickfont Sets the color bar's tick label font @@ -391,7 +391,7 @@ type Histogram2dColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -413,7 +413,7 @@ type Histogram2dColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -439,7 +439,7 @@ type Histogram2dColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Histogram2dColorbar @@ -591,7 +591,7 @@ type Histogram2dColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -633,7 +633,7 @@ type Histogram2dColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -645,7 +645,7 @@ type Histogram2dColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -657,7 +657,7 @@ type Histogram2dColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -669,7 +669,7 @@ type Histogram2dColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -725,37 +725,37 @@ type Histogram2dHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // Histogram2dHoverlabel @@ -771,31 +771,31 @@ type Histogram2dHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -805,13 +805,13 @@ type Histogram2dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // Histogram2dLegendgrouptitleFont Sets this legend group's title font. @@ -827,7 +827,7 @@ type Histogram2dLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -847,7 +847,7 @@ type Histogram2dLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Histogram2dMarker @@ -863,7 +863,7 @@ type Histogram2dMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` } // Histogram2dStream @@ -879,7 +879,7 @@ type Histogram2dStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // Histogram2dTextfont Sets the text font. @@ -895,7 +895,7 @@ type Histogram2dTextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go b/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go index e0dd867..e42bf25 100644 --- a/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go +++ b/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go @@ -43,7 +43,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Set the `xbingroup` and `ybingroup` default prefix For example, setting a `bingroup` of *1* on two histogram2d traces will make them their x-bins and y-bins match separately. - Bingroup String `json:"bingroup,omitempty"` + Bingroup string `json:"bingroup,omitempty"` // Coloraxis // arrayOK: false @@ -75,7 +75,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Histfunc // default: count @@ -99,7 +99,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -109,13 +109,13 @@ type Histogram2dcontour struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variable `z` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Ids // arrayOK: false @@ -127,13 +127,13 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -163,19 +163,19 @@ type Histogram2dcontour struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Nbinsx // arrayOK: false @@ -231,7 +231,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // For this trace it only has an effect if `coloring` is set to *heatmap*. Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `x`, `y`, `z` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate string `json:"texttemplate,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -243,7 +243,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -273,7 +273,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Set a group of histogram traces which will have compatible x-bin settings. Using `xbingroup`, histogram2d and histogram2dcontour traces (on axes of the same axis type) can have compatible x-bin settings. Note that the same `xbingroup` value can be used to set (1D) histogram `bingroup` - Xbingroup String `json:"xbingroup,omitempty"` + Xbingroup string `json:"xbingroup,omitempty"` // Xbins // role: Object @@ -289,13 +289,13 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -313,7 +313,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Set a group of histogram traces which will have compatible y-bin settings. Using `ybingroup`, histogram2d and histogram2dcontour traces (on axes of the same axis type) can have compatible y-bin settings. Note that the same `ybingroup` value can be used to set (1D) histogram `bingroup` - Ybingroup String `json:"ybingroup,omitempty"` + Ybingroup string `json:"ybingroup,omitempty"` // Ybins // role: Object @@ -329,13 +329,13 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -353,7 +353,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zmax // arrayOK: false @@ -377,7 +377,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // Histogram2dcontourColorbarTickfont Sets the color bar's tick label font @@ -393,7 +393,7 @@ type Histogram2dcontourColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -415,7 +415,7 @@ type Histogram2dcontourColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -441,7 +441,7 @@ type Histogram2dcontourColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Histogram2dcontourColorbar @@ -593,7 +593,7 @@ type Histogram2dcontourColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -635,7 +635,7 @@ type Histogram2dcontourColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -647,7 +647,7 @@ type Histogram2dcontourColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -659,7 +659,7 @@ type Histogram2dcontourColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -671,7 +671,7 @@ type Histogram2dcontourColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -733,7 +733,7 @@ type Histogram2dcontourContoursLabelfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -765,7 +765,7 @@ type Histogram2dcontourContours struct { // arrayOK: false // type: string // Sets the contour label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. - Labelformat String `json:"labelformat,omitempty"` + Labelformat string `json:"labelformat,omitempty"` // Operation // default: = @@ -817,37 +817,37 @@ type Histogram2dcontourHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // Histogram2dcontourHoverlabel @@ -863,31 +863,31 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -897,13 +897,13 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // Histogram2dcontourLegendgrouptitleFont Sets this legend group's title font. @@ -919,7 +919,7 @@ type Histogram2dcontourLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -939,7 +939,7 @@ type Histogram2dcontourLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Histogram2dcontourLine @@ -955,7 +955,7 @@ type Histogram2dcontourLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Smoothing // arrayOK: false @@ -983,7 +983,7 @@ type Histogram2dcontourMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` } // Histogram2dcontourStream @@ -999,7 +999,7 @@ type Histogram2dcontourStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // Histogram2dcontourTextfont For this trace it only has an effect if `coloring` is set to *heatmap*. Sets the text font. @@ -1015,7 +1015,7 @@ type Histogram2dcontourTextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/histogram_gen.go b/generated/v2.19.0/graph_objects/histogram_gen.go index 4695d27..a433228 100644 --- a/generated/v2.19.0/graph_objects/histogram_gen.go +++ b/generated/v2.19.0/graph_objects/histogram_gen.go @@ -19,7 +19,7 @@ type Histogram struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. - Alignmentgroup String `json:"alignmentgroup,omitempty"` + Alignmentgroup string `json:"alignmentgroup,omitempty"` // Autobinx // arrayOK: false @@ -37,7 +37,7 @@ type Histogram struct { // arrayOK: false // type: string // Set a group of histogram traces which will have compatible bin settings. Note that traces on the same subplot and with the same *orientation* under `barmode` *stack*, *relative* and *group* are forced into the same bingroup, Using `bingroup`, traces under `barmode` *overlay* and on different axes (of the same axis type) can have compatible bin settings. Note that histogram and histogram2d* trace can share the same `bingroup` - Bingroup String `json:"bingroup,omitempty"` + Bingroup string `json:"bingroup,omitempty"` // Cliponaxis // arrayOK: false @@ -65,7 +65,7 @@ type Histogram struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // ErrorX // role: Object @@ -97,7 +97,7 @@ type Histogram struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -107,25 +107,25 @@ type Histogram struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variable `binNumber` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -137,7 +137,7 @@ type Histogram struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextanchor // default: end @@ -153,7 +153,7 @@ type Histogram struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -179,19 +179,19 @@ type Histogram struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Nbinsx // arrayOK: false @@ -209,7 +209,7 @@ type Histogram struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. - Offsetgroup String `json:"offsetgroup,omitempty"` + Offsetgroup string `json:"offsetgroup,omitempty"` // Opacity // arrayOK: false @@ -251,7 +251,7 @@ type Histogram struct { // arrayOK: true // type: string // Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace's coordinates. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -273,13 +273,13 @@ type Histogram struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: false // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `label` and `value`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate string `json:"texttemplate,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -291,7 +291,7 @@ type Histogram struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -335,13 +335,13 @@ type Histogram struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -369,13 +369,13 @@ type Histogram struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // HistogramCumulative @@ -419,13 +419,13 @@ type HistogramErrorX struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -513,13 +513,13 @@ type HistogramErrorY struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -589,37 +589,37 @@ type HistogramHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // HistogramHoverlabel @@ -635,31 +635,31 @@ type HistogramHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -669,13 +669,13 @@ type HistogramHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // HistogramInsidetextfont Sets the font used for `text` lying inside the bar. @@ -691,7 +691,7 @@ type HistogramInsidetextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -713,7 +713,7 @@ type HistogramLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -733,7 +733,7 @@ type HistogramLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // HistogramMarkerColorbarTickfont Sets the color bar's tick label font @@ -749,7 +749,7 @@ type HistogramMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -771,7 +771,7 @@ type HistogramMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -797,7 +797,7 @@ type HistogramMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // HistogramMarkerColorbar @@ -949,7 +949,7 @@ type HistogramMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -991,7 +991,7 @@ type HistogramMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -1003,7 +1003,7 @@ type HistogramMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -1015,7 +1015,7 @@ type HistogramMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -1027,7 +1027,7 @@ type HistogramMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -1113,7 +1113,7 @@ type HistogramMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1131,7 +1131,7 @@ type HistogramMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -1143,13 +1143,13 @@ type HistogramMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // HistogramMarkerPattern Sets the pattern within the marker. @@ -1159,25 +1159,25 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -1201,31 +1201,31 @@ type HistogramMarkerPattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // HistogramMarker @@ -1265,7 +1265,7 @@ type HistogramMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1287,7 +1287,7 @@ type HistogramMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Line // role: Object @@ -1297,13 +1297,13 @@ type HistogramMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Pattern // role: Object @@ -1335,7 +1335,7 @@ type HistogramOutsidetextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1395,7 +1395,7 @@ type HistogramStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // HistogramTextfont Sets the text font. @@ -1411,7 +1411,7 @@ type HistogramTextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/icicle_gen.go b/generated/v2.19.0/graph_objects/icicle_gen.go index 0fd2b6a..fdd329d 100644 --- a/generated/v2.19.0/graph_objects/icicle_gen.go +++ b/generated/v2.19.0/graph_objects/icicle_gen.go @@ -37,7 +37,7 @@ type Icicle struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Domain // role: Object @@ -53,7 +53,7 @@ type Icicle struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -63,25 +63,25 @@ type Icicle struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -93,7 +93,7 @@ type Icicle struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextfont // role: Object @@ -109,7 +109,7 @@ type Icicle struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `labels`. - Labelssrc String `json:"labelssrc,omitempty"` + Labelssrc string `json:"labelssrc,omitempty"` // Leaf // role: Object @@ -151,19 +151,19 @@ type Icicle struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -185,7 +185,7 @@ type Icicle struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `parents`. - Parentssrc String `json:"parentssrc,omitempty"` + Parentssrc string `json:"parentssrc,omitempty"` // Pathbar // role: Object @@ -231,19 +231,19 @@ type Icicle struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Tiling // role: Object @@ -259,7 +259,7 @@ type Icicle struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -277,7 +277,7 @@ type Icicle struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `values`. - Valuessrc String `json:"valuessrc,omitempty"` + Valuessrc string `json:"valuessrc,omitempty"` // Visible // default: %!s(bool=true) @@ -321,37 +321,37 @@ type IcicleHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // IcicleHoverlabel @@ -367,31 +367,31 @@ type IcicleHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -401,13 +401,13 @@ type IcicleHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // IcicleInsidetextfont Sets the font used for `textinfo` lying inside the sector. @@ -417,37 +417,37 @@ type IcicleInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // IcicleLeaf @@ -473,7 +473,7 @@ type IcicleLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -493,7 +493,7 @@ type IcicleLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // IcicleMarkerColorbarTickfont Sets the color bar's tick label font @@ -509,7 +509,7 @@ type IcicleMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -531,7 +531,7 @@ type IcicleMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -557,7 +557,7 @@ type IcicleMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // IcicleMarkerColorbar @@ -709,7 +709,7 @@ type IcicleMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -751,7 +751,7 @@ type IcicleMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -763,7 +763,7 @@ type IcicleMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -775,7 +775,7 @@ type IcicleMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -787,7 +787,7 @@ type IcicleMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -843,25 +843,25 @@ type IcicleMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // IcicleMarker @@ -923,7 +923,7 @@ type IcicleMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `colors`. - Colorssrc String `json:"colorssrc,omitempty"` + Colorssrc string `json:"colorssrc,omitempty"` // Line // role: Object @@ -949,37 +949,37 @@ type IcicleOutsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // IciclePathbarTextfont Sets the font used inside `pathbar`. @@ -989,37 +989,37 @@ type IciclePathbarTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // IciclePathbar @@ -1077,7 +1077,7 @@ type IcicleStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // IcicleTextfont Sets the font used for `textinfo`. @@ -1087,37 +1087,37 @@ type IcicleTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // IcicleTiling diff --git a/generated/v2.19.0/graph_objects/image_gen.go b/generated/v2.19.0/graph_objects/image_gen.go index d84c54b..03b974b 100644 --- a/generated/v2.19.0/graph_objects/image_gen.go +++ b/generated/v2.19.0/graph_objects/image_gen.go @@ -31,7 +31,7 @@ type Image struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -55,7 +55,7 @@ type Image struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -65,13 +65,13 @@ type Image struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `z`, `color` and `colormodel`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: false @@ -83,7 +83,7 @@ type Image struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -95,7 +95,7 @@ type Image struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgrouptitle // role: Object @@ -117,19 +117,19 @@ type Image struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -141,7 +141,7 @@ type Image struct { // arrayOK: false // type: string // Specifies the data URI of the image to be visualized. The URI consists of "data:image/[][;base64]," - Source String `json:"source,omitempty"` + Source string `json:"source,omitempty"` // Stream // role: Object @@ -157,13 +157,13 @@ type Image struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -229,7 +229,7 @@ type Image struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // ImageHoverlabelFont Sets the font used in hover labels. @@ -239,37 +239,37 @@ type ImageHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ImageHoverlabel @@ -285,31 +285,31 @@ type ImageHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -319,13 +319,13 @@ type ImageHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ImageLegendgrouptitleFont Sets this legend group's title font. @@ -341,7 +341,7 @@ type ImageLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -361,7 +361,7 @@ type ImageLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ImageStream @@ -377,7 +377,7 @@ type ImageStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ImageColormodel Color model used to map the numerical color components described in `z` into colors. If `source` is specified, this attribute will be set to `rgba256` otherwise it defaults to `rgb`. diff --git a/generated/v2.19.0/graph_objects/indicator_gen.go b/generated/v2.19.0/graph_objects/indicator_gen.go index 5ca284c..5986ace 100644 --- a/generated/v2.19.0/graph_objects/indicator_gen.go +++ b/generated/v2.19.0/graph_objects/indicator_gen.go @@ -31,7 +31,7 @@ type Indicator struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Delta // role: Object @@ -55,7 +55,7 @@ type Indicator struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgrouptitle // role: Object @@ -77,13 +77,13 @@ type Indicator struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: number @@ -95,7 +95,7 @@ type Indicator struct { // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Number // role: Object @@ -119,7 +119,7 @@ type Indicator struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -153,7 +153,7 @@ type IndicatorDeltaDecreasing struct { // arrayOK: false // type: string // Sets the symbol to display for increasing value - Symbol String `json:"symbol,omitempty"` + Symbol string `json:"symbol,omitempty"` } // IndicatorDeltaFont Set the font used to display the delta @@ -169,7 +169,7 @@ type IndicatorDeltaFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -191,7 +191,7 @@ type IndicatorDeltaIncreasing struct { // arrayOK: false // type: string // Sets the symbol to display for increasing value - Symbol String `json:"symbol,omitempty"` + Symbol string `json:"symbol,omitempty"` } // IndicatorDelta @@ -219,7 +219,7 @@ type IndicatorDelta struct { // arrayOK: false // type: string // Sets a prefix appearing before the delta. - Prefix String `json:"prefix,omitempty"` + Prefix string `json:"prefix,omitempty"` // Reference // arrayOK: false @@ -237,13 +237,13 @@ type IndicatorDelta struct { // arrayOK: false // type: string // Sets a suffix appearing next to the delta. - Suffix String `json:"suffix,omitempty"` + Suffix string `json:"suffix,omitempty"` // Valueformat // arrayOK: false // type: string // Sets the value formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. - Valueformat String `json:"valueformat,omitempty"` + Valueformat string `json:"valueformat,omitempty"` } // IndicatorDomain @@ -287,7 +287,7 @@ type IndicatorGaugeAxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -391,7 +391,7 @@ type IndicatorGaugeAxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -421,7 +421,7 @@ type IndicatorGaugeAxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: outside @@ -433,7 +433,7 @@ type IndicatorGaugeAxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -445,7 +445,7 @@ type IndicatorGaugeAxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -457,7 +457,7 @@ type IndicatorGaugeAxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -603,7 +603,7 @@ type IndicatorLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -623,7 +623,7 @@ type IndicatorLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // IndicatorNumberFont Set the font used to display main number @@ -639,7 +639,7 @@ type IndicatorNumberFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -659,19 +659,19 @@ type IndicatorNumber struct { // arrayOK: false // type: string // Sets a prefix appearing before the number. - Prefix String `json:"prefix,omitempty"` + Prefix string `json:"prefix,omitempty"` // Suffix // arrayOK: false // type: string // Sets a suffix appearing next to the number. - Suffix String `json:"suffix,omitempty"` + Suffix string `json:"suffix,omitempty"` // Valueformat // arrayOK: false // type: string // Sets the value formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. - Valueformat String `json:"valueformat,omitempty"` + Valueformat string `json:"valueformat,omitempty"` } // IndicatorStream @@ -687,7 +687,7 @@ type IndicatorStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // IndicatorTitleFont Set the font used to display the title @@ -703,7 +703,7 @@ type IndicatorTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -729,7 +729,7 @@ type IndicatorTitle struct { // arrayOK: false // type: string // Sets the title of this indicator. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // IndicatorAlign Sets the horizontal alignment of the `text` within the box. Note that this attribute has no effect if an angular gauge is displayed: in this case, it is always centered diff --git a/generated/v2.19.0/graph_objects/isosurface_gen.go b/generated/v2.19.0/graph_objects/isosurface_gen.go index c2086d4..9eb91cf 100644 --- a/generated/v2.19.0/graph_objects/isosurface_gen.go +++ b/generated/v2.19.0/graph_objects/isosurface_gen.go @@ -79,7 +79,7 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Flatshading // arrayOK: false @@ -97,7 +97,7 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -107,25 +107,25 @@ type Isosurface struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -137,7 +137,7 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Isomax // arrayOK: false @@ -155,7 +155,7 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -185,19 +185,19 @@ type Isosurface struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -249,19 +249,19 @@ type Isosurface struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -279,13 +279,13 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `value` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Valuehoverformat String `json:"valuehoverformat,omitempty"` + Valuehoverformat string `json:"valuehoverformat,omitempty"` // Valuesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `value`. - Valuesrc String `json:"valuesrc,omitempty"` + Valuesrc string `json:"valuesrc,omitempty"` // Visible // default: %!s(bool=true) @@ -303,13 +303,13 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -321,13 +321,13 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -339,13 +339,13 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `zaxis.hoverformat`. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // IsosurfaceCapsX @@ -425,7 +425,7 @@ type IsosurfaceColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -447,7 +447,7 @@ type IsosurfaceColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -473,7 +473,7 @@ type IsosurfaceColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // IsosurfaceColorbar @@ -625,7 +625,7 @@ type IsosurfaceColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -667,7 +667,7 @@ type IsosurfaceColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -679,7 +679,7 @@ type IsosurfaceColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -691,7 +691,7 @@ type IsosurfaceColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -703,7 +703,7 @@ type IsosurfaceColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -781,37 +781,37 @@ type IsosurfaceHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // IsosurfaceHoverlabel @@ -827,31 +827,31 @@ type IsosurfaceHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -861,13 +861,13 @@ type IsosurfaceHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // IsosurfaceLegendgrouptitleFont Sets this legend group's title font. @@ -883,7 +883,7 @@ type IsosurfaceLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -903,7 +903,7 @@ type IsosurfaceLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // IsosurfaceLighting @@ -993,7 +993,7 @@ type IsosurfaceSlicesX struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Show // arrayOK: false @@ -1021,7 +1021,7 @@ type IsosurfaceSlicesY struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Show // arrayOK: false @@ -1049,7 +1049,7 @@ type IsosurfaceSlicesZ struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Show // arrayOK: false @@ -1103,7 +1103,7 @@ type IsosurfaceStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // IsosurfaceSurface diff --git a/generated/v2.19.0/graph_objects/layout_gen.go b/generated/v2.19.0/graph_objects/layout_gen.go index cfbf224..cf5259d 100644 --- a/generated/v2.19.0/graph_objects/layout_gen.go +++ b/generated/v2.19.0/graph_objects/layout_gen.go @@ -203,7 +203,7 @@ type Layout struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hiddenlabels`. - Hiddenlabelssrc String `json:"hiddenlabelssrc,omitempty"` + Hiddenlabelssrc string `json:"hiddenlabelssrc,omitempty"` // Hidesources // arrayOK: false @@ -255,13 +255,13 @@ type Layout struct { // arrayOK: true // type: any // Assigns extra meta information that can be used in various `text` attributes. Attributes such as the graph, axis and colorbar `title.text`, annotation `text` `trace.name` in legend items, `rangeselector`, `updatemenus` and `sliders` `label` text all support `meta`. One can access `meta` fields using template strings: `%{meta[i]}` where `i` is the index of the `meta` item in question. `meta` can also be an object for example `{key: value}` which can be accessed %{meta[key]}. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Minreducedheight // arrayOK: false @@ -291,7 +291,7 @@ type Layout struct { // arrayOK: false // type: color // Sets the background color of the paper where the graph is drawn. - PaperBgcolor Color `json:"paper_bgcolor,omitempty"` + PaperBgcolor ColorWithColorScale `json:"paper_bgcolor,omitempty"` // Piecolorway // arrayOK: false @@ -303,7 +303,7 @@ type Layout struct { // arrayOK: false // type: color // Sets the background color of the plotting area in-between x and y axes. - PlotBgcolor Color `json:"plot_bgcolor,omitempty"` + PlotBgcolor ColorWithColorScale `json:"plot_bgcolor,omitempty"` // Polar // role: Object @@ -347,7 +347,7 @@ type Layout struct { // arrayOK: false // type: string // Sets the decimal and thousand separators. For example, *. * puts a '.' before decimals and a space between thousands. In English locales, dflt is *.,* but other locales may alter this default. - Separators String `json:"separators,omitempty"` + Separators string `json:"separators,omitempty"` // Shapes // It's an items array and what goes inside it's... messy... check the docs @@ -559,7 +559,7 @@ type LayoutColoraxisColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -581,7 +581,7 @@ type LayoutColoraxisColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -607,7 +607,7 @@ type LayoutColoraxisColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutColoraxisColorbar @@ -759,7 +759,7 @@ type LayoutColoraxisColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -801,7 +801,7 @@ type LayoutColoraxisColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -813,7 +813,7 @@ type LayoutColoraxisColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -825,7 +825,7 @@ type LayoutColoraxisColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -837,7 +837,7 @@ type LayoutColoraxisColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -977,7 +977,7 @@ type LayoutFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1049,7 +1049,7 @@ type LayoutGeoLataxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -1095,7 +1095,7 @@ type LayoutGeoLonaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -1471,7 +1471,7 @@ type LayoutHoverlabelFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1493,7 +1493,7 @@ type LayoutHoverlabelGrouptitlefont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1551,7 +1551,7 @@ type LayoutLegendFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1573,7 +1573,7 @@ type LayoutLegendGrouptitlefont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1595,7 +1595,7 @@ type LayoutLegendTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1621,7 +1621,7 @@ type LayoutLegendTitle struct { // arrayOK: false // type: string // Sets the title of the legend. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutLegend @@ -1833,7 +1833,7 @@ type LayoutMapbox struct { // arrayOK: false // type: string // Sets the mapbox access token to be used for this mapbox map. Alternatively, the mapbox access token can be set in the configuration options under `mapboxAccessToken`. Note that accessToken are only required when `style` (e.g with values : basic, streets, outdoors, light, dark, satellite, satellite-streets ) and/or a layout layer references the Mapbox server. - Accesstoken String `json:"accesstoken,omitempty"` + Accesstoken string `json:"accesstoken,omitempty"` // Bearing // arrayOK: false @@ -1937,13 +1937,13 @@ type LayoutModebar struct { // arrayOK: true // type: string // Determines which predefined modebar buttons to add. Please note that these buttons will only be shown if they are compatible with all trace types used in a graph. Similar to `config.modeBarButtonsToAdd` option. This may include *v1hovermode*, *hoverclosest*, *hovercompare*, *togglehover*, *togglespikelines*, *drawline*, *drawopenpath*, *drawclosedpath*, *drawcircle*, *drawrect*, *eraseshape*. - Add String `json:"add,omitempty"` + Add ArrayOK[*string] `json:"add,omitempty"` // Addsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `add`. - Addsrc String `json:"addsrc,omitempty"` + Addsrc string `json:"addsrc,omitempty"` // Bgcolor // arrayOK: false @@ -1967,13 +1967,13 @@ type LayoutModebar struct { // arrayOK: true // type: string // Determines which predefined modebar buttons to remove. Similar to `config.modeBarButtonsToRemove` option. This may include *autoScale2d*, *autoscale*, *editInChartStudio*, *editinchartstudio*, *hoverCompareCartesian*, *hovercompare*, *lasso*, *lasso2d*, *orbitRotation*, *orbitrotation*, *pan*, *pan2d*, *pan3d*, *reset*, *resetCameraDefault3d*, *resetCameraLastSave3d*, *resetGeo*, *resetSankeyGroup*, *resetScale2d*, *resetViewMapbox*, *resetViews*, *resetcameradefault*, *resetcameralastsave*, *resetsankeygroup*, *resetscale*, *resetview*, *resetviews*, *select*, *select2d*, *sendDataToCloud*, *senddatatocloud*, *tableRotation*, *tablerotation*, *toImage*, *toggleHover*, *toggleSpikelines*, *togglehover*, *togglespikelines*, *toimage*, *zoom*, *zoom2d*, *zoom3d*, *zoomIn2d*, *zoomInGeo*, *zoomInMapbox*, *zoomOut2d*, *zoomOutGeo*, *zoomOutMapbox*, *zoomin*, *zoomout*. - Remove String `json:"remove,omitempty"` + Remove ArrayOK[*string] `json:"remove,omitempty"` // Removesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `remove`. - Removesrc String `json:"removesrc,omitempty"` + Removesrc string `json:"removesrc,omitempty"` // Uirevision // arrayOK: false @@ -1995,7 +1995,7 @@ type LayoutNewselectionLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -2031,7 +2031,7 @@ type LayoutNewshapeLabelFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -2057,7 +2057,7 @@ type LayoutNewshapeLabel struct { // arrayOK: false // type: string // Sets the text to display with the new shape. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` // Textangle // arrayOK: false @@ -2097,7 +2097,7 @@ type LayoutNewshapeLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -2161,7 +2161,7 @@ type LayoutPolarAngularaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -2189,7 +2189,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -2231,7 +2231,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -2243,7 +2243,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -2367,7 +2367,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -2397,7 +2397,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -2409,7 +2409,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -2421,7 +2421,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -2433,7 +2433,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -2501,7 +2501,7 @@ type LayoutPolarRadialaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -2523,7 +2523,7 @@ type LayoutPolarRadialaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -2543,7 +2543,7 @@ type LayoutPolarRadialaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutPolarRadialaxis @@ -2583,7 +2583,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -2619,7 +2619,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -2631,7 +2631,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -2755,7 +2755,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -2785,7 +2785,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -2797,7 +2797,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -2809,7 +2809,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -2821,7 +2821,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -3057,7 +3057,7 @@ type LayoutSceneXaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -3079,7 +3079,7 @@ type LayoutSceneXaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -3099,7 +3099,7 @@ type LayoutSceneXaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutSceneXaxis @@ -3139,7 +3139,7 @@ type LayoutSceneXaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -3181,7 +3181,7 @@ type LayoutSceneXaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -3335,7 +3335,7 @@ type LayoutSceneXaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -3359,7 +3359,7 @@ type LayoutSceneXaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -3371,7 +3371,7 @@ type LayoutSceneXaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -3383,7 +3383,7 @@ type LayoutSceneXaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -3395,7 +3395,7 @@ type LayoutSceneXaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -3451,7 +3451,7 @@ type LayoutSceneYaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -3473,7 +3473,7 @@ type LayoutSceneYaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -3493,7 +3493,7 @@ type LayoutSceneYaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutSceneYaxis @@ -3533,7 +3533,7 @@ type LayoutSceneYaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -3575,7 +3575,7 @@ type LayoutSceneYaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -3729,7 +3729,7 @@ type LayoutSceneYaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -3753,7 +3753,7 @@ type LayoutSceneYaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -3765,7 +3765,7 @@ type LayoutSceneYaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -3777,7 +3777,7 @@ type LayoutSceneYaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -3789,7 +3789,7 @@ type LayoutSceneYaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -3845,7 +3845,7 @@ type LayoutSceneZaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -3867,7 +3867,7 @@ type LayoutSceneZaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -3887,7 +3887,7 @@ type LayoutSceneZaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutSceneZaxis @@ -3927,7 +3927,7 @@ type LayoutSceneZaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -3969,7 +3969,7 @@ type LayoutSceneZaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -4123,7 +4123,7 @@ type LayoutSceneZaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -4147,7 +4147,7 @@ type LayoutSceneZaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -4159,7 +4159,7 @@ type LayoutSceneZaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -4171,7 +4171,7 @@ type LayoutSceneZaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -4183,7 +4183,7 @@ type LayoutSceneZaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -4331,7 +4331,7 @@ type LayoutSmithImaginaryaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -4359,7 +4359,7 @@ type LayoutSmithImaginaryaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -4371,7 +4371,7 @@ type LayoutSmithImaginaryaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -4441,7 +4441,7 @@ type LayoutSmithImaginaryaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Ticklen // arrayOK: false @@ -4453,7 +4453,7 @@ type LayoutSmithImaginaryaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -4465,7 +4465,7 @@ type LayoutSmithImaginaryaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Tickvals // arrayOK: false @@ -4477,7 +4477,7 @@ type LayoutSmithImaginaryaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -4505,7 +4505,7 @@ type LayoutSmithRealaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -4533,7 +4533,7 @@ type LayoutSmithRealaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -4545,7 +4545,7 @@ type LayoutSmithRealaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -4627,7 +4627,7 @@ type LayoutSmithRealaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Ticklen // arrayOK: false @@ -4639,7 +4639,7 @@ type LayoutSmithRealaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -4651,7 +4651,7 @@ type LayoutSmithRealaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Tickvals // arrayOK: false @@ -4663,7 +4663,7 @@ type LayoutSmithRealaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -4713,7 +4713,7 @@ type LayoutTernaryAaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -4735,7 +4735,7 @@ type LayoutTernaryAaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -4755,7 +4755,7 @@ type LayoutTernaryAaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutTernaryAaxis @@ -4789,7 +4789,7 @@ type LayoutTernaryAaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -4801,7 +4801,7 @@ type LayoutTernaryAaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -4913,7 +4913,7 @@ type LayoutTernaryAaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -4943,7 +4943,7 @@ type LayoutTernaryAaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -4955,7 +4955,7 @@ type LayoutTernaryAaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -4967,7 +4967,7 @@ type LayoutTernaryAaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -4979,7 +4979,7 @@ type LayoutTernaryAaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -5011,7 +5011,7 @@ type LayoutTernaryBaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -5033,7 +5033,7 @@ type LayoutTernaryBaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -5053,7 +5053,7 @@ type LayoutTernaryBaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutTernaryBaxis @@ -5087,7 +5087,7 @@ type LayoutTernaryBaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -5099,7 +5099,7 @@ type LayoutTernaryBaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -5211,7 +5211,7 @@ type LayoutTernaryBaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -5241,7 +5241,7 @@ type LayoutTernaryBaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -5253,7 +5253,7 @@ type LayoutTernaryBaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -5265,7 +5265,7 @@ type LayoutTernaryBaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -5277,7 +5277,7 @@ type LayoutTernaryBaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -5309,7 +5309,7 @@ type LayoutTernaryCaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -5331,7 +5331,7 @@ type LayoutTernaryCaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -5351,7 +5351,7 @@ type LayoutTernaryCaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutTernaryCaxis @@ -5385,7 +5385,7 @@ type LayoutTernaryCaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -5397,7 +5397,7 @@ type LayoutTernaryCaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -5509,7 +5509,7 @@ type LayoutTernaryCaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -5539,7 +5539,7 @@ type LayoutTernaryCaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -5551,7 +5551,7 @@ type LayoutTernaryCaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -5563,7 +5563,7 @@ type LayoutTernaryCaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -5575,7 +5575,7 @@ type LayoutTernaryCaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -5673,7 +5673,7 @@ type LayoutTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -5725,7 +5725,7 @@ type LayoutTitle struct { // arrayOK: false // type: string // Sets the plot's title. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` // X // arrayOK: false @@ -5821,7 +5821,7 @@ type LayoutXaxisMinor struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -5881,7 +5881,7 @@ type LayoutXaxisMinor struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -5903,7 +5903,7 @@ type LayoutXaxisRangeselectorFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -6059,7 +6059,7 @@ type LayoutXaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -6081,7 +6081,7 @@ type LayoutXaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -6107,7 +6107,7 @@ type LayoutXaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutXaxis @@ -6153,7 +6153,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -6225,7 +6225,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -6237,7 +6237,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -6411,7 +6411,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Spikedash String `json:"spikedash,omitempty"` + Spikedash string `json:"spikedash,omitempty"` // Spikemode // default: toaxis @@ -6457,7 +6457,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -6505,7 +6505,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -6523,7 +6523,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -6535,7 +6535,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -6547,7 +6547,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -6615,7 +6615,7 @@ type LayoutYaxisMinor struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -6675,7 +6675,7 @@ type LayoutYaxisMinor struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -6697,7 +6697,7 @@ type LayoutYaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -6719,7 +6719,7 @@ type LayoutYaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -6745,7 +6745,7 @@ type LayoutYaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutYaxis @@ -6797,7 +6797,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -6869,7 +6869,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -6881,7 +6881,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -7053,7 +7053,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Spikedash String `json:"spikedash,omitempty"` + Spikedash string `json:"spikedash,omitempty"` // Spikemode // default: toaxis @@ -7099,7 +7099,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -7147,7 +7147,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -7165,7 +7165,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -7177,7 +7177,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -7189,7 +7189,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/mesh3d_gen.go b/generated/v2.19.0/graph_objects/mesh3d_gen.go index 17ed655..e210e1d 100644 --- a/generated/v2.19.0/graph_objects/mesh3d_gen.go +++ b/generated/v2.19.0/graph_objects/mesh3d_gen.go @@ -55,7 +55,7 @@ type Mesh3d struct { // arrayOK: false // type: color // Sets the color of the whole mesh - Color Color `json:"color,omitempty"` + Color ColorWithColorScale `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -87,7 +87,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Delaunayaxis // default: z @@ -105,7 +105,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `facecolor`. - Facecolorsrc String `json:"facecolorsrc,omitempty"` + Facecolorsrc string `json:"facecolorsrc,omitempty"` // Flatshading // arrayOK: false @@ -123,7 +123,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -133,25 +133,25 @@ type Mesh3d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // I // arrayOK: false @@ -169,7 +169,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Intensity // arrayOK: false @@ -187,13 +187,13 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `intensity`. - Intensitysrc String `json:"intensitysrc,omitempty"` + Intensitysrc string `json:"intensitysrc,omitempty"` // Isrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `i`. - Isrc String `json:"isrc,omitempty"` + Isrc string `json:"isrc,omitempty"` // J // arrayOK: false @@ -205,7 +205,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `j`. - Jsrc String `json:"jsrc,omitempty"` + Jsrc string `json:"jsrc,omitempty"` // K // arrayOK: false @@ -217,13 +217,13 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `k`. - Ksrc String `json:"ksrc,omitempty"` + Ksrc string `json:"ksrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -253,19 +253,19 @@ type Mesh3d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -305,19 +305,19 @@ type Mesh3d struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -335,7 +335,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `vertexcolor`. - Vertexcolorsrc String `json:"vertexcolorsrc,omitempty"` + Vertexcolorsrc string `json:"vertexcolorsrc,omitempty"` // Visible // default: %!s(bool=true) @@ -359,13 +359,13 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -383,13 +383,13 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -407,13 +407,13 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `zaxis.hoverformat`. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // Mesh3dColorbarTickfont Sets the color bar's tick label font @@ -429,7 +429,7 @@ type Mesh3dColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -451,7 +451,7 @@ type Mesh3dColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -477,7 +477,7 @@ type Mesh3dColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Mesh3dColorbar @@ -629,7 +629,7 @@ type Mesh3dColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -671,7 +671,7 @@ type Mesh3dColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -683,7 +683,7 @@ type Mesh3dColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -695,7 +695,7 @@ type Mesh3dColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -707,7 +707,7 @@ type Mesh3dColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -785,37 +785,37 @@ type Mesh3dHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // Mesh3dHoverlabel @@ -831,31 +831,31 @@ type Mesh3dHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -865,13 +865,13 @@ type Mesh3dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // Mesh3dLegendgrouptitleFont Sets this legend group's title font. @@ -887,7 +887,7 @@ type Mesh3dLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -907,7 +907,7 @@ type Mesh3dLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Mesh3dLighting @@ -991,7 +991,7 @@ type Mesh3dStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // Mesh3dColorbarExponentformat Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. diff --git a/generated/v2.19.0/graph_objects/ohlc_gen.go b/generated/v2.19.0/graph_objects/ohlc_gen.go index 792037f..c2c5d75 100644 --- a/generated/v2.19.0/graph_objects/ohlc_gen.go +++ b/generated/v2.19.0/graph_objects/ohlc_gen.go @@ -25,7 +25,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `close`. - Closesrc String `json:"closesrc,omitempty"` + Closesrc string `json:"closesrc,omitempty"` // Customdata // arrayOK: false @@ -37,7 +37,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Decreasing // role: Object @@ -53,7 +53,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `high`. - Highsrc String `json:"highsrc,omitempty"` + Highsrc string `json:"highsrc,omitempty"` // Hoverinfo // default: all @@ -65,7 +65,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -75,13 +75,13 @@ type Ohlc struct { // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -93,7 +93,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Increasing // role: Object @@ -103,7 +103,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -135,25 +135,25 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `low`. - Lowsrc String `json:"lowsrc,omitempty"` + Lowsrc string `json:"lowsrc,omitempty"` // Meta // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -171,7 +171,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `open`. - Opensrc String `json:"opensrc,omitempty"` + Opensrc string `json:"opensrc,omitempty"` // Selectedpoints // arrayOK: false @@ -193,13 +193,13 @@ type Ohlc struct { // arrayOK: true // type: string // Sets hover text elements associated with each sample point. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to this trace's sample points. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Tickwidth // arrayOK: false @@ -217,7 +217,7 @@ type Ohlc struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -253,7 +253,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -277,7 +277,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Yaxis // arrayOK: false @@ -289,7 +289,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` } // OhlcDecreasingLine @@ -305,7 +305,7 @@ type OhlcDecreasingLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -329,37 +329,37 @@ type OhlcHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // OhlcHoverlabel @@ -375,31 +375,31 @@ type OhlcHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -409,13 +409,13 @@ type OhlcHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` // Split // arrayOK: false @@ -437,7 +437,7 @@ type OhlcIncreasingLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -467,7 +467,7 @@ type OhlcLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -487,7 +487,7 @@ type OhlcLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // OhlcLine @@ -497,7 +497,7 @@ type OhlcLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). Note that this style setting can also be set per direction via `increasing.line.dash` and `decreasing.line.dash`. - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -519,7 +519,7 @@ type OhlcStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // OhlcHoverlabelAlign Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines diff --git a/generated/v2.19.0/graph_objects/parcats_gen.go b/generated/v2.19.0/graph_objects/parcats_gen.go index 3f62217..c1c09ed 100644 --- a/generated/v2.19.0/graph_objects/parcats_gen.go +++ b/generated/v2.19.0/graph_objects/parcats_gen.go @@ -31,13 +31,13 @@ type Parcats struct { // arrayOK: true // type: number // The number of observations represented by each state. Defaults to 1 so that each state represents one observation - Counts float64 `json:"counts,omitempty"` + Counts ArrayOK[*float64] `json:"counts,omitempty"` // Countssrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `counts`. - Countssrc String `json:"countssrc,omitempty"` + Countssrc string `json:"countssrc,omitempty"` // Dimensions // It's an items array and what goes inside it's... messy... check the docs @@ -65,7 +65,7 @@ type Parcats struct { // arrayOK: false // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `count`, `probability`, `category`, `categorycount`, `colorcount` and `bandcolorcount`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate string `json:"hovertemplate,omitempty"` // Labelfont // role: Object @@ -89,19 +89,19 @@ type Parcats struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Sortpaths // default: forward @@ -127,7 +127,7 @@ type Parcats struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -183,7 +183,7 @@ type ParcatsLabelfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -205,7 +205,7 @@ type ParcatsLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -225,7 +225,7 @@ type ParcatsLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ParcatsLineColorbarTickfont Sets the color bar's tick label font @@ -241,7 +241,7 @@ type ParcatsLineColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -263,7 +263,7 @@ type ParcatsLineColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -289,7 +289,7 @@ type ParcatsLineColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ParcatsLineColorbar @@ -441,7 +441,7 @@ type ParcatsLineColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -483,7 +483,7 @@ type ParcatsLineColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -495,7 +495,7 @@ type ParcatsLineColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -507,7 +507,7 @@ type ParcatsLineColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -519,7 +519,7 @@ type ParcatsLineColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -605,7 +605,7 @@ type ParcatsLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -627,13 +627,13 @@ type ParcatsLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Hovertemplate // arrayOK: false // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `count` and `probability`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate string `json:"hovertemplate,omitempty"` // Reversescale // arrayOK: false @@ -667,7 +667,7 @@ type ParcatsStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ParcatsTickfont Sets the font for the `category` labels. @@ -683,7 +683,7 @@ type ParcatsTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/parcoords_gen.go b/generated/v2.19.0/graph_objects/parcoords_gen.go index 12f3120..56fd5fa 100644 --- a/generated/v2.19.0/graph_objects/parcoords_gen.go +++ b/generated/v2.19.0/graph_objects/parcoords_gen.go @@ -25,7 +25,7 @@ type Parcoords struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dimensions // It's an items array and what goes inside it's... messy... check the docs @@ -47,7 +47,7 @@ type Parcoords struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Labelangle // arrayOK: false @@ -89,19 +89,19 @@ type Parcoords struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Rangefont // role: Object @@ -125,7 +125,7 @@ type Parcoords struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -185,7 +185,7 @@ type ParcoordsLabelfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -207,7 +207,7 @@ type ParcoordsLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -227,7 +227,7 @@ type ParcoordsLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ParcoordsLineColorbarTickfont Sets the color bar's tick label font @@ -243,7 +243,7 @@ type ParcoordsLineColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -265,7 +265,7 @@ type ParcoordsLineColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -291,7 +291,7 @@ type ParcoordsLineColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ParcoordsLineColorbar @@ -443,7 +443,7 @@ type ParcoordsLineColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -485,7 +485,7 @@ type ParcoordsLineColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -497,7 +497,7 @@ type ParcoordsLineColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -509,7 +509,7 @@ type ParcoordsLineColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -521,7 +521,7 @@ type ParcoordsLineColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -607,7 +607,7 @@ type ParcoordsLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -629,7 +629,7 @@ type ParcoordsLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -657,7 +657,7 @@ type ParcoordsRangefont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -679,7 +679,7 @@ type ParcoordsStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ParcoordsTickfont Sets the font for the `dimension` tick values. @@ -695,7 +695,7 @@ type ParcoordsTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/pie_gen.go b/generated/v2.19.0/graph_objects/pie_gen.go index 2384449..3582daa 100644 --- a/generated/v2.19.0/graph_objects/pie_gen.go +++ b/generated/v2.19.0/graph_objects/pie_gen.go @@ -31,7 +31,7 @@ type Pie struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Direction // default: counterclockwise @@ -65,7 +65,7 @@ type Pie struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -75,25 +75,25 @@ type Pie struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `label`, `color`, `value`, `percent` and `text`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -105,7 +105,7 @@ type Pie struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextfont // role: Object @@ -133,13 +133,13 @@ type Pie struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `labels`. - Labelssrc String `json:"labelssrc,omitempty"` + Labelssrc string `json:"labelssrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -165,19 +165,19 @@ type Pie struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -193,13 +193,13 @@ type Pie struct { // arrayOK: true // type: number // Sets the fraction of larger radius to pull the sectors out from the center. This can be a constant to pull all slices apart from each other equally or an array to highlight one or more slices. - Pull float64 `json:"pull,omitempty"` + Pull ArrayOK[*float64] `json:"pull,omitempty"` // Pullsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `pull`. - Pullsrc String `json:"pullsrc,omitempty"` + Pullsrc string `json:"pullsrc,omitempty"` // Rotation // arrayOK: false @@ -211,7 +211,7 @@ type Pie struct { // arrayOK: false // type: string // If there are multiple pie charts that should be sized according to their totals, link them by providing a non-empty group id here shared by every trace in the same group. - Scalegroup String `json:"scalegroup,omitempty"` + Scalegroup string `json:"scalegroup,omitempty"` // Showlegend // arrayOK: false @@ -255,25 +255,25 @@ type Pie struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `label`, `color`, `value`, `percent` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Title // role: Object @@ -289,7 +289,7 @@ type Pie struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -307,7 +307,7 @@ type Pie struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `values`. - Valuessrc String `json:"valuessrc,omitempty"` + Valuessrc string `json:"valuessrc,omitempty"` // Visible // default: %!s(bool=true) @@ -351,37 +351,37 @@ type PieHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // PieHoverlabel @@ -397,31 +397,31 @@ type PieHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -431,13 +431,13 @@ type PieHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // PieInsidetextfont Sets the font used for `textinfo` lying inside the sector. @@ -447,37 +447,37 @@ type PieInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // PieLegendgrouptitleFont Sets this legend group's title font. @@ -493,7 +493,7 @@ type PieLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -513,7 +513,7 @@ type PieLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // PieMarkerLine @@ -523,25 +523,25 @@ type PieMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // PieMarker @@ -557,7 +557,7 @@ type PieMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `colors`. - Colorssrc String `json:"colorssrc,omitempty"` + Colorssrc string `json:"colorssrc,omitempty"` // Line // role: Object @@ -571,37 +571,37 @@ type PieOutsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // PieStream @@ -617,7 +617,7 @@ type PieStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // PieTextfont Sets the font used for `textinfo`. @@ -627,37 +627,37 @@ type PieTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // PieTitleFont Sets the font used for `title`. Note that the title's font used to be set by the now deprecated `titlefont` attribute. @@ -667,37 +667,37 @@ type PieTitleFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // PieTitle @@ -717,7 +717,7 @@ type PieTitle struct { // arrayOK: false // type: string // Sets the title of the chart. If it is empty, no title is displayed. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // PieDirection Specifies the direction at which succeeding sectors follow one another. diff --git a/generated/v2.19.0/graph_objects/plotly_gen.go b/generated/v2.19.0/graph_objects/plotly_gen.go index 4158d9f..f1b563d 100644 --- a/generated/v2.19.0/graph_objects/plotly_gen.go +++ b/generated/v2.19.0/graph_objects/plotly_gen.go @@ -71,7 +71,7 @@ type unmarshalFig struct { Config *Config `json:"config,omitempty"` } -// Bool represents a *bool value. Needed to tell the differenc between false and nil. +// Bool represents a *bool value. Needed to tell the different between false and nil. type Bool *bool var ( @@ -89,10 +89,116 @@ var ( type String interface{} // Color A string describing color. Supported formats: - hex (e.g. '#d3d3d3') - rgb (e.g. 'rgb(255, 0, 0)') - rgba (e.g. 'rgb(255, 0, 0, 0.5)') - hsl (e.g. 'hsl(0, 100%, 50%)') - hsv (e.g. 'hsv(0, 100%, 100%)') - named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)", -type Color interface{} +type Color string + +func UseColorScaleValues(in []float64) []ColorWithColorScale { + out := make([]ColorWithColorScale, len(in), len(in)) + for i := 0; i < len(in); i++ { + out[i] = ColorWithColorScale{ + Value: in[i], + } + } + return out +} + +func UseColors(in []Color) []ColorWithColorScale { + out := make([]ColorWithColorScale, len(in), len(in)) + for i := 0; i < len(in); i++ { + out[i] = ColorWithColorScale{ + Color: &in[i], + } + } + return out +} + +func UseColor(in Color) ColorWithColorScale { + return ColorWithColorScale{ + Color: &in, + } +} + +type ColorWithColorScale struct { + Color *Color + Value float64 +} + +func (c *ColorWithColorScale) MarshalJSON() ([]byte, error) { + if c.Color != nil { + return json.Marshal(c.Color) + } + return json.Marshal(c.Value) +} + +func (c *ColorWithColorScale) UnmarshalJSON(data []byte) error { + c.Color = nil + + var color Color + err := json.Unmarshal(data, &color) + if err == nil { + c.Color = &color + return nil + } + + var value float64 + err = json.Unmarshal(data, &value) + if err != nil { + return err + } + c.Value = value + return nil +} // ColorList A list of colors. Must be an {array} containing valid colors. type ColorList []Color // ColorScale A Plotly colorscale either picked by a name: (any of Greys, YlGnBu, Greens, YlOrRd, Bluered, RdBu, Reds, Blues, Picnic, Rainbow, Portland, Jet, Hot, Blackbody, Earth, Electric, Viridis, Cividis ) customized as an {array} of 2-element {arrays} where the first element is the normalized color level value (starting at *0* and ending at *1*), and the second item is a valid color string. type ColorScale interface{} + +func ArrayOKValue[T any](value T) ArrayOK[*T] { + v := &value + return ArrayOK[*T]{Value: v} +} + +func ArrayOKArray[T any](array ...T) ArrayOK[*T] { + out := make([]*T, len(array)) + for i, v := range array { + value := v + out[i] = &value + } + return ArrayOK[*T]{ + Array: out, + } +} + +// ArrayOK is a type that allows you to define a single value or an array of values, But not both. +// If Array is defined, Value will be ignored. +type ArrayOK[T any] struct { + Value T + Array []T +} + +func (arrayOK *ArrayOK[T]) MarshalJSON() ([]byte, error) { + if arrayOK.Array != nil { + return json.Marshal(arrayOK.Array) + } + return json.Marshal(arrayOK.Value) +} + +func (arrayOK *ArrayOK[T]) UnmarshalJSON(data []byte) error { + arrayOK.Array = nil + + var array []T + err := json.Unmarshal(data, &array) + if err == nil { + arrayOK.Array = array + return nil + } + + var value T + err = json.Unmarshal(data, &value) + if err != nil { + return err + } + arrayOK.Value = value + return nil +} diff --git a/generated/v2.19.0/graph_objects/pointcloud_gen.go b/generated/v2.19.0/graph_objects/pointcloud_gen.go index 4c632ae..4def0f8 100644 --- a/generated/v2.19.0/graph_objects/pointcloud_gen.go +++ b/generated/v2.19.0/graph_objects/pointcloud_gen.go @@ -25,7 +25,7 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo // default: all @@ -37,7 +37,7 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -53,7 +53,7 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Indices // arrayOK: false @@ -65,13 +65,13 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `indices`. - Indicessrc String `json:"indicessrc,omitempty"` + Indicessrc string `json:"indicessrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -97,19 +97,19 @@ type Pointcloud struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -131,19 +131,19 @@ type Pointcloud struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -179,13 +179,13 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `xbounds`. - Xboundssrc String `json:"xboundssrc,omitempty"` + Xboundssrc string `json:"xboundssrc,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Xy // arrayOK: false @@ -197,7 +197,7 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `xy`. - Xysrc String `json:"xysrc,omitempty"` + Xysrc string `json:"xysrc,omitempty"` // Y // arrayOK: false @@ -221,13 +221,13 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ybounds`. - Yboundssrc String `json:"yboundssrc,omitempty"` + Yboundssrc string `json:"yboundssrc,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // PointcloudHoverlabelFont Sets the font used in hover labels. @@ -237,37 +237,37 @@ type PointcloudHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // PointcloudHoverlabel @@ -283,31 +283,31 @@ type PointcloudHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -317,13 +317,13 @@ type PointcloudHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // PointcloudLegendgrouptitleFont Sets this legend group's title font. @@ -339,7 +339,7 @@ type PointcloudLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -359,7 +359,7 @@ type PointcloudLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // PointcloudMarkerBorder @@ -429,7 +429,7 @@ type PointcloudStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // PointcloudHoverlabelAlign Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines diff --git a/generated/v2.19.0/graph_objects/sankey_gen.go b/generated/v2.19.0/graph_objects/sankey_gen.go index ec6db8c..15ea55e 100644 --- a/generated/v2.19.0/graph_objects/sankey_gen.go +++ b/generated/v2.19.0/graph_objects/sankey_gen.go @@ -31,7 +31,7 @@ type Sankey struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Domain // role: Object @@ -57,7 +57,7 @@ type Sankey struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgrouptitle // role: Object @@ -83,19 +83,19 @@ type Sankey struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Node // role: Object @@ -125,7 +125,7 @@ type Sankey struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -137,13 +137,13 @@ type Sankey struct { // arrayOK: false // type: string // Sets the value formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. - Valueformat String `json:"valueformat,omitempty"` + Valueformat string `json:"valueformat,omitempty"` // Valuesuffix // arrayOK: false // type: string // Adds a unit to follow the value in the hover tooltip. Add a space if a separation is necessary from the value. - Valuesuffix String `json:"valuesuffix,omitempty"` + Valuesuffix string `json:"valuesuffix,omitempty"` // Visible // default: %!s(bool=true) @@ -187,37 +187,37 @@ type SankeyHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SankeyHoverlabel @@ -233,31 +233,31 @@ type SankeyHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -267,13 +267,13 @@ type SankeyHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // SankeyLegendgrouptitleFont Sets this legend group's title font. @@ -289,7 +289,7 @@ type SankeyLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -309,7 +309,7 @@ type SankeyLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // SankeyLinkHoverlabelFont Sets the font used in hover labels. @@ -319,37 +319,37 @@ type SankeyLinkHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SankeyLinkHoverlabel @@ -365,31 +365,31 @@ type SankeyLinkHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -399,13 +399,13 @@ type SankeyLinkHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // SankeyLinkLine @@ -415,25 +415,25 @@ type SankeyLinkLine struct { // arrayOK: true // type: color // Sets the color of the `line` around each `link`. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the `line` around each `link`. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // SankeyLink The links of the Sankey plot. @@ -449,7 +449,7 @@ type SankeyLink struct { // arrayOK: true // type: color // Sets the `link` color. It can be a single value, or an array for specifying color for each `link`. If `link.color` is omitted, then by default, a translucent grey link will be used. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorscales // It's an items array and what goes inside it's... messy... check the docs @@ -461,7 +461,7 @@ type SankeyLink struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Customdata // arrayOK: false @@ -473,7 +473,7 @@ type SankeyLink struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo // default: all @@ -489,13 +489,13 @@ type SankeyLink struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Label // arrayOK: false @@ -507,7 +507,7 @@ type SankeyLink struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `label`. - Labelsrc String `json:"labelsrc,omitempty"` + Labelsrc string `json:"labelsrc,omitempty"` // Line // role: Object @@ -523,7 +523,7 @@ type SankeyLink struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `source`. - Sourcesrc String `json:"sourcesrc,omitempty"` + Sourcesrc string `json:"sourcesrc,omitempty"` // Target // arrayOK: false @@ -535,7 +535,7 @@ type SankeyLink struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `target`. - Targetsrc String `json:"targetsrc,omitempty"` + Targetsrc string `json:"targetsrc,omitempty"` // Value // arrayOK: false @@ -547,7 +547,7 @@ type SankeyLink struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `value`. - Valuesrc String `json:"valuesrc,omitempty"` + Valuesrc string `json:"valuesrc,omitempty"` } // SankeyNodeHoverlabelFont Sets the font used in hover labels. @@ -557,37 +557,37 @@ type SankeyNodeHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SankeyNodeHoverlabel @@ -603,31 +603,31 @@ type SankeyNodeHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -637,13 +637,13 @@ type SankeyNodeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // SankeyNodeLine @@ -653,25 +653,25 @@ type SankeyNodeLine struct { // arrayOK: true // type: color // Sets the color of the `line` around each `node`. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the `line` around each `node`. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // SankeyNode The nodes of the Sankey plot. @@ -681,13 +681,13 @@ type SankeyNode struct { // arrayOK: true // type: color // Sets the `node` color. It can be a single value, or an array for specifying color for each `node`. If `node.color` is omitted, then the default `Plotly` color palette will be cycled through to have a variety of colors. These defaults are not fully opaque, to allow some visibility of what is beneath the node. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Customdata // arrayOK: false @@ -699,7 +699,7 @@ type SankeyNode struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Groups // arrayOK: false @@ -721,13 +721,13 @@ type SankeyNode struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Label // arrayOK: false @@ -739,7 +739,7 @@ type SankeyNode struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `label`. - Labelsrc String `json:"labelsrc,omitempty"` + Labelsrc string `json:"labelsrc,omitempty"` // Line // role: Object @@ -767,7 +767,7 @@ type SankeyNode struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -779,7 +779,7 @@ type SankeyNode struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // SankeyStream @@ -795,7 +795,7 @@ type SankeyStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // SankeyTextfont Sets the font for node labels @@ -811,7 +811,7 @@ type SankeyTextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scatter3d_gen.go b/generated/v2.19.0/graph_objects/scatter3d_gen.go index a14f5c6..5470b2a 100644 --- a/generated/v2.19.0/graph_objects/scatter3d_gen.go +++ b/generated/v2.19.0/graph_objects/scatter3d_gen.go @@ -31,7 +31,7 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // ErrorX // role: Object @@ -55,7 +55,7 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -65,25 +65,25 @@ type Scatter3d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets text elements associated with each (x,y,z) triplet. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y,z) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -95,13 +95,13 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -131,13 +131,13 @@ type Scatter3d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: lines+markers @@ -149,7 +149,7 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -193,7 +193,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y,z) triplet. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y,z) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -209,25 +209,25 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -239,7 +239,7 @@ type Scatter3d struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -269,13 +269,13 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -293,13 +293,13 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -317,13 +317,13 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `zaxis.hoverformat`. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // Scatter3dErrorX @@ -345,13 +345,13 @@ type Scatter3dErrorX struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -439,13 +439,13 @@ type Scatter3dErrorY struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -533,13 +533,13 @@ type Scatter3dErrorZ struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -609,37 +609,37 @@ type Scatter3dHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // Scatter3dHoverlabel @@ -655,31 +655,31 @@ type Scatter3dHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -689,13 +689,13 @@ type Scatter3dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // Scatter3dLegendgrouptitleFont Sets this legend group's title font. @@ -711,7 +711,7 @@ type Scatter3dLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -731,7 +731,7 @@ type Scatter3dLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Scatter3dLineColorbarTickfont Sets the color bar's tick label font @@ -747,7 +747,7 @@ type Scatter3dLineColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -769,7 +769,7 @@ type Scatter3dLineColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -795,7 +795,7 @@ type Scatter3dLineColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Scatter3dLineColorbar @@ -947,7 +947,7 @@ type Scatter3dLineColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -989,7 +989,7 @@ type Scatter3dLineColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -1001,7 +1001,7 @@ type Scatter3dLineColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -1013,7 +1013,7 @@ type Scatter3dLineColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -1025,7 +1025,7 @@ type Scatter3dLineColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -1111,7 +1111,7 @@ type Scatter3dLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1133,7 +1133,7 @@ type Scatter3dLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Dash // default: solid @@ -1173,7 +1173,7 @@ type Scatter3dMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1195,7 +1195,7 @@ type Scatter3dMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1221,7 +1221,7 @@ type Scatter3dMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Scatter3dMarkerColorbar @@ -1373,7 +1373,7 @@ type Scatter3dMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -1415,7 +1415,7 @@ type Scatter3dMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -1427,7 +1427,7 @@ type Scatter3dMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -1439,7 +1439,7 @@ type Scatter3dMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -1451,7 +1451,7 @@ type Scatter3dMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -1537,7 +1537,7 @@ type Scatter3dMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1555,7 +1555,7 @@ type Scatter3dMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -1607,7 +1607,7 @@ type Scatter3dMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1629,7 +1629,7 @@ type Scatter3dMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Line // role: Object @@ -1657,7 +1657,7 @@ type Scatter3dMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1681,7 +1681,7 @@ type Scatter3dMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Symbol // default: circle @@ -1693,7 +1693,7 @@ type Scatter3dMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // Scatter3dProjectionX @@ -1791,7 +1791,7 @@ type Scatter3dStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // Scatter3dTextfont @@ -1801,31 +1801,31 @@ type Scatter3dTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // Scatter3dErrorXType Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. diff --git a/generated/v2.19.0/graph_objects/scatter_gen.go b/generated/v2.19.0/graph_objects/scatter_gen.go index 39ae389..24ed9e9 100644 --- a/generated/v2.19.0/graph_objects/scatter_gen.go +++ b/generated/v2.19.0/graph_objects/scatter_gen.go @@ -19,7 +19,7 @@ type Scatter struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. - Alignmentgroup String `json:"alignmentgroup,omitempty"` + Alignmentgroup string `json:"alignmentgroup,omitempty"` // Cliponaxis // arrayOK: false @@ -43,7 +43,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -97,7 +97,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -113,25 +113,25 @@ type Scatter struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -143,13 +143,13 @@ type Scatter struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -179,13 +179,13 @@ type Scatter struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: %!s() @@ -197,13 +197,13 @@ type Scatter struct { // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Offsetgroup // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. - Offsetgroup String `json:"offsetgroup,omitempty"` + Offsetgroup string `json:"offsetgroup,omitempty"` // Opacity // arrayOK: false @@ -243,7 +243,7 @@ type Scatter struct { // arrayOK: false // type: string // Set several scatter traces (on the same subplot) to the same stackgroup in order to add their y values (or their x values if `orientation` is *h*). If blank or omitted this trace will not be stacked. Stacking also turns `fill` on by default, using *tonexty* (*tonextx*) if `orientation` is *h* (*v*) and sets the default `mode` to *lines* irrespective of point count. You can only stack on a numeric (linear or log) axis. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order. - Stackgroup String `json:"stackgroup,omitempty"` + Stackgroup string `json:"stackgroup,omitempty"` // Stream // role: Object @@ -253,7 +253,7 @@ type Scatter struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -269,25 +269,25 @@ type Scatter struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -299,7 +299,7 @@ type Scatter struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -345,7 +345,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -369,7 +369,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -399,7 +399,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -423,7 +423,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // ScatterErrorX @@ -445,13 +445,13 @@ type ScatterErrorX struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -539,13 +539,13 @@ type ScatterErrorY struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -615,25 +615,25 @@ type ScatterFillpattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -657,31 +657,31 @@ type ScatterFillpattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // ScatterHoverlabelFont Sets the font used in hover labels. @@ -691,37 +691,37 @@ type ScatterHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterHoverlabel @@ -737,31 +737,31 @@ type ScatterHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -771,13 +771,13 @@ type ScatterHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScatterLegendgrouptitleFont Sets this legend group's title font. @@ -793,7 +793,7 @@ type ScatterLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -813,7 +813,7 @@ type ScatterLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterLine @@ -823,13 +823,13 @@ type ScatterLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff float64 `json:"backoff,omitempty"` + Backoff ArrayOK[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `backoff`. - Backoffsrc String `json:"backoffsrc,omitempty"` + Backoffsrc string `json:"backoffsrc,omitempty"` // Color // arrayOK: false @@ -841,7 +841,7 @@ type ScatterLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Shape // default: linear @@ -881,7 +881,7 @@ type ScatterMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -903,7 +903,7 @@ type ScatterMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -929,7 +929,7 @@ type ScatterMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterMarkerColorbar @@ -1081,7 +1081,7 @@ type ScatterMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -1123,7 +1123,7 @@ type ScatterMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -1135,7 +1135,7 @@ type ScatterMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -1147,7 +1147,7 @@ type ScatterMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -1159,7 +1159,7 @@ type ScatterMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -1215,13 +1215,13 @@ type ScatterMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Type // default: none @@ -1233,7 +1233,7 @@ type ScatterMarkerGradient struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `type`. - Typesrc String `json:"typesrc,omitempty"` + Typesrc string `json:"typesrc,omitempty"` } // ScatterMarkerLine @@ -1273,7 +1273,7 @@ type ScatterMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1291,7 +1291,7 @@ type ScatterMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -1303,13 +1303,13 @@ type ScatterMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScatterMarker @@ -1319,7 +1319,7 @@ type ScatterMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref // default: up @@ -1331,7 +1331,7 @@ type ScatterMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -1367,7 +1367,7 @@ type ScatterMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1389,7 +1389,7 @@ type ScatterMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Gradient // role: Object @@ -1409,13 +1409,13 @@ type ScatterMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1433,7 +1433,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1457,19 +1457,19 @@ type ScatterMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Standoff // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff float64 `json:"standoff,omitempty"` + Standoff ArrayOK[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `standoff`. - Standoffsrc String `json:"standoffsrc,omitempty"` + Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol // default: circle @@ -1481,7 +1481,7 @@ type ScatterMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScatterSelectedMarker @@ -1541,7 +1541,7 @@ type ScatterStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScatterTextfont Sets the text font. @@ -1551,37 +1551,37 @@ type ScatterTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterUnselectedMarker diff --git a/generated/v2.19.0/graph_objects/scattercarpet_gen.go b/generated/v2.19.0/graph_objects/scattercarpet_gen.go index 5cb4deb..4a1841e 100644 --- a/generated/v2.19.0/graph_objects/scattercarpet_gen.go +++ b/generated/v2.19.0/graph_objects/scattercarpet_gen.go @@ -25,7 +25,7 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `a`. - Asrc String `json:"asrc,omitempty"` + Asrc string `json:"asrc,omitempty"` // B // arrayOK: false @@ -37,13 +37,13 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `b`. - Bsrc String `json:"bsrc,omitempty"` + Bsrc string `json:"bsrc,omitempty"` // Carpet // arrayOK: false // type: string // An identifier for this carpet, so that `scattercarpet` and `contourcarpet` traces can specify a carpet plot on which they lie - Carpet String `json:"carpet,omitempty"` + Carpet string `json:"carpet,omitempty"` // Connectgaps // arrayOK: false @@ -61,7 +61,7 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Fill // default: none @@ -85,7 +85,7 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -101,25 +101,25 @@ type Scattercarpet struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -131,13 +131,13 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -167,13 +167,13 @@ type Scattercarpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: markers @@ -185,7 +185,7 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -217,7 +217,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Sets text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -233,25 +233,25 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `a`, `b` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -263,7 +263,7 @@ type Scattercarpet struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -301,37 +301,37 @@ type ScattercarpetHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScattercarpetHoverlabel @@ -347,31 +347,31 @@ type ScattercarpetHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -381,13 +381,13 @@ type ScattercarpetHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScattercarpetLegendgrouptitleFont Sets this legend group's title font. @@ -403,7 +403,7 @@ type ScattercarpetLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -423,7 +423,7 @@ type ScattercarpetLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattercarpetLine @@ -433,13 +433,13 @@ type ScattercarpetLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff float64 `json:"backoff,omitempty"` + Backoff ArrayOK[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `backoff`. - Backoffsrc String `json:"backoffsrc,omitempty"` + Backoffsrc string `json:"backoffsrc,omitempty"` // Color // arrayOK: false @@ -451,7 +451,7 @@ type ScattercarpetLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Shape // default: linear @@ -485,7 +485,7 @@ type ScattercarpetMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -507,7 +507,7 @@ type ScattercarpetMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -533,7 +533,7 @@ type ScattercarpetMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattercarpetMarkerColorbar @@ -685,7 +685,7 @@ type ScattercarpetMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -727,7 +727,7 @@ type ScattercarpetMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -739,7 +739,7 @@ type ScattercarpetMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -751,7 +751,7 @@ type ScattercarpetMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -763,7 +763,7 @@ type ScattercarpetMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -819,13 +819,13 @@ type ScattercarpetMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Type // default: none @@ -837,7 +837,7 @@ type ScattercarpetMarkerGradient struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `type`. - Typesrc String `json:"typesrc,omitempty"` + Typesrc string `json:"typesrc,omitempty"` } // ScattercarpetMarkerLine @@ -877,7 +877,7 @@ type ScattercarpetMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -895,7 +895,7 @@ type ScattercarpetMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -907,13 +907,13 @@ type ScattercarpetMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScattercarpetMarker @@ -923,7 +923,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref // default: up @@ -935,7 +935,7 @@ type ScattercarpetMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -971,7 +971,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -993,7 +993,7 @@ type ScattercarpetMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Gradient // role: Object @@ -1013,13 +1013,13 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1037,7 +1037,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1061,19 +1061,19 @@ type ScattercarpetMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Standoff // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff float64 `json:"standoff,omitempty"` + Standoff ArrayOK[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `standoff`. - Standoffsrc String `json:"standoffsrc,omitempty"` + Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol // default: circle @@ -1085,7 +1085,7 @@ type ScattercarpetMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScattercarpetSelectedMarker @@ -1145,7 +1145,7 @@ type ScattercarpetStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScattercarpetTextfont Sets the text font. @@ -1155,37 +1155,37 @@ type ScattercarpetTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScattercarpetUnselectedMarker diff --git a/generated/v2.19.0/graph_objects/scattergeo_gen.go b/generated/v2.19.0/graph_objects/scattergeo_gen.go index 9a345e7..7944633 100644 --- a/generated/v2.19.0/graph_objects/scattergeo_gen.go +++ b/generated/v2.19.0/graph_objects/scattergeo_gen.go @@ -31,13 +31,13 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Featureidkey // arrayOK: false // type: string // Sets the key in GeoJSON features which is used as id to match the items included in the `locations` array. Only has an effect when `geojson` is set. Support nested property, for example *properties.name*. - Featureidkey String `json:"featureidkey,omitempty"` + Featureidkey string `json:"featureidkey,omitempty"` // Fill // default: none @@ -73,7 +73,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -83,25 +83,25 @@ type Scattergeo struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair or item in `locations`. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) or `locations` coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -113,7 +113,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Lat // arrayOK: false @@ -125,13 +125,13 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `lat`. - Latsrc String `json:"latsrc,omitempty"` + Latsrc string `json:"latsrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -169,7 +169,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Lon // arrayOK: false @@ -181,7 +181,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `lon`. - Lonsrc String `json:"lonsrc,omitempty"` + Lonsrc string `json:"lonsrc,omitempty"` // Marker // role: Object @@ -191,13 +191,13 @@ type Scattergeo struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: markers @@ -209,7 +209,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -241,7 +241,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair or item in `locations`. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) or `locations` coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -257,25 +257,25 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `lat`, `lon`, `location` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -287,7 +287,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -313,37 +313,37 @@ type ScattergeoHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScattergeoHoverlabel @@ -359,31 +359,31 @@ type ScattergeoHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -393,13 +393,13 @@ type ScattergeoHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScattergeoLegendgrouptitleFont Sets this legend group's title font. @@ -415,7 +415,7 @@ type ScattergeoLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -435,7 +435,7 @@ type ScattergeoLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattergeoLine @@ -451,7 +451,7 @@ type ScattergeoLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -473,7 +473,7 @@ type ScattergeoMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -495,7 +495,7 @@ type ScattergeoMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -521,7 +521,7 @@ type ScattergeoMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattergeoMarkerColorbar @@ -673,7 +673,7 @@ type ScattergeoMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -715,7 +715,7 @@ type ScattergeoMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -727,7 +727,7 @@ type ScattergeoMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -739,7 +739,7 @@ type ScattergeoMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -751,7 +751,7 @@ type ScattergeoMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -807,13 +807,13 @@ type ScattergeoMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Type // default: none @@ -825,7 +825,7 @@ type ScattergeoMarkerGradient struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `type`. - Typesrc String `json:"typesrc,omitempty"` + Typesrc string `json:"typesrc,omitempty"` } // ScattergeoMarkerLine @@ -865,7 +865,7 @@ type ScattergeoMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -883,7 +883,7 @@ type ScattergeoMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -895,13 +895,13 @@ type ScattergeoMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScattergeoMarker @@ -911,7 +911,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref // default: up @@ -923,7 +923,7 @@ type ScattergeoMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -959,7 +959,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -981,7 +981,7 @@ type ScattergeoMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Gradient // role: Object @@ -995,13 +995,13 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1019,7 +1019,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1043,19 +1043,19 @@ type ScattergeoMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Standoff // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff float64 `json:"standoff,omitempty"` + Standoff ArrayOK[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `standoff`. - Standoffsrc String `json:"standoffsrc,omitempty"` + Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol // default: circle @@ -1067,7 +1067,7 @@ type ScattergeoMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScattergeoSelectedMarker @@ -1127,7 +1127,7 @@ type ScattergeoStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScattergeoTextfont Sets the text font. @@ -1137,37 +1137,37 @@ type ScattergeoTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScattergeoUnselectedMarker diff --git a/generated/v2.19.0/graph_objects/scattergl_gen.go b/generated/v2.19.0/graph_objects/scattergl_gen.go index dece133..e164302 100644 --- a/generated/v2.19.0/graph_objects/scattergl_gen.go +++ b/generated/v2.19.0/graph_objects/scattergl_gen.go @@ -31,7 +31,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -75,7 +75,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -85,25 +85,25 @@ type Scattergl struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -115,13 +115,13 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -151,13 +151,13 @@ type Scattergl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: %!s() @@ -169,7 +169,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -201,7 +201,7 @@ type Scattergl struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -217,25 +217,25 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -247,7 +247,7 @@ type Scattergl struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -293,7 +293,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -317,7 +317,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -347,7 +347,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -371,7 +371,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // ScatterglErrorX @@ -393,13 +393,13 @@ type ScatterglErrorX struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -487,13 +487,13 @@ type ScatterglErrorY struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -563,37 +563,37 @@ type ScatterglHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterglHoverlabel @@ -609,31 +609,31 @@ type ScatterglHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -643,13 +643,13 @@ type ScatterglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScatterglLegendgrouptitleFont Sets this legend group's title font. @@ -665,7 +665,7 @@ type ScatterglLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -685,7 +685,7 @@ type ScatterglLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterglLine @@ -729,7 +729,7 @@ type ScatterglMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -751,7 +751,7 @@ type ScatterglMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -777,7 +777,7 @@ type ScatterglMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterglMarkerColorbar @@ -929,7 +929,7 @@ type ScatterglMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -971,7 +971,7 @@ type ScatterglMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -983,7 +983,7 @@ type ScatterglMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -995,7 +995,7 @@ type ScatterglMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -1007,7 +1007,7 @@ type ScatterglMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -1093,7 +1093,7 @@ type ScatterglMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1111,7 +1111,7 @@ type ScatterglMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -1123,13 +1123,13 @@ type ScatterglMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScatterglMarker @@ -1139,13 +1139,13 @@ type ScatterglMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -1181,7 +1181,7 @@ type ScatterglMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1203,7 +1203,7 @@ type ScatterglMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Line // role: Object @@ -1213,13 +1213,13 @@ type ScatterglMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1237,7 +1237,7 @@ type ScatterglMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1261,7 +1261,7 @@ type ScatterglMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Symbol // default: circle @@ -1273,7 +1273,7 @@ type ScatterglMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScatterglSelectedMarker @@ -1333,7 +1333,7 @@ type ScatterglStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScatterglTextfont Sets the text font. @@ -1343,37 +1343,37 @@ type ScatterglTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterglUnselectedMarker diff --git a/generated/v2.19.0/graph_objects/scattermapbox_gen.go b/generated/v2.19.0/graph_objects/scattermapbox_gen.go index 0ff6bbe..b8c72a9 100644 --- a/generated/v2.19.0/graph_objects/scattermapbox_gen.go +++ b/generated/v2.19.0/graph_objects/scattermapbox_gen.go @@ -19,7 +19,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Determines if this scattermapbox trace's layers are to be inserted before the layer with the specified ID. By default, scattermapbox layers are inserted above all the base layers. To place the scattermapbox layers above every other layer, set `below` to *''*. - Below String `json:"below,omitempty"` + Below string `json:"below,omitempty"` // Cluster // role: Object @@ -41,7 +41,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Fill // default: none @@ -65,7 +65,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -75,25 +75,25 @@ type Scattermapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -105,7 +105,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Lat // arrayOK: false @@ -117,13 +117,13 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `lat`. - Latsrc String `json:"latsrc,omitempty"` + Latsrc string `json:"latsrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -155,7 +155,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `lon`. - Lonsrc String `json:"lonsrc,omitempty"` + Lonsrc string `json:"lonsrc,omitempty"` // Marker // role: Object @@ -165,13 +165,13 @@ type Scattermapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: markers @@ -183,7 +183,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -221,7 +221,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -237,19 +237,19 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `lat`, `lon` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -261,7 +261,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -287,13 +287,13 @@ type ScattermapboxCluster struct { // arrayOK: true // type: color // Sets the color for each cluster step. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Enabled // arrayOK: false @@ -311,37 +311,37 @@ type ScattermapboxCluster struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size for each cluster step. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Step // arrayOK: true // type: number // Sets how many points it takes to create a cluster or advance to the next cluster step. Use this in conjunction with arrays for `size` and / or `color`. If an integer, steps start at multiples of this number. If an array, each step extends from the given value until one less than the next value. - Step float64 `json:"step,omitempty"` + Step ArrayOK[*float64] `json:"step,omitempty"` // Stepsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `step`. - Stepsrc String `json:"stepsrc,omitempty"` + Stepsrc string `json:"stepsrc,omitempty"` } // ScattermapboxHoverlabelFont Sets the font used in hover labels. @@ -351,37 +351,37 @@ type ScattermapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScattermapboxHoverlabel @@ -397,31 +397,31 @@ type ScattermapboxHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -431,13 +431,13 @@ type ScattermapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScattermapboxLegendgrouptitleFont Sets this legend group's title font. @@ -453,7 +453,7 @@ type ScattermapboxLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -473,7 +473,7 @@ type ScattermapboxLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattermapboxLine @@ -505,7 +505,7 @@ type ScattermapboxMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -527,7 +527,7 @@ type ScattermapboxMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -553,7 +553,7 @@ type ScattermapboxMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattermapboxMarkerColorbar @@ -705,7 +705,7 @@ type ScattermapboxMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -747,7 +747,7 @@ type ScattermapboxMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -759,7 +759,7 @@ type ScattermapboxMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -771,7 +771,7 @@ type ScattermapboxMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -783,7 +783,7 @@ type ScattermapboxMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -845,13 +845,13 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker orientation from true North, in degrees clockwise. When using the *auto* default, no rotation would be applied in perspective views which is different from using a zero angle. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -887,7 +887,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -909,19 +909,19 @@ type ScattermapboxMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Opacity // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -939,7 +939,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -963,19 +963,19 @@ type ScattermapboxMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Symbol // arrayOK: true // type: string // Sets the marker symbol. Full list: https://www.mapbox.com/maki-icons/ Note that the array `marker.color` and `marker.size` are only available for *circle* symbols. - Symbol String `json:"symbol,omitempty"` + Symbol ArrayOK[*string] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScattermapboxSelectedMarker @@ -1021,7 +1021,7 @@ type ScattermapboxStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScattermapboxTextfont Sets the icon text font (color=mapbox.layer.paint.text-color, size=mapbox.layer.layout.text-size). Has an effect only when `type` is set to *symbol*. @@ -1037,7 +1037,7 @@ type ScattermapboxTextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scatterpolar_gen.go b/generated/v2.19.0/graph_objects/scatterpolar_gen.go index 5179e22..166b1b5 100644 --- a/generated/v2.19.0/graph_objects/scatterpolar_gen.go +++ b/generated/v2.19.0/graph_objects/scatterpolar_gen.go @@ -37,7 +37,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dr // arrayOK: false @@ -73,7 +73,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -89,25 +89,25 @@ type Scatterpolar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -119,13 +119,13 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -155,13 +155,13 @@ type Scatterpolar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: %!s() @@ -173,7 +173,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -197,7 +197,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `r`. - Rsrc String `json:"rsrc,omitempty"` + Rsrc string `json:"rsrc,omitempty"` // Selected // role: Object @@ -229,7 +229,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -245,25 +245,25 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `r`, `theta` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Theta // arrayOK: false @@ -281,7 +281,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `theta`. - Thetasrc String `json:"thetasrc,omitempty"` + Thetasrc string `json:"thetasrc,omitempty"` // Thetaunit // default: degrees @@ -299,7 +299,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -325,37 +325,37 @@ type ScatterpolarHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterpolarHoverlabel @@ -371,31 +371,31 @@ type ScatterpolarHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -405,13 +405,13 @@ type ScatterpolarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScatterpolarLegendgrouptitleFont Sets this legend group's title font. @@ -427,7 +427,7 @@ type ScatterpolarLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -447,7 +447,7 @@ type ScatterpolarLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterpolarLine @@ -457,13 +457,13 @@ type ScatterpolarLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff float64 `json:"backoff,omitempty"` + Backoff ArrayOK[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `backoff`. - Backoffsrc String `json:"backoffsrc,omitempty"` + Backoffsrc string `json:"backoffsrc,omitempty"` // Color // arrayOK: false @@ -475,7 +475,7 @@ type ScatterpolarLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Shape // default: linear @@ -509,7 +509,7 @@ type ScatterpolarMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -531,7 +531,7 @@ type ScatterpolarMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -557,7 +557,7 @@ type ScatterpolarMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterpolarMarkerColorbar @@ -709,7 +709,7 @@ type ScatterpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -751,7 +751,7 @@ type ScatterpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -763,7 +763,7 @@ type ScatterpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -775,7 +775,7 @@ type ScatterpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -787,7 +787,7 @@ type ScatterpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -843,13 +843,13 @@ type ScatterpolarMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Type // default: none @@ -861,7 +861,7 @@ type ScatterpolarMarkerGradient struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `type`. - Typesrc String `json:"typesrc,omitempty"` + Typesrc string `json:"typesrc,omitempty"` } // ScatterpolarMarkerLine @@ -901,7 +901,7 @@ type ScatterpolarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -919,7 +919,7 @@ type ScatterpolarMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -931,13 +931,13 @@ type ScatterpolarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScatterpolarMarker @@ -947,7 +947,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref // default: up @@ -959,7 +959,7 @@ type ScatterpolarMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -995,7 +995,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1017,7 +1017,7 @@ type ScatterpolarMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Gradient // role: Object @@ -1037,13 +1037,13 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1061,7 +1061,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1085,19 +1085,19 @@ type ScatterpolarMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Standoff // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff float64 `json:"standoff,omitempty"` + Standoff ArrayOK[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `standoff`. - Standoffsrc String `json:"standoffsrc,omitempty"` + Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol // default: circle @@ -1109,7 +1109,7 @@ type ScatterpolarMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScatterpolarSelectedMarker @@ -1169,7 +1169,7 @@ type ScatterpolarStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScatterpolarTextfont Sets the text font. @@ -1179,37 +1179,37 @@ type ScatterpolarTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterpolarUnselectedMarker diff --git a/generated/v2.19.0/graph_objects/scatterpolargl_gen.go b/generated/v2.19.0/graph_objects/scatterpolargl_gen.go index 28d4a77..e5f7e26 100644 --- a/generated/v2.19.0/graph_objects/scatterpolargl_gen.go +++ b/generated/v2.19.0/graph_objects/scatterpolargl_gen.go @@ -31,7 +31,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dr // arrayOK: false @@ -67,7 +67,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -77,25 +77,25 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -107,13 +107,13 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -143,13 +143,13 @@ type Scatterpolargl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: %!s() @@ -161,7 +161,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -185,7 +185,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `r`. - Rsrc String `json:"rsrc,omitempty"` + Rsrc string `json:"rsrc,omitempty"` // Selected // role: Object @@ -217,7 +217,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -233,25 +233,25 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `r`, `theta` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Theta // arrayOK: false @@ -269,7 +269,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `theta`. - Thetasrc String `json:"thetasrc,omitempty"` + Thetasrc string `json:"thetasrc,omitempty"` // Thetaunit // default: degrees @@ -287,7 +287,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -313,37 +313,37 @@ type ScatterpolarglHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterpolarglHoverlabel @@ -359,31 +359,31 @@ type ScatterpolarglHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -393,13 +393,13 @@ type ScatterpolarglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScatterpolarglLegendgrouptitleFont Sets this legend group's title font. @@ -415,7 +415,7 @@ type ScatterpolarglLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -435,7 +435,7 @@ type ScatterpolarglLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterpolarglLine @@ -479,7 +479,7 @@ type ScatterpolarglMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -501,7 +501,7 @@ type ScatterpolarglMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -527,7 +527,7 @@ type ScatterpolarglMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterpolarglMarkerColorbar @@ -679,7 +679,7 @@ type ScatterpolarglMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -721,7 +721,7 @@ type ScatterpolarglMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -733,7 +733,7 @@ type ScatterpolarglMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -745,7 +745,7 @@ type ScatterpolarglMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -757,7 +757,7 @@ type ScatterpolarglMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -843,7 +843,7 @@ type ScatterpolarglMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -861,7 +861,7 @@ type ScatterpolarglMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -873,13 +873,13 @@ type ScatterpolarglMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScatterpolarglMarker @@ -889,13 +889,13 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -931,7 +931,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -953,7 +953,7 @@ type ScatterpolarglMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Line // role: Object @@ -963,13 +963,13 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -987,7 +987,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1011,7 +1011,7 @@ type ScatterpolarglMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Symbol // default: circle @@ -1023,7 +1023,7 @@ type ScatterpolarglMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScatterpolarglSelectedMarker @@ -1083,7 +1083,7 @@ type ScatterpolarglStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScatterpolarglTextfont Sets the text font. @@ -1093,37 +1093,37 @@ type ScatterpolarglTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterpolarglUnselectedMarker diff --git a/generated/v2.19.0/graph_objects/scattersmith_gen.go b/generated/v2.19.0/graph_objects/scattersmith_gen.go index d43a838..3fec32b 100644 --- a/generated/v2.19.0/graph_objects/scattersmith_gen.go +++ b/generated/v2.19.0/graph_objects/scattersmith_gen.go @@ -37,7 +37,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Fill // default: none @@ -61,7 +61,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -77,25 +77,25 @@ type Scattersmith struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -107,7 +107,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Imag // arrayOK: false @@ -119,13 +119,13 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `imag`. - Imagsrc String `json:"imagsrc,omitempty"` + Imagsrc string `json:"imagsrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -155,13 +155,13 @@ type Scattersmith struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: %!s() @@ -173,7 +173,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -191,7 +191,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `real`. - Realsrc String `json:"realsrc,omitempty"` + Realsrc string `json:"realsrc,omitempty"` // Selected // role: Object @@ -223,7 +223,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -239,25 +239,25 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `real`, `imag` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -269,7 +269,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -295,37 +295,37 @@ type ScattersmithHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScattersmithHoverlabel @@ -341,31 +341,31 @@ type ScattersmithHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -375,13 +375,13 @@ type ScattersmithHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScattersmithLegendgrouptitleFont Sets this legend group's title font. @@ -397,7 +397,7 @@ type ScattersmithLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -417,7 +417,7 @@ type ScattersmithLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattersmithLine @@ -427,13 +427,13 @@ type ScattersmithLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff float64 `json:"backoff,omitempty"` + Backoff ArrayOK[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `backoff`. - Backoffsrc String `json:"backoffsrc,omitempty"` + Backoffsrc string `json:"backoffsrc,omitempty"` // Color // arrayOK: false @@ -445,7 +445,7 @@ type ScattersmithLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Shape // default: linear @@ -479,7 +479,7 @@ type ScattersmithMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -501,7 +501,7 @@ type ScattersmithMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -527,7 +527,7 @@ type ScattersmithMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattersmithMarkerColorbar @@ -679,7 +679,7 @@ type ScattersmithMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -721,7 +721,7 @@ type ScattersmithMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -733,7 +733,7 @@ type ScattersmithMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -745,7 +745,7 @@ type ScattersmithMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -757,7 +757,7 @@ type ScattersmithMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -813,13 +813,13 @@ type ScattersmithMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Type // default: none @@ -831,7 +831,7 @@ type ScattersmithMarkerGradient struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `type`. - Typesrc String `json:"typesrc,omitempty"` + Typesrc string `json:"typesrc,omitempty"` } // ScattersmithMarkerLine @@ -871,7 +871,7 @@ type ScattersmithMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -889,7 +889,7 @@ type ScattersmithMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -901,13 +901,13 @@ type ScattersmithMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScattersmithMarker @@ -917,7 +917,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref // default: up @@ -929,7 +929,7 @@ type ScattersmithMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -965,7 +965,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -987,7 +987,7 @@ type ScattersmithMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Gradient // role: Object @@ -1007,13 +1007,13 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1031,7 +1031,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1055,19 +1055,19 @@ type ScattersmithMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Standoff // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff float64 `json:"standoff,omitempty"` + Standoff ArrayOK[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `standoff`. - Standoffsrc String `json:"standoffsrc,omitempty"` + Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol // default: circle @@ -1079,7 +1079,7 @@ type ScattersmithMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScattersmithSelectedMarker @@ -1139,7 +1139,7 @@ type ScattersmithStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScattersmithTextfont Sets the text font. @@ -1149,37 +1149,37 @@ type ScattersmithTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScattersmithUnselectedMarker diff --git a/generated/v2.19.0/graph_objects/scatterternary_gen.go b/generated/v2.19.0/graph_objects/scatterternary_gen.go index 8aaf063..99797fa 100644 --- a/generated/v2.19.0/graph_objects/scatterternary_gen.go +++ b/generated/v2.19.0/graph_objects/scatterternary_gen.go @@ -25,7 +25,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `a`. - Asrc String `json:"asrc,omitempty"` + Asrc string `json:"asrc,omitempty"` // B // arrayOK: false @@ -37,7 +37,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `b`. - Bsrc String `json:"bsrc,omitempty"` + Bsrc string `json:"bsrc,omitempty"` // C // arrayOK: false @@ -61,7 +61,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `c`. - Csrc String `json:"csrc,omitempty"` + Csrc string `json:"csrc,omitempty"` // Customdata // arrayOK: false @@ -73,7 +73,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Fill // default: none @@ -97,7 +97,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -113,25 +113,25 @@ type Scatterternary struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (a,b,c) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b,c). To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -143,13 +143,13 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -179,13 +179,13 @@ type Scatterternary struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: markers @@ -197,7 +197,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -241,7 +241,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Sets text elements associated with each (a,b,c) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b,c). If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -257,25 +257,25 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `a`, `b`, `c` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -287,7 +287,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -313,37 +313,37 @@ type ScatterternaryHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterternaryHoverlabel @@ -359,31 +359,31 @@ type ScatterternaryHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -393,13 +393,13 @@ type ScatterternaryHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScatterternaryLegendgrouptitleFont Sets this legend group's title font. @@ -415,7 +415,7 @@ type ScatterternaryLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -435,7 +435,7 @@ type ScatterternaryLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterternaryLine @@ -445,13 +445,13 @@ type ScatterternaryLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff float64 `json:"backoff,omitempty"` + Backoff ArrayOK[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `backoff`. - Backoffsrc String `json:"backoffsrc,omitempty"` + Backoffsrc string `json:"backoffsrc,omitempty"` // Color // arrayOK: false @@ -463,7 +463,7 @@ type ScatterternaryLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Shape // default: linear @@ -497,7 +497,7 @@ type ScatterternaryMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -519,7 +519,7 @@ type ScatterternaryMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -545,7 +545,7 @@ type ScatterternaryMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterternaryMarkerColorbar @@ -697,7 +697,7 @@ type ScatterternaryMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -739,7 +739,7 @@ type ScatterternaryMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -751,7 +751,7 @@ type ScatterternaryMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -763,7 +763,7 @@ type ScatterternaryMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -775,7 +775,7 @@ type ScatterternaryMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -831,13 +831,13 @@ type ScatterternaryMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Type // default: none @@ -849,7 +849,7 @@ type ScatterternaryMarkerGradient struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `type`. - Typesrc String `json:"typesrc,omitempty"` + Typesrc string `json:"typesrc,omitempty"` } // ScatterternaryMarkerLine @@ -889,7 +889,7 @@ type ScatterternaryMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -907,7 +907,7 @@ type ScatterternaryMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -919,13 +919,13 @@ type ScatterternaryMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScatterternaryMarker @@ -935,7 +935,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref // default: up @@ -947,7 +947,7 @@ type ScatterternaryMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -983,7 +983,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1005,7 +1005,7 @@ type ScatterternaryMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Gradient // role: Object @@ -1025,13 +1025,13 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1049,7 +1049,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1073,19 +1073,19 @@ type ScatterternaryMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Standoff // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff float64 `json:"standoff,omitempty"` + Standoff ArrayOK[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `standoff`. - Standoffsrc String `json:"standoffsrc,omitempty"` + Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol // default: circle @@ -1097,7 +1097,7 @@ type ScatterternaryMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScatterternarySelectedMarker @@ -1157,7 +1157,7 @@ type ScatterternaryStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScatterternaryTextfont Sets the text font. @@ -1167,37 +1167,37 @@ type ScatterternaryTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterternaryUnselectedMarker diff --git a/generated/v2.19.0/graph_objects/splom_gen.go b/generated/v2.19.0/graph_objects/splom_gen.go index 42223f2..4f1346f 100644 --- a/generated/v2.19.0/graph_objects/splom_gen.go +++ b/generated/v2.19.0/graph_objects/splom_gen.go @@ -25,7 +25,7 @@ type Splom struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Diagonal // role: Object @@ -47,7 +47,7 @@ type Splom struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -57,25 +57,25 @@ type Splom struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -87,13 +87,13 @@ type Splom struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -119,19 +119,19 @@ type Splom struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -175,13 +175,13 @@ type Splom struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair to appear on hover. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -193,7 +193,7 @@ type Splom struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -221,7 +221,7 @@ type Splom struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Yaxes // arrayOK: false @@ -233,7 +233,7 @@ type Splom struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` } // SplomDiagonal @@ -253,37 +253,37 @@ type SplomHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SplomHoverlabel @@ -299,31 +299,31 @@ type SplomHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -333,13 +333,13 @@ type SplomHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // SplomLegendgrouptitleFont Sets this legend group's title font. @@ -355,7 +355,7 @@ type SplomLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -375,7 +375,7 @@ type SplomLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // SplomMarkerColorbarTickfont Sets the color bar's tick label font @@ -391,7 +391,7 @@ type SplomMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -413,7 +413,7 @@ type SplomMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -439,7 +439,7 @@ type SplomMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // SplomMarkerColorbar @@ -591,7 +591,7 @@ type SplomMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -633,7 +633,7 @@ type SplomMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -645,7 +645,7 @@ type SplomMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -657,7 +657,7 @@ type SplomMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -669,7 +669,7 @@ type SplomMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -755,7 +755,7 @@ type SplomMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -773,7 +773,7 @@ type SplomMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -785,13 +785,13 @@ type SplomMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // SplomMarker @@ -801,13 +801,13 @@ type SplomMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -843,7 +843,7 @@ type SplomMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -865,7 +865,7 @@ type SplomMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Line // role: Object @@ -875,13 +875,13 @@ type SplomMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -899,7 +899,7 @@ type SplomMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -923,7 +923,7 @@ type SplomMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Symbol // default: circle @@ -935,7 +935,7 @@ type SplomMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // SplomSelectedMarker @@ -981,7 +981,7 @@ type SplomStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // SplomUnselectedMarker diff --git a/generated/v2.19.0/graph_objects/streamtube_gen.go b/generated/v2.19.0/graph_objects/streamtube_gen.go index 46ec61a..9ff5eb6 100644 --- a/generated/v2.19.0/graph_objects/streamtube_gen.go +++ b/generated/v2.19.0/graph_objects/streamtube_gen.go @@ -71,7 +71,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo // default: x+y+z+norm+text+name @@ -83,7 +83,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -93,19 +93,19 @@ type Streamtube struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `tubex`, `tubey`, `tubez`, `tubeu`, `tubev`, `tubew`, `norm` and `divergence`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: false // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext string `json:"hovertext,omitempty"` // Ids // arrayOK: false @@ -117,13 +117,13 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -159,19 +159,19 @@ type Streamtube struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -221,7 +221,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets a text element associated with this trace. If trace `hoverinfo` contains a *text* flag, this text element will be seen in all hover labels. Note that streamtube traces do not support array `text` values. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` // U // arrayOK: false @@ -233,13 +233,13 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `u` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Uhoverformat String `json:"uhoverformat,omitempty"` + Uhoverformat string `json:"uhoverformat,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -251,7 +251,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `u`. - Usrc String `json:"usrc,omitempty"` + Usrc string `json:"usrc,omitempty"` // V // arrayOK: false @@ -263,7 +263,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `v` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Vhoverformat String `json:"vhoverformat,omitempty"` + Vhoverformat string `json:"vhoverformat,omitempty"` // Visible // default: %!s(bool=true) @@ -275,7 +275,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `v`. - Vsrc String `json:"vsrc,omitempty"` + Vsrc string `json:"vsrc,omitempty"` // W // arrayOK: false @@ -287,13 +287,13 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `w` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Whoverformat String `json:"whoverformat,omitempty"` + Whoverformat string `json:"whoverformat,omitempty"` // Wsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `w`. - Wsrc String `json:"wsrc,omitempty"` + Wsrc string `json:"wsrc,omitempty"` // X // arrayOK: false @@ -305,13 +305,13 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -323,13 +323,13 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -341,13 +341,13 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `zaxis.hoverformat`. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // StreamtubeColorbarTickfont Sets the color bar's tick label font @@ -363,7 +363,7 @@ type StreamtubeColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -385,7 +385,7 @@ type StreamtubeColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -411,7 +411,7 @@ type StreamtubeColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // StreamtubeColorbar @@ -563,7 +563,7 @@ type StreamtubeColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -605,7 +605,7 @@ type StreamtubeColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -617,7 +617,7 @@ type StreamtubeColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -629,7 +629,7 @@ type StreamtubeColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -641,7 +641,7 @@ type StreamtubeColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -697,37 +697,37 @@ type StreamtubeHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // StreamtubeHoverlabel @@ -743,31 +743,31 @@ type StreamtubeHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -777,13 +777,13 @@ type StreamtubeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // StreamtubeLegendgrouptitleFont Sets this legend group's title font. @@ -799,7 +799,7 @@ type StreamtubeLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -819,7 +819,7 @@ type StreamtubeLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // StreamtubeLighting @@ -903,7 +903,7 @@ type StreamtubeStarts struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -915,7 +915,7 @@ type StreamtubeStarts struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -927,7 +927,7 @@ type StreamtubeStarts struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // StreamtubeStream @@ -943,7 +943,7 @@ type StreamtubeStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // StreamtubeColorbarExponentformat Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. diff --git a/generated/v2.19.0/graph_objects/sunburst_gen.go b/generated/v2.19.0/graph_objects/sunburst_gen.go index f0baf10..2f9b155 100644 --- a/generated/v2.19.0/graph_objects/sunburst_gen.go +++ b/generated/v2.19.0/graph_objects/sunburst_gen.go @@ -37,7 +37,7 @@ type Sunburst struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Domain // role: Object @@ -53,7 +53,7 @@ type Sunburst struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -63,25 +63,25 @@ type Sunburst struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -93,7 +93,7 @@ type Sunburst struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextfont // role: Object @@ -115,7 +115,7 @@ type Sunburst struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `labels`. - Labelssrc String `json:"labelssrc,omitempty"` + Labelssrc string `json:"labelssrc,omitempty"` // Leaf // role: Object @@ -157,19 +157,19 @@ type Sunburst struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -191,7 +191,7 @@ type Sunburst struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `parents`. - Parentssrc String `json:"parentssrc,omitempty"` + Parentssrc string `json:"parentssrc,omitempty"` // Root // role: Object @@ -233,19 +233,19 @@ type Sunburst struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -257,7 +257,7 @@ type Sunburst struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -275,7 +275,7 @@ type Sunburst struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `values`. - Valuessrc String `json:"valuessrc,omitempty"` + Valuessrc string `json:"valuessrc,omitempty"` // Visible // default: %!s(bool=true) @@ -319,37 +319,37 @@ type SunburstHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SunburstHoverlabel @@ -365,31 +365,31 @@ type SunburstHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -399,13 +399,13 @@ type SunburstHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // SunburstInsidetextfont Sets the font used for `textinfo` lying inside the sector. @@ -415,37 +415,37 @@ type SunburstInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SunburstLeaf @@ -471,7 +471,7 @@ type SunburstLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -491,7 +491,7 @@ type SunburstLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // SunburstMarkerColorbarTickfont Sets the color bar's tick label font @@ -507,7 +507,7 @@ type SunburstMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -529,7 +529,7 @@ type SunburstMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -555,7 +555,7 @@ type SunburstMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // SunburstMarkerColorbar @@ -707,7 +707,7 @@ type SunburstMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -749,7 +749,7 @@ type SunburstMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -761,7 +761,7 @@ type SunburstMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -773,7 +773,7 @@ type SunburstMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -785,7 +785,7 @@ type SunburstMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -841,25 +841,25 @@ type SunburstMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // SunburstMarker @@ -921,7 +921,7 @@ type SunburstMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `colors`. - Colorssrc String `json:"colorssrc,omitempty"` + Colorssrc string `json:"colorssrc,omitempty"` // Line // role: Object @@ -947,37 +947,37 @@ type SunburstOutsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SunburstRoot @@ -1003,7 +1003,7 @@ type SunburstStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // SunburstTextfont Sets the font used for `textinfo`. @@ -1013,37 +1013,37 @@ type SunburstTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SunburstBranchvalues Determines how the items in `values` are summed. When set to *total*, items in `values` are taken to be value of all its descendants. When set to *remainder*, items in `values` corresponding to the root and the branches sectors are taken to be the extra part not part of the sum of the values at their leaves. diff --git a/generated/v2.19.0/graph_objects/surface_gen.go b/generated/v2.19.0/graph_objects/surface_gen.go index a7f4dcb..011fa6d 100644 --- a/generated/v2.19.0/graph_objects/surface_gen.go +++ b/generated/v2.19.0/graph_objects/surface_gen.go @@ -81,7 +81,7 @@ type Surface struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Hidesurface // arrayOK: false @@ -99,7 +99,7 @@ type Surface struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -109,25 +109,25 @@ type Surface struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -139,13 +139,13 @@ type Surface struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgroup // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -175,19 +175,19 @@ type Surface struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -239,25 +239,25 @@ type Surface struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `surfacecolor`. - Surfacecolorsrc String `json:"surfacecolorsrc,omitempty"` + Surfacecolorsrc string `json:"surfacecolorsrc,omitempty"` // Text // arrayOK: true // type: string // Sets the text elements associated with each z value. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -287,13 +287,13 @@ type Surface struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -311,13 +311,13 @@ type Surface struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -335,13 +335,13 @@ type Surface struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `zaxis.hoverformat`. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // SurfaceColorbarTickfont Sets the color bar's tick label font @@ -357,7 +357,7 @@ type SurfaceColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -379,7 +379,7 @@ type SurfaceColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -405,7 +405,7 @@ type SurfaceColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // SurfaceColorbar @@ -557,7 +557,7 @@ type SurfaceColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -599,7 +599,7 @@ type SurfaceColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -611,7 +611,7 @@ type SurfaceColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -623,7 +623,7 @@ type SurfaceColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -635,7 +635,7 @@ type SurfaceColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -977,37 +977,37 @@ type SurfaceHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SurfaceHoverlabel @@ -1023,31 +1023,31 @@ type SurfaceHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -1057,13 +1057,13 @@ type SurfaceHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // SurfaceLegendgrouptitleFont Sets this legend group's title font. @@ -1079,7 +1079,7 @@ type SurfaceLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1099,7 +1099,7 @@ type SurfaceLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // SurfaceLighting @@ -1171,7 +1171,7 @@ type SurfaceStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // SurfaceColorbarExponentformat Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. diff --git a/generated/v2.19.0/graph_objects/table_gen.go b/generated/v2.19.0/graph_objects/table_gen.go index 5ca9bd4..f5dfa2d 100644 --- a/generated/v2.19.0/graph_objects/table_gen.go +++ b/generated/v2.19.0/graph_objects/table_gen.go @@ -29,19 +29,19 @@ type Table struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `columnorder`. - Columnordersrc String `json:"columnordersrc,omitempty"` + Columnordersrc string `json:"columnordersrc,omitempty"` // Columnwidth // arrayOK: true // type: number // The width of columns expressed as a ratio. Columns fill the available width in proportion of their specified column widths. - Columnwidth float64 `json:"columnwidth,omitempty"` + Columnwidth ArrayOK[*float64] `json:"columnwidth,omitempty"` // Columnwidthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `columnwidth`. - Columnwidthsrc String `json:"columnwidthsrc,omitempty"` + Columnwidthsrc string `json:"columnwidthsrc,omitempty"` // Customdata // arrayOK: false @@ -53,7 +53,7 @@ type Table struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Domain // role: Object @@ -73,7 +73,7 @@ type Table struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -89,7 +89,7 @@ type Table struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legendgrouptitle // role: Object @@ -111,19 +111,19 @@ type Table struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Stream // role: Object @@ -133,7 +133,7 @@ type Table struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -155,13 +155,13 @@ type TableCellsFill struct { // arrayOK: true // type: color // Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` } // TableCellsFont @@ -171,37 +171,37 @@ type TableCellsFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TableCellsLine @@ -211,25 +211,25 @@ type TableCellsLine struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // TableCells @@ -245,7 +245,7 @@ type TableCells struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Fill // role: Object @@ -265,7 +265,7 @@ type TableCells struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `format`. - Formatsrc String `json:"formatsrc,omitempty"` + Formatsrc string `json:"formatsrc,omitempty"` // Height // arrayOK: false @@ -281,25 +281,25 @@ type TableCells struct { // arrayOK: true // type: string // Prefix for cell values. - Prefix String `json:"prefix,omitempty"` + Prefix ArrayOK[*string] `json:"prefix,omitempty"` // Prefixsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `prefix`. - Prefixsrc String `json:"prefixsrc,omitempty"` + Prefixsrc string `json:"prefixsrc,omitempty"` // Suffix // arrayOK: true // type: string // Suffix for cell values. - Suffix String `json:"suffix,omitempty"` + Suffix ArrayOK[*string] `json:"suffix,omitempty"` // Suffixsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `suffix`. - Suffixsrc String `json:"suffixsrc,omitempty"` + Suffixsrc string `json:"suffixsrc,omitempty"` // Values // arrayOK: false @@ -311,7 +311,7 @@ type TableCells struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `values`. - Valuessrc String `json:"valuessrc,omitempty"` + Valuessrc string `json:"valuessrc,omitempty"` } // TableDomain @@ -349,13 +349,13 @@ type TableHeaderFill struct { // arrayOK: true // type: color // Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` } // TableHeaderFont @@ -365,37 +365,37 @@ type TableHeaderFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TableHeaderLine @@ -405,25 +405,25 @@ type TableHeaderLine struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // TableHeader @@ -439,7 +439,7 @@ type TableHeader struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Fill // role: Object @@ -459,7 +459,7 @@ type TableHeader struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `format`. - Formatsrc String `json:"formatsrc,omitempty"` + Formatsrc string `json:"formatsrc,omitempty"` // Height // arrayOK: false @@ -475,25 +475,25 @@ type TableHeader struct { // arrayOK: true // type: string // Prefix for cell values. - Prefix String `json:"prefix,omitempty"` + Prefix ArrayOK[*string] `json:"prefix,omitempty"` // Prefixsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `prefix`. - Prefixsrc String `json:"prefixsrc,omitempty"` + Prefixsrc string `json:"prefixsrc,omitempty"` // Suffix // arrayOK: true // type: string // Suffix for cell values. - Suffix String `json:"suffix,omitempty"` + Suffix ArrayOK[*string] `json:"suffix,omitempty"` // Suffixsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `suffix`. - Suffixsrc String `json:"suffixsrc,omitempty"` + Suffixsrc string `json:"suffixsrc,omitempty"` // Values // arrayOK: false @@ -505,7 +505,7 @@ type TableHeader struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `values`. - Valuessrc String `json:"valuessrc,omitempty"` + Valuessrc string `json:"valuessrc,omitempty"` } // TableHoverlabelFont Sets the font used in hover labels. @@ -515,37 +515,37 @@ type TableHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TableHoverlabel @@ -561,31 +561,31 @@ type TableHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -595,13 +595,13 @@ type TableHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // TableLegendgrouptitleFont Sets this legend group's title font. @@ -617,7 +617,7 @@ type TableLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -637,7 +637,7 @@ type TableLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // TableStream @@ -653,7 +653,7 @@ type TableStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // TableCellsAlign Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more
HTML tags) or if an explicit width is set to override the text width. diff --git a/generated/v2.19.0/graph_objects/treemap_gen.go b/generated/v2.19.0/graph_objects/treemap_gen.go index 6e959d8..4285a9d 100644 --- a/generated/v2.19.0/graph_objects/treemap_gen.go +++ b/generated/v2.19.0/graph_objects/treemap_gen.go @@ -37,7 +37,7 @@ type Treemap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Domain // role: Object @@ -53,7 +53,7 @@ type Treemap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -63,25 +63,25 @@ type Treemap struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -93,7 +93,7 @@ type Treemap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextfont // role: Object @@ -109,7 +109,7 @@ type Treemap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `labels`. - Labelssrc String `json:"labelssrc,omitempty"` + Labelssrc string `json:"labelssrc,omitempty"` // Legendgrouptitle // role: Object @@ -147,19 +147,19 @@ type Treemap struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -181,7 +181,7 @@ type Treemap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `parents`. - Parentssrc String `json:"parentssrc,omitempty"` + Parentssrc string `json:"parentssrc,omitempty"` // Pathbar // role: Object @@ -227,19 +227,19 @@ type Treemap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Tiling // role: Object @@ -255,7 +255,7 @@ type Treemap struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -273,7 +273,7 @@ type Treemap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `values`. - Valuessrc String `json:"valuessrc,omitempty"` + Valuessrc string `json:"valuessrc,omitempty"` // Visible // default: %!s(bool=true) @@ -317,37 +317,37 @@ type TreemapHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TreemapHoverlabel @@ -363,31 +363,31 @@ type TreemapHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -397,13 +397,13 @@ type TreemapHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // TreemapInsidetextfont Sets the font used for `textinfo` lying inside the sector. @@ -413,37 +413,37 @@ type TreemapInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TreemapLegendgrouptitleFont Sets this legend group's title font. @@ -459,7 +459,7 @@ type TreemapLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -479,7 +479,7 @@ type TreemapLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // TreemapMarkerColorbarTickfont Sets the color bar's tick label font @@ -495,7 +495,7 @@ type TreemapMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -517,7 +517,7 @@ type TreemapMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -543,7 +543,7 @@ type TreemapMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // TreemapMarkerColorbar @@ -695,7 +695,7 @@ type TreemapMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -737,7 +737,7 @@ type TreemapMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -749,7 +749,7 @@ type TreemapMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -761,7 +761,7 @@ type TreemapMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -773,7 +773,7 @@ type TreemapMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -829,25 +829,25 @@ type TreemapMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // TreemapMarkerPad @@ -937,7 +937,7 @@ type TreemapMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `colors`. - Colorssrc String `json:"colorssrc,omitempty"` + Colorssrc string `json:"colorssrc,omitempty"` // Cornerradius // arrayOK: false @@ -979,37 +979,37 @@ type TreemapOutsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TreemapPathbarTextfont Sets the font used inside `pathbar`. @@ -1019,37 +1019,37 @@ type TreemapPathbarTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TreemapPathbar @@ -1107,7 +1107,7 @@ type TreemapStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // TreemapTextfont Sets the font used for `textinfo`. @@ -1117,37 +1117,37 @@ type TreemapTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TreemapTiling diff --git a/generated/v2.19.0/graph_objects/violin_gen.go b/generated/v2.19.0/graph_objects/violin_gen.go index 3565257..d84686e 100644 --- a/generated/v2.19.0/graph_objects/violin_gen.go +++ b/generated/v2.19.0/graph_objects/violin_gen.go @@ -19,7 +19,7 @@ type Violin struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. - Alignmentgroup String `json:"alignmentgroup,omitempty"` + Alignmentgroup string `json:"alignmentgroup,omitempty"` // Bandwidth // arrayOK: false @@ -41,7 +41,7 @@ type Violin struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Fillcolor // arrayOK: false @@ -59,7 +59,7 @@ type Violin struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -75,25 +75,25 @@ type Violin struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -105,7 +105,7 @@ type Violin struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Jitter // arrayOK: false @@ -117,7 +117,7 @@ type Violin struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -151,25 +151,25 @@ type Violin struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. For violin traces, the name will also be used for the position coordinate, if `x` and `x0` (`y` and `y0` if horizontal) are missing and the position axis is categorical. Note that the trace name is also used as a default value for attribute `scalegroup` (please see its description for details). - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Offsetgroup // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. - Offsetgroup String `json:"offsetgroup,omitempty"` + Offsetgroup string `json:"offsetgroup,omitempty"` // Opacity // arrayOK: false @@ -205,7 +205,7 @@ type Violin struct { // arrayOK: false // type: string // If there are multiple violins that should be sized according to to some metric (see `scalemode`), link them by providing a non-empty group id here shared by every trace in the same group. If a violin's `width` is undefined, `scalegroup` will default to the trace's name. In this case, violins with the same names will be linked together - Scalegroup String `json:"scalegroup,omitempty"` + Scalegroup string `json:"scalegroup,omitempty"` // Scalemode // default: width @@ -255,13 +255,13 @@ type Violin struct { // arrayOK: true // type: string // Sets the text elements associated with each sample value. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -273,7 +273,7 @@ type Violin struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -319,13 +319,13 @@ type Violin struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -349,13 +349,13 @@ type Violin struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // ViolinBoxLine @@ -407,37 +407,37 @@ type ViolinHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ViolinHoverlabel @@ -453,31 +453,31 @@ type ViolinHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -487,13 +487,13 @@ type ViolinHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ViolinLegendgrouptitleFont Sets this legend group's title font. @@ -509,7 +509,7 @@ type ViolinLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -529,7 +529,7 @@ type ViolinLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ViolinLine @@ -685,7 +685,7 @@ type ViolinStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ViolinUnselectedMarker diff --git a/generated/v2.19.0/graph_objects/volume_gen.go b/generated/v2.19.0/graph_objects/volume_gen.go index 954ed4b..4d87a5f 100644 --- a/generated/v2.19.0/graph_objects/volume_gen.go +++ b/generated/v2.19.0/graph_objects/volume_gen.go @@ -79,7 +79,7 @@ type Volume struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Flatshading // arrayOK: false @@ -97,7 +97,7 @@ type Volume struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -107,25 +107,25 @@ type Volume struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -137,7 +137,7 @@ type Volume struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Isomax // arrayOK: false @@ -155,7 +155,7 @@ type Volume struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -185,19 +185,19 @@ type Volume struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -255,19 +255,19 @@ type Volume struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -285,13 +285,13 @@ type Volume struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `value` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Valuehoverformat String `json:"valuehoverformat,omitempty"` + Valuehoverformat string `json:"valuehoverformat,omitempty"` // Valuesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `value`. - Valuesrc String `json:"valuesrc,omitempty"` + Valuesrc string `json:"valuesrc,omitempty"` // Visible // default: %!s(bool=true) @@ -309,13 +309,13 @@ type Volume struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -327,13 +327,13 @@ type Volume struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -345,13 +345,13 @@ type Volume struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `zaxis.hoverformat`. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // VolumeCapsX @@ -431,7 +431,7 @@ type VolumeColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -453,7 +453,7 @@ type VolumeColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -479,7 +479,7 @@ type VolumeColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // VolumeColorbar @@ -631,7 +631,7 @@ type VolumeColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -673,7 +673,7 @@ type VolumeColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -685,7 +685,7 @@ type VolumeColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -697,7 +697,7 @@ type VolumeColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -709,7 +709,7 @@ type VolumeColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -787,37 +787,37 @@ type VolumeHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // VolumeHoverlabel @@ -833,31 +833,31 @@ type VolumeHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -867,13 +867,13 @@ type VolumeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // VolumeLegendgrouptitleFont Sets this legend group's title font. @@ -889,7 +889,7 @@ type VolumeLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -909,7 +909,7 @@ type VolumeLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // VolumeLighting @@ -999,7 +999,7 @@ type VolumeSlicesX struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Show // arrayOK: false @@ -1027,7 +1027,7 @@ type VolumeSlicesY struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Show // arrayOK: false @@ -1055,7 +1055,7 @@ type VolumeSlicesZ struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Show // arrayOK: false @@ -1109,7 +1109,7 @@ type VolumeStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // VolumeSurface diff --git a/generated/v2.19.0/graph_objects/waterfall_gen.go b/generated/v2.19.0/graph_objects/waterfall_gen.go index 8404930..a39e2a6 100644 --- a/generated/v2.19.0/graph_objects/waterfall_gen.go +++ b/generated/v2.19.0/graph_objects/waterfall_gen.go @@ -19,7 +19,7 @@ type Waterfall struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. - Alignmentgroup String `json:"alignmentgroup,omitempty"` + Alignmentgroup string `json:"alignmentgroup,omitempty"` // Base // arrayOK: false @@ -53,7 +53,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Decreasing // role: Object @@ -81,7 +81,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -91,25 +91,25 @@ type Waterfall struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `initial`, `delta` and `final`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -121,7 +121,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Increasing // role: Object @@ -141,7 +141,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -169,43 +169,43 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `measure`. - Measuresrc String `json:"measuresrc,omitempty"` + Measuresrc string `json:"measuresrc,omitempty"` // Meta // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appear as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Offset // arrayOK: true // type: number // Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead. - Offset float64 `json:"offset,omitempty"` + Offset ArrayOK[*float64] `json:"offset,omitempty"` // Offsetgroup // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. - Offsetgroup String `json:"offsetgroup,omitempty"` + Offsetgroup string `json:"offsetgroup,omitempty"` // Offsetsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `offset`. - Offsetsrc String `json:"offsetsrc,omitempty"` + Offsetsrc string `json:"offsetsrc,omitempty"` // Opacity // arrayOK: false @@ -243,7 +243,7 @@ type Waterfall struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -271,25 +271,25 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `initial`, `delta`, `final` and `label`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Totals // role: Object @@ -305,7 +305,7 @@ type Waterfall struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -323,13 +323,13 @@ type Waterfall struct { // arrayOK: true // type: number // Sets the bar width (in position axis units). - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` // X // arrayOK: false @@ -353,7 +353,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -377,7 +377,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -401,7 +401,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -425,7 +425,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // WaterfallConnectorLine @@ -441,7 +441,7 @@ type WaterfallConnectorLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -515,37 +515,37 @@ type WaterfallHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // WaterfallHoverlabel @@ -561,31 +561,31 @@ type WaterfallHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -595,13 +595,13 @@ type WaterfallHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // WaterfallIncreasingMarkerLine @@ -649,37 +649,37 @@ type WaterfallInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // WaterfallLegendgrouptitleFont Sets this legend group's title font. @@ -695,7 +695,7 @@ type WaterfallLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -715,7 +715,7 @@ type WaterfallLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // WaterfallOutsidetextfont Sets the font used for `text` lying outside the bar. @@ -725,37 +725,37 @@ type WaterfallOutsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // WaterfallStream @@ -771,7 +771,7 @@ type WaterfallStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // WaterfallTextfont Sets the font used for `text`. @@ -781,37 +781,37 @@ type WaterfallTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // WaterfallTotalsMarkerLine diff --git a/generated/v2.29.1/graph_objects/bar_gen.go b/generated/v2.29.1/graph_objects/bar_gen.go index 51a8d03..cc177b2 100644 --- a/generated/v2.29.1/graph_objects/bar_gen.go +++ b/generated/v2.29.1/graph_objects/bar_gen.go @@ -19,19 +19,19 @@ type Bar struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. - Alignmentgroup String `json:"alignmentgroup,omitempty"` + Alignmentgroup string `json:"alignmentgroup,omitempty"` // Base // arrayOK: true // type: any // Sets where the bar base is drawn (in position axis units). In *stack* or *relative* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead. - Base interface{} `json:"base,omitempty"` + Base ArrayOK[*interface{}] `json:"base,omitempty"` // Basesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `base`. - Basesrc String `json:"basesrc,omitempty"` + Basesrc string `json:"basesrc,omitempty"` // Cliponaxis // arrayOK: false @@ -55,7 +55,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -87,7 +87,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -97,25 +97,25 @@ type Bar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -127,7 +127,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextanchor // default: end @@ -149,7 +149,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -175,37 +175,37 @@ type Bar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Offset // arrayOK: true // type: number // Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead. - Offset float64 `json:"offset,omitempty"` + Offset ArrayOK[*float64] `json:"offset,omitempty"` // Offsetgroup // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. - Offsetgroup String `json:"offsetgroup,omitempty"` + Offsetgroup string `json:"offsetgroup,omitempty"` // Offsetsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `offset`. - Offsetsrc String `json:"offsetsrc,omitempty"` + Offsetsrc string `json:"offsetsrc,omitempty"` // Opacity // arrayOK: false @@ -247,7 +247,7 @@ type Bar struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -269,25 +269,25 @@ type Bar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `value` and `label`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -299,7 +299,7 @@ type Bar struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -321,13 +321,13 @@ type Bar struct { // arrayOK: true // type: number // Sets the bar width (in position axis units). - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` // X // arrayOK: false @@ -357,7 +357,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -381,7 +381,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -411,7 +411,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -435,7 +435,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // BarErrorX @@ -457,13 +457,13 @@ type BarErrorX struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -551,13 +551,13 @@ type BarErrorY struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -627,37 +627,37 @@ type BarHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // BarHoverlabel @@ -673,31 +673,31 @@ type BarHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -707,13 +707,13 @@ type BarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // BarInsidetextfont Sets the font used for `text` lying inside the bar. @@ -723,37 +723,37 @@ type BarInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // BarLegendgrouptitleFont Sets this legend group's title font. @@ -769,7 +769,7 @@ type BarLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -789,7 +789,7 @@ type BarLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // BarMarkerColorbarTickfont Sets the color bar's tick label font @@ -805,7 +805,7 @@ type BarMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -827,7 +827,7 @@ type BarMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -853,7 +853,7 @@ type BarMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // BarMarkerColorbar @@ -1005,7 +1005,7 @@ type BarMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -1047,7 +1047,7 @@ type BarMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -1059,7 +1059,7 @@ type BarMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -1071,7 +1071,7 @@ type BarMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -1083,7 +1083,7 @@ type BarMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -1181,7 +1181,7 @@ type BarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1199,7 +1199,7 @@ type BarMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -1211,13 +1211,13 @@ type BarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // BarMarkerPattern Sets the pattern within the marker. @@ -1227,25 +1227,25 @@ type BarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -1269,31 +1269,31 @@ type BarMarkerPattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // BarMarker @@ -1333,7 +1333,7 @@ type BarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1355,7 +1355,7 @@ type BarMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Cornerradius // arrayOK: false @@ -1371,13 +1371,13 @@ type BarMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Pattern // role: Object @@ -1403,37 +1403,37 @@ type BarOutsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // BarSelectedMarker @@ -1487,7 +1487,7 @@ type BarStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // BarTextfont Sets the font used for `text`. @@ -1497,37 +1497,37 @@ type BarTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // BarUnselectedMarker diff --git a/generated/v2.29.1/graph_objects/barpolar_gen.go b/generated/v2.29.1/graph_objects/barpolar_gen.go index cdbde3f..06a0eb9 100644 --- a/generated/v2.29.1/graph_objects/barpolar_gen.go +++ b/generated/v2.29.1/graph_objects/barpolar_gen.go @@ -19,13 +19,13 @@ type Barpolar struct { // arrayOK: true // type: any // Sets where the bar base is drawn (in radial axis units). In *stack* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead. - Base interface{} `json:"base,omitempty"` + Base ArrayOK[*interface{}] `json:"base,omitempty"` // Basesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `base`. - Basesrc String `json:"basesrc,omitempty"` + Basesrc string `json:"basesrc,omitempty"` // Customdata // arrayOK: false @@ -37,7 +37,7 @@ type Barpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dr // arrayOK: false @@ -61,7 +61,7 @@ type Barpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -71,25 +71,25 @@ type Barpolar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -101,7 +101,7 @@ type Barpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -113,7 +113,7 @@ type Barpolar struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -139,31 +139,31 @@ type Barpolar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Offset // arrayOK: true // type: number // Shifts the angular position where the bar is drawn (in *thetatunit* units). - Offset float64 `json:"offset,omitempty"` + Offset ArrayOK[*float64] `json:"offset,omitempty"` // Offsetsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `offset`. - Offsetsrc String `json:"offsetsrc,omitempty"` + Offsetsrc string `json:"offsetsrc,omitempty"` // Opacity // arrayOK: false @@ -187,7 +187,7 @@ type Barpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `r`. - Rsrc String `json:"rsrc,omitempty"` + Rsrc string `json:"rsrc,omitempty"` // Selected // role: Object @@ -219,13 +219,13 @@ type Barpolar struct { // arrayOK: true // type: string // Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace's coordinates. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Theta // arrayOK: false @@ -243,7 +243,7 @@ type Barpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `theta`. - Thetasrc String `json:"thetasrc,omitempty"` + Thetasrc string `json:"thetasrc,omitempty"` // Thetaunit // default: degrees @@ -261,7 +261,7 @@ type Barpolar struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -283,13 +283,13 @@ type Barpolar struct { // arrayOK: true // type: number // Sets the bar angular width (in *thetaunit* units). - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // BarpolarHoverlabelFont Sets the font used in hover labels. @@ -299,37 +299,37 @@ type BarpolarHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // BarpolarHoverlabel @@ -345,31 +345,31 @@ type BarpolarHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -379,13 +379,13 @@ type BarpolarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // BarpolarLegendgrouptitleFont Sets this legend group's title font. @@ -401,7 +401,7 @@ type BarpolarLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -421,7 +421,7 @@ type BarpolarLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // BarpolarMarkerColorbarTickfont Sets the color bar's tick label font @@ -437,7 +437,7 @@ type BarpolarMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -459,7 +459,7 @@ type BarpolarMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -485,7 +485,7 @@ type BarpolarMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // BarpolarMarkerColorbar @@ -637,7 +637,7 @@ type BarpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -679,7 +679,7 @@ type BarpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -691,7 +691,7 @@ type BarpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -703,7 +703,7 @@ type BarpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -715,7 +715,7 @@ type BarpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -813,7 +813,7 @@ type BarpolarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -831,7 +831,7 @@ type BarpolarMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -843,13 +843,13 @@ type BarpolarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // BarpolarMarkerPattern Sets the pattern within the marker. @@ -859,25 +859,25 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -901,31 +901,31 @@ type BarpolarMarkerPattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // BarpolarMarker @@ -965,7 +965,7 @@ type BarpolarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -987,7 +987,7 @@ type BarpolarMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Line // role: Object @@ -997,13 +997,13 @@ type BarpolarMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Pattern // role: Object @@ -1073,7 +1073,7 @@ type BarpolarStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // BarpolarUnselectedMarker diff --git a/generated/v2.29.1/graph_objects/box_gen.go b/generated/v2.29.1/graph_objects/box_gen.go index af65638..9176ea9 100644 --- a/generated/v2.29.1/graph_objects/box_gen.go +++ b/generated/v2.29.1/graph_objects/box_gen.go @@ -19,7 +19,7 @@ type Box struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. - Alignmentgroup String `json:"alignmentgroup,omitempty"` + Alignmentgroup string `json:"alignmentgroup,omitempty"` // Boxmean // default: %!s() @@ -43,7 +43,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -73,7 +73,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -89,25 +89,25 @@ type Box struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -119,7 +119,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Jitter // arrayOK: false @@ -137,7 +137,7 @@ type Box struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -169,7 +169,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `lowerfence`. - Lowerfencesrc String `json:"lowerfencesrc,omitempty"` + Lowerfencesrc string `json:"lowerfencesrc,omitempty"` // Marker // role: Object @@ -185,7 +185,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `mean`. - Meansrc String `json:"meansrc,omitempty"` + Meansrc string `json:"meansrc,omitempty"` // Median // arrayOK: false @@ -197,25 +197,25 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `median`. - Mediansrc String `json:"mediansrc,omitempty"` + Mediansrc string `json:"mediansrc,omitempty"` // Meta // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. For box traces, the name will also be used for the position coordinate, if `x` and `x0` (`y` and `y0` if horizontal) are missing and the position axis is categorical - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Notched // arrayOK: false @@ -233,7 +233,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `notchspan`. - Notchspansrc String `json:"notchspansrc,omitempty"` + Notchspansrc string `json:"notchspansrc,omitempty"` // Notchwidth // arrayOK: false @@ -245,7 +245,7 @@ type Box struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. - Offsetgroup String `json:"offsetgroup,omitempty"` + Offsetgroup string `json:"offsetgroup,omitempty"` // Opacity // arrayOK: false @@ -275,7 +275,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `q1`. - Q1src String `json:"q1src,omitempty"` + Q1src string `json:"q1src,omitempty"` // Q3 // arrayOK: false @@ -287,7 +287,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `q3`. - Q3src String `json:"q3src,omitempty"` + Q3src string `json:"q3src,omitempty"` // Quartilemethod // default: linear @@ -311,7 +311,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `sd`. - Sdsrc String `json:"sdsrc,omitempty"` + Sdsrc string `json:"sdsrc,omitempty"` // Selected // role: Object @@ -349,13 +349,13 @@ type Box struct { // arrayOK: true // type: string // Sets the text elements associated with each sample value. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -367,7 +367,7 @@ type Box struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -389,7 +389,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `upperfence`. - Upperfencesrc String `json:"upperfencesrc,omitempty"` + Upperfencesrc string `json:"upperfencesrc,omitempty"` // Visible // default: %!s(bool=true) @@ -437,7 +437,7 @@ type Box struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -461,7 +461,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -491,7 +491,7 @@ type Box struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -515,7 +515,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // BoxHoverlabelFont Sets the font used in hover labels. @@ -525,37 +525,37 @@ type BoxHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // BoxHoverlabel @@ -571,31 +571,31 @@ type BoxHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -605,13 +605,13 @@ type BoxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // BoxLegendgrouptitleFont Sets this legend group's title font. @@ -627,7 +627,7 @@ type BoxLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -647,7 +647,7 @@ type BoxLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // BoxLine @@ -781,7 +781,7 @@ type BoxStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // BoxUnselectedMarker diff --git a/generated/v2.29.1/graph_objects/candlestick_gen.go b/generated/v2.29.1/graph_objects/candlestick_gen.go index cb40dd9..964358c 100644 --- a/generated/v2.29.1/graph_objects/candlestick_gen.go +++ b/generated/v2.29.1/graph_objects/candlestick_gen.go @@ -25,7 +25,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `close`. - Closesrc String `json:"closesrc,omitempty"` + Closesrc string `json:"closesrc,omitempty"` // Customdata // arrayOK: false @@ -37,7 +37,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Decreasing // role: Object @@ -53,7 +53,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `high`. - Highsrc String `json:"highsrc,omitempty"` + Highsrc string `json:"highsrc,omitempty"` // Hoverinfo // default: all @@ -65,7 +65,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -75,13 +75,13 @@ type Candlestick struct { // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -93,7 +93,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Increasing // role: Object @@ -109,7 +109,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -141,25 +141,25 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `low`. - Lowsrc String `json:"lowsrc,omitempty"` + Lowsrc string `json:"lowsrc,omitempty"` // Meta // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -177,7 +177,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `open`. - Opensrc String `json:"opensrc,omitempty"` + Opensrc string `json:"opensrc,omitempty"` // Selectedpoints // arrayOK: false @@ -199,13 +199,13 @@ type Candlestick struct { // arrayOK: true // type: string // Sets hover text elements associated with each sample point. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to this trace's sample points. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -217,7 +217,7 @@ type Candlestick struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -259,7 +259,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -283,7 +283,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Yaxis // arrayOK: false @@ -295,7 +295,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` } // CandlestickDecreasingLine @@ -335,37 +335,37 @@ type CandlestickHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // CandlestickHoverlabel @@ -381,31 +381,31 @@ type CandlestickHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -415,13 +415,13 @@ type CandlestickHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` // Split // arrayOK: false @@ -473,7 +473,7 @@ type CandlestickLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -493,7 +493,7 @@ type CandlestickLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // CandlestickLine @@ -519,7 +519,7 @@ type CandlestickStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // CandlestickHoverlabelAlign Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines diff --git a/generated/v2.29.1/graph_objects/carpet_gen.go b/generated/v2.29.1/graph_objects/carpet_gen.go index 27f9f60..590e341 100644 --- a/generated/v2.29.1/graph_objects/carpet_gen.go +++ b/generated/v2.29.1/graph_objects/carpet_gen.go @@ -35,7 +35,7 @@ type Carpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `a`. - Asrc String `json:"asrc,omitempty"` + Asrc string `json:"asrc,omitempty"` // B // arrayOK: false @@ -57,13 +57,13 @@ type Carpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `b`. - Bsrc String `json:"bsrc,omitempty"` + Bsrc string `json:"bsrc,omitempty"` // Carpet // arrayOK: false // type: string // An identifier for this carpet, so that `scattercarpet` and `contourcarpet` traces can specify a carpet plot on which they lie - Carpet String `json:"carpet,omitempty"` + Carpet string `json:"carpet,omitempty"` // Cheaterslope // arrayOK: false @@ -87,7 +87,7 @@ type Carpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Da // arrayOK: false @@ -115,7 +115,7 @@ type Carpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -143,19 +143,19 @@ type Carpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -171,7 +171,7 @@ type Carpet struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -201,7 +201,7 @@ type Carpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -219,7 +219,7 @@ type Carpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // CarpetAaxisTickfont Sets the tick font. @@ -235,7 +235,7 @@ type CarpetAaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -257,7 +257,7 @@ type CarpetAaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -283,7 +283,7 @@ type CarpetAaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // CarpetAaxis @@ -323,7 +323,7 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -389,7 +389,7 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -413,13 +413,13 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets a axis label prefix. - Labelprefix String `json:"labelprefix,omitempty"` + Labelprefix string `json:"labelprefix,omitempty"` // Labelsuffix // arrayOK: false // type: string // Sets a axis label suffix. - Labelsuffix String `json:"labelsuffix,omitempty"` + Labelsuffix string `json:"labelsuffix,omitempty"` // Linecolor // arrayOK: false @@ -455,7 +455,7 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Minorgriddash String `json:"minorgriddash,omitempty"` + Minorgriddash string `json:"minorgriddash,omitempty"` // Minorgridwidth // arrayOK: false @@ -567,7 +567,7 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -585,13 +585,13 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticksuffix // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -603,7 +603,7 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -615,7 +615,7 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Title // role: Object @@ -641,7 +641,7 @@ type CarpetBaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -663,7 +663,7 @@ type CarpetBaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -689,7 +689,7 @@ type CarpetBaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // CarpetBaxis @@ -729,7 +729,7 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -795,7 +795,7 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -819,13 +819,13 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets a axis label prefix. - Labelprefix String `json:"labelprefix,omitempty"` + Labelprefix string `json:"labelprefix,omitempty"` // Labelsuffix // arrayOK: false // type: string // Sets a axis label suffix. - Labelsuffix String `json:"labelsuffix,omitempty"` + Labelsuffix string `json:"labelsuffix,omitempty"` // Linecolor // arrayOK: false @@ -861,7 +861,7 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Minorgriddash String `json:"minorgriddash,omitempty"` + Minorgriddash string `json:"minorgriddash,omitempty"` // Minorgridwidth // arrayOK: false @@ -973,7 +973,7 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -991,13 +991,13 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticksuffix // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -1009,7 +1009,7 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -1021,7 +1021,7 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Title // role: Object @@ -1047,7 +1047,7 @@ type CarpetFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1069,7 +1069,7 @@ type CarpetLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1089,7 +1089,7 @@ type CarpetLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // CarpetStream @@ -1105,7 +1105,7 @@ type CarpetStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // CarpetAaxisAutorange Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided, then `autorange` is set to *false*. diff --git a/generated/v2.29.1/graph_objects/choropleth_gen.go b/generated/v2.29.1/graph_objects/choropleth_gen.go index 6420f68..75ee700 100644 --- a/generated/v2.29.1/graph_objects/choropleth_gen.go +++ b/generated/v2.29.1/graph_objects/choropleth_gen.go @@ -47,13 +47,13 @@ type Choropleth struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Featureidkey // arrayOK: false // type: string // Sets the key in GeoJSON features which is used as id to match the items included in the `locations` array. Only has an effect when `geojson` is set. Support nested property, for example *properties.name*. - Featureidkey String `json:"featureidkey,omitempty"` + Featureidkey string `json:"featureidkey,omitempty"` // Geo // arrayOK: false @@ -77,7 +77,7 @@ type Choropleth struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -87,25 +87,25 @@ type Choropleth struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -117,7 +117,7 @@ type Choropleth struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -129,7 +129,7 @@ type Choropleth struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -163,7 +163,7 @@ type Choropleth struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Marker // role: Object @@ -173,19 +173,19 @@ type Choropleth struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Reversescale // arrayOK: false @@ -223,13 +223,13 @@ type Choropleth struct { // arrayOK: true // type: string // Sets the text elements associated with each location. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -241,7 +241,7 @@ type Choropleth struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -293,7 +293,7 @@ type Choropleth struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // ChoroplethColorbarTickfont Sets the color bar's tick label font @@ -309,7 +309,7 @@ type ChoroplethColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -331,7 +331,7 @@ type ChoroplethColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -357,7 +357,7 @@ type ChoroplethColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ChoroplethColorbar @@ -509,7 +509,7 @@ type ChoroplethColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -551,7 +551,7 @@ type ChoroplethColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -563,7 +563,7 @@ type ChoroplethColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -575,7 +575,7 @@ type ChoroplethColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -587,7 +587,7 @@ type ChoroplethColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -655,37 +655,37 @@ type ChoroplethHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ChoroplethHoverlabel @@ -701,31 +701,31 @@ type ChoroplethHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -735,13 +735,13 @@ type ChoroplethHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ChoroplethLegendgrouptitleFont Sets this legend group's title font. @@ -757,7 +757,7 @@ type ChoroplethLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -777,7 +777,7 @@ type ChoroplethLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ChoroplethMarkerLine @@ -787,25 +787,25 @@ type ChoroplethMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ChoroplethMarker @@ -819,13 +819,13 @@ type ChoroplethMarker struct { // arrayOK: true // type: number // Sets the opacity of the locations. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` } // ChoroplethSelectedMarker @@ -859,7 +859,7 @@ type ChoroplethStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ChoroplethUnselectedMarker diff --git a/generated/v2.29.1/graph_objects/choroplethmapbox_gen.go b/generated/v2.29.1/graph_objects/choroplethmapbox_gen.go index 0202c45..1d2e9f7 100644 --- a/generated/v2.29.1/graph_objects/choroplethmapbox_gen.go +++ b/generated/v2.29.1/graph_objects/choroplethmapbox_gen.go @@ -25,7 +25,7 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Determines if the choropleth polygons will be inserted before the layer with the specified ID. By default, choroplethmapbox traces are placed above the water layers. If set to '', the layer will be inserted above every existing layer. - Below String `json:"below,omitempty"` + Below string `json:"below,omitempty"` // Coloraxis // arrayOK: false @@ -53,13 +53,13 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Featureidkey // arrayOK: false // type: string // Sets the key in GeoJSON features which is used as id to match the items included in the `locations` array. Support nested property, for example *properties.name*. - Featureidkey String `json:"featureidkey,omitempty"` + Featureidkey string `json:"featureidkey,omitempty"` // Geojson // arrayOK: false @@ -77,7 +77,7 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -87,25 +87,25 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `properties` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -117,7 +117,7 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -129,7 +129,7 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -157,7 +157,7 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Marker // role: Object @@ -167,19 +167,19 @@ type Choroplethmapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Reversescale // arrayOK: false @@ -223,13 +223,13 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Sets the text elements associated with each location. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -241,7 +241,7 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -293,7 +293,7 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // ChoroplethmapboxColorbarTickfont Sets the color bar's tick label font @@ -309,7 +309,7 @@ type ChoroplethmapboxColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -331,7 +331,7 @@ type ChoroplethmapboxColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -357,7 +357,7 @@ type ChoroplethmapboxColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ChoroplethmapboxColorbar @@ -509,7 +509,7 @@ type ChoroplethmapboxColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -551,7 +551,7 @@ type ChoroplethmapboxColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -563,7 +563,7 @@ type ChoroplethmapboxColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -575,7 +575,7 @@ type ChoroplethmapboxColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -587,7 +587,7 @@ type ChoroplethmapboxColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -655,37 +655,37 @@ type ChoroplethmapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ChoroplethmapboxHoverlabel @@ -701,31 +701,31 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -735,13 +735,13 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ChoroplethmapboxLegendgrouptitleFont Sets this legend group's title font. @@ -757,7 +757,7 @@ type ChoroplethmapboxLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -777,7 +777,7 @@ type ChoroplethmapboxLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ChoroplethmapboxMarkerLine @@ -787,25 +787,25 @@ type ChoroplethmapboxMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ChoroplethmapboxMarker @@ -819,13 +819,13 @@ type ChoroplethmapboxMarker struct { // arrayOK: true // type: number // Sets the opacity of the locations. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` } // ChoroplethmapboxSelectedMarker @@ -859,7 +859,7 @@ type ChoroplethmapboxStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ChoroplethmapboxUnselectedMarker diff --git a/generated/v2.29.1/graph_objects/cone_gen.go b/generated/v2.29.1/graph_objects/cone_gen.go index afc4cd5..3412b64 100644 --- a/generated/v2.29.1/graph_objects/cone_gen.go +++ b/generated/v2.29.1/graph_objects/cone_gen.go @@ -77,7 +77,7 @@ type Cone struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo // default: x+y+z+norm+text+name @@ -89,7 +89,7 @@ type Cone struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -99,25 +99,25 @@ type Cone struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `norm` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -129,7 +129,7 @@ type Cone struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -141,7 +141,7 @@ type Cone struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -171,19 +171,19 @@ type Cone struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -235,13 +235,13 @@ type Cone struct { // arrayOK: true // type: string // Sets the text elements associated with the cones. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // U // arrayOK: false @@ -253,13 +253,13 @@ type Cone struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `u` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Uhoverformat String `json:"uhoverformat,omitempty"` + Uhoverformat string `json:"uhoverformat,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -271,7 +271,7 @@ type Cone struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `u`. - Usrc String `json:"usrc,omitempty"` + Usrc string `json:"usrc,omitempty"` // V // arrayOK: false @@ -283,7 +283,7 @@ type Cone struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `v` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Vhoverformat String `json:"vhoverformat,omitempty"` + Vhoverformat string `json:"vhoverformat,omitempty"` // Visible // default: %!s(bool=true) @@ -295,7 +295,7 @@ type Cone struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `v`. - Vsrc String `json:"vsrc,omitempty"` + Vsrc string `json:"vsrc,omitempty"` // W // arrayOK: false @@ -307,13 +307,13 @@ type Cone struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `w` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Whoverformat String `json:"whoverformat,omitempty"` + Whoverformat string `json:"whoverformat,omitempty"` // Wsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `w`. - Wsrc String `json:"wsrc,omitempty"` + Wsrc string `json:"wsrc,omitempty"` // X // arrayOK: false @@ -325,13 +325,13 @@ type Cone struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -343,13 +343,13 @@ type Cone struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -361,13 +361,13 @@ type Cone struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `zaxis.hoverformat`. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // ConeColorbarTickfont Sets the color bar's tick label font @@ -383,7 +383,7 @@ type ConeColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -405,7 +405,7 @@ type ConeColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -431,7 +431,7 @@ type ConeColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ConeColorbar @@ -583,7 +583,7 @@ type ConeColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -625,7 +625,7 @@ type ConeColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -637,7 +637,7 @@ type ConeColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -649,7 +649,7 @@ type ConeColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -661,7 +661,7 @@ type ConeColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -729,37 +729,37 @@ type ConeHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ConeHoverlabel @@ -775,31 +775,31 @@ type ConeHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -809,13 +809,13 @@ type ConeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ConeLegendgrouptitleFont Sets this legend group's title font. @@ -831,7 +831,7 @@ type ConeLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -851,7 +851,7 @@ type ConeLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ConeLighting @@ -935,7 +935,7 @@ type ConeStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ConeAnchor Sets the cones' anchor with respect to their x/y/z positions. Note that *cm* denote the cone's center of mass which corresponds to 1/4 from the tail to tip. diff --git a/generated/v2.29.1/graph_objects/config_gen.go b/generated/v2.29.1/graph_objects/config_gen.go index 4f14501..2b9e074 100644 --- a/generated/v2.29.1/graph_objects/config_gen.go +++ b/generated/v2.29.1/graph_objects/config_gen.go @@ -71,13 +71,13 @@ type Config struct { // arrayOK: false // type: string // Sets the text appearing in the `showLink` link. - LinkText String `json:"linkText,omitempty"` + LinkText string `json:"linkText,omitempty"` // Locale // arrayOK: false // type: string // Which localization should we use? Should be a string like 'en' or 'en-US'. - Locale String `json:"locale,omitempty"` + Locale string `json:"locale,omitempty"` // Locales // arrayOK: false @@ -95,7 +95,7 @@ type Config struct { // arrayOK: false // type: string // Mapbox access token (required to plot mapbox trace types) If using an Mapbox Atlas server, set this option to '' so that plotly.js won't attempt to authenticate to the public Mapbox server. - MapboxAccessToken String `json:"mapboxAccessToken,omitempty"` + MapboxAccessToken string `json:"mapboxAccessToken,omitempty"` // ModeBarButtons // arrayOK: false @@ -131,7 +131,7 @@ type Config struct { // arrayOK: false // type: string // When set it determines base URL for the 'Edit in Chart Studio' `showEditInChartStudio`/`showSendToCloud` mode bar button and the showLink/sendData on-graph link. To enable sending your data to Chart Studio Cloud, you need to set both `plotlyServerURL` to 'https://chart-studio.plotly.com' and also set `showSendToCloud` to true. - PlotlyServerURL String `json:"plotlyServerURL,omitempty"` + PlotlyServerURL string `json:"plotlyServerURL,omitempty"` // QueueLength // arrayOK: false @@ -221,7 +221,7 @@ type Config struct { // arrayOK: false // type: string // Set the URL to topojson used in geo charts. By default, the topojson files are fetched from cdn.plot.ly. For example, set this option to: /dist/topojson/ to render geographical feature using the topojson files that ship with the plotly.js module. - TopojsonURL String `json:"topojsonURL,omitempty"` + TopojsonURL string `json:"topojsonURL,omitempty"` // TypesetMath // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/contour_gen.go b/generated/v2.29.1/graph_objects/contour_gen.go index 0cad8e4..4e0d858 100644 --- a/generated/v2.29.1/graph_objects/contour_gen.go +++ b/generated/v2.29.1/graph_objects/contour_gen.go @@ -63,7 +63,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -81,7 +81,7 @@ type Contour struct { // arrayOK: false // type: color // Sets the fill color if `contours.type` is *constraint*. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. - Fillcolor Color `json:"fillcolor,omitempty"` + Fillcolor ColorWithColorScale `json:"fillcolor,omitempty"` // Hoverinfo // default: all @@ -93,7 +93,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -109,13 +109,13 @@ type Contour struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: false @@ -127,7 +127,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -139,7 +139,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -151,7 +151,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -177,19 +177,19 @@ type Contour struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Ncontours // arrayOK: false @@ -239,13 +239,13 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: false // type: string // For this trace it only has an effect if `coloring` is set to *heatmap*. Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `x`, `y`, `z` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate string `json:"texttemplate,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -263,7 +263,7 @@ type Contour struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -305,7 +305,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -329,7 +329,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Xtype // default: %!s() @@ -365,7 +365,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -389,7 +389,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Ytype // default: %!s() @@ -413,7 +413,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zmax // arrayOK: false @@ -437,7 +437,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // ContourColorbarTickfont Sets the color bar's tick label font @@ -453,7 +453,7 @@ type ContourColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -475,7 +475,7 @@ type ContourColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -501,7 +501,7 @@ type ContourColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ContourColorbar @@ -653,7 +653,7 @@ type ContourColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -695,7 +695,7 @@ type ContourColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -707,7 +707,7 @@ type ContourColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -719,7 +719,7 @@ type ContourColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -731,7 +731,7 @@ type ContourColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -805,7 +805,7 @@ type ContourContoursLabelfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -837,7 +837,7 @@ type ContourContours struct { // arrayOK: false // type: string // Sets the contour label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. - Labelformat String `json:"labelformat,omitempty"` + Labelformat string `json:"labelformat,omitempty"` // Operation // default: = @@ -889,37 +889,37 @@ type ContourHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ContourHoverlabel @@ -935,31 +935,31 @@ type ContourHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -969,13 +969,13 @@ type ContourHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ContourLegendgrouptitleFont Sets this legend group's title font. @@ -991,7 +991,7 @@ type ContourLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1011,7 +1011,7 @@ type ContourLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ContourLine @@ -1027,7 +1027,7 @@ type ContourLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Smoothing // arrayOK: false @@ -1055,7 +1055,7 @@ type ContourStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ContourTextfont For this trace it only has an effect if `coloring` is set to *heatmap*. Sets the text font. @@ -1071,7 +1071,7 @@ type ContourTextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/contourcarpet_gen.go b/generated/v2.29.1/graph_objects/contourcarpet_gen.go index 28d112e..0aebe2f 100644 --- a/generated/v2.29.1/graph_objects/contourcarpet_gen.go +++ b/generated/v2.29.1/graph_objects/contourcarpet_gen.go @@ -31,7 +31,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `a`. - Asrc String `json:"asrc,omitempty"` + Asrc string `json:"asrc,omitempty"` // Atype // default: %!s() @@ -67,7 +67,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `b`. - Bsrc String `json:"bsrc,omitempty"` + Bsrc string `json:"bsrc,omitempty"` // Btype // default: %!s() @@ -79,7 +79,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // The `carpet` of the carpet axes on which this contour trace lies - Carpet String `json:"carpet,omitempty"` + Carpet string `json:"carpet,omitempty"` // Coloraxis // arrayOK: false @@ -111,7 +111,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Da // arrayOK: false @@ -129,7 +129,7 @@ type Contourcarpet struct { // arrayOK: false // type: color // Sets the fill color if `contours.type` is *constraint*. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. - Fillcolor Color `json:"fillcolor,omitempty"` + Fillcolor ColorWithColorScale `json:"fillcolor,omitempty"` // Hovertext // arrayOK: false @@ -141,7 +141,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -153,7 +153,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -165,7 +165,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -191,19 +191,19 @@ type Contourcarpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Ncontours // arrayOK: false @@ -249,7 +249,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transpose // arrayOK: false @@ -261,7 +261,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -321,7 +321,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // ContourcarpetColorbarTickfont Sets the color bar's tick label font @@ -337,7 +337,7 @@ type ContourcarpetColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -359,7 +359,7 @@ type ContourcarpetColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -385,7 +385,7 @@ type ContourcarpetColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ContourcarpetColorbar @@ -537,7 +537,7 @@ type ContourcarpetColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -579,7 +579,7 @@ type ContourcarpetColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -591,7 +591,7 @@ type ContourcarpetColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -603,7 +603,7 @@ type ContourcarpetColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -615,7 +615,7 @@ type ContourcarpetColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -689,7 +689,7 @@ type ContourcarpetContoursLabelfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -721,7 +721,7 @@ type ContourcarpetContours struct { // arrayOK: false // type: string // Sets the contour label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. - Labelformat String `json:"labelformat,omitempty"` + Labelformat string `json:"labelformat,omitempty"` // Operation // default: = @@ -779,7 +779,7 @@ type ContourcarpetLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -799,7 +799,7 @@ type ContourcarpetLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ContourcarpetLine @@ -815,7 +815,7 @@ type ContourcarpetLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Smoothing // arrayOK: false @@ -843,7 +843,7 @@ type ContourcarpetStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ContourcarpetAtype If *array*, the heatmap's x coordinates are given by *x* (the default behavior when `x` is provided). If *scaled*, the heatmap's x coordinates are given by *x0* and *dx* (the default behavior when `x` is not provided). diff --git a/generated/v2.29.1/graph_objects/densitymapbox_gen.go b/generated/v2.29.1/graph_objects/densitymapbox_gen.go index 1a1a1e0..43cdb3c 100644 --- a/generated/v2.29.1/graph_objects/densitymapbox_gen.go +++ b/generated/v2.29.1/graph_objects/densitymapbox_gen.go @@ -25,7 +25,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Determines if the densitymapbox trace will be inserted before the layer with the specified ID. By default, densitymapbox traces are placed below the first layer of type symbol If set to '', the layer will be inserted above every existing layer. - Below String `json:"below,omitempty"` + Below string `json:"below,omitempty"` // Coloraxis // arrayOK: false @@ -53,7 +53,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo // default: all @@ -65,7 +65,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -75,25 +75,25 @@ type Densitymapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -105,7 +105,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Lat // arrayOK: false @@ -117,7 +117,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `lat`. - Latsrc String `json:"latsrc,omitempty"` + Latsrc string `json:"latsrc,omitempty"` // Legend // arrayOK: false @@ -129,7 +129,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -157,25 +157,25 @@ type Densitymapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `lon`. - Lonsrc String `json:"lonsrc,omitempty"` + Lonsrc string `json:"lonsrc,omitempty"` // Meta // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -187,13 +187,13 @@ type Densitymapbox struct { // arrayOK: true // type: number // Sets the radius of influence of one `lon` / `lat` point in pixels. Increasing the value makes the densitymapbox trace smoother, but less detailed. - Radius float64 `json:"radius,omitempty"` + Radius ArrayOK[*float64] `json:"radius,omitempty"` // Radiussrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `radius`. - Radiussrc String `json:"radiussrc,omitempty"` + Radiussrc string `json:"radiussrc,omitempty"` // Reversescale // arrayOK: false @@ -227,13 +227,13 @@ type Densitymapbox struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -245,7 +245,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -293,7 +293,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // DensitymapboxColorbarTickfont Sets the color bar's tick label font @@ -309,7 +309,7 @@ type DensitymapboxColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -331,7 +331,7 @@ type DensitymapboxColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -357,7 +357,7 @@ type DensitymapboxColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // DensitymapboxColorbar @@ -509,7 +509,7 @@ type DensitymapboxColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -551,7 +551,7 @@ type DensitymapboxColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -563,7 +563,7 @@ type DensitymapboxColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -575,7 +575,7 @@ type DensitymapboxColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -587,7 +587,7 @@ type DensitymapboxColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -655,37 +655,37 @@ type DensitymapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // DensitymapboxHoverlabel @@ -701,31 +701,31 @@ type DensitymapboxHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -735,13 +735,13 @@ type DensitymapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // DensitymapboxLegendgrouptitleFont Sets this legend group's title font. @@ -757,7 +757,7 @@ type DensitymapboxLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -777,7 +777,7 @@ type DensitymapboxLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // DensitymapboxStream @@ -793,7 +793,7 @@ type DensitymapboxStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // DensitymapboxColorbarExponentformat Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. diff --git a/generated/v2.29.1/graph_objects/funnel_gen.go b/generated/v2.29.1/graph_objects/funnel_gen.go index 4433e6c..265e27e 100644 --- a/generated/v2.29.1/graph_objects/funnel_gen.go +++ b/generated/v2.29.1/graph_objects/funnel_gen.go @@ -19,7 +19,7 @@ type Funnel struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. - Alignmentgroup String `json:"alignmentgroup,omitempty"` + Alignmentgroup string `json:"alignmentgroup,omitempty"` // Cliponaxis // arrayOK: false @@ -47,7 +47,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -71,7 +71,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -81,25 +81,25 @@ type Funnel struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `percentInitial`, `percentPrevious` and `percentTotal`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -111,7 +111,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextanchor // default: middle @@ -133,7 +133,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -159,19 +159,19 @@ type Funnel struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Offset // arrayOK: false @@ -183,7 +183,7 @@ type Funnel struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. - Offsetgroup String `json:"offsetgroup,omitempty"` + Offsetgroup string `json:"offsetgroup,omitempty"` // Opacity // arrayOK: false @@ -221,7 +221,7 @@ type Funnel struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -249,25 +249,25 @@ type Funnel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `percentInitial`, `percentPrevious`, `percentTotal`, `label` and `value`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -279,7 +279,7 @@ type Funnel struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -321,7 +321,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -345,7 +345,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -369,7 +369,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -393,7 +393,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // FunnelConnectorLine @@ -409,7 +409,7 @@ type FunnelConnectorLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -445,37 +445,37 @@ type FunnelHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelHoverlabel @@ -491,31 +491,31 @@ type FunnelHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -525,13 +525,13 @@ type FunnelHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // FunnelInsidetextfont Sets the font used for `text` lying inside the bar. @@ -541,37 +541,37 @@ type FunnelInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelLegendgrouptitleFont Sets this legend group's title font. @@ -587,7 +587,7 @@ type FunnelLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -607,7 +607,7 @@ type FunnelLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // FunnelMarkerColorbarTickfont Sets the color bar's tick label font @@ -623,7 +623,7 @@ type FunnelMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -645,7 +645,7 @@ type FunnelMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -671,7 +671,7 @@ type FunnelMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // FunnelMarkerColorbar @@ -823,7 +823,7 @@ type FunnelMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -865,7 +865,7 @@ type FunnelMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -877,7 +877,7 @@ type FunnelMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -889,7 +889,7 @@ type FunnelMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -901,7 +901,7 @@ type FunnelMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -999,7 +999,7 @@ type FunnelMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1017,7 +1017,7 @@ type FunnelMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -1029,13 +1029,13 @@ type FunnelMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // FunnelMarker @@ -1075,7 +1075,7 @@ type FunnelMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1097,7 +1097,7 @@ type FunnelMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Line // role: Object @@ -1107,13 +1107,13 @@ type FunnelMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1135,37 +1135,37 @@ type FunnelOutsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelStream @@ -1181,7 +1181,7 @@ type FunnelStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // FunnelTextfont Sets the font used for `text`. @@ -1191,37 +1191,37 @@ type FunnelTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelConstraintext Constrain the size of text inside or outside a bar to be no larger than the bar itself. diff --git a/generated/v2.29.1/graph_objects/funnelarea_gen.go b/generated/v2.29.1/graph_objects/funnelarea_gen.go index 3bec04a..dc81295 100644 --- a/generated/v2.29.1/graph_objects/funnelarea_gen.go +++ b/generated/v2.29.1/graph_objects/funnelarea_gen.go @@ -37,7 +37,7 @@ type Funnelarea struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dlabel // arrayOK: false @@ -59,7 +59,7 @@ type Funnelarea struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -69,25 +69,25 @@ type Funnelarea struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `text` and `percent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -99,7 +99,7 @@ type Funnelarea struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextfont // role: Object @@ -121,7 +121,7 @@ type Funnelarea struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `labels`. - Labelssrc String `json:"labelssrc,omitempty"` + Labelssrc string `json:"labelssrc,omitempty"` // Legend // arrayOK: false @@ -133,7 +133,7 @@ type Funnelarea struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -159,19 +159,19 @@ type Funnelarea struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -183,7 +183,7 @@ type Funnelarea struct { // arrayOK: false // type: string // If there are multiple funnelareas that should be sized according to their totals, link them by providing a non-empty group id here shared by every trace in the same group. - Scalegroup String `json:"scalegroup,omitempty"` + Scalegroup string `json:"scalegroup,omitempty"` // Showlegend // arrayOK: false @@ -221,25 +221,25 @@ type Funnelarea struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `text` and `percent`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Title // role: Object @@ -255,7 +255,7 @@ type Funnelarea struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -273,7 +273,7 @@ type Funnelarea struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `values`. - Valuessrc String `json:"valuessrc,omitempty"` + Valuessrc string `json:"valuessrc,omitempty"` // Visible // default: %!s(bool=true) @@ -317,37 +317,37 @@ type FunnelareaHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelareaHoverlabel @@ -363,31 +363,31 @@ type FunnelareaHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -397,13 +397,13 @@ type FunnelareaHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // FunnelareaInsidetextfont Sets the font used for `textinfo` lying inside the sector. @@ -413,37 +413,37 @@ type FunnelareaInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelareaLegendgrouptitleFont Sets this legend group's title font. @@ -459,7 +459,7 @@ type FunnelareaLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -479,7 +479,7 @@ type FunnelareaLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // FunnelareaMarkerLine @@ -489,25 +489,25 @@ type FunnelareaMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // FunnelareaMarkerPattern Sets the pattern within the marker. @@ -517,25 +517,25 @@ type FunnelareaMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -559,31 +559,31 @@ type FunnelareaMarkerPattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // FunnelareaMarker @@ -599,7 +599,7 @@ type FunnelareaMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `colors`. - Colorssrc String `json:"colorssrc,omitempty"` + Colorssrc string `json:"colorssrc,omitempty"` // Line // role: Object @@ -623,7 +623,7 @@ type FunnelareaStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // FunnelareaTextfont Sets the font used for `textinfo`. @@ -633,37 +633,37 @@ type FunnelareaTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelareaTitleFont Sets the font used for `title`. Note that the title's font used to be set by the now deprecated `titlefont` attribute. @@ -673,37 +673,37 @@ type FunnelareaTitleFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelareaTitle @@ -723,7 +723,7 @@ type FunnelareaTitle struct { // arrayOK: false // type: string // Sets the title of the chart. If it is empty, no title is displayed. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // FunnelareaHoverlabelAlign Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines diff --git a/generated/v2.29.1/graph_objects/heatmap_gen.go b/generated/v2.29.1/graph_objects/heatmap_gen.go index c762310..2244844 100644 --- a/generated/v2.29.1/graph_objects/heatmap_gen.go +++ b/generated/v2.29.1/graph_objects/heatmap_gen.go @@ -53,7 +53,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -77,7 +77,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -93,13 +93,13 @@ type Heatmap struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: false @@ -111,7 +111,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -123,7 +123,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -135,7 +135,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -157,19 +157,19 @@ type Heatmap struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -213,13 +213,13 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: false // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `x`, `y`, `z` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate string `json:"texttemplate,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -237,7 +237,7 @@ type Heatmap struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -285,7 +285,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -309,7 +309,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Xtype // default: %!s() @@ -351,7 +351,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -375,7 +375,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Ytype // default: %!s() @@ -399,7 +399,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zmax // arrayOK: false @@ -429,7 +429,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // HeatmapColorbarTickfont Sets the color bar's tick label font @@ -445,7 +445,7 @@ type HeatmapColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -467,7 +467,7 @@ type HeatmapColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -493,7 +493,7 @@ type HeatmapColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // HeatmapColorbar @@ -645,7 +645,7 @@ type HeatmapColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -687,7 +687,7 @@ type HeatmapColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -699,7 +699,7 @@ type HeatmapColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -711,7 +711,7 @@ type HeatmapColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -723,7 +723,7 @@ type HeatmapColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -791,37 +791,37 @@ type HeatmapHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // HeatmapHoverlabel @@ -837,31 +837,31 @@ type HeatmapHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -871,13 +871,13 @@ type HeatmapHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // HeatmapLegendgrouptitleFont Sets this legend group's title font. @@ -893,7 +893,7 @@ type HeatmapLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -913,7 +913,7 @@ type HeatmapLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // HeatmapStream @@ -929,7 +929,7 @@ type HeatmapStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // HeatmapTextfont Sets the text font. @@ -945,7 +945,7 @@ type HeatmapTextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/heatmapgl_gen.go b/generated/v2.29.1/graph_objects/heatmapgl_gen.go index 83d7a88..0575e81 100644 --- a/generated/v2.29.1/graph_objects/heatmapgl_gen.go +++ b/generated/v2.29.1/graph_objects/heatmapgl_gen.go @@ -47,7 +47,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -71,7 +71,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -87,7 +87,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -115,19 +115,19 @@ type Heatmapgl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -161,7 +161,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -179,7 +179,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -215,7 +215,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Xtype // default: %!s() @@ -245,7 +245,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Ytype // default: %!s() @@ -293,7 +293,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // HeatmapglColorbarTickfont Sets the color bar's tick label font @@ -309,7 +309,7 @@ type HeatmapglColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -331,7 +331,7 @@ type HeatmapglColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -357,7 +357,7 @@ type HeatmapglColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // HeatmapglColorbar @@ -509,7 +509,7 @@ type HeatmapglColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -551,7 +551,7 @@ type HeatmapglColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -563,7 +563,7 @@ type HeatmapglColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -575,7 +575,7 @@ type HeatmapglColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -587,7 +587,7 @@ type HeatmapglColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -655,37 +655,37 @@ type HeatmapglHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // HeatmapglHoverlabel @@ -701,31 +701,31 @@ type HeatmapglHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -735,13 +735,13 @@ type HeatmapglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // HeatmapglLegendgrouptitleFont Sets this legend group's title font. @@ -757,7 +757,7 @@ type HeatmapglLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -777,7 +777,7 @@ type HeatmapglLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // HeatmapglStream @@ -793,7 +793,7 @@ type HeatmapglStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // HeatmapglColorbarExponentformat Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. diff --git a/generated/v2.29.1/graph_objects/histogram2d_gen.go b/generated/v2.29.1/graph_objects/histogram2d_gen.go index 56b4800..94ac8aa 100644 --- a/generated/v2.29.1/graph_objects/histogram2d_gen.go +++ b/generated/v2.29.1/graph_objects/histogram2d_gen.go @@ -37,7 +37,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Set the `xbingroup` and `ybingroup` default prefix For example, setting a `bingroup` of *1* on two histogram2d traces will make them their x-bins and y-bins match separately. - Bingroup String `json:"bingroup,omitempty"` + Bingroup string `json:"bingroup,omitempty"` // Coloraxis // arrayOK: false @@ -65,7 +65,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Histfunc // default: count @@ -89,7 +89,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -99,13 +99,13 @@ type Histogram2d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `z` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Ids // arrayOK: false @@ -117,7 +117,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -129,7 +129,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -155,19 +155,19 @@ type Histogram2d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Nbinsx // arrayOK: false @@ -217,7 +217,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `z` - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate string `json:"texttemplate,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -229,7 +229,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -259,7 +259,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Set a group of histogram traces which will have compatible x-bin settings. Using `xbingroup`, histogram2d and histogram2dcontour traces (on axes of the same axis type) can have compatible x-bin settings. Note that the same `xbingroup` value can be used to set (1D) histogram `bingroup` - Xbingroup String `json:"xbingroup,omitempty"` + Xbingroup string `json:"xbingroup,omitempty"` // Xbins // role: Object @@ -281,13 +281,13 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -305,7 +305,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Set a group of histogram traces which will have compatible y-bin settings. Using `ybingroup`, histogram2d and histogram2dcontour traces (on axes of the same axis type) can have compatible y-bin settings. Note that the same `ybingroup` value can be used to set (1D) histogram `bingroup` - Ybingroup String `json:"ybingroup,omitempty"` + Ybingroup string `json:"ybingroup,omitempty"` // Ybins // role: Object @@ -327,13 +327,13 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -351,7 +351,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zmax // arrayOK: false @@ -381,7 +381,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // Histogram2dColorbarTickfont Sets the color bar's tick label font @@ -397,7 +397,7 @@ type Histogram2dColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -419,7 +419,7 @@ type Histogram2dColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -445,7 +445,7 @@ type Histogram2dColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Histogram2dColorbar @@ -597,7 +597,7 @@ type Histogram2dColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -639,7 +639,7 @@ type Histogram2dColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -651,7 +651,7 @@ type Histogram2dColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -663,7 +663,7 @@ type Histogram2dColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -675,7 +675,7 @@ type Histogram2dColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -743,37 +743,37 @@ type Histogram2dHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // Histogram2dHoverlabel @@ -789,31 +789,31 @@ type Histogram2dHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -823,13 +823,13 @@ type Histogram2dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // Histogram2dLegendgrouptitleFont Sets this legend group's title font. @@ -845,7 +845,7 @@ type Histogram2dLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -865,7 +865,7 @@ type Histogram2dLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Histogram2dMarker @@ -881,7 +881,7 @@ type Histogram2dMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` } // Histogram2dStream @@ -897,7 +897,7 @@ type Histogram2dStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // Histogram2dTextfont Sets the text font. @@ -913,7 +913,7 @@ type Histogram2dTextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/histogram2dcontour_gen.go b/generated/v2.29.1/graph_objects/histogram2dcontour_gen.go index 7101178..8c74f2d 100644 --- a/generated/v2.29.1/graph_objects/histogram2dcontour_gen.go +++ b/generated/v2.29.1/graph_objects/histogram2dcontour_gen.go @@ -43,7 +43,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Set the `xbingroup` and `ybingroup` default prefix For example, setting a `bingroup` of *1* on two histogram2d traces will make them their x-bins and y-bins match separately. - Bingroup String `json:"bingroup,omitempty"` + Bingroup string `json:"bingroup,omitempty"` // Coloraxis // arrayOK: false @@ -75,7 +75,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Histfunc // default: count @@ -99,7 +99,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -109,13 +109,13 @@ type Histogram2dcontour struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `z` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Ids // arrayOK: false @@ -127,7 +127,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -139,7 +139,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -169,19 +169,19 @@ type Histogram2dcontour struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Nbinsx // arrayOK: false @@ -237,7 +237,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // For this trace it only has an effect if `coloring` is set to *heatmap*. Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `x`, `y`, `z` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate string `json:"texttemplate,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -249,7 +249,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -279,7 +279,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Set a group of histogram traces which will have compatible x-bin settings. Using `xbingroup`, histogram2d and histogram2dcontour traces (on axes of the same axis type) can have compatible x-bin settings. Note that the same `xbingroup` value can be used to set (1D) histogram `bingroup` - Xbingroup String `json:"xbingroup,omitempty"` + Xbingroup string `json:"xbingroup,omitempty"` // Xbins // role: Object @@ -295,13 +295,13 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -319,7 +319,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Set a group of histogram traces which will have compatible y-bin settings. Using `ybingroup`, histogram2d and histogram2dcontour traces (on axes of the same axis type) can have compatible y-bin settings. Note that the same `ybingroup` value can be used to set (1D) histogram `bingroup` - Ybingroup String `json:"ybingroup,omitempty"` + Ybingroup string `json:"ybingroup,omitempty"` // Ybins // role: Object @@ -335,13 +335,13 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -359,7 +359,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zmax // arrayOK: false @@ -383,7 +383,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // Histogram2dcontourColorbarTickfont Sets the color bar's tick label font @@ -399,7 +399,7 @@ type Histogram2dcontourColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -421,7 +421,7 @@ type Histogram2dcontourColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -447,7 +447,7 @@ type Histogram2dcontourColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Histogram2dcontourColorbar @@ -599,7 +599,7 @@ type Histogram2dcontourColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -641,7 +641,7 @@ type Histogram2dcontourColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -653,7 +653,7 @@ type Histogram2dcontourColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -665,7 +665,7 @@ type Histogram2dcontourColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -677,7 +677,7 @@ type Histogram2dcontourColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -751,7 +751,7 @@ type Histogram2dcontourContoursLabelfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -783,7 +783,7 @@ type Histogram2dcontourContours struct { // arrayOK: false // type: string // Sets the contour label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. - Labelformat String `json:"labelformat,omitempty"` + Labelformat string `json:"labelformat,omitempty"` // Operation // default: = @@ -835,37 +835,37 @@ type Histogram2dcontourHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // Histogram2dcontourHoverlabel @@ -881,31 +881,31 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -915,13 +915,13 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // Histogram2dcontourLegendgrouptitleFont Sets this legend group's title font. @@ -937,7 +937,7 @@ type Histogram2dcontourLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -957,7 +957,7 @@ type Histogram2dcontourLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Histogram2dcontourLine @@ -973,7 +973,7 @@ type Histogram2dcontourLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Smoothing // arrayOK: false @@ -1001,7 +1001,7 @@ type Histogram2dcontourMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` } // Histogram2dcontourStream @@ -1017,7 +1017,7 @@ type Histogram2dcontourStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // Histogram2dcontourTextfont For this trace it only has an effect if `coloring` is set to *heatmap*. Sets the text font. @@ -1033,7 +1033,7 @@ type Histogram2dcontourTextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/histogram_gen.go b/generated/v2.29.1/graph_objects/histogram_gen.go index 19a21f6..c2a149d 100644 --- a/generated/v2.29.1/graph_objects/histogram_gen.go +++ b/generated/v2.29.1/graph_objects/histogram_gen.go @@ -19,7 +19,7 @@ type Histogram struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. - Alignmentgroup String `json:"alignmentgroup,omitempty"` + Alignmentgroup string `json:"alignmentgroup,omitempty"` // Autobinx // arrayOK: false @@ -37,7 +37,7 @@ type Histogram struct { // arrayOK: false // type: string // Set a group of histogram traces which will have compatible bin settings. Note that traces on the same subplot and with the same *orientation* under `barmode` *stack*, *relative* and *group* are forced into the same bingroup, Using `bingroup`, traces under `barmode` *overlay* and on different axes (of the same axis type) can have compatible bin settings. Note that histogram and histogram2d* trace can share the same `bingroup` - Bingroup String `json:"bingroup,omitempty"` + Bingroup string `json:"bingroup,omitempty"` // Cliponaxis // arrayOK: false @@ -65,7 +65,7 @@ type Histogram struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // ErrorX // role: Object @@ -97,7 +97,7 @@ type Histogram struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -107,25 +107,25 @@ type Histogram struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `binNumber` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -137,7 +137,7 @@ type Histogram struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextanchor // default: end @@ -159,7 +159,7 @@ type Histogram struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -185,19 +185,19 @@ type Histogram struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Nbinsx // arrayOK: false @@ -215,7 +215,7 @@ type Histogram struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. - Offsetgroup String `json:"offsetgroup,omitempty"` + Offsetgroup string `json:"offsetgroup,omitempty"` // Opacity // arrayOK: false @@ -257,7 +257,7 @@ type Histogram struct { // arrayOK: true // type: string // Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace's coordinates. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -279,13 +279,13 @@ type Histogram struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: false // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label` and `value`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate string `json:"texttemplate,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -297,7 +297,7 @@ type Histogram struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -341,13 +341,13 @@ type Histogram struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -375,13 +375,13 @@ type Histogram struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // HistogramCumulative @@ -425,13 +425,13 @@ type HistogramErrorX struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -519,13 +519,13 @@ type HistogramErrorY struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -595,37 +595,37 @@ type HistogramHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // HistogramHoverlabel @@ -641,31 +641,31 @@ type HistogramHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -675,13 +675,13 @@ type HistogramHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // HistogramInsidetextfont Sets the font used for `text` lying inside the bar. @@ -697,7 +697,7 @@ type HistogramInsidetextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -719,7 +719,7 @@ type HistogramLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -739,7 +739,7 @@ type HistogramLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // HistogramMarkerColorbarTickfont Sets the color bar's tick label font @@ -755,7 +755,7 @@ type HistogramMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -777,7 +777,7 @@ type HistogramMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -803,7 +803,7 @@ type HistogramMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // HistogramMarkerColorbar @@ -955,7 +955,7 @@ type HistogramMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -997,7 +997,7 @@ type HistogramMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -1009,7 +1009,7 @@ type HistogramMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -1021,7 +1021,7 @@ type HistogramMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -1033,7 +1033,7 @@ type HistogramMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -1131,7 +1131,7 @@ type HistogramMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1149,7 +1149,7 @@ type HistogramMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -1161,13 +1161,13 @@ type HistogramMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // HistogramMarkerPattern Sets the pattern within the marker. @@ -1177,25 +1177,25 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -1219,31 +1219,31 @@ type HistogramMarkerPattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // HistogramMarker @@ -1283,7 +1283,7 @@ type HistogramMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1305,7 +1305,7 @@ type HistogramMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Cornerradius // arrayOK: false @@ -1321,13 +1321,13 @@ type HistogramMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Pattern // role: Object @@ -1359,7 +1359,7 @@ type HistogramOutsidetextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1419,7 +1419,7 @@ type HistogramStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // HistogramTextfont Sets the text font. @@ -1435,7 +1435,7 @@ type HistogramTextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/icicle_gen.go b/generated/v2.29.1/graph_objects/icicle_gen.go index 6fe94b9..9ffff73 100644 --- a/generated/v2.29.1/graph_objects/icicle_gen.go +++ b/generated/v2.29.1/graph_objects/icicle_gen.go @@ -37,7 +37,7 @@ type Icicle struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Domain // role: Object @@ -53,7 +53,7 @@ type Icicle struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -63,25 +63,25 @@ type Icicle struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -93,7 +93,7 @@ type Icicle struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextfont // role: Object @@ -109,7 +109,7 @@ type Icicle struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `labels`. - Labelssrc String `json:"labelssrc,omitempty"` + Labelssrc string `json:"labelssrc,omitempty"` // Leaf // role: Object @@ -157,19 +157,19 @@ type Icicle struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -191,7 +191,7 @@ type Icicle struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `parents`. - Parentssrc String `json:"parentssrc,omitempty"` + Parentssrc string `json:"parentssrc,omitempty"` // Pathbar // role: Object @@ -237,19 +237,19 @@ type Icicle struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Tiling // role: Object @@ -265,7 +265,7 @@ type Icicle struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -283,7 +283,7 @@ type Icicle struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `values`. - Valuessrc String `json:"valuessrc,omitempty"` + Valuessrc string `json:"valuessrc,omitempty"` // Visible // default: %!s(bool=true) @@ -327,37 +327,37 @@ type IcicleHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // IcicleHoverlabel @@ -373,31 +373,31 @@ type IcicleHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -407,13 +407,13 @@ type IcicleHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // IcicleInsidetextfont Sets the font used for `textinfo` lying inside the sector. @@ -423,37 +423,37 @@ type IcicleInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // IcicleLeaf @@ -479,7 +479,7 @@ type IcicleLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -499,7 +499,7 @@ type IcicleLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // IcicleMarkerColorbarTickfont Sets the color bar's tick label font @@ -515,7 +515,7 @@ type IcicleMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -537,7 +537,7 @@ type IcicleMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -563,7 +563,7 @@ type IcicleMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // IcicleMarkerColorbar @@ -715,7 +715,7 @@ type IcicleMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -757,7 +757,7 @@ type IcicleMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -769,7 +769,7 @@ type IcicleMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -781,7 +781,7 @@ type IcicleMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -793,7 +793,7 @@ type IcicleMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -861,25 +861,25 @@ type IcicleMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // IcicleMarkerPattern Sets the pattern within the marker. @@ -889,25 +889,25 @@ type IcicleMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -931,31 +931,31 @@ type IcicleMarkerPattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // IcicleMarker @@ -1017,7 +1017,7 @@ type IcicleMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `colors`. - Colorssrc String `json:"colorssrc,omitempty"` + Colorssrc string `json:"colorssrc,omitempty"` // Line // role: Object @@ -1047,37 +1047,37 @@ type IcicleOutsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // IciclePathbarTextfont Sets the font used inside `pathbar`. @@ -1087,37 +1087,37 @@ type IciclePathbarTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // IciclePathbar @@ -1175,7 +1175,7 @@ type IcicleStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // IcicleTextfont Sets the font used for `textinfo`. @@ -1185,37 +1185,37 @@ type IcicleTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // IcicleTiling diff --git a/generated/v2.29.1/graph_objects/image_gen.go b/generated/v2.29.1/graph_objects/image_gen.go index ef22ca6..241ac4d 100644 --- a/generated/v2.29.1/graph_objects/image_gen.go +++ b/generated/v2.29.1/graph_objects/image_gen.go @@ -31,7 +31,7 @@ type Image struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -55,7 +55,7 @@ type Image struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -65,13 +65,13 @@ type Image struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `z`, `color` and `colormodel`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: false @@ -83,7 +83,7 @@ type Image struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -95,7 +95,7 @@ type Image struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -123,19 +123,19 @@ type Image struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -147,7 +147,7 @@ type Image struct { // arrayOK: false // type: string // Specifies the data URI of the image to be visualized. The URI consists of "data:image/[][;base64]," - Source String `json:"source,omitempty"` + Source string `json:"source,omitempty"` // Stream // role: Object @@ -163,13 +163,13 @@ type Image struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -235,7 +235,7 @@ type Image struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // ImageHoverlabelFont Sets the font used in hover labels. @@ -245,37 +245,37 @@ type ImageHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ImageHoverlabel @@ -291,31 +291,31 @@ type ImageHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -325,13 +325,13 @@ type ImageHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ImageLegendgrouptitleFont Sets this legend group's title font. @@ -347,7 +347,7 @@ type ImageLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -367,7 +367,7 @@ type ImageLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ImageStream @@ -383,7 +383,7 @@ type ImageStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ImageColormodel Color model used to map the numerical color components described in `z` into colors. If `source` is specified, this attribute will be set to `rgba256` otherwise it defaults to `rgb`. diff --git a/generated/v2.29.1/graph_objects/indicator_gen.go b/generated/v2.29.1/graph_objects/indicator_gen.go index d4d5b11..f32859e 100644 --- a/generated/v2.29.1/graph_objects/indicator_gen.go +++ b/generated/v2.29.1/graph_objects/indicator_gen.go @@ -31,7 +31,7 @@ type Indicator struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Delta // role: Object @@ -55,7 +55,7 @@ type Indicator struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -83,13 +83,13 @@ type Indicator struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: number @@ -101,7 +101,7 @@ type Indicator struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Number // role: Object @@ -125,7 +125,7 @@ type Indicator struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -159,7 +159,7 @@ type IndicatorDeltaDecreasing struct { // arrayOK: false // type: string // Sets the symbol to display for increasing value - Symbol String `json:"symbol,omitempty"` + Symbol string `json:"symbol,omitempty"` } // IndicatorDeltaFont Set the font used to display the delta @@ -175,7 +175,7 @@ type IndicatorDeltaFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -197,7 +197,7 @@ type IndicatorDeltaIncreasing struct { // arrayOK: false // type: string // Sets the symbol to display for increasing value - Symbol String `json:"symbol,omitempty"` + Symbol string `json:"symbol,omitempty"` } // IndicatorDelta @@ -225,7 +225,7 @@ type IndicatorDelta struct { // arrayOK: false // type: string // Sets a prefix appearing before the delta. - Prefix String `json:"prefix,omitempty"` + Prefix string `json:"prefix,omitempty"` // Reference // arrayOK: false @@ -243,13 +243,13 @@ type IndicatorDelta struct { // arrayOK: false // type: string // Sets a suffix appearing next to the delta. - Suffix String `json:"suffix,omitempty"` + Suffix string `json:"suffix,omitempty"` // Valueformat // arrayOK: false // type: string // Sets the value formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. - Valueformat String `json:"valueformat,omitempty"` + Valueformat string `json:"valueformat,omitempty"` } // IndicatorDomain @@ -293,7 +293,7 @@ type IndicatorGaugeAxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -397,7 +397,7 @@ type IndicatorGaugeAxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -427,7 +427,7 @@ type IndicatorGaugeAxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: outside @@ -439,7 +439,7 @@ type IndicatorGaugeAxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -451,7 +451,7 @@ type IndicatorGaugeAxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -463,7 +463,7 @@ type IndicatorGaugeAxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -609,7 +609,7 @@ type IndicatorLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -629,7 +629,7 @@ type IndicatorLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // IndicatorNumberFont Set the font used to display main number @@ -645,7 +645,7 @@ type IndicatorNumberFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -665,19 +665,19 @@ type IndicatorNumber struct { // arrayOK: false // type: string // Sets a prefix appearing before the number. - Prefix String `json:"prefix,omitempty"` + Prefix string `json:"prefix,omitempty"` // Suffix // arrayOK: false // type: string // Sets a suffix appearing next to the number. - Suffix String `json:"suffix,omitempty"` + Suffix string `json:"suffix,omitempty"` // Valueformat // arrayOK: false // type: string // Sets the value formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. - Valueformat String `json:"valueformat,omitempty"` + Valueformat string `json:"valueformat,omitempty"` } // IndicatorStream @@ -693,7 +693,7 @@ type IndicatorStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // IndicatorTitleFont Set the font used to display the title @@ -709,7 +709,7 @@ type IndicatorTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -735,7 +735,7 @@ type IndicatorTitle struct { // arrayOK: false // type: string // Sets the title of this indicator. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // IndicatorAlign Sets the horizontal alignment of the `text` within the box. Note that this attribute has no effect if an angular gauge is displayed: in this case, it is always centered diff --git a/generated/v2.29.1/graph_objects/isosurface_gen.go b/generated/v2.29.1/graph_objects/isosurface_gen.go index cfdb3d3..0fe5b65 100644 --- a/generated/v2.29.1/graph_objects/isosurface_gen.go +++ b/generated/v2.29.1/graph_objects/isosurface_gen.go @@ -79,7 +79,7 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Flatshading // arrayOK: false @@ -97,7 +97,7 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -107,25 +107,25 @@ type Isosurface struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -137,7 +137,7 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Isomax // arrayOK: false @@ -161,7 +161,7 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -191,19 +191,19 @@ type Isosurface struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -255,19 +255,19 @@ type Isosurface struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -285,13 +285,13 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `value` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Valuehoverformat String `json:"valuehoverformat,omitempty"` + Valuehoverformat string `json:"valuehoverformat,omitempty"` // Valuesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `value`. - Valuesrc String `json:"valuesrc,omitempty"` + Valuesrc string `json:"valuesrc,omitempty"` // Visible // default: %!s(bool=true) @@ -309,13 +309,13 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -327,13 +327,13 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -345,13 +345,13 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `zaxis.hoverformat`. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // IsosurfaceCapsX @@ -431,7 +431,7 @@ type IsosurfaceColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -453,7 +453,7 @@ type IsosurfaceColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -479,7 +479,7 @@ type IsosurfaceColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // IsosurfaceColorbar @@ -631,7 +631,7 @@ type IsosurfaceColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -673,7 +673,7 @@ type IsosurfaceColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -685,7 +685,7 @@ type IsosurfaceColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -697,7 +697,7 @@ type IsosurfaceColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -709,7 +709,7 @@ type IsosurfaceColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -799,37 +799,37 @@ type IsosurfaceHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // IsosurfaceHoverlabel @@ -845,31 +845,31 @@ type IsosurfaceHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -879,13 +879,13 @@ type IsosurfaceHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // IsosurfaceLegendgrouptitleFont Sets this legend group's title font. @@ -901,7 +901,7 @@ type IsosurfaceLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -921,7 +921,7 @@ type IsosurfaceLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // IsosurfaceLighting @@ -1011,7 +1011,7 @@ type IsosurfaceSlicesX struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Show // arrayOK: false @@ -1039,7 +1039,7 @@ type IsosurfaceSlicesY struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Show // arrayOK: false @@ -1067,7 +1067,7 @@ type IsosurfaceSlicesZ struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Show // arrayOK: false @@ -1121,7 +1121,7 @@ type IsosurfaceStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // IsosurfaceSurface diff --git a/generated/v2.29.1/graph_objects/layout_gen.go b/generated/v2.29.1/graph_objects/layout_gen.go index fb326e0..aaec9dc 100644 --- a/generated/v2.29.1/graph_objects/layout_gen.go +++ b/generated/v2.29.1/graph_objects/layout_gen.go @@ -209,7 +209,7 @@ type Layout struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hiddenlabels`. - Hiddenlabelssrc String `json:"hiddenlabelssrc,omitempty"` + Hiddenlabelssrc string `json:"hiddenlabelssrc,omitempty"` // Hidesources // arrayOK: false @@ -261,13 +261,13 @@ type Layout struct { // arrayOK: true // type: any // Assigns extra meta information that can be used in various `text` attributes. Attributes such as the graph, axis and colorbar `title.text`, annotation `text` `trace.name` in legend items, `rangeselector`, `updatemenus` and `sliders` `label` text all support `meta`. One can access `meta` fields using template strings: `%{meta[i]}` where `i` is the index of the `meta` item in question. `meta` can also be an object for example `{key: value}` which can be accessed %{meta[key]}. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Minreducedheight // arrayOK: false @@ -297,7 +297,7 @@ type Layout struct { // arrayOK: false // type: color // Sets the background color of the paper where the graph is drawn. - PaperBgcolor Color `json:"paper_bgcolor,omitempty"` + PaperBgcolor ColorWithColorScale `json:"paper_bgcolor,omitempty"` // Piecolorway // arrayOK: false @@ -309,7 +309,7 @@ type Layout struct { // arrayOK: false // type: color // Sets the background color of the plotting area in-between x and y axes. - PlotBgcolor Color `json:"plot_bgcolor,omitempty"` + PlotBgcolor ColorWithColorScale `json:"plot_bgcolor,omitempty"` // Polar // role: Object @@ -353,7 +353,7 @@ type Layout struct { // arrayOK: false // type: string // Sets the decimal and thousand separators. For example, *. * puts a '.' before decimals and a space between thousands. In English locales, dflt is *.,* but other locales may alter this default. - Separators String `json:"separators,omitempty"` + Separators string `json:"separators,omitempty"` // Shapes // It's an items array and what goes inside it's... messy... check the docs @@ -565,7 +565,7 @@ type LayoutColoraxisColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -587,7 +587,7 @@ type LayoutColoraxisColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -613,7 +613,7 @@ type LayoutColoraxisColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutColoraxisColorbar @@ -765,7 +765,7 @@ type LayoutColoraxisColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -807,7 +807,7 @@ type LayoutColoraxisColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -819,7 +819,7 @@ type LayoutColoraxisColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -831,7 +831,7 @@ type LayoutColoraxisColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -843,7 +843,7 @@ type LayoutColoraxisColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -995,7 +995,7 @@ type LayoutFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1067,7 +1067,7 @@ type LayoutGeoLataxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -1113,7 +1113,7 @@ type LayoutGeoLonaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -1489,7 +1489,7 @@ type LayoutHoverlabelFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1511,7 +1511,7 @@ type LayoutHoverlabelGrouptitlefont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1569,7 +1569,7 @@ type LayoutLegendFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1591,7 +1591,7 @@ type LayoutLegendGrouptitlefont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1613,7 +1613,7 @@ type LayoutLegendTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1639,7 +1639,7 @@ type LayoutLegendTitle struct { // arrayOK: false // type: string // Sets the title of the legend. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutLegend @@ -1869,7 +1869,7 @@ type LayoutMapbox struct { // arrayOK: false // type: string // Sets the mapbox access token to be used for this mapbox map. Alternatively, the mapbox access token can be set in the configuration options under `mapboxAccessToken`. Note that accessToken are only required when `style` (e.g with values : basic, streets, outdoors, light, dark, satellite, satellite-streets ) and/or a layout layer references the Mapbox server. - Accesstoken String `json:"accesstoken,omitempty"` + Accesstoken string `json:"accesstoken,omitempty"` // Bearing // arrayOK: false @@ -1973,13 +1973,13 @@ type LayoutModebar struct { // arrayOK: true // type: string // Determines which predefined modebar buttons to add. Please note that these buttons will only be shown if they are compatible with all trace types used in a graph. Similar to `config.modeBarButtonsToAdd` option. This may include *v1hovermode*, *hoverclosest*, *hovercompare*, *togglehover*, *togglespikelines*, *drawline*, *drawopenpath*, *drawclosedpath*, *drawcircle*, *drawrect*, *eraseshape*. - Add String `json:"add,omitempty"` + Add ArrayOK[*string] `json:"add,omitempty"` // Addsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `add`. - Addsrc String `json:"addsrc,omitempty"` + Addsrc string `json:"addsrc,omitempty"` // Bgcolor // arrayOK: false @@ -2003,13 +2003,13 @@ type LayoutModebar struct { // arrayOK: true // type: string // Determines which predefined modebar buttons to remove. Similar to `config.modeBarButtonsToRemove` option. This may include *autoScale2d*, *autoscale*, *editInChartStudio*, *editinchartstudio*, *hoverCompareCartesian*, *hovercompare*, *lasso*, *lasso2d*, *orbitRotation*, *orbitrotation*, *pan*, *pan2d*, *pan3d*, *reset*, *resetCameraDefault3d*, *resetCameraLastSave3d*, *resetGeo*, *resetSankeyGroup*, *resetScale2d*, *resetViewMapbox*, *resetViews*, *resetcameradefault*, *resetcameralastsave*, *resetsankeygroup*, *resetscale*, *resetview*, *resetviews*, *select*, *select2d*, *sendDataToCloud*, *senddatatocloud*, *tableRotation*, *tablerotation*, *toImage*, *toggleHover*, *toggleSpikelines*, *togglehover*, *togglespikelines*, *toimage*, *zoom*, *zoom2d*, *zoom3d*, *zoomIn2d*, *zoomInGeo*, *zoomInMapbox*, *zoomOut2d*, *zoomOutGeo*, *zoomOutMapbox*, *zoomin*, *zoomout*. - Remove String `json:"remove,omitempty"` + Remove ArrayOK[*string] `json:"remove,omitempty"` // Removesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `remove`. - Removesrc String `json:"removesrc,omitempty"` + Removesrc string `json:"removesrc,omitempty"` // Uirevision // arrayOK: false @@ -2031,7 +2031,7 @@ type LayoutNewselectionLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -2067,7 +2067,7 @@ type LayoutNewshapeLabelFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -2093,7 +2093,7 @@ type LayoutNewshapeLabel struct { // arrayOK: false // type: string // Sets the text to display with the new shape. It is also used for legend item if `name` is not provided. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` // Textangle // arrayOK: false @@ -2111,7 +2111,7 @@ type LayoutNewshapeLabel struct { // arrayOK: false // type: string // Template string used for rendering the new shape's label. Note that this will override `text`. Variables are inserted using %{variable}, for example "x0: %{x0}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{x0:$.2f}". See https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{x0|%m %b %Y}". See https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. A single multiplication or division operation may be applied to numeric variables, and combined with d3 number formatting, for example "Length in cm: %{x0*2.54}", "%{slope*60:.1f} meters per second." For log axes, variable values are given in log units. For date axes, x/y coordinate variables and center variables use datetimes, while all other variable values use values in ms. Finally, the template string has access to variables `x0`, `x1`, `y0`, `y1`, `slope`, `dx`, `dy`, `width`, `height`, `length`, `xcenter` and `ycenter`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate string `json:"texttemplate,omitempty"` // Xanchor // default: auto @@ -2139,7 +2139,7 @@ type LayoutNewshapeLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -2159,7 +2159,7 @@ type LayoutNewshapeLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutNewshapeLine @@ -2175,7 +2175,7 @@ type LayoutNewshapeLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -2225,7 +2225,7 @@ type LayoutNewshape struct { // arrayOK: false // type: string // Sets the legend group for new shape. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -2251,7 +2251,7 @@ type LayoutNewshape struct { // arrayOK: false // type: string // Sets new shape name. The name appears as the legend item. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -2285,7 +2285,7 @@ type LayoutPolarAngularaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -2313,7 +2313,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -2355,7 +2355,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -2367,7 +2367,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -2491,7 +2491,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -2521,7 +2521,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -2533,7 +2533,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -2545,7 +2545,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -2557,7 +2557,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -2631,13 +2631,13 @@ type LayoutPolarRadialaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include interface{} `json:"include,omitempty"` + Include ArrayOK[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `include`. - Includesrc String `json:"includesrc,omitempty"` + Includesrc string `json:"includesrc,omitempty"` // Maxallowed // arrayOK: false @@ -2665,7 +2665,7 @@ type LayoutPolarRadialaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -2687,7 +2687,7 @@ type LayoutPolarRadialaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -2707,7 +2707,7 @@ type LayoutPolarRadialaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutPolarRadialaxis @@ -2757,7 +2757,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -2793,7 +2793,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -2805,7 +2805,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -2941,7 +2941,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -2971,7 +2971,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -2983,7 +2983,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -2995,7 +2995,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -3007,7 +3007,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -3249,13 +3249,13 @@ type LayoutSceneXaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include interface{} `json:"include,omitempty"` + Include ArrayOK[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `include`. - Includesrc String `json:"includesrc,omitempty"` + Includesrc string `json:"includesrc,omitempty"` // Maxallowed // arrayOK: false @@ -3283,7 +3283,7 @@ type LayoutSceneXaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -3305,7 +3305,7 @@ type LayoutSceneXaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -3325,7 +3325,7 @@ type LayoutSceneXaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutSceneXaxis @@ -3369,7 +3369,7 @@ type LayoutSceneXaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -3411,7 +3411,7 @@ type LayoutSceneXaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -3577,7 +3577,7 @@ type LayoutSceneXaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -3601,7 +3601,7 @@ type LayoutSceneXaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -3613,7 +3613,7 @@ type LayoutSceneXaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -3625,7 +3625,7 @@ type LayoutSceneXaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -3637,7 +3637,7 @@ type LayoutSceneXaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -3699,13 +3699,13 @@ type LayoutSceneYaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include interface{} `json:"include,omitempty"` + Include ArrayOK[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `include`. - Includesrc String `json:"includesrc,omitempty"` + Includesrc string `json:"includesrc,omitempty"` // Maxallowed // arrayOK: false @@ -3733,7 +3733,7 @@ type LayoutSceneYaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -3755,7 +3755,7 @@ type LayoutSceneYaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -3775,7 +3775,7 @@ type LayoutSceneYaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutSceneYaxis @@ -3819,7 +3819,7 @@ type LayoutSceneYaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -3861,7 +3861,7 @@ type LayoutSceneYaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -4027,7 +4027,7 @@ type LayoutSceneYaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -4051,7 +4051,7 @@ type LayoutSceneYaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -4063,7 +4063,7 @@ type LayoutSceneYaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -4075,7 +4075,7 @@ type LayoutSceneYaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -4087,7 +4087,7 @@ type LayoutSceneYaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -4149,13 +4149,13 @@ type LayoutSceneZaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include interface{} `json:"include,omitempty"` + Include ArrayOK[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `include`. - Includesrc String `json:"includesrc,omitempty"` + Includesrc string `json:"includesrc,omitempty"` // Maxallowed // arrayOK: false @@ -4183,7 +4183,7 @@ type LayoutSceneZaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -4205,7 +4205,7 @@ type LayoutSceneZaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -4225,7 +4225,7 @@ type LayoutSceneZaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutSceneZaxis @@ -4269,7 +4269,7 @@ type LayoutSceneZaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -4311,7 +4311,7 @@ type LayoutSceneZaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -4477,7 +4477,7 @@ type LayoutSceneZaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -4501,7 +4501,7 @@ type LayoutSceneZaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -4513,7 +4513,7 @@ type LayoutSceneZaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -4525,7 +4525,7 @@ type LayoutSceneZaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -4537,7 +4537,7 @@ type LayoutSceneZaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -4685,7 +4685,7 @@ type LayoutSmithImaginaryaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -4713,7 +4713,7 @@ type LayoutSmithImaginaryaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -4725,7 +4725,7 @@ type LayoutSmithImaginaryaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -4795,7 +4795,7 @@ type LayoutSmithImaginaryaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Ticklen // arrayOK: false @@ -4807,7 +4807,7 @@ type LayoutSmithImaginaryaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -4819,7 +4819,7 @@ type LayoutSmithImaginaryaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Tickvals // arrayOK: false @@ -4831,7 +4831,7 @@ type LayoutSmithImaginaryaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -4859,7 +4859,7 @@ type LayoutSmithRealaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -4887,7 +4887,7 @@ type LayoutSmithRealaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -4899,7 +4899,7 @@ type LayoutSmithRealaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -4981,7 +4981,7 @@ type LayoutSmithRealaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Ticklen // arrayOK: false @@ -4993,7 +4993,7 @@ type LayoutSmithRealaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -5005,7 +5005,7 @@ type LayoutSmithRealaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Tickvals // arrayOK: false @@ -5017,7 +5017,7 @@ type LayoutSmithRealaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -5067,7 +5067,7 @@ type LayoutTernaryAaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -5089,7 +5089,7 @@ type LayoutTernaryAaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -5109,7 +5109,7 @@ type LayoutTernaryAaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutTernaryAaxis @@ -5143,7 +5143,7 @@ type LayoutTernaryAaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -5155,7 +5155,7 @@ type LayoutTernaryAaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -5267,7 +5267,7 @@ type LayoutTernaryAaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -5297,7 +5297,7 @@ type LayoutTernaryAaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -5309,7 +5309,7 @@ type LayoutTernaryAaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -5321,7 +5321,7 @@ type LayoutTernaryAaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -5333,7 +5333,7 @@ type LayoutTernaryAaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -5365,7 +5365,7 @@ type LayoutTernaryBaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -5387,7 +5387,7 @@ type LayoutTernaryBaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -5407,7 +5407,7 @@ type LayoutTernaryBaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutTernaryBaxis @@ -5441,7 +5441,7 @@ type LayoutTernaryBaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -5453,7 +5453,7 @@ type LayoutTernaryBaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -5565,7 +5565,7 @@ type LayoutTernaryBaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -5595,7 +5595,7 @@ type LayoutTernaryBaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -5607,7 +5607,7 @@ type LayoutTernaryBaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -5619,7 +5619,7 @@ type LayoutTernaryBaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -5631,7 +5631,7 @@ type LayoutTernaryBaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -5663,7 +5663,7 @@ type LayoutTernaryCaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -5685,7 +5685,7 @@ type LayoutTernaryCaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -5705,7 +5705,7 @@ type LayoutTernaryCaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutTernaryCaxis @@ -5739,7 +5739,7 @@ type LayoutTernaryCaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -5751,7 +5751,7 @@ type LayoutTernaryCaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -5863,7 +5863,7 @@ type LayoutTernaryCaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -5893,7 +5893,7 @@ type LayoutTernaryCaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -5905,7 +5905,7 @@ type LayoutTernaryCaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -5917,7 +5917,7 @@ type LayoutTernaryCaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -5929,7 +5929,7 @@ type LayoutTernaryCaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -6027,7 +6027,7 @@ type LayoutTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -6085,7 +6085,7 @@ type LayoutTitle struct { // arrayOK: false // type: string // Sets the plot's title. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` // X // arrayOK: false @@ -6181,13 +6181,13 @@ type LayoutXaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include interface{} `json:"include,omitempty"` + Include ArrayOK[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `include`. - Includesrc String `json:"includesrc,omitempty"` + Includesrc string `json:"includesrc,omitempty"` // Maxallowed // arrayOK: false @@ -6221,7 +6221,7 @@ type LayoutXaxisMinor struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -6281,7 +6281,7 @@ type LayoutXaxisMinor struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -6303,7 +6303,7 @@ type LayoutXaxisRangeselectorFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -6459,7 +6459,7 @@ type LayoutXaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -6481,7 +6481,7 @@ type LayoutXaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -6507,7 +6507,7 @@ type LayoutXaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutXaxis @@ -6563,7 +6563,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -6635,7 +6635,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -6647,7 +6647,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Insiderange // arrayOK: false @@ -6839,7 +6839,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Spikedash String `json:"spikedash,omitempty"` + Spikedash string `json:"spikedash,omitempty"` // Spikemode // default: toaxis @@ -6885,7 +6885,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -6933,7 +6933,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -6951,7 +6951,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -6963,7 +6963,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -6975,7 +6975,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -7043,13 +7043,13 @@ type LayoutYaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include interface{} `json:"include,omitempty"` + Include ArrayOK[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `include`. - Includesrc String `json:"includesrc,omitempty"` + Includesrc string `json:"includesrc,omitempty"` // Maxallowed // arrayOK: false @@ -7083,7 +7083,7 @@ type LayoutYaxisMinor struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -7143,7 +7143,7 @@ type LayoutYaxisMinor struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -7165,7 +7165,7 @@ type LayoutYaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -7187,7 +7187,7 @@ type LayoutYaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -7213,7 +7213,7 @@ type LayoutYaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutYaxis @@ -7275,7 +7275,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -7347,7 +7347,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -7359,7 +7359,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Insiderange // arrayOK: false @@ -7549,7 +7549,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Spikedash String `json:"spikedash,omitempty"` + Spikedash string `json:"spikedash,omitempty"` // Spikemode // default: toaxis @@ -7595,7 +7595,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -7643,7 +7643,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -7661,7 +7661,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -7673,7 +7673,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -7685,7 +7685,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/mesh3d_gen.go b/generated/v2.29.1/graph_objects/mesh3d_gen.go index e3f4dce..066d8ac 100644 --- a/generated/v2.29.1/graph_objects/mesh3d_gen.go +++ b/generated/v2.29.1/graph_objects/mesh3d_gen.go @@ -55,7 +55,7 @@ type Mesh3d struct { // arrayOK: false // type: color // Sets the color of the whole mesh - Color Color `json:"color,omitempty"` + Color ColorWithColorScale `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -87,7 +87,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Delaunayaxis // default: z @@ -105,7 +105,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `facecolor`. - Facecolorsrc String `json:"facecolorsrc,omitempty"` + Facecolorsrc string `json:"facecolorsrc,omitempty"` // Flatshading // arrayOK: false @@ -123,7 +123,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -133,25 +133,25 @@ type Mesh3d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // I // arrayOK: false @@ -169,7 +169,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Intensity // arrayOK: false @@ -187,13 +187,13 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `intensity`. - Intensitysrc String `json:"intensitysrc,omitempty"` + Intensitysrc string `json:"intensitysrc,omitempty"` // Isrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `i`. - Isrc String `json:"isrc,omitempty"` + Isrc string `json:"isrc,omitempty"` // J // arrayOK: false @@ -205,7 +205,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `j`. - Jsrc String `json:"jsrc,omitempty"` + Jsrc string `json:"jsrc,omitempty"` // K // arrayOK: false @@ -217,7 +217,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `k`. - Ksrc String `json:"ksrc,omitempty"` + Ksrc string `json:"ksrc,omitempty"` // Legend // arrayOK: false @@ -229,7 +229,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -259,19 +259,19 @@ type Mesh3d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -311,19 +311,19 @@ type Mesh3d struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -341,7 +341,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `vertexcolor`. - Vertexcolorsrc String `json:"vertexcolorsrc,omitempty"` + Vertexcolorsrc string `json:"vertexcolorsrc,omitempty"` // Visible // default: %!s(bool=true) @@ -365,13 +365,13 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -389,13 +389,13 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -413,13 +413,13 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `zaxis.hoverformat`. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // Mesh3dColorbarTickfont Sets the color bar's tick label font @@ -435,7 +435,7 @@ type Mesh3dColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -457,7 +457,7 @@ type Mesh3dColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -483,7 +483,7 @@ type Mesh3dColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Mesh3dColorbar @@ -635,7 +635,7 @@ type Mesh3dColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -677,7 +677,7 @@ type Mesh3dColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -689,7 +689,7 @@ type Mesh3dColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -701,7 +701,7 @@ type Mesh3dColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -713,7 +713,7 @@ type Mesh3dColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -803,37 +803,37 @@ type Mesh3dHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // Mesh3dHoverlabel @@ -849,31 +849,31 @@ type Mesh3dHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -883,13 +883,13 @@ type Mesh3dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // Mesh3dLegendgrouptitleFont Sets this legend group's title font. @@ -905,7 +905,7 @@ type Mesh3dLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -925,7 +925,7 @@ type Mesh3dLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Mesh3dLighting @@ -1009,7 +1009,7 @@ type Mesh3dStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // Mesh3dColorbarExponentformat Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. diff --git a/generated/v2.29.1/graph_objects/ohlc_gen.go b/generated/v2.29.1/graph_objects/ohlc_gen.go index fdc811b..428792d 100644 --- a/generated/v2.29.1/graph_objects/ohlc_gen.go +++ b/generated/v2.29.1/graph_objects/ohlc_gen.go @@ -25,7 +25,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `close`. - Closesrc String `json:"closesrc,omitempty"` + Closesrc string `json:"closesrc,omitempty"` // Customdata // arrayOK: false @@ -37,7 +37,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Decreasing // role: Object @@ -53,7 +53,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `high`. - Highsrc String `json:"highsrc,omitempty"` + Highsrc string `json:"highsrc,omitempty"` // Hoverinfo // default: all @@ -65,7 +65,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -75,13 +75,13 @@ type Ohlc struct { // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -93,7 +93,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Increasing // role: Object @@ -109,7 +109,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -141,25 +141,25 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `low`. - Lowsrc String `json:"lowsrc,omitempty"` + Lowsrc string `json:"lowsrc,omitempty"` // Meta // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -177,7 +177,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `open`. - Opensrc String `json:"opensrc,omitempty"` + Opensrc string `json:"opensrc,omitempty"` // Selectedpoints // arrayOK: false @@ -199,13 +199,13 @@ type Ohlc struct { // arrayOK: true // type: string // Sets hover text elements associated with each sample point. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to this trace's sample points. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Tickwidth // arrayOK: false @@ -223,7 +223,7 @@ type Ohlc struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -259,7 +259,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -283,7 +283,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Yaxis // arrayOK: false @@ -295,7 +295,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` } // OhlcDecreasingLine @@ -311,7 +311,7 @@ type OhlcDecreasingLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -335,37 +335,37 @@ type OhlcHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // OhlcHoverlabel @@ -381,31 +381,31 @@ type OhlcHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -415,13 +415,13 @@ type OhlcHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` // Split // arrayOK: false @@ -443,7 +443,7 @@ type OhlcIncreasingLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -473,7 +473,7 @@ type OhlcLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -493,7 +493,7 @@ type OhlcLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // OhlcLine @@ -503,7 +503,7 @@ type OhlcLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). Note that this style setting can also be set per direction via `increasing.line.dash` and `decreasing.line.dash`. - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -525,7 +525,7 @@ type OhlcStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // OhlcHoverlabelAlign Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines diff --git a/generated/v2.29.1/graph_objects/parcats_gen.go b/generated/v2.29.1/graph_objects/parcats_gen.go index be41595..1da5921 100644 --- a/generated/v2.29.1/graph_objects/parcats_gen.go +++ b/generated/v2.29.1/graph_objects/parcats_gen.go @@ -31,13 +31,13 @@ type Parcats struct { // arrayOK: true // type: number // The number of observations represented by each state. Defaults to 1 so that each state represents one observation - Counts float64 `json:"counts,omitempty"` + Counts ArrayOK[*float64] `json:"counts,omitempty"` // Countssrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `counts`. - Countssrc String `json:"countssrc,omitempty"` + Countssrc string `json:"countssrc,omitempty"` // Dimensions // It's an items array and what goes inside it's... messy... check the docs @@ -65,7 +65,7 @@ type Parcats struct { // arrayOK: false // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. This value here applies when hovering over dimensions. Note that `*categorycount`, *colorcount* and *bandcolorcount* are only available when `hoveron` contains the *color* flagFinally, the template string has access to variables `count`, `probability`, `category`, `categorycount`, `colorcount` and `bandcolorcount`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate string `json:"hovertemplate,omitempty"` // Labelfont // role: Object @@ -89,19 +89,19 @@ type Parcats struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Sortpaths // default: forward @@ -127,7 +127,7 @@ type Parcats struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -183,7 +183,7 @@ type ParcatsLabelfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -205,7 +205,7 @@ type ParcatsLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -225,7 +225,7 @@ type ParcatsLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ParcatsLineColorbarTickfont Sets the color bar's tick label font @@ -241,7 +241,7 @@ type ParcatsLineColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -263,7 +263,7 @@ type ParcatsLineColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -289,7 +289,7 @@ type ParcatsLineColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ParcatsLineColorbar @@ -441,7 +441,7 @@ type ParcatsLineColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -483,7 +483,7 @@ type ParcatsLineColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -495,7 +495,7 @@ type ParcatsLineColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -507,7 +507,7 @@ type ParcatsLineColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -519,7 +519,7 @@ type ParcatsLineColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -617,7 +617,7 @@ type ParcatsLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -639,13 +639,13 @@ type ParcatsLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Hovertemplate // arrayOK: false // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. This value here applies when hovering over lines.Finally, the template string has access to variables `count` and `probability`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate string `json:"hovertemplate,omitempty"` // Reversescale // arrayOK: false @@ -679,7 +679,7 @@ type ParcatsStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ParcatsTickfont Sets the font for the `category` labels. @@ -695,7 +695,7 @@ type ParcatsTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/parcoords_gen.go b/generated/v2.29.1/graph_objects/parcoords_gen.go index c0fdaab..44ce49c 100644 --- a/generated/v2.29.1/graph_objects/parcoords_gen.go +++ b/generated/v2.29.1/graph_objects/parcoords_gen.go @@ -25,7 +25,7 @@ type Parcoords struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dimensions // It's an items array and what goes inside it's... messy... check the docs @@ -47,7 +47,7 @@ type Parcoords struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Labelangle // arrayOK: false @@ -95,19 +95,19 @@ type Parcoords struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Rangefont // role: Object @@ -131,7 +131,7 @@ type Parcoords struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -191,7 +191,7 @@ type ParcoordsLabelfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -213,7 +213,7 @@ type ParcoordsLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -233,7 +233,7 @@ type ParcoordsLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ParcoordsLineColorbarTickfont Sets the color bar's tick label font @@ -249,7 +249,7 @@ type ParcoordsLineColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -271,7 +271,7 @@ type ParcoordsLineColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -297,7 +297,7 @@ type ParcoordsLineColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ParcoordsLineColorbar @@ -449,7 +449,7 @@ type ParcoordsLineColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -491,7 +491,7 @@ type ParcoordsLineColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -503,7 +503,7 @@ type ParcoordsLineColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -515,7 +515,7 @@ type ParcoordsLineColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -527,7 +527,7 @@ type ParcoordsLineColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -625,7 +625,7 @@ type ParcoordsLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -647,7 +647,7 @@ type ParcoordsLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -675,7 +675,7 @@ type ParcoordsRangefont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -697,7 +697,7 @@ type ParcoordsStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ParcoordsTickfont Sets the font for the `dimension` tick values. @@ -713,7 +713,7 @@ type ParcoordsTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/pie_gen.go b/generated/v2.29.1/graph_objects/pie_gen.go index 8cb8922..89d0f0a 100644 --- a/generated/v2.29.1/graph_objects/pie_gen.go +++ b/generated/v2.29.1/graph_objects/pie_gen.go @@ -31,7 +31,7 @@ type Pie struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Direction // default: counterclockwise @@ -65,7 +65,7 @@ type Pie struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -75,25 +75,25 @@ type Pie struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `percent` and `text`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -105,7 +105,7 @@ type Pie struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextfont // role: Object @@ -133,7 +133,7 @@ type Pie struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `labels`. - Labelssrc String `json:"labelssrc,omitempty"` + Labelssrc string `json:"labelssrc,omitempty"` // Legend // arrayOK: false @@ -145,7 +145,7 @@ type Pie struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -171,19 +171,19 @@ type Pie struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -199,13 +199,13 @@ type Pie struct { // arrayOK: true // type: number // Sets the fraction of larger radius to pull the sectors out from the center. This can be a constant to pull all slices apart from each other equally or an array to highlight one or more slices. - Pull float64 `json:"pull,omitempty"` + Pull ArrayOK[*float64] `json:"pull,omitempty"` // Pullsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `pull`. - Pullsrc String `json:"pullsrc,omitempty"` + Pullsrc string `json:"pullsrc,omitempty"` // Rotation // arrayOK: false @@ -217,7 +217,7 @@ type Pie struct { // arrayOK: false // type: string // If there are multiple pie charts that should be sized according to their totals, link them by providing a non-empty group id here shared by every trace in the same group. - Scalegroup String `json:"scalegroup,omitempty"` + Scalegroup string `json:"scalegroup,omitempty"` // Showlegend // arrayOK: false @@ -261,25 +261,25 @@ type Pie struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `percent` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Title // role: Object @@ -295,7 +295,7 @@ type Pie struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -313,7 +313,7 @@ type Pie struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `values`. - Valuessrc String `json:"valuessrc,omitempty"` + Valuessrc string `json:"valuessrc,omitempty"` // Visible // default: %!s(bool=true) @@ -357,37 +357,37 @@ type PieHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // PieHoverlabel @@ -403,31 +403,31 @@ type PieHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -437,13 +437,13 @@ type PieHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // PieInsidetextfont Sets the font used for `textinfo` lying inside the sector. @@ -453,37 +453,37 @@ type PieInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // PieLegendgrouptitleFont Sets this legend group's title font. @@ -499,7 +499,7 @@ type PieLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -519,7 +519,7 @@ type PieLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // PieMarkerLine @@ -529,25 +529,25 @@ type PieMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // PieMarkerPattern Sets the pattern within the marker. @@ -557,25 +557,25 @@ type PieMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -599,31 +599,31 @@ type PieMarkerPattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // PieMarker @@ -639,7 +639,7 @@ type PieMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `colors`. - Colorssrc String `json:"colorssrc,omitempty"` + Colorssrc string `json:"colorssrc,omitempty"` // Line // role: Object @@ -657,37 +657,37 @@ type PieOutsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // PieStream @@ -703,7 +703,7 @@ type PieStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // PieTextfont Sets the font used for `textinfo`. @@ -713,37 +713,37 @@ type PieTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // PieTitleFont Sets the font used for `title`. Note that the title's font used to be set by the now deprecated `titlefont` attribute. @@ -753,37 +753,37 @@ type PieTitleFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // PieTitle @@ -803,7 +803,7 @@ type PieTitle struct { // arrayOK: false // type: string // Sets the title of the chart. If it is empty, no title is displayed. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // PieDirection Specifies the direction at which succeeding sectors follow one another. diff --git a/generated/v2.29.1/graph_objects/plotly_gen.go b/generated/v2.29.1/graph_objects/plotly_gen.go index 4158d9f..f1b563d 100644 --- a/generated/v2.29.1/graph_objects/plotly_gen.go +++ b/generated/v2.29.1/graph_objects/plotly_gen.go @@ -71,7 +71,7 @@ type unmarshalFig struct { Config *Config `json:"config,omitempty"` } -// Bool represents a *bool value. Needed to tell the differenc between false and nil. +// Bool represents a *bool value. Needed to tell the different between false and nil. type Bool *bool var ( @@ -89,10 +89,116 @@ var ( type String interface{} // Color A string describing color. Supported formats: - hex (e.g. '#d3d3d3') - rgb (e.g. 'rgb(255, 0, 0)') - rgba (e.g. 'rgb(255, 0, 0, 0.5)') - hsl (e.g. 'hsl(0, 100%, 50%)') - hsv (e.g. 'hsv(0, 100%, 100%)') - named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)", -type Color interface{} +type Color string + +func UseColorScaleValues(in []float64) []ColorWithColorScale { + out := make([]ColorWithColorScale, len(in), len(in)) + for i := 0; i < len(in); i++ { + out[i] = ColorWithColorScale{ + Value: in[i], + } + } + return out +} + +func UseColors(in []Color) []ColorWithColorScale { + out := make([]ColorWithColorScale, len(in), len(in)) + for i := 0; i < len(in); i++ { + out[i] = ColorWithColorScale{ + Color: &in[i], + } + } + return out +} + +func UseColor(in Color) ColorWithColorScale { + return ColorWithColorScale{ + Color: &in, + } +} + +type ColorWithColorScale struct { + Color *Color + Value float64 +} + +func (c *ColorWithColorScale) MarshalJSON() ([]byte, error) { + if c.Color != nil { + return json.Marshal(c.Color) + } + return json.Marshal(c.Value) +} + +func (c *ColorWithColorScale) UnmarshalJSON(data []byte) error { + c.Color = nil + + var color Color + err := json.Unmarshal(data, &color) + if err == nil { + c.Color = &color + return nil + } + + var value float64 + err = json.Unmarshal(data, &value) + if err != nil { + return err + } + c.Value = value + return nil +} // ColorList A list of colors. Must be an {array} containing valid colors. type ColorList []Color // ColorScale A Plotly colorscale either picked by a name: (any of Greys, YlGnBu, Greens, YlOrRd, Bluered, RdBu, Reds, Blues, Picnic, Rainbow, Portland, Jet, Hot, Blackbody, Earth, Electric, Viridis, Cividis ) customized as an {array} of 2-element {arrays} where the first element is the normalized color level value (starting at *0* and ending at *1*), and the second item is a valid color string. type ColorScale interface{} + +func ArrayOKValue[T any](value T) ArrayOK[*T] { + v := &value + return ArrayOK[*T]{Value: v} +} + +func ArrayOKArray[T any](array ...T) ArrayOK[*T] { + out := make([]*T, len(array)) + for i, v := range array { + value := v + out[i] = &value + } + return ArrayOK[*T]{ + Array: out, + } +} + +// ArrayOK is a type that allows you to define a single value or an array of values, But not both. +// If Array is defined, Value will be ignored. +type ArrayOK[T any] struct { + Value T + Array []T +} + +func (arrayOK *ArrayOK[T]) MarshalJSON() ([]byte, error) { + if arrayOK.Array != nil { + return json.Marshal(arrayOK.Array) + } + return json.Marshal(arrayOK.Value) +} + +func (arrayOK *ArrayOK[T]) UnmarshalJSON(data []byte) error { + arrayOK.Array = nil + + var array []T + err := json.Unmarshal(data, &array) + if err == nil { + arrayOK.Array = array + return nil + } + + var value T + err = json.Unmarshal(data, &value) + if err != nil { + return err + } + arrayOK.Value = value + return nil +} diff --git a/generated/v2.29.1/graph_objects/pointcloud_gen.go b/generated/v2.29.1/graph_objects/pointcloud_gen.go index 99069de..415ed7e 100644 --- a/generated/v2.29.1/graph_objects/pointcloud_gen.go +++ b/generated/v2.29.1/graph_objects/pointcloud_gen.go @@ -25,7 +25,7 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo // default: all @@ -37,7 +37,7 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -53,7 +53,7 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Indices // arrayOK: false @@ -65,7 +65,7 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `indices`. - Indicessrc String `json:"indicessrc,omitempty"` + Indicessrc string `json:"indicessrc,omitempty"` // Legend // arrayOK: false @@ -77,7 +77,7 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -103,19 +103,19 @@ type Pointcloud struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -137,19 +137,19 @@ type Pointcloud struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -185,13 +185,13 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `xbounds`. - Xboundssrc String `json:"xboundssrc,omitempty"` + Xboundssrc string `json:"xboundssrc,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Xy // arrayOK: false @@ -203,7 +203,7 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `xy`. - Xysrc String `json:"xysrc,omitempty"` + Xysrc string `json:"xysrc,omitempty"` // Y // arrayOK: false @@ -227,13 +227,13 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ybounds`. - Yboundssrc String `json:"yboundssrc,omitempty"` + Yboundssrc string `json:"yboundssrc,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // PointcloudHoverlabelFont Sets the font used in hover labels. @@ -243,37 +243,37 @@ type PointcloudHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // PointcloudHoverlabel @@ -289,31 +289,31 @@ type PointcloudHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -323,13 +323,13 @@ type PointcloudHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // PointcloudLegendgrouptitleFont Sets this legend group's title font. @@ -345,7 +345,7 @@ type PointcloudLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -365,7 +365,7 @@ type PointcloudLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // PointcloudMarkerBorder @@ -435,7 +435,7 @@ type PointcloudStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // PointcloudHoverlabelAlign Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines diff --git a/generated/v2.29.1/graph_objects/sankey_gen.go b/generated/v2.29.1/graph_objects/sankey_gen.go index a35494c..96f8abd 100644 --- a/generated/v2.29.1/graph_objects/sankey_gen.go +++ b/generated/v2.29.1/graph_objects/sankey_gen.go @@ -31,7 +31,7 @@ type Sankey struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Domain // role: Object @@ -57,7 +57,7 @@ type Sankey struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -89,19 +89,19 @@ type Sankey struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Node // role: Object @@ -131,7 +131,7 @@ type Sankey struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -143,13 +143,13 @@ type Sankey struct { // arrayOK: false // type: string // Sets the value formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. - Valueformat String `json:"valueformat,omitempty"` + Valueformat string `json:"valueformat,omitempty"` // Valuesuffix // arrayOK: false // type: string // Adds a unit to follow the value in the hover tooltip. Add a space if a separation is necessary from the value. - Valuesuffix String `json:"valuesuffix,omitempty"` + Valuesuffix string `json:"valuesuffix,omitempty"` // Visible // default: %!s(bool=true) @@ -193,37 +193,37 @@ type SankeyHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SankeyHoverlabel @@ -239,31 +239,31 @@ type SankeyHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -273,13 +273,13 @@ type SankeyHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // SankeyLegendgrouptitleFont Sets this legend group's title font. @@ -295,7 +295,7 @@ type SankeyLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -315,7 +315,7 @@ type SankeyLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // SankeyLinkHoverlabelFont Sets the font used in hover labels. @@ -325,37 +325,37 @@ type SankeyLinkHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SankeyLinkHoverlabel @@ -371,31 +371,31 @@ type SankeyLinkHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -405,13 +405,13 @@ type SankeyLinkHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // SankeyLinkLine @@ -421,25 +421,25 @@ type SankeyLinkLine struct { // arrayOK: true // type: color // Sets the color of the `line` around each `link`. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the `line` around each `link`. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // SankeyLink The links of the Sankey plot. @@ -455,7 +455,7 @@ type SankeyLink struct { // arrayOK: true // type: color // Sets the `link` color. It can be a single value, or an array for specifying color for each `link`. If `link.color` is omitted, then by default, a translucent grey link will be used. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorscales // It's an items array and what goes inside it's... messy... check the docs @@ -467,7 +467,7 @@ type SankeyLink struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Customdata // arrayOK: false @@ -479,19 +479,19 @@ type SankeyLink struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Hovercolor // arrayOK: true // type: color // Sets the `link` hover color. It can be a single value, or an array for specifying hover colors for each `link`. If `link.hovercolor` is omitted, then by default, links will become slightly more opaque when hovered over. - Hovercolor Color `json:"hovercolor,omitempty"` + Hovercolor ArrayOK[*Color] `json:"hovercolor,omitempty"` // Hovercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovercolor`. - Hovercolorsrc String `json:"hovercolorsrc,omitempty"` + Hovercolorsrc string `json:"hovercolorsrc,omitempty"` // Hoverinfo // default: all @@ -507,13 +507,13 @@ type SankeyLink struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Variables `source` and `target` are node objects.Finally, the template string has access to variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Label // arrayOK: false @@ -525,7 +525,7 @@ type SankeyLink struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `label`. - Labelsrc String `json:"labelsrc,omitempty"` + Labelsrc string `json:"labelsrc,omitempty"` // Line // role: Object @@ -541,7 +541,7 @@ type SankeyLink struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `source`. - Sourcesrc String `json:"sourcesrc,omitempty"` + Sourcesrc string `json:"sourcesrc,omitempty"` // Target // arrayOK: false @@ -553,7 +553,7 @@ type SankeyLink struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `target`. - Targetsrc String `json:"targetsrc,omitempty"` + Targetsrc string `json:"targetsrc,omitempty"` // Value // arrayOK: false @@ -565,7 +565,7 @@ type SankeyLink struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `value`. - Valuesrc String `json:"valuesrc,omitempty"` + Valuesrc string `json:"valuesrc,omitempty"` } // SankeyNodeHoverlabelFont Sets the font used in hover labels. @@ -575,37 +575,37 @@ type SankeyNodeHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SankeyNodeHoverlabel @@ -621,31 +621,31 @@ type SankeyNodeHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -655,13 +655,13 @@ type SankeyNodeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // SankeyNodeLine @@ -671,25 +671,25 @@ type SankeyNodeLine struct { // arrayOK: true // type: color // Sets the color of the `line` around each `node`. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the `line` around each `node`. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // SankeyNode The nodes of the Sankey plot. @@ -705,13 +705,13 @@ type SankeyNode struct { // arrayOK: true // type: color // Sets the `node` color. It can be a single value, or an array for specifying color for each `node`. If `node.color` is omitted, then the default `Plotly` color palette will be cycled through to have a variety of colors. These defaults are not fully opaque, to allow some visibility of what is beneath the node. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Customdata // arrayOK: false @@ -723,7 +723,7 @@ type SankeyNode struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Groups // arrayOK: false @@ -745,13 +745,13 @@ type SankeyNode struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Variables `sourceLinks` and `targetLinks` are arrays of link objects.Finally, the template string has access to variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Label // arrayOK: false @@ -763,7 +763,7 @@ type SankeyNode struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `label`. - Labelsrc String `json:"labelsrc,omitempty"` + Labelsrc string `json:"labelsrc,omitempty"` // Line // role: Object @@ -791,7 +791,7 @@ type SankeyNode struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -803,7 +803,7 @@ type SankeyNode struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // SankeyStream @@ -819,7 +819,7 @@ type SankeyStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // SankeyTextfont Sets the font for node labels @@ -835,7 +835,7 @@ type SankeyTextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scatter3d_gen.go b/generated/v2.29.1/graph_objects/scatter3d_gen.go index f735702..dd9bb49 100644 --- a/generated/v2.29.1/graph_objects/scatter3d_gen.go +++ b/generated/v2.29.1/graph_objects/scatter3d_gen.go @@ -31,7 +31,7 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // ErrorX // role: Object @@ -55,7 +55,7 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -65,25 +65,25 @@ type Scatter3d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets text elements associated with each (x,y,z) triplet. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y,z) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -95,7 +95,7 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -107,7 +107,7 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -137,13 +137,13 @@ type Scatter3d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: lines+markers @@ -155,7 +155,7 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -199,7 +199,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y,z) triplet. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y,z) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -215,25 +215,25 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -245,7 +245,7 @@ type Scatter3d struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -275,13 +275,13 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -299,13 +299,13 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -323,13 +323,13 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `zaxis.hoverformat`. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // Scatter3dErrorX @@ -351,13 +351,13 @@ type Scatter3dErrorX struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -445,13 +445,13 @@ type Scatter3dErrorY struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -539,13 +539,13 @@ type Scatter3dErrorZ struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -615,37 +615,37 @@ type Scatter3dHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // Scatter3dHoverlabel @@ -661,31 +661,31 @@ type Scatter3dHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -695,13 +695,13 @@ type Scatter3dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // Scatter3dLegendgrouptitleFont Sets this legend group's title font. @@ -717,7 +717,7 @@ type Scatter3dLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -737,7 +737,7 @@ type Scatter3dLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Scatter3dLineColorbarTickfont Sets the color bar's tick label font @@ -753,7 +753,7 @@ type Scatter3dLineColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -775,7 +775,7 @@ type Scatter3dLineColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -801,7 +801,7 @@ type Scatter3dLineColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Scatter3dLineColorbar @@ -953,7 +953,7 @@ type Scatter3dLineColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -995,7 +995,7 @@ type Scatter3dLineColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -1007,7 +1007,7 @@ type Scatter3dLineColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -1019,7 +1019,7 @@ type Scatter3dLineColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -1031,7 +1031,7 @@ type Scatter3dLineColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -1129,7 +1129,7 @@ type Scatter3dLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1151,7 +1151,7 @@ type Scatter3dLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Dash // default: solid @@ -1191,7 +1191,7 @@ type Scatter3dMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1213,7 +1213,7 @@ type Scatter3dMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1239,7 +1239,7 @@ type Scatter3dMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Scatter3dMarkerColorbar @@ -1391,7 +1391,7 @@ type Scatter3dMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -1433,7 +1433,7 @@ type Scatter3dMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -1445,7 +1445,7 @@ type Scatter3dMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -1457,7 +1457,7 @@ type Scatter3dMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -1469,7 +1469,7 @@ type Scatter3dMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -1567,7 +1567,7 @@ type Scatter3dMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1585,7 +1585,7 @@ type Scatter3dMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -1637,7 +1637,7 @@ type Scatter3dMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1659,7 +1659,7 @@ type Scatter3dMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Line // role: Object @@ -1687,7 +1687,7 @@ type Scatter3dMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1711,7 +1711,7 @@ type Scatter3dMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Symbol // default: circle @@ -1723,7 +1723,7 @@ type Scatter3dMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // Scatter3dProjectionX @@ -1821,7 +1821,7 @@ type Scatter3dStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // Scatter3dTextfont @@ -1831,31 +1831,31 @@ type Scatter3dTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // Scatter3dErrorXType Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. diff --git a/generated/v2.29.1/graph_objects/scatter_gen.go b/generated/v2.29.1/graph_objects/scatter_gen.go index a45ebe8..f6c70d6 100644 --- a/generated/v2.29.1/graph_objects/scatter_gen.go +++ b/generated/v2.29.1/graph_objects/scatter_gen.go @@ -19,7 +19,7 @@ type Scatter struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. - Alignmentgroup String `json:"alignmentgroup,omitempty"` + Alignmentgroup string `json:"alignmentgroup,omitempty"` // Cliponaxis // arrayOK: false @@ -43,7 +43,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -97,7 +97,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -113,25 +113,25 @@ type Scatter struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -143,7 +143,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -155,7 +155,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -185,13 +185,13 @@ type Scatter struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: %!s() @@ -203,13 +203,13 @@ type Scatter struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Offsetgroup // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. - Offsetgroup String `json:"offsetgroup,omitempty"` + Offsetgroup string `json:"offsetgroup,omitempty"` // Opacity // arrayOK: false @@ -249,7 +249,7 @@ type Scatter struct { // arrayOK: false // type: string // Set several scatter traces (on the same subplot) to the same stackgroup in order to add their y values (or their x values if `orientation` is *h*). If blank or omitted this trace will not be stacked. Stacking also turns `fill` on by default, using *tonexty* (*tonextx*) if `orientation` is *h* (*v*) and sets the default `mode` to *lines* irrespective of point count. You can only stack on a numeric (linear or log) axis. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order. - Stackgroup String `json:"stackgroup,omitempty"` + Stackgroup string `json:"stackgroup,omitempty"` // Stream // role: Object @@ -259,7 +259,7 @@ type Scatter struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -275,25 +275,25 @@ type Scatter struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -305,7 +305,7 @@ type Scatter struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -351,7 +351,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -375,7 +375,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -405,7 +405,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -429,7 +429,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // ScatterErrorX @@ -451,13 +451,13 @@ type ScatterErrorX struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -545,13 +545,13 @@ type ScatterErrorY struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -621,25 +621,25 @@ type ScatterFillpattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -663,31 +663,31 @@ type ScatterFillpattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // ScatterHoverlabelFont Sets the font used in hover labels. @@ -697,37 +697,37 @@ type ScatterHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterHoverlabel @@ -743,31 +743,31 @@ type ScatterHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -777,13 +777,13 @@ type ScatterHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScatterLegendgrouptitleFont Sets this legend group's title font. @@ -799,7 +799,7 @@ type ScatterLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -819,7 +819,7 @@ type ScatterLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterLine @@ -829,13 +829,13 @@ type ScatterLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff float64 `json:"backoff,omitempty"` + Backoff ArrayOK[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `backoff`. - Backoffsrc String `json:"backoffsrc,omitempty"` + Backoffsrc string `json:"backoffsrc,omitempty"` // Color // arrayOK: false @@ -847,7 +847,7 @@ type ScatterLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Shape // default: linear @@ -887,7 +887,7 @@ type ScatterMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -909,7 +909,7 @@ type ScatterMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -935,7 +935,7 @@ type ScatterMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterMarkerColorbar @@ -1087,7 +1087,7 @@ type ScatterMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -1129,7 +1129,7 @@ type ScatterMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -1141,7 +1141,7 @@ type ScatterMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -1153,7 +1153,7 @@ type ScatterMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -1165,7 +1165,7 @@ type ScatterMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -1233,13 +1233,13 @@ type ScatterMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Type // default: none @@ -1251,7 +1251,7 @@ type ScatterMarkerGradient struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `type`. - Typesrc String `json:"typesrc,omitempty"` + Typesrc string `json:"typesrc,omitempty"` } // ScatterMarkerLine @@ -1291,7 +1291,7 @@ type ScatterMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1309,7 +1309,7 @@ type ScatterMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -1321,13 +1321,13 @@ type ScatterMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScatterMarker @@ -1337,7 +1337,7 @@ type ScatterMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref // default: up @@ -1349,7 +1349,7 @@ type ScatterMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -1385,7 +1385,7 @@ type ScatterMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1407,7 +1407,7 @@ type ScatterMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Gradient // role: Object @@ -1427,13 +1427,13 @@ type ScatterMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1451,7 +1451,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1475,19 +1475,19 @@ type ScatterMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Standoff // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff float64 `json:"standoff,omitempty"` + Standoff ArrayOK[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `standoff`. - Standoffsrc String `json:"standoffsrc,omitempty"` + Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol // default: circle @@ -1499,7 +1499,7 @@ type ScatterMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScatterSelectedMarker @@ -1559,7 +1559,7 @@ type ScatterStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScatterTextfont Sets the text font. @@ -1569,37 +1569,37 @@ type ScatterTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterUnselectedMarker diff --git a/generated/v2.29.1/graph_objects/scattercarpet_gen.go b/generated/v2.29.1/graph_objects/scattercarpet_gen.go index a76ff3c..8cb7c5b 100644 --- a/generated/v2.29.1/graph_objects/scattercarpet_gen.go +++ b/generated/v2.29.1/graph_objects/scattercarpet_gen.go @@ -25,7 +25,7 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `a`. - Asrc String `json:"asrc,omitempty"` + Asrc string `json:"asrc,omitempty"` // B // arrayOK: false @@ -37,13 +37,13 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `b`. - Bsrc String `json:"bsrc,omitempty"` + Bsrc string `json:"bsrc,omitempty"` // Carpet // arrayOK: false // type: string // An identifier for this carpet, so that `scattercarpet` and `contourcarpet` traces can specify a carpet plot on which they lie - Carpet String `json:"carpet,omitempty"` + Carpet string `json:"carpet,omitempty"` // Connectgaps // arrayOK: false @@ -61,7 +61,7 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Fill // default: none @@ -85,7 +85,7 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -101,25 +101,25 @@ type Scattercarpet struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -131,7 +131,7 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -143,7 +143,7 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -173,13 +173,13 @@ type Scattercarpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: markers @@ -191,7 +191,7 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -223,7 +223,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Sets text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -239,25 +239,25 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `a`, `b` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -269,7 +269,7 @@ type Scattercarpet struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -307,37 +307,37 @@ type ScattercarpetHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScattercarpetHoverlabel @@ -353,31 +353,31 @@ type ScattercarpetHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -387,13 +387,13 @@ type ScattercarpetHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScattercarpetLegendgrouptitleFont Sets this legend group's title font. @@ -409,7 +409,7 @@ type ScattercarpetLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -429,7 +429,7 @@ type ScattercarpetLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattercarpetLine @@ -439,13 +439,13 @@ type ScattercarpetLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff float64 `json:"backoff,omitempty"` + Backoff ArrayOK[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `backoff`. - Backoffsrc String `json:"backoffsrc,omitempty"` + Backoffsrc string `json:"backoffsrc,omitempty"` // Color // arrayOK: false @@ -457,7 +457,7 @@ type ScattercarpetLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Shape // default: linear @@ -491,7 +491,7 @@ type ScattercarpetMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -513,7 +513,7 @@ type ScattercarpetMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -539,7 +539,7 @@ type ScattercarpetMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattercarpetMarkerColorbar @@ -691,7 +691,7 @@ type ScattercarpetMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -733,7 +733,7 @@ type ScattercarpetMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -745,7 +745,7 @@ type ScattercarpetMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -757,7 +757,7 @@ type ScattercarpetMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -769,7 +769,7 @@ type ScattercarpetMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -837,13 +837,13 @@ type ScattercarpetMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Type // default: none @@ -855,7 +855,7 @@ type ScattercarpetMarkerGradient struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `type`. - Typesrc String `json:"typesrc,omitempty"` + Typesrc string `json:"typesrc,omitempty"` } // ScattercarpetMarkerLine @@ -895,7 +895,7 @@ type ScattercarpetMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -913,7 +913,7 @@ type ScattercarpetMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -925,13 +925,13 @@ type ScattercarpetMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScattercarpetMarker @@ -941,7 +941,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref // default: up @@ -953,7 +953,7 @@ type ScattercarpetMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -989,7 +989,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1011,7 +1011,7 @@ type ScattercarpetMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Gradient // role: Object @@ -1031,13 +1031,13 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1055,7 +1055,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1079,19 +1079,19 @@ type ScattercarpetMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Standoff // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff float64 `json:"standoff,omitempty"` + Standoff ArrayOK[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `standoff`. - Standoffsrc String `json:"standoffsrc,omitempty"` + Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol // default: circle @@ -1103,7 +1103,7 @@ type ScattercarpetMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScattercarpetSelectedMarker @@ -1163,7 +1163,7 @@ type ScattercarpetStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScattercarpetTextfont Sets the text font. @@ -1173,37 +1173,37 @@ type ScattercarpetTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScattercarpetUnselectedMarker diff --git a/generated/v2.29.1/graph_objects/scattergeo_gen.go b/generated/v2.29.1/graph_objects/scattergeo_gen.go index f9961d7..e671cf8 100644 --- a/generated/v2.29.1/graph_objects/scattergeo_gen.go +++ b/generated/v2.29.1/graph_objects/scattergeo_gen.go @@ -31,13 +31,13 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Featureidkey // arrayOK: false // type: string // Sets the key in GeoJSON features which is used as id to match the items included in the `locations` array. Only has an effect when `geojson` is set. Support nested property, for example *properties.name*. - Featureidkey String `json:"featureidkey,omitempty"` + Featureidkey string `json:"featureidkey,omitempty"` // Fill // default: none @@ -73,7 +73,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -83,25 +83,25 @@ type Scattergeo struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair or item in `locations`. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) or `locations` coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -113,7 +113,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Lat // arrayOK: false @@ -125,7 +125,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `lat`. - Latsrc String `json:"latsrc,omitempty"` + Latsrc string `json:"latsrc,omitempty"` // Legend // arrayOK: false @@ -137,7 +137,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -175,7 +175,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Lon // arrayOK: false @@ -187,7 +187,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `lon`. - Lonsrc String `json:"lonsrc,omitempty"` + Lonsrc string `json:"lonsrc,omitempty"` // Marker // role: Object @@ -197,13 +197,13 @@ type Scattergeo struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: markers @@ -215,7 +215,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -247,7 +247,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair or item in `locations`. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) or `locations` coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -263,25 +263,25 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `lat`, `lon`, `location` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -293,7 +293,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -319,37 +319,37 @@ type ScattergeoHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScattergeoHoverlabel @@ -365,31 +365,31 @@ type ScattergeoHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -399,13 +399,13 @@ type ScattergeoHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScattergeoLegendgrouptitleFont Sets this legend group's title font. @@ -421,7 +421,7 @@ type ScattergeoLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -441,7 +441,7 @@ type ScattergeoLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattergeoLine @@ -457,7 +457,7 @@ type ScattergeoLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -479,7 +479,7 @@ type ScattergeoMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -501,7 +501,7 @@ type ScattergeoMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -527,7 +527,7 @@ type ScattergeoMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattergeoMarkerColorbar @@ -679,7 +679,7 @@ type ScattergeoMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -721,7 +721,7 @@ type ScattergeoMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -733,7 +733,7 @@ type ScattergeoMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -745,7 +745,7 @@ type ScattergeoMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -757,7 +757,7 @@ type ScattergeoMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -825,13 +825,13 @@ type ScattergeoMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Type // default: none @@ -843,7 +843,7 @@ type ScattergeoMarkerGradient struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `type`. - Typesrc String `json:"typesrc,omitempty"` + Typesrc string `json:"typesrc,omitempty"` } // ScattergeoMarkerLine @@ -883,7 +883,7 @@ type ScattergeoMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -901,7 +901,7 @@ type ScattergeoMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -913,13 +913,13 @@ type ScattergeoMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScattergeoMarker @@ -929,7 +929,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref // default: up @@ -941,7 +941,7 @@ type ScattergeoMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -977,7 +977,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -999,7 +999,7 @@ type ScattergeoMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Gradient // role: Object @@ -1013,13 +1013,13 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1037,7 +1037,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1061,19 +1061,19 @@ type ScattergeoMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Standoff // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff float64 `json:"standoff,omitempty"` + Standoff ArrayOK[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `standoff`. - Standoffsrc String `json:"standoffsrc,omitempty"` + Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol // default: circle @@ -1085,7 +1085,7 @@ type ScattergeoMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScattergeoSelectedMarker @@ -1145,7 +1145,7 @@ type ScattergeoStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScattergeoTextfont Sets the text font. @@ -1155,37 +1155,37 @@ type ScattergeoTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScattergeoUnselectedMarker diff --git a/generated/v2.29.1/graph_objects/scattergl_gen.go b/generated/v2.29.1/graph_objects/scattergl_gen.go index 4dfa5ef..bbe038b 100644 --- a/generated/v2.29.1/graph_objects/scattergl_gen.go +++ b/generated/v2.29.1/graph_objects/scattergl_gen.go @@ -31,7 +31,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -75,7 +75,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -85,25 +85,25 @@ type Scattergl struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -115,7 +115,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -127,7 +127,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -157,13 +157,13 @@ type Scattergl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: %!s() @@ -175,7 +175,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -207,7 +207,7 @@ type Scattergl struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -223,25 +223,25 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -253,7 +253,7 @@ type Scattergl struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -299,7 +299,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -323,7 +323,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -353,7 +353,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -377,7 +377,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // ScatterglErrorX @@ -399,13 +399,13 @@ type ScatterglErrorX struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -493,13 +493,13 @@ type ScatterglErrorY struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -569,37 +569,37 @@ type ScatterglHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterglHoverlabel @@ -615,31 +615,31 @@ type ScatterglHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -649,13 +649,13 @@ type ScatterglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScatterglLegendgrouptitleFont Sets this legend group's title font. @@ -671,7 +671,7 @@ type ScatterglLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -691,7 +691,7 @@ type ScatterglLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterglLine @@ -735,7 +735,7 @@ type ScatterglMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -757,7 +757,7 @@ type ScatterglMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -783,7 +783,7 @@ type ScatterglMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterglMarkerColorbar @@ -935,7 +935,7 @@ type ScatterglMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -977,7 +977,7 @@ type ScatterglMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -989,7 +989,7 @@ type ScatterglMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -1001,7 +1001,7 @@ type ScatterglMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -1013,7 +1013,7 @@ type ScatterglMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -1111,7 +1111,7 @@ type ScatterglMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1129,7 +1129,7 @@ type ScatterglMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -1141,13 +1141,13 @@ type ScatterglMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScatterglMarker @@ -1157,13 +1157,13 @@ type ScatterglMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -1199,7 +1199,7 @@ type ScatterglMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1221,7 +1221,7 @@ type ScatterglMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Line // role: Object @@ -1231,13 +1231,13 @@ type ScatterglMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1255,7 +1255,7 @@ type ScatterglMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1279,7 +1279,7 @@ type ScatterglMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Symbol // default: circle @@ -1291,7 +1291,7 @@ type ScatterglMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScatterglSelectedMarker @@ -1351,7 +1351,7 @@ type ScatterglStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScatterglTextfont Sets the text font. @@ -1361,37 +1361,37 @@ type ScatterglTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterglUnselectedMarker diff --git a/generated/v2.29.1/graph_objects/scattermapbox_gen.go b/generated/v2.29.1/graph_objects/scattermapbox_gen.go index 4afd742..8576987 100644 --- a/generated/v2.29.1/graph_objects/scattermapbox_gen.go +++ b/generated/v2.29.1/graph_objects/scattermapbox_gen.go @@ -19,7 +19,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Determines if this scattermapbox trace's layers are to be inserted before the layer with the specified ID. By default, scattermapbox layers are inserted above all the base layers. To place the scattermapbox layers above every other layer, set `below` to *''*. - Below String `json:"below,omitempty"` + Below string `json:"below,omitempty"` // Cluster // role: Object @@ -41,7 +41,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Fill // default: none @@ -65,7 +65,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -75,25 +75,25 @@ type Scattermapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -105,7 +105,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Lat // arrayOK: false @@ -117,7 +117,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `lat`. - Latsrc String `json:"latsrc,omitempty"` + Latsrc string `json:"latsrc,omitempty"` // Legend // arrayOK: false @@ -129,7 +129,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -161,7 +161,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `lon`. - Lonsrc String `json:"lonsrc,omitempty"` + Lonsrc string `json:"lonsrc,omitempty"` // Marker // role: Object @@ -171,13 +171,13 @@ type Scattermapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: markers @@ -189,7 +189,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -227,7 +227,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -243,19 +243,19 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `lat`, `lon` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -267,7 +267,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -293,13 +293,13 @@ type ScattermapboxCluster struct { // arrayOK: true // type: color // Sets the color for each cluster step. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Enabled // arrayOK: false @@ -317,37 +317,37 @@ type ScattermapboxCluster struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size for each cluster step. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Step // arrayOK: true // type: number // Sets how many points it takes to create a cluster or advance to the next cluster step. Use this in conjunction with arrays for `size` and / or `color`. If an integer, steps start at multiples of this number. If an array, each step extends from the given value until one less than the next value. - Step float64 `json:"step,omitempty"` + Step ArrayOK[*float64] `json:"step,omitempty"` // Stepsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `step`. - Stepsrc String `json:"stepsrc,omitempty"` + Stepsrc string `json:"stepsrc,omitempty"` } // ScattermapboxHoverlabelFont Sets the font used in hover labels. @@ -357,37 +357,37 @@ type ScattermapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScattermapboxHoverlabel @@ -403,31 +403,31 @@ type ScattermapboxHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -437,13 +437,13 @@ type ScattermapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScattermapboxLegendgrouptitleFont Sets this legend group's title font. @@ -459,7 +459,7 @@ type ScattermapboxLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -479,7 +479,7 @@ type ScattermapboxLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattermapboxLine @@ -511,7 +511,7 @@ type ScattermapboxMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -533,7 +533,7 @@ type ScattermapboxMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -559,7 +559,7 @@ type ScattermapboxMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattermapboxMarkerColorbar @@ -711,7 +711,7 @@ type ScattermapboxMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -753,7 +753,7 @@ type ScattermapboxMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -765,7 +765,7 @@ type ScattermapboxMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -777,7 +777,7 @@ type ScattermapboxMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -789,7 +789,7 @@ type ScattermapboxMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -863,13 +863,13 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker orientation from true North, in degrees clockwise. When using the *auto* default, no rotation would be applied in perspective views which is different from using a zero angle. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -905,7 +905,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -927,19 +927,19 @@ type ScattermapboxMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Opacity // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -957,7 +957,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -981,19 +981,19 @@ type ScattermapboxMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Symbol // arrayOK: true // type: string // Sets the marker symbol. Full list: https://www.mapbox.com/maki-icons/ Note that the array `marker.color` and `marker.size` are only available for *circle* symbols. - Symbol String `json:"symbol,omitempty"` + Symbol ArrayOK[*string] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScattermapboxSelectedMarker @@ -1039,7 +1039,7 @@ type ScattermapboxStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScattermapboxTextfont Sets the icon text font (color=mapbox.layer.paint.text-color, size=mapbox.layer.layout.text-size). Has an effect only when `type` is set to *symbol*. @@ -1055,7 +1055,7 @@ type ScattermapboxTextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scatterpolar_gen.go b/generated/v2.29.1/graph_objects/scatterpolar_gen.go index 4f47ab3..38ca335 100644 --- a/generated/v2.29.1/graph_objects/scatterpolar_gen.go +++ b/generated/v2.29.1/graph_objects/scatterpolar_gen.go @@ -37,7 +37,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dr // arrayOK: false @@ -73,7 +73,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -89,25 +89,25 @@ type Scatterpolar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -119,7 +119,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -131,7 +131,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -161,13 +161,13 @@ type Scatterpolar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: %!s() @@ -179,7 +179,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -203,7 +203,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `r`. - Rsrc String `json:"rsrc,omitempty"` + Rsrc string `json:"rsrc,omitempty"` // Selected // role: Object @@ -235,7 +235,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -251,25 +251,25 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `r`, `theta` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Theta // arrayOK: false @@ -287,7 +287,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `theta`. - Thetasrc String `json:"thetasrc,omitempty"` + Thetasrc string `json:"thetasrc,omitempty"` // Thetaunit // default: degrees @@ -305,7 +305,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -331,37 +331,37 @@ type ScatterpolarHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterpolarHoverlabel @@ -377,31 +377,31 @@ type ScatterpolarHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -411,13 +411,13 @@ type ScatterpolarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScatterpolarLegendgrouptitleFont Sets this legend group's title font. @@ -433,7 +433,7 @@ type ScatterpolarLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -453,7 +453,7 @@ type ScatterpolarLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterpolarLine @@ -463,13 +463,13 @@ type ScatterpolarLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff float64 `json:"backoff,omitempty"` + Backoff ArrayOK[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `backoff`. - Backoffsrc String `json:"backoffsrc,omitempty"` + Backoffsrc string `json:"backoffsrc,omitempty"` // Color // arrayOK: false @@ -481,7 +481,7 @@ type ScatterpolarLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Shape // default: linear @@ -515,7 +515,7 @@ type ScatterpolarMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -537,7 +537,7 @@ type ScatterpolarMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -563,7 +563,7 @@ type ScatterpolarMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterpolarMarkerColorbar @@ -715,7 +715,7 @@ type ScatterpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -757,7 +757,7 @@ type ScatterpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -769,7 +769,7 @@ type ScatterpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -781,7 +781,7 @@ type ScatterpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -793,7 +793,7 @@ type ScatterpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -861,13 +861,13 @@ type ScatterpolarMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Type // default: none @@ -879,7 +879,7 @@ type ScatterpolarMarkerGradient struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `type`. - Typesrc String `json:"typesrc,omitempty"` + Typesrc string `json:"typesrc,omitempty"` } // ScatterpolarMarkerLine @@ -919,7 +919,7 @@ type ScatterpolarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -937,7 +937,7 @@ type ScatterpolarMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -949,13 +949,13 @@ type ScatterpolarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScatterpolarMarker @@ -965,7 +965,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref // default: up @@ -977,7 +977,7 @@ type ScatterpolarMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -1013,7 +1013,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1035,7 +1035,7 @@ type ScatterpolarMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Gradient // role: Object @@ -1055,13 +1055,13 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1079,7 +1079,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1103,19 +1103,19 @@ type ScatterpolarMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Standoff // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff float64 `json:"standoff,omitempty"` + Standoff ArrayOK[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `standoff`. - Standoffsrc String `json:"standoffsrc,omitempty"` + Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol // default: circle @@ -1127,7 +1127,7 @@ type ScatterpolarMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScatterpolarSelectedMarker @@ -1187,7 +1187,7 @@ type ScatterpolarStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScatterpolarTextfont Sets the text font. @@ -1197,37 +1197,37 @@ type ScatterpolarTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterpolarUnselectedMarker diff --git a/generated/v2.29.1/graph_objects/scatterpolargl_gen.go b/generated/v2.29.1/graph_objects/scatterpolargl_gen.go index 67d3515..dde8a85 100644 --- a/generated/v2.29.1/graph_objects/scatterpolargl_gen.go +++ b/generated/v2.29.1/graph_objects/scatterpolargl_gen.go @@ -31,7 +31,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dr // arrayOK: false @@ -67,7 +67,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -77,25 +77,25 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -107,7 +107,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -119,7 +119,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -149,13 +149,13 @@ type Scatterpolargl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: %!s() @@ -167,7 +167,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -191,7 +191,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `r`. - Rsrc String `json:"rsrc,omitempty"` + Rsrc string `json:"rsrc,omitempty"` // Selected // role: Object @@ -223,7 +223,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -239,25 +239,25 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `r`, `theta` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Theta // arrayOK: false @@ -275,7 +275,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `theta`. - Thetasrc String `json:"thetasrc,omitempty"` + Thetasrc string `json:"thetasrc,omitempty"` // Thetaunit // default: degrees @@ -293,7 +293,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -319,37 +319,37 @@ type ScatterpolarglHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterpolarglHoverlabel @@ -365,31 +365,31 @@ type ScatterpolarglHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -399,13 +399,13 @@ type ScatterpolarglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScatterpolarglLegendgrouptitleFont Sets this legend group's title font. @@ -421,7 +421,7 @@ type ScatterpolarglLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -441,7 +441,7 @@ type ScatterpolarglLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterpolarglLine @@ -479,7 +479,7 @@ type ScatterpolarglMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -501,7 +501,7 @@ type ScatterpolarglMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -527,7 +527,7 @@ type ScatterpolarglMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterpolarglMarkerColorbar @@ -679,7 +679,7 @@ type ScatterpolarglMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -721,7 +721,7 @@ type ScatterpolarglMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -733,7 +733,7 @@ type ScatterpolarglMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -745,7 +745,7 @@ type ScatterpolarglMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -757,7 +757,7 @@ type ScatterpolarglMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -855,7 +855,7 @@ type ScatterpolarglMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -873,7 +873,7 @@ type ScatterpolarglMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -885,13 +885,13 @@ type ScatterpolarglMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScatterpolarglMarker @@ -901,13 +901,13 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -943,7 +943,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -965,7 +965,7 @@ type ScatterpolarglMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Line // role: Object @@ -975,13 +975,13 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -999,7 +999,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1023,7 +1023,7 @@ type ScatterpolarglMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Symbol // default: circle @@ -1035,7 +1035,7 @@ type ScatterpolarglMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScatterpolarglSelectedMarker @@ -1095,7 +1095,7 @@ type ScatterpolarglStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScatterpolarglTextfont Sets the text font. @@ -1105,37 +1105,37 @@ type ScatterpolarglTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterpolarglUnselectedMarker diff --git a/generated/v2.29.1/graph_objects/scattersmith_gen.go b/generated/v2.29.1/graph_objects/scattersmith_gen.go index 1d98f00..94c4698 100644 --- a/generated/v2.29.1/graph_objects/scattersmith_gen.go +++ b/generated/v2.29.1/graph_objects/scattersmith_gen.go @@ -37,7 +37,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Fill // default: none @@ -61,7 +61,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -77,25 +77,25 @@ type Scattersmith struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -107,7 +107,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Imag // arrayOK: false @@ -119,7 +119,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `imag`. - Imagsrc String `json:"imagsrc,omitempty"` + Imagsrc string `json:"imagsrc,omitempty"` // Legend // arrayOK: false @@ -131,7 +131,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -161,13 +161,13 @@ type Scattersmith struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: %!s() @@ -179,7 +179,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -197,7 +197,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `real`. - Realsrc String `json:"realsrc,omitempty"` + Realsrc string `json:"realsrc,omitempty"` // Selected // role: Object @@ -229,7 +229,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -245,25 +245,25 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `real`, `imag` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -275,7 +275,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -301,37 +301,37 @@ type ScattersmithHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScattersmithHoverlabel @@ -347,31 +347,31 @@ type ScattersmithHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -381,13 +381,13 @@ type ScattersmithHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScattersmithLegendgrouptitleFont Sets this legend group's title font. @@ -403,7 +403,7 @@ type ScattersmithLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -423,7 +423,7 @@ type ScattersmithLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattersmithLine @@ -433,13 +433,13 @@ type ScattersmithLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff float64 `json:"backoff,omitempty"` + Backoff ArrayOK[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `backoff`. - Backoffsrc String `json:"backoffsrc,omitempty"` + Backoffsrc string `json:"backoffsrc,omitempty"` // Color // arrayOK: false @@ -451,7 +451,7 @@ type ScattersmithLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Shape // default: linear @@ -485,7 +485,7 @@ type ScattersmithMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -507,7 +507,7 @@ type ScattersmithMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -533,7 +533,7 @@ type ScattersmithMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattersmithMarkerColorbar @@ -685,7 +685,7 @@ type ScattersmithMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -727,7 +727,7 @@ type ScattersmithMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -739,7 +739,7 @@ type ScattersmithMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -751,7 +751,7 @@ type ScattersmithMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -763,7 +763,7 @@ type ScattersmithMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -831,13 +831,13 @@ type ScattersmithMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Type // default: none @@ -849,7 +849,7 @@ type ScattersmithMarkerGradient struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `type`. - Typesrc String `json:"typesrc,omitempty"` + Typesrc string `json:"typesrc,omitempty"` } // ScattersmithMarkerLine @@ -889,7 +889,7 @@ type ScattersmithMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -907,7 +907,7 @@ type ScattersmithMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -919,13 +919,13 @@ type ScattersmithMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScattersmithMarker @@ -935,7 +935,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref // default: up @@ -947,7 +947,7 @@ type ScattersmithMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -983,7 +983,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1005,7 +1005,7 @@ type ScattersmithMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Gradient // role: Object @@ -1025,13 +1025,13 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1049,7 +1049,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1073,19 +1073,19 @@ type ScattersmithMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Standoff // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff float64 `json:"standoff,omitempty"` + Standoff ArrayOK[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `standoff`. - Standoffsrc String `json:"standoffsrc,omitempty"` + Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol // default: circle @@ -1097,7 +1097,7 @@ type ScattersmithMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScattersmithSelectedMarker @@ -1157,7 +1157,7 @@ type ScattersmithStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScattersmithTextfont Sets the text font. @@ -1167,37 +1167,37 @@ type ScattersmithTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScattersmithUnselectedMarker diff --git a/generated/v2.29.1/graph_objects/scatterternary_gen.go b/generated/v2.29.1/graph_objects/scatterternary_gen.go index 51507ac..ff03e3f 100644 --- a/generated/v2.29.1/graph_objects/scatterternary_gen.go +++ b/generated/v2.29.1/graph_objects/scatterternary_gen.go @@ -25,7 +25,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `a`. - Asrc String `json:"asrc,omitempty"` + Asrc string `json:"asrc,omitempty"` // B // arrayOK: false @@ -37,7 +37,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `b`. - Bsrc String `json:"bsrc,omitempty"` + Bsrc string `json:"bsrc,omitempty"` // C // arrayOK: false @@ -61,7 +61,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `c`. - Csrc String `json:"csrc,omitempty"` + Csrc string `json:"csrc,omitempty"` // Customdata // arrayOK: false @@ -73,7 +73,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Fill // default: none @@ -97,7 +97,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -113,25 +113,25 @@ type Scatterternary struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (a,b,c) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b,c). To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -143,7 +143,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -155,7 +155,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -185,13 +185,13 @@ type Scatterternary struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: markers @@ -203,7 +203,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -247,7 +247,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Sets text elements associated with each (a,b,c) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b,c). If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -263,25 +263,25 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `a`, `b`, `c` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -293,7 +293,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -319,37 +319,37 @@ type ScatterternaryHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterternaryHoverlabel @@ -365,31 +365,31 @@ type ScatterternaryHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -399,13 +399,13 @@ type ScatterternaryHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScatterternaryLegendgrouptitleFont Sets this legend group's title font. @@ -421,7 +421,7 @@ type ScatterternaryLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -441,7 +441,7 @@ type ScatterternaryLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterternaryLine @@ -451,13 +451,13 @@ type ScatterternaryLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff float64 `json:"backoff,omitempty"` + Backoff ArrayOK[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `backoff`. - Backoffsrc String `json:"backoffsrc,omitempty"` + Backoffsrc string `json:"backoffsrc,omitempty"` // Color // arrayOK: false @@ -469,7 +469,7 @@ type ScatterternaryLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Shape // default: linear @@ -503,7 +503,7 @@ type ScatterternaryMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -525,7 +525,7 @@ type ScatterternaryMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -551,7 +551,7 @@ type ScatterternaryMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterternaryMarkerColorbar @@ -703,7 +703,7 @@ type ScatterternaryMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -745,7 +745,7 @@ type ScatterternaryMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -757,7 +757,7 @@ type ScatterternaryMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -769,7 +769,7 @@ type ScatterternaryMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -781,7 +781,7 @@ type ScatterternaryMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -849,13 +849,13 @@ type ScatterternaryMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Type // default: none @@ -867,7 +867,7 @@ type ScatterternaryMarkerGradient struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `type`. - Typesrc String `json:"typesrc,omitempty"` + Typesrc string `json:"typesrc,omitempty"` } // ScatterternaryMarkerLine @@ -907,7 +907,7 @@ type ScatterternaryMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -925,7 +925,7 @@ type ScatterternaryMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -937,13 +937,13 @@ type ScatterternaryMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScatterternaryMarker @@ -953,7 +953,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref // default: up @@ -965,7 +965,7 @@ type ScatterternaryMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -1001,7 +1001,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1023,7 +1023,7 @@ type ScatterternaryMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Gradient // role: Object @@ -1043,13 +1043,13 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1067,7 +1067,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1091,19 +1091,19 @@ type ScatterternaryMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Standoff // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff float64 `json:"standoff,omitempty"` + Standoff ArrayOK[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `standoff`. - Standoffsrc String `json:"standoffsrc,omitempty"` + Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol // default: circle @@ -1115,7 +1115,7 @@ type ScatterternaryMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScatterternarySelectedMarker @@ -1175,7 +1175,7 @@ type ScatterternaryStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScatterternaryTextfont Sets the text font. @@ -1185,37 +1185,37 @@ type ScatterternaryTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterternaryUnselectedMarker diff --git a/generated/v2.29.1/graph_objects/splom_gen.go b/generated/v2.29.1/graph_objects/splom_gen.go index 50d4c58..89c37bb 100644 --- a/generated/v2.29.1/graph_objects/splom_gen.go +++ b/generated/v2.29.1/graph_objects/splom_gen.go @@ -25,7 +25,7 @@ type Splom struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Diagonal // role: Object @@ -47,7 +47,7 @@ type Splom struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -57,25 +57,25 @@ type Splom struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -87,7 +87,7 @@ type Splom struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -99,7 +99,7 @@ type Splom struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -125,19 +125,19 @@ type Splom struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -181,13 +181,13 @@ type Splom struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair to appear on hover. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -199,7 +199,7 @@ type Splom struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -227,7 +227,7 @@ type Splom struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Yaxes // arrayOK: false @@ -239,7 +239,7 @@ type Splom struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` } // SplomDiagonal @@ -259,37 +259,37 @@ type SplomHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SplomHoverlabel @@ -305,31 +305,31 @@ type SplomHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -339,13 +339,13 @@ type SplomHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // SplomLegendgrouptitleFont Sets this legend group's title font. @@ -361,7 +361,7 @@ type SplomLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -381,7 +381,7 @@ type SplomLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // SplomMarkerColorbarTickfont Sets the color bar's tick label font @@ -397,7 +397,7 @@ type SplomMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -419,7 +419,7 @@ type SplomMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -445,7 +445,7 @@ type SplomMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // SplomMarkerColorbar @@ -597,7 +597,7 @@ type SplomMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -639,7 +639,7 @@ type SplomMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -651,7 +651,7 @@ type SplomMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -663,7 +663,7 @@ type SplomMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -675,7 +675,7 @@ type SplomMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -773,7 +773,7 @@ type SplomMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -791,7 +791,7 @@ type SplomMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -803,13 +803,13 @@ type SplomMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // SplomMarker @@ -819,13 +819,13 @@ type SplomMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -861,7 +861,7 @@ type SplomMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -883,7 +883,7 @@ type SplomMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Line // role: Object @@ -893,13 +893,13 @@ type SplomMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -917,7 +917,7 @@ type SplomMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -941,7 +941,7 @@ type SplomMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Symbol // default: circle @@ -953,7 +953,7 @@ type SplomMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // SplomSelectedMarker @@ -999,7 +999,7 @@ type SplomStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // SplomUnselectedMarker diff --git a/generated/v2.29.1/graph_objects/streamtube_gen.go b/generated/v2.29.1/graph_objects/streamtube_gen.go index 593e73a..3968863 100644 --- a/generated/v2.29.1/graph_objects/streamtube_gen.go +++ b/generated/v2.29.1/graph_objects/streamtube_gen.go @@ -71,7 +71,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo // default: x+y+z+norm+text+name @@ -83,7 +83,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -93,19 +93,19 @@ type Streamtube struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `tubex`, `tubey`, `tubez`, `tubeu`, `tubev`, `tubew`, `norm` and `divergence`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: false // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext string `json:"hovertext,omitempty"` // Ids // arrayOK: false @@ -117,7 +117,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -129,7 +129,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -165,19 +165,19 @@ type Streamtube struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -227,7 +227,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets a text element associated with this trace. If trace `hoverinfo` contains a *text* flag, this text element will be seen in all hover labels. Note that streamtube traces do not support array `text` values. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` // U // arrayOK: false @@ -239,13 +239,13 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `u` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Uhoverformat String `json:"uhoverformat,omitempty"` + Uhoverformat string `json:"uhoverformat,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -257,7 +257,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `u`. - Usrc String `json:"usrc,omitempty"` + Usrc string `json:"usrc,omitempty"` // V // arrayOK: false @@ -269,7 +269,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `v` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Vhoverformat String `json:"vhoverformat,omitempty"` + Vhoverformat string `json:"vhoverformat,omitempty"` // Visible // default: %!s(bool=true) @@ -281,7 +281,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `v`. - Vsrc String `json:"vsrc,omitempty"` + Vsrc string `json:"vsrc,omitempty"` // W // arrayOK: false @@ -293,13 +293,13 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `w` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Whoverformat String `json:"whoverformat,omitempty"` + Whoverformat string `json:"whoverformat,omitempty"` // Wsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `w`. - Wsrc String `json:"wsrc,omitempty"` + Wsrc string `json:"wsrc,omitempty"` // X // arrayOK: false @@ -311,13 +311,13 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -329,13 +329,13 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -347,13 +347,13 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `zaxis.hoverformat`. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // StreamtubeColorbarTickfont Sets the color bar's tick label font @@ -369,7 +369,7 @@ type StreamtubeColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -391,7 +391,7 @@ type StreamtubeColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -417,7 +417,7 @@ type StreamtubeColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // StreamtubeColorbar @@ -569,7 +569,7 @@ type StreamtubeColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -611,7 +611,7 @@ type StreamtubeColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -623,7 +623,7 @@ type StreamtubeColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -635,7 +635,7 @@ type StreamtubeColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -647,7 +647,7 @@ type StreamtubeColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -715,37 +715,37 @@ type StreamtubeHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // StreamtubeHoverlabel @@ -761,31 +761,31 @@ type StreamtubeHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -795,13 +795,13 @@ type StreamtubeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // StreamtubeLegendgrouptitleFont Sets this legend group's title font. @@ -817,7 +817,7 @@ type StreamtubeLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -837,7 +837,7 @@ type StreamtubeLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // StreamtubeLighting @@ -921,7 +921,7 @@ type StreamtubeStarts struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -933,7 +933,7 @@ type StreamtubeStarts struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -945,7 +945,7 @@ type StreamtubeStarts struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // StreamtubeStream @@ -961,7 +961,7 @@ type StreamtubeStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // StreamtubeColorbarExponentformat Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. diff --git a/generated/v2.29.1/graph_objects/sunburst_gen.go b/generated/v2.29.1/graph_objects/sunburst_gen.go index 5c0cbf2..9cc12aa 100644 --- a/generated/v2.29.1/graph_objects/sunburst_gen.go +++ b/generated/v2.29.1/graph_objects/sunburst_gen.go @@ -37,7 +37,7 @@ type Sunburst struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Domain // role: Object @@ -53,7 +53,7 @@ type Sunburst struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -63,25 +63,25 @@ type Sunburst struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -93,7 +93,7 @@ type Sunburst struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextfont // role: Object @@ -115,7 +115,7 @@ type Sunburst struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `labels`. - Labelssrc String `json:"labelssrc,omitempty"` + Labelssrc string `json:"labelssrc,omitempty"` // Leaf // role: Object @@ -163,19 +163,19 @@ type Sunburst struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -197,7 +197,7 @@ type Sunburst struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `parents`. - Parentssrc String `json:"parentssrc,omitempty"` + Parentssrc string `json:"parentssrc,omitempty"` // Root // role: Object @@ -239,19 +239,19 @@ type Sunburst struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -263,7 +263,7 @@ type Sunburst struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -281,7 +281,7 @@ type Sunburst struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `values`. - Valuessrc String `json:"valuessrc,omitempty"` + Valuessrc string `json:"valuessrc,omitempty"` // Visible // default: %!s(bool=true) @@ -325,37 +325,37 @@ type SunburstHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SunburstHoverlabel @@ -371,31 +371,31 @@ type SunburstHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -405,13 +405,13 @@ type SunburstHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // SunburstInsidetextfont Sets the font used for `textinfo` lying inside the sector. @@ -421,37 +421,37 @@ type SunburstInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SunburstLeaf @@ -477,7 +477,7 @@ type SunburstLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -497,7 +497,7 @@ type SunburstLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // SunburstMarkerColorbarTickfont Sets the color bar's tick label font @@ -513,7 +513,7 @@ type SunburstMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -535,7 +535,7 @@ type SunburstMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -561,7 +561,7 @@ type SunburstMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // SunburstMarkerColorbar @@ -713,7 +713,7 @@ type SunburstMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -755,7 +755,7 @@ type SunburstMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -767,7 +767,7 @@ type SunburstMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -779,7 +779,7 @@ type SunburstMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -791,7 +791,7 @@ type SunburstMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -859,25 +859,25 @@ type SunburstMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // SunburstMarkerPattern Sets the pattern within the marker. @@ -887,25 +887,25 @@ type SunburstMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -929,31 +929,31 @@ type SunburstMarkerPattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // SunburstMarker @@ -1015,7 +1015,7 @@ type SunburstMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `colors`. - Colorssrc String `json:"colorssrc,omitempty"` + Colorssrc string `json:"colorssrc,omitempty"` // Line // role: Object @@ -1045,37 +1045,37 @@ type SunburstOutsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SunburstRoot @@ -1101,7 +1101,7 @@ type SunburstStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // SunburstTextfont Sets the font used for `textinfo`. @@ -1111,37 +1111,37 @@ type SunburstTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SunburstBranchvalues Determines how the items in `values` are summed. When set to *total*, items in `values` are taken to be value of all its descendants. When set to *remainder*, items in `values` corresponding to the root and the branches sectors are taken to be the extra part not part of the sum of the values at their leaves. diff --git a/generated/v2.29.1/graph_objects/surface_gen.go b/generated/v2.29.1/graph_objects/surface_gen.go index cc7fd74..42c4e29 100644 --- a/generated/v2.29.1/graph_objects/surface_gen.go +++ b/generated/v2.29.1/graph_objects/surface_gen.go @@ -81,7 +81,7 @@ type Surface struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Hidesurface // arrayOK: false @@ -99,7 +99,7 @@ type Surface struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -109,25 +109,25 @@ type Surface struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -139,7 +139,7 @@ type Surface struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -151,7 +151,7 @@ type Surface struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -181,19 +181,19 @@ type Surface struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -245,25 +245,25 @@ type Surface struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `surfacecolor`. - Surfacecolorsrc String `json:"surfacecolorsrc,omitempty"` + Surfacecolorsrc string `json:"surfacecolorsrc,omitempty"` // Text // arrayOK: true // type: string // Sets the text elements associated with each z value. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -293,13 +293,13 @@ type Surface struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -317,13 +317,13 @@ type Surface struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -341,13 +341,13 @@ type Surface struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `zaxis.hoverformat`. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // SurfaceColorbarTickfont Sets the color bar's tick label font @@ -363,7 +363,7 @@ type SurfaceColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -385,7 +385,7 @@ type SurfaceColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -411,7 +411,7 @@ type SurfaceColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // SurfaceColorbar @@ -563,7 +563,7 @@ type SurfaceColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -605,7 +605,7 @@ type SurfaceColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -617,7 +617,7 @@ type SurfaceColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -629,7 +629,7 @@ type SurfaceColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -641,7 +641,7 @@ type SurfaceColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -995,37 +995,37 @@ type SurfaceHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SurfaceHoverlabel @@ -1041,31 +1041,31 @@ type SurfaceHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -1075,13 +1075,13 @@ type SurfaceHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // SurfaceLegendgrouptitleFont Sets this legend group's title font. @@ -1097,7 +1097,7 @@ type SurfaceLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1117,7 +1117,7 @@ type SurfaceLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // SurfaceLighting @@ -1189,7 +1189,7 @@ type SurfaceStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // SurfaceColorbarExponentformat Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. diff --git a/generated/v2.29.1/graph_objects/table_gen.go b/generated/v2.29.1/graph_objects/table_gen.go index e093fd9..1475b6b 100644 --- a/generated/v2.29.1/graph_objects/table_gen.go +++ b/generated/v2.29.1/graph_objects/table_gen.go @@ -29,19 +29,19 @@ type Table struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `columnorder`. - Columnordersrc String `json:"columnordersrc,omitempty"` + Columnordersrc string `json:"columnordersrc,omitempty"` // Columnwidth // arrayOK: true // type: number // The width of columns expressed as a ratio. Columns fill the available width in proportion of their specified column widths. - Columnwidth float64 `json:"columnwidth,omitempty"` + Columnwidth ArrayOK[*float64] `json:"columnwidth,omitempty"` // Columnwidthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `columnwidth`. - Columnwidthsrc String `json:"columnwidthsrc,omitempty"` + Columnwidthsrc string `json:"columnwidthsrc,omitempty"` // Customdata // arrayOK: false @@ -53,7 +53,7 @@ type Table struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Domain // role: Object @@ -73,7 +73,7 @@ type Table struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -89,7 +89,7 @@ type Table struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -117,19 +117,19 @@ type Table struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Stream // role: Object @@ -139,7 +139,7 @@ type Table struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -161,13 +161,13 @@ type TableCellsFill struct { // arrayOK: true // type: color // Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` } // TableCellsFont @@ -177,37 +177,37 @@ type TableCellsFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TableCellsLine @@ -217,25 +217,25 @@ type TableCellsLine struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // TableCells @@ -251,7 +251,7 @@ type TableCells struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Fill // role: Object @@ -271,7 +271,7 @@ type TableCells struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `format`. - Formatsrc String `json:"formatsrc,omitempty"` + Formatsrc string `json:"formatsrc,omitempty"` // Height // arrayOK: false @@ -287,25 +287,25 @@ type TableCells struct { // arrayOK: true // type: string // Prefix for cell values. - Prefix String `json:"prefix,omitempty"` + Prefix ArrayOK[*string] `json:"prefix,omitempty"` // Prefixsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `prefix`. - Prefixsrc String `json:"prefixsrc,omitempty"` + Prefixsrc string `json:"prefixsrc,omitempty"` // Suffix // arrayOK: true // type: string // Suffix for cell values. - Suffix String `json:"suffix,omitempty"` + Suffix ArrayOK[*string] `json:"suffix,omitempty"` // Suffixsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `suffix`. - Suffixsrc String `json:"suffixsrc,omitempty"` + Suffixsrc string `json:"suffixsrc,omitempty"` // Values // arrayOK: false @@ -317,7 +317,7 @@ type TableCells struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `values`. - Valuessrc String `json:"valuessrc,omitempty"` + Valuessrc string `json:"valuessrc,omitempty"` } // TableDomain @@ -355,13 +355,13 @@ type TableHeaderFill struct { // arrayOK: true // type: color // Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` } // TableHeaderFont @@ -371,37 +371,37 @@ type TableHeaderFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TableHeaderLine @@ -411,25 +411,25 @@ type TableHeaderLine struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // TableHeader @@ -445,7 +445,7 @@ type TableHeader struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Fill // role: Object @@ -465,7 +465,7 @@ type TableHeader struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `format`. - Formatsrc String `json:"formatsrc,omitempty"` + Formatsrc string `json:"formatsrc,omitempty"` // Height // arrayOK: false @@ -481,25 +481,25 @@ type TableHeader struct { // arrayOK: true // type: string // Prefix for cell values. - Prefix String `json:"prefix,omitempty"` + Prefix ArrayOK[*string] `json:"prefix,omitempty"` // Prefixsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `prefix`. - Prefixsrc String `json:"prefixsrc,omitempty"` + Prefixsrc string `json:"prefixsrc,omitempty"` // Suffix // arrayOK: true // type: string // Suffix for cell values. - Suffix String `json:"suffix,omitempty"` + Suffix ArrayOK[*string] `json:"suffix,omitempty"` // Suffixsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `suffix`. - Suffixsrc String `json:"suffixsrc,omitempty"` + Suffixsrc string `json:"suffixsrc,omitempty"` // Values // arrayOK: false @@ -511,7 +511,7 @@ type TableHeader struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `values`. - Valuessrc String `json:"valuessrc,omitempty"` + Valuessrc string `json:"valuessrc,omitempty"` } // TableHoverlabelFont Sets the font used in hover labels. @@ -521,37 +521,37 @@ type TableHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TableHoverlabel @@ -567,31 +567,31 @@ type TableHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -601,13 +601,13 @@ type TableHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // TableLegendgrouptitleFont Sets this legend group's title font. @@ -623,7 +623,7 @@ type TableLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -643,7 +643,7 @@ type TableLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // TableStream @@ -659,7 +659,7 @@ type TableStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // TableCellsAlign Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more
HTML tags) or if an explicit width is set to override the text width. diff --git a/generated/v2.29.1/graph_objects/treemap_gen.go b/generated/v2.29.1/graph_objects/treemap_gen.go index a460678..51a2f05 100644 --- a/generated/v2.29.1/graph_objects/treemap_gen.go +++ b/generated/v2.29.1/graph_objects/treemap_gen.go @@ -37,7 +37,7 @@ type Treemap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Domain // role: Object @@ -53,7 +53,7 @@ type Treemap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -63,25 +63,25 @@ type Treemap struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -93,7 +93,7 @@ type Treemap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextfont // role: Object @@ -109,7 +109,7 @@ type Treemap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `labels`. - Labelssrc String `json:"labelssrc,omitempty"` + Labelssrc string `json:"labelssrc,omitempty"` // Legend // arrayOK: false @@ -153,19 +153,19 @@ type Treemap struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -187,7 +187,7 @@ type Treemap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `parents`. - Parentssrc String `json:"parentssrc,omitempty"` + Parentssrc string `json:"parentssrc,omitempty"` // Pathbar // role: Object @@ -233,19 +233,19 @@ type Treemap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Tiling // role: Object @@ -261,7 +261,7 @@ type Treemap struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -279,7 +279,7 @@ type Treemap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `values`. - Valuessrc String `json:"valuessrc,omitempty"` + Valuessrc string `json:"valuessrc,omitempty"` // Visible // default: %!s(bool=true) @@ -323,37 +323,37 @@ type TreemapHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TreemapHoverlabel @@ -369,31 +369,31 @@ type TreemapHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -403,13 +403,13 @@ type TreemapHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // TreemapInsidetextfont Sets the font used for `textinfo` lying inside the sector. @@ -419,37 +419,37 @@ type TreemapInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TreemapLegendgrouptitleFont Sets this legend group's title font. @@ -465,7 +465,7 @@ type TreemapLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -485,7 +485,7 @@ type TreemapLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // TreemapMarkerColorbarTickfont Sets the color bar's tick label font @@ -501,7 +501,7 @@ type TreemapMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -523,7 +523,7 @@ type TreemapMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -549,7 +549,7 @@ type TreemapMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // TreemapMarkerColorbar @@ -701,7 +701,7 @@ type TreemapMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -743,7 +743,7 @@ type TreemapMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -755,7 +755,7 @@ type TreemapMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -767,7 +767,7 @@ type TreemapMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -779,7 +779,7 @@ type TreemapMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -847,25 +847,25 @@ type TreemapMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // TreemapMarkerPad @@ -903,25 +903,25 @@ type TreemapMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -945,31 +945,31 @@ type TreemapMarkerPattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // TreemapMarker @@ -1031,7 +1031,7 @@ type TreemapMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `colors`. - Colorssrc String `json:"colorssrc,omitempty"` + Colorssrc string `json:"colorssrc,omitempty"` // Cornerradius // arrayOK: false @@ -1077,37 +1077,37 @@ type TreemapOutsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TreemapPathbarTextfont Sets the font used inside `pathbar`. @@ -1117,37 +1117,37 @@ type TreemapPathbarTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TreemapPathbar @@ -1205,7 +1205,7 @@ type TreemapStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // TreemapTextfont Sets the font used for `textinfo`. @@ -1215,37 +1215,37 @@ type TreemapTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TreemapTiling diff --git a/generated/v2.29.1/graph_objects/violin_gen.go b/generated/v2.29.1/graph_objects/violin_gen.go index 1ed8f3d..ab05fa0 100644 --- a/generated/v2.29.1/graph_objects/violin_gen.go +++ b/generated/v2.29.1/graph_objects/violin_gen.go @@ -19,7 +19,7 @@ type Violin struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. - Alignmentgroup String `json:"alignmentgroup,omitempty"` + Alignmentgroup string `json:"alignmentgroup,omitempty"` // Bandwidth // arrayOK: false @@ -41,7 +41,7 @@ type Violin struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Fillcolor // arrayOK: false @@ -59,7 +59,7 @@ type Violin struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -75,25 +75,25 @@ type Violin struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -105,7 +105,7 @@ type Violin struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Jitter // arrayOK: false @@ -123,7 +123,7 @@ type Violin struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -157,25 +157,25 @@ type Violin struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. For violin traces, the name will also be used for the position coordinate, if `x` and `x0` (`y` and `y0` if horizontal) are missing and the position axis is categorical. Note that the trace name is also used as a default value for attribute `scalegroup` (please see its description for details). - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Offsetgroup // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. - Offsetgroup String `json:"offsetgroup,omitempty"` + Offsetgroup string `json:"offsetgroup,omitempty"` // Opacity // arrayOK: false @@ -211,7 +211,7 @@ type Violin struct { // arrayOK: false // type: string // If there are multiple violins that should be sized according to to some metric (see `scalemode`), link them by providing a non-empty group id here shared by every trace in the same group. If a violin's `width` is undefined, `scalegroup` will default to the trace's name. In this case, violins with the same names will be linked together - Scalegroup String `json:"scalegroup,omitempty"` + Scalegroup string `json:"scalegroup,omitempty"` // Scalemode // default: width @@ -261,13 +261,13 @@ type Violin struct { // arrayOK: true // type: string // Sets the text elements associated with each sample value. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -279,7 +279,7 @@ type Violin struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -325,13 +325,13 @@ type Violin struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -355,13 +355,13 @@ type Violin struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // ViolinBoxLine @@ -413,37 +413,37 @@ type ViolinHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ViolinHoverlabel @@ -459,31 +459,31 @@ type ViolinHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -493,13 +493,13 @@ type ViolinHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ViolinLegendgrouptitleFont Sets this legend group's title font. @@ -515,7 +515,7 @@ type ViolinLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -535,7 +535,7 @@ type ViolinLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ViolinLine @@ -691,7 +691,7 @@ type ViolinStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ViolinUnselectedMarker diff --git a/generated/v2.29.1/graph_objects/volume_gen.go b/generated/v2.29.1/graph_objects/volume_gen.go index f809c72..2e026a3 100644 --- a/generated/v2.29.1/graph_objects/volume_gen.go +++ b/generated/v2.29.1/graph_objects/volume_gen.go @@ -79,7 +79,7 @@ type Volume struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Flatshading // arrayOK: false @@ -97,7 +97,7 @@ type Volume struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -107,25 +107,25 @@ type Volume struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -137,7 +137,7 @@ type Volume struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Isomax // arrayOK: false @@ -161,7 +161,7 @@ type Volume struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -191,19 +191,19 @@ type Volume struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -261,19 +261,19 @@ type Volume struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -291,13 +291,13 @@ type Volume struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `value` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Valuehoverformat String `json:"valuehoverformat,omitempty"` + Valuehoverformat string `json:"valuehoverformat,omitempty"` // Valuesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `value`. - Valuesrc String `json:"valuesrc,omitempty"` + Valuesrc string `json:"valuesrc,omitempty"` // Visible // default: %!s(bool=true) @@ -315,13 +315,13 @@ type Volume struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -333,13 +333,13 @@ type Volume struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -351,13 +351,13 @@ type Volume struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `zaxis.hoverformat`. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // VolumeCapsX @@ -437,7 +437,7 @@ type VolumeColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -459,7 +459,7 @@ type VolumeColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -485,7 +485,7 @@ type VolumeColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // VolumeColorbar @@ -637,7 +637,7 @@ type VolumeColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -679,7 +679,7 @@ type VolumeColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -691,7 +691,7 @@ type VolumeColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -703,7 +703,7 @@ type VolumeColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -715,7 +715,7 @@ type VolumeColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -805,37 +805,37 @@ type VolumeHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // VolumeHoverlabel @@ -851,31 +851,31 @@ type VolumeHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -885,13 +885,13 @@ type VolumeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // VolumeLegendgrouptitleFont Sets this legend group's title font. @@ -907,7 +907,7 @@ type VolumeLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -927,7 +927,7 @@ type VolumeLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // VolumeLighting @@ -1017,7 +1017,7 @@ type VolumeSlicesX struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Show // arrayOK: false @@ -1045,7 +1045,7 @@ type VolumeSlicesY struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Show // arrayOK: false @@ -1073,7 +1073,7 @@ type VolumeSlicesZ struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Show // arrayOK: false @@ -1127,7 +1127,7 @@ type VolumeStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // VolumeSurface diff --git a/generated/v2.29.1/graph_objects/waterfall_gen.go b/generated/v2.29.1/graph_objects/waterfall_gen.go index f2ce2a5..5b51f15 100644 --- a/generated/v2.29.1/graph_objects/waterfall_gen.go +++ b/generated/v2.29.1/graph_objects/waterfall_gen.go @@ -19,7 +19,7 @@ type Waterfall struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. - Alignmentgroup String `json:"alignmentgroup,omitempty"` + Alignmentgroup string `json:"alignmentgroup,omitempty"` // Base // arrayOK: false @@ -53,7 +53,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Decreasing // role: Object @@ -81,7 +81,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -91,25 +91,25 @@ type Waterfall struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `initial`, `delta` and `final`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -121,7 +121,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Increasing // role: Object @@ -147,7 +147,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -175,43 +175,43 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `measure`. - Measuresrc String `json:"measuresrc,omitempty"` + Measuresrc string `json:"measuresrc,omitempty"` // Meta // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Offset // arrayOK: true // type: number // Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead. - Offset float64 `json:"offset,omitempty"` + Offset ArrayOK[*float64] `json:"offset,omitempty"` // Offsetgroup // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. - Offsetgroup String `json:"offsetgroup,omitempty"` + Offsetgroup string `json:"offsetgroup,omitempty"` // Offsetsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `offset`. - Offsetsrc String `json:"offsetsrc,omitempty"` + Offsetsrc string `json:"offsetsrc,omitempty"` // Opacity // arrayOK: false @@ -249,7 +249,7 @@ type Waterfall struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -277,25 +277,25 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `initial`, `delta`, `final` and `label`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Totals // role: Object @@ -311,7 +311,7 @@ type Waterfall struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -329,13 +329,13 @@ type Waterfall struct { // arrayOK: true // type: number // Sets the bar width (in position axis units). - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` // X // arrayOK: false @@ -359,7 +359,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -383,7 +383,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -407,7 +407,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -431,7 +431,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // WaterfallConnectorLine @@ -447,7 +447,7 @@ type WaterfallConnectorLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -521,37 +521,37 @@ type WaterfallHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // WaterfallHoverlabel @@ -567,31 +567,31 @@ type WaterfallHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -601,13 +601,13 @@ type WaterfallHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // WaterfallIncreasingMarkerLine @@ -655,37 +655,37 @@ type WaterfallInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // WaterfallLegendgrouptitleFont Sets this legend group's title font. @@ -701,7 +701,7 @@ type WaterfallLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -721,7 +721,7 @@ type WaterfallLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // WaterfallOutsidetextfont Sets the font used for `text` lying outside the bar. @@ -731,37 +731,37 @@ type WaterfallOutsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // WaterfallStream @@ -777,7 +777,7 @@ type WaterfallStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // WaterfallTextfont Sets the font used for `text`. @@ -787,37 +787,37 @@ type WaterfallTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // WaterfallTotalsMarkerLine diff --git a/generated/v2.31.1/graph_objects/bar_gen.go b/generated/v2.31.1/graph_objects/bar_gen.go index 405f6b5..1239ce3 100644 --- a/generated/v2.31.1/graph_objects/bar_gen.go +++ b/generated/v2.31.1/graph_objects/bar_gen.go @@ -19,19 +19,19 @@ type Bar struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. - Alignmentgroup String `json:"alignmentgroup,omitempty"` + Alignmentgroup string `json:"alignmentgroup,omitempty"` // Base // arrayOK: true // type: any // Sets where the bar base is drawn (in position axis units). In *stack* or *relative* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead. - Base interface{} `json:"base,omitempty"` + Base ArrayOK[*interface{}] `json:"base,omitempty"` // Basesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `base`. - Basesrc String `json:"basesrc,omitempty"` + Basesrc string `json:"basesrc,omitempty"` // Cliponaxis // arrayOK: false @@ -55,7 +55,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -87,7 +87,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -97,25 +97,25 @@ type Bar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -127,7 +127,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextanchor // default: end @@ -149,7 +149,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -175,37 +175,37 @@ type Bar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Offset // arrayOK: true // type: number // Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead. - Offset float64 `json:"offset,omitempty"` + Offset ArrayOK[*float64] `json:"offset,omitempty"` // Offsetgroup // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. - Offsetgroup String `json:"offsetgroup,omitempty"` + Offsetgroup string `json:"offsetgroup,omitempty"` // Offsetsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `offset`. - Offsetsrc String `json:"offsetsrc,omitempty"` + Offsetsrc string `json:"offsetsrc,omitempty"` // Opacity // arrayOK: false @@ -247,7 +247,7 @@ type Bar struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -269,25 +269,25 @@ type Bar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `value` and `label`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -299,7 +299,7 @@ type Bar struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -321,13 +321,13 @@ type Bar struct { // arrayOK: true // type: number // Sets the bar width (in position axis units). - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` // X // arrayOK: false @@ -357,7 +357,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -381,7 +381,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -411,7 +411,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -435,7 +435,7 @@ type Bar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Zorder // arrayOK: false @@ -463,13 +463,13 @@ type BarErrorX struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -557,13 +557,13 @@ type BarErrorY struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -633,37 +633,37 @@ type BarHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // BarHoverlabel @@ -679,31 +679,31 @@ type BarHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -713,13 +713,13 @@ type BarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // BarInsidetextfont Sets the font used for `text` lying inside the bar. @@ -729,37 +729,37 @@ type BarInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // BarLegendgrouptitleFont Sets this legend group's title font. @@ -775,7 +775,7 @@ type BarLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -795,7 +795,7 @@ type BarLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // BarMarkerColorbarTickfont Sets the color bar's tick label font @@ -811,7 +811,7 @@ type BarMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -833,7 +833,7 @@ type BarMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -859,7 +859,7 @@ type BarMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // BarMarkerColorbar @@ -1011,7 +1011,7 @@ type BarMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -1053,7 +1053,7 @@ type BarMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -1065,7 +1065,7 @@ type BarMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -1077,7 +1077,7 @@ type BarMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -1089,7 +1089,7 @@ type BarMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -1187,7 +1187,7 @@ type BarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1205,7 +1205,7 @@ type BarMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -1217,13 +1217,13 @@ type BarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // BarMarkerPattern Sets the pattern within the marker. @@ -1233,25 +1233,25 @@ type BarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -1275,31 +1275,31 @@ type BarMarkerPattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // BarMarker @@ -1339,7 +1339,7 @@ type BarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1361,7 +1361,7 @@ type BarMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Cornerradius // arrayOK: false @@ -1377,13 +1377,13 @@ type BarMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Pattern // role: Object @@ -1409,37 +1409,37 @@ type BarOutsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // BarSelectedMarker @@ -1493,7 +1493,7 @@ type BarStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // BarTextfont Sets the font used for `text`. @@ -1503,37 +1503,37 @@ type BarTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // BarUnselectedMarker diff --git a/generated/v2.31.1/graph_objects/barpolar_gen.go b/generated/v2.31.1/graph_objects/barpolar_gen.go index cdbde3f..06a0eb9 100644 --- a/generated/v2.31.1/graph_objects/barpolar_gen.go +++ b/generated/v2.31.1/graph_objects/barpolar_gen.go @@ -19,13 +19,13 @@ type Barpolar struct { // arrayOK: true // type: any // Sets where the bar base is drawn (in radial axis units). In *stack* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead. - Base interface{} `json:"base,omitempty"` + Base ArrayOK[*interface{}] `json:"base,omitempty"` // Basesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `base`. - Basesrc String `json:"basesrc,omitempty"` + Basesrc string `json:"basesrc,omitempty"` // Customdata // arrayOK: false @@ -37,7 +37,7 @@ type Barpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dr // arrayOK: false @@ -61,7 +61,7 @@ type Barpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -71,25 +71,25 @@ type Barpolar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -101,7 +101,7 @@ type Barpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -113,7 +113,7 @@ type Barpolar struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -139,31 +139,31 @@ type Barpolar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Offset // arrayOK: true // type: number // Shifts the angular position where the bar is drawn (in *thetatunit* units). - Offset float64 `json:"offset,omitempty"` + Offset ArrayOK[*float64] `json:"offset,omitempty"` // Offsetsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `offset`. - Offsetsrc String `json:"offsetsrc,omitempty"` + Offsetsrc string `json:"offsetsrc,omitempty"` // Opacity // arrayOK: false @@ -187,7 +187,7 @@ type Barpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `r`. - Rsrc String `json:"rsrc,omitempty"` + Rsrc string `json:"rsrc,omitempty"` // Selected // role: Object @@ -219,13 +219,13 @@ type Barpolar struct { // arrayOK: true // type: string // Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace's coordinates. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Theta // arrayOK: false @@ -243,7 +243,7 @@ type Barpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `theta`. - Thetasrc String `json:"thetasrc,omitempty"` + Thetasrc string `json:"thetasrc,omitempty"` // Thetaunit // default: degrees @@ -261,7 +261,7 @@ type Barpolar struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -283,13 +283,13 @@ type Barpolar struct { // arrayOK: true // type: number // Sets the bar angular width (in *thetaunit* units). - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // BarpolarHoverlabelFont Sets the font used in hover labels. @@ -299,37 +299,37 @@ type BarpolarHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // BarpolarHoverlabel @@ -345,31 +345,31 @@ type BarpolarHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -379,13 +379,13 @@ type BarpolarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // BarpolarLegendgrouptitleFont Sets this legend group's title font. @@ -401,7 +401,7 @@ type BarpolarLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -421,7 +421,7 @@ type BarpolarLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // BarpolarMarkerColorbarTickfont Sets the color bar's tick label font @@ -437,7 +437,7 @@ type BarpolarMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -459,7 +459,7 @@ type BarpolarMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -485,7 +485,7 @@ type BarpolarMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // BarpolarMarkerColorbar @@ -637,7 +637,7 @@ type BarpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -679,7 +679,7 @@ type BarpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -691,7 +691,7 @@ type BarpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -703,7 +703,7 @@ type BarpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -715,7 +715,7 @@ type BarpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -813,7 +813,7 @@ type BarpolarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -831,7 +831,7 @@ type BarpolarMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -843,13 +843,13 @@ type BarpolarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // BarpolarMarkerPattern Sets the pattern within the marker. @@ -859,25 +859,25 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -901,31 +901,31 @@ type BarpolarMarkerPattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // BarpolarMarker @@ -965,7 +965,7 @@ type BarpolarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -987,7 +987,7 @@ type BarpolarMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Line // role: Object @@ -997,13 +997,13 @@ type BarpolarMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Pattern // role: Object @@ -1073,7 +1073,7 @@ type BarpolarStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // BarpolarUnselectedMarker diff --git a/generated/v2.31.1/graph_objects/box_gen.go b/generated/v2.31.1/graph_objects/box_gen.go index 74df49f..c7e2cc9 100644 --- a/generated/v2.31.1/graph_objects/box_gen.go +++ b/generated/v2.31.1/graph_objects/box_gen.go @@ -19,7 +19,7 @@ type Box struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. - Alignmentgroup String `json:"alignmentgroup,omitempty"` + Alignmentgroup string `json:"alignmentgroup,omitempty"` // Boxmean // default: %!s() @@ -43,7 +43,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -73,7 +73,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -89,25 +89,25 @@ type Box struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -119,7 +119,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Jitter // arrayOK: false @@ -137,7 +137,7 @@ type Box struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -169,7 +169,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `lowerfence`. - Lowerfencesrc String `json:"lowerfencesrc,omitempty"` + Lowerfencesrc string `json:"lowerfencesrc,omitempty"` // Marker // role: Object @@ -185,7 +185,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `mean`. - Meansrc String `json:"meansrc,omitempty"` + Meansrc string `json:"meansrc,omitempty"` // Median // arrayOK: false @@ -197,25 +197,25 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `median`. - Mediansrc String `json:"mediansrc,omitempty"` + Mediansrc string `json:"mediansrc,omitempty"` // Meta // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. For box traces, the name will also be used for the position coordinate, if `x` and `x0` (`y` and `y0` if horizontal) are missing and the position axis is categorical - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Notched // arrayOK: false @@ -233,7 +233,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `notchspan`. - Notchspansrc String `json:"notchspansrc,omitempty"` + Notchspansrc string `json:"notchspansrc,omitempty"` // Notchwidth // arrayOK: false @@ -245,7 +245,7 @@ type Box struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. - Offsetgroup String `json:"offsetgroup,omitempty"` + Offsetgroup string `json:"offsetgroup,omitempty"` // Opacity // arrayOK: false @@ -275,7 +275,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `q1`. - Q1src String `json:"q1src,omitempty"` + Q1src string `json:"q1src,omitempty"` // Q3 // arrayOK: false @@ -287,7 +287,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `q3`. - Q3src String `json:"q3src,omitempty"` + Q3src string `json:"q3src,omitempty"` // Quartilemethod // default: linear @@ -311,7 +311,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `sd`. - Sdsrc String `json:"sdsrc,omitempty"` + Sdsrc string `json:"sdsrc,omitempty"` // Selected // role: Object @@ -349,13 +349,13 @@ type Box struct { // arrayOK: true // type: string // Sets the text elements associated with each sample value. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -367,7 +367,7 @@ type Box struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -389,7 +389,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `upperfence`. - Upperfencesrc String `json:"upperfencesrc,omitempty"` + Upperfencesrc string `json:"upperfencesrc,omitempty"` // Visible // default: %!s(bool=true) @@ -437,7 +437,7 @@ type Box struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -461,7 +461,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -491,7 +491,7 @@ type Box struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -515,7 +515,7 @@ type Box struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Zorder // arrayOK: false @@ -531,37 +531,37 @@ type BoxHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // BoxHoverlabel @@ -577,31 +577,31 @@ type BoxHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -611,13 +611,13 @@ type BoxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // BoxLegendgrouptitleFont Sets this legend group's title font. @@ -633,7 +633,7 @@ type BoxLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -653,7 +653,7 @@ type BoxLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // BoxLine @@ -787,7 +787,7 @@ type BoxStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // BoxUnselectedMarker diff --git a/generated/v2.31.1/graph_objects/candlestick_gen.go b/generated/v2.31.1/graph_objects/candlestick_gen.go index d6b3d3b..913e4cf 100644 --- a/generated/v2.31.1/graph_objects/candlestick_gen.go +++ b/generated/v2.31.1/graph_objects/candlestick_gen.go @@ -25,7 +25,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `close`. - Closesrc String `json:"closesrc,omitempty"` + Closesrc string `json:"closesrc,omitempty"` // Customdata // arrayOK: false @@ -37,7 +37,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Decreasing // role: Object @@ -53,7 +53,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `high`. - Highsrc String `json:"highsrc,omitempty"` + Highsrc string `json:"highsrc,omitempty"` // Hoverinfo // default: all @@ -65,7 +65,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -75,13 +75,13 @@ type Candlestick struct { // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -93,7 +93,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Increasing // role: Object @@ -109,7 +109,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -141,25 +141,25 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `low`. - Lowsrc String `json:"lowsrc,omitempty"` + Lowsrc string `json:"lowsrc,omitempty"` // Meta // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -177,7 +177,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `open`. - Opensrc String `json:"opensrc,omitempty"` + Opensrc string `json:"opensrc,omitempty"` // Selectedpoints // arrayOK: false @@ -199,13 +199,13 @@ type Candlestick struct { // arrayOK: true // type: string // Sets hover text elements associated with each sample point. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to this trace's sample points. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -217,7 +217,7 @@ type Candlestick struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -259,7 +259,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -283,7 +283,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Yaxis // arrayOK: false @@ -295,7 +295,7 @@ type Candlestick struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Zorder // arrayOK: false @@ -341,37 +341,37 @@ type CandlestickHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // CandlestickHoverlabel @@ -387,31 +387,31 @@ type CandlestickHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -421,13 +421,13 @@ type CandlestickHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` // Split // arrayOK: false @@ -479,7 +479,7 @@ type CandlestickLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -499,7 +499,7 @@ type CandlestickLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // CandlestickLine @@ -525,7 +525,7 @@ type CandlestickStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // CandlestickHoverlabelAlign Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines diff --git a/generated/v2.31.1/graph_objects/carpet_gen.go b/generated/v2.31.1/graph_objects/carpet_gen.go index caf11c5..35d4531 100644 --- a/generated/v2.31.1/graph_objects/carpet_gen.go +++ b/generated/v2.31.1/graph_objects/carpet_gen.go @@ -35,7 +35,7 @@ type Carpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `a`. - Asrc String `json:"asrc,omitempty"` + Asrc string `json:"asrc,omitempty"` // B // arrayOK: false @@ -57,13 +57,13 @@ type Carpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `b`. - Bsrc String `json:"bsrc,omitempty"` + Bsrc string `json:"bsrc,omitempty"` // Carpet // arrayOK: false // type: string // An identifier for this carpet, so that `scattercarpet` and `contourcarpet` traces can specify a carpet plot on which they lie - Carpet String `json:"carpet,omitempty"` + Carpet string `json:"carpet,omitempty"` // Cheaterslope // arrayOK: false @@ -87,7 +87,7 @@ type Carpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Da // arrayOK: false @@ -115,7 +115,7 @@ type Carpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -143,19 +143,19 @@ type Carpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -171,7 +171,7 @@ type Carpet struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -201,7 +201,7 @@ type Carpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -219,7 +219,7 @@ type Carpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Zorder // arrayOK: false @@ -241,7 +241,7 @@ type CarpetAaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -263,7 +263,7 @@ type CarpetAaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -289,7 +289,7 @@ type CarpetAaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // CarpetAaxis @@ -329,7 +329,7 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -395,7 +395,7 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -419,13 +419,13 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets a axis label prefix. - Labelprefix String `json:"labelprefix,omitempty"` + Labelprefix string `json:"labelprefix,omitempty"` // Labelsuffix // arrayOK: false // type: string // Sets a axis label suffix. - Labelsuffix String `json:"labelsuffix,omitempty"` + Labelsuffix string `json:"labelsuffix,omitempty"` // Linecolor // arrayOK: false @@ -461,7 +461,7 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Minorgriddash String `json:"minorgriddash,omitempty"` + Minorgriddash string `json:"minorgriddash,omitempty"` // Minorgridwidth // arrayOK: false @@ -573,7 +573,7 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -591,13 +591,13 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticksuffix // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -609,7 +609,7 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -621,7 +621,7 @@ type CarpetAaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Title // role: Object @@ -647,7 +647,7 @@ type CarpetBaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -669,7 +669,7 @@ type CarpetBaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -695,7 +695,7 @@ type CarpetBaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // CarpetBaxis @@ -735,7 +735,7 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -801,7 +801,7 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -825,13 +825,13 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets a axis label prefix. - Labelprefix String `json:"labelprefix,omitempty"` + Labelprefix string `json:"labelprefix,omitempty"` // Labelsuffix // arrayOK: false // type: string // Sets a axis label suffix. - Labelsuffix String `json:"labelsuffix,omitempty"` + Labelsuffix string `json:"labelsuffix,omitempty"` // Linecolor // arrayOK: false @@ -867,7 +867,7 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Minorgriddash String `json:"minorgriddash,omitempty"` + Minorgriddash string `json:"minorgriddash,omitempty"` // Minorgridwidth // arrayOK: false @@ -979,7 +979,7 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -997,13 +997,13 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticksuffix // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -1015,7 +1015,7 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -1027,7 +1027,7 @@ type CarpetBaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Title // role: Object @@ -1053,7 +1053,7 @@ type CarpetFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1075,7 +1075,7 @@ type CarpetLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1095,7 +1095,7 @@ type CarpetLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // CarpetStream @@ -1111,7 +1111,7 @@ type CarpetStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // CarpetAaxisAutorange Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided, then `autorange` is set to *false*. diff --git a/generated/v2.31.1/graph_objects/choropleth_gen.go b/generated/v2.31.1/graph_objects/choropleth_gen.go index 6420f68..75ee700 100644 --- a/generated/v2.31.1/graph_objects/choropleth_gen.go +++ b/generated/v2.31.1/graph_objects/choropleth_gen.go @@ -47,13 +47,13 @@ type Choropleth struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Featureidkey // arrayOK: false // type: string // Sets the key in GeoJSON features which is used as id to match the items included in the `locations` array. Only has an effect when `geojson` is set. Support nested property, for example *properties.name*. - Featureidkey String `json:"featureidkey,omitempty"` + Featureidkey string `json:"featureidkey,omitempty"` // Geo // arrayOK: false @@ -77,7 +77,7 @@ type Choropleth struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -87,25 +87,25 @@ type Choropleth struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -117,7 +117,7 @@ type Choropleth struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -129,7 +129,7 @@ type Choropleth struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -163,7 +163,7 @@ type Choropleth struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Marker // role: Object @@ -173,19 +173,19 @@ type Choropleth struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Reversescale // arrayOK: false @@ -223,13 +223,13 @@ type Choropleth struct { // arrayOK: true // type: string // Sets the text elements associated with each location. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -241,7 +241,7 @@ type Choropleth struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -293,7 +293,7 @@ type Choropleth struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // ChoroplethColorbarTickfont Sets the color bar's tick label font @@ -309,7 +309,7 @@ type ChoroplethColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -331,7 +331,7 @@ type ChoroplethColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -357,7 +357,7 @@ type ChoroplethColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ChoroplethColorbar @@ -509,7 +509,7 @@ type ChoroplethColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -551,7 +551,7 @@ type ChoroplethColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -563,7 +563,7 @@ type ChoroplethColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -575,7 +575,7 @@ type ChoroplethColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -587,7 +587,7 @@ type ChoroplethColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -655,37 +655,37 @@ type ChoroplethHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ChoroplethHoverlabel @@ -701,31 +701,31 @@ type ChoroplethHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -735,13 +735,13 @@ type ChoroplethHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ChoroplethLegendgrouptitleFont Sets this legend group's title font. @@ -757,7 +757,7 @@ type ChoroplethLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -777,7 +777,7 @@ type ChoroplethLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ChoroplethMarkerLine @@ -787,25 +787,25 @@ type ChoroplethMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ChoroplethMarker @@ -819,13 +819,13 @@ type ChoroplethMarker struct { // arrayOK: true // type: number // Sets the opacity of the locations. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` } // ChoroplethSelectedMarker @@ -859,7 +859,7 @@ type ChoroplethStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ChoroplethUnselectedMarker diff --git a/generated/v2.31.1/graph_objects/choroplethmapbox_gen.go b/generated/v2.31.1/graph_objects/choroplethmapbox_gen.go index 0202c45..1d2e9f7 100644 --- a/generated/v2.31.1/graph_objects/choroplethmapbox_gen.go +++ b/generated/v2.31.1/graph_objects/choroplethmapbox_gen.go @@ -25,7 +25,7 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Determines if the choropleth polygons will be inserted before the layer with the specified ID. By default, choroplethmapbox traces are placed above the water layers. If set to '', the layer will be inserted above every existing layer. - Below String `json:"below,omitempty"` + Below string `json:"below,omitempty"` // Coloraxis // arrayOK: false @@ -53,13 +53,13 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Featureidkey // arrayOK: false // type: string // Sets the key in GeoJSON features which is used as id to match the items included in the `locations` array. Support nested property, for example *properties.name*. - Featureidkey String `json:"featureidkey,omitempty"` + Featureidkey string `json:"featureidkey,omitempty"` // Geojson // arrayOK: false @@ -77,7 +77,7 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -87,25 +87,25 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `properties` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -117,7 +117,7 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -129,7 +129,7 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -157,7 +157,7 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Marker // role: Object @@ -167,19 +167,19 @@ type Choroplethmapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Reversescale // arrayOK: false @@ -223,13 +223,13 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Sets the text elements associated with each location. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -241,7 +241,7 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -293,7 +293,7 @@ type Choroplethmapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // ChoroplethmapboxColorbarTickfont Sets the color bar's tick label font @@ -309,7 +309,7 @@ type ChoroplethmapboxColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -331,7 +331,7 @@ type ChoroplethmapboxColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -357,7 +357,7 @@ type ChoroplethmapboxColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ChoroplethmapboxColorbar @@ -509,7 +509,7 @@ type ChoroplethmapboxColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -551,7 +551,7 @@ type ChoroplethmapboxColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -563,7 +563,7 @@ type ChoroplethmapboxColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -575,7 +575,7 @@ type ChoroplethmapboxColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -587,7 +587,7 @@ type ChoroplethmapboxColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -655,37 +655,37 @@ type ChoroplethmapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ChoroplethmapboxHoverlabel @@ -701,31 +701,31 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -735,13 +735,13 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ChoroplethmapboxLegendgrouptitleFont Sets this legend group's title font. @@ -757,7 +757,7 @@ type ChoroplethmapboxLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -777,7 +777,7 @@ type ChoroplethmapboxLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ChoroplethmapboxMarkerLine @@ -787,25 +787,25 @@ type ChoroplethmapboxMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ChoroplethmapboxMarker @@ -819,13 +819,13 @@ type ChoroplethmapboxMarker struct { // arrayOK: true // type: number // Sets the opacity of the locations. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` } // ChoroplethmapboxSelectedMarker @@ -859,7 +859,7 @@ type ChoroplethmapboxStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ChoroplethmapboxUnselectedMarker diff --git a/generated/v2.31.1/graph_objects/cone_gen.go b/generated/v2.31.1/graph_objects/cone_gen.go index 418fd8f..4d89fe7 100644 --- a/generated/v2.31.1/graph_objects/cone_gen.go +++ b/generated/v2.31.1/graph_objects/cone_gen.go @@ -77,7 +77,7 @@ type Cone struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo // default: x+y+z+norm+text+name @@ -89,7 +89,7 @@ type Cone struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -99,25 +99,25 @@ type Cone struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `norm` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -129,7 +129,7 @@ type Cone struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -141,7 +141,7 @@ type Cone struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -171,19 +171,19 @@ type Cone struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -235,13 +235,13 @@ type Cone struct { // arrayOK: true // type: string // Sets the text elements associated with the cones. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // U // arrayOK: false @@ -253,13 +253,13 @@ type Cone struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `u` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Uhoverformat String `json:"uhoverformat,omitempty"` + Uhoverformat string `json:"uhoverformat,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -271,7 +271,7 @@ type Cone struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `u`. - Usrc String `json:"usrc,omitempty"` + Usrc string `json:"usrc,omitempty"` // V // arrayOK: false @@ -283,7 +283,7 @@ type Cone struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `v` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Vhoverformat String `json:"vhoverformat,omitempty"` + Vhoverformat string `json:"vhoverformat,omitempty"` // Visible // default: %!s(bool=true) @@ -295,7 +295,7 @@ type Cone struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `v`. - Vsrc String `json:"vsrc,omitempty"` + Vsrc string `json:"vsrc,omitempty"` // W // arrayOK: false @@ -307,13 +307,13 @@ type Cone struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `w` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Whoverformat String `json:"whoverformat,omitempty"` + Whoverformat string `json:"whoverformat,omitempty"` // Wsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `w`. - Wsrc String `json:"wsrc,omitempty"` + Wsrc string `json:"wsrc,omitempty"` // X // arrayOK: false @@ -325,13 +325,13 @@ type Cone struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -343,13 +343,13 @@ type Cone struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -361,13 +361,13 @@ type Cone struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `zaxis.hoverformat`. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // ConeColorbarTickfont Sets the color bar's tick label font @@ -383,7 +383,7 @@ type ConeColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -405,7 +405,7 @@ type ConeColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -431,7 +431,7 @@ type ConeColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ConeColorbar @@ -583,7 +583,7 @@ type ConeColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -625,7 +625,7 @@ type ConeColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -637,7 +637,7 @@ type ConeColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -649,7 +649,7 @@ type ConeColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -661,7 +661,7 @@ type ConeColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -729,37 +729,37 @@ type ConeHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ConeHoverlabel @@ -775,31 +775,31 @@ type ConeHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -809,13 +809,13 @@ type ConeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ConeLegendgrouptitleFont Sets this legend group's title font. @@ -831,7 +831,7 @@ type ConeLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -851,7 +851,7 @@ type ConeLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ConeLighting @@ -935,7 +935,7 @@ type ConeStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ConeAnchor Sets the cones' anchor with respect to their x/y/z positions. Note that *cm* denote the cone's center of mass which corresponds to 1/4 from the tail to tip. diff --git a/generated/v2.31.1/graph_objects/config_gen.go b/generated/v2.31.1/graph_objects/config_gen.go index 4f14501..2b9e074 100644 --- a/generated/v2.31.1/graph_objects/config_gen.go +++ b/generated/v2.31.1/graph_objects/config_gen.go @@ -71,13 +71,13 @@ type Config struct { // arrayOK: false // type: string // Sets the text appearing in the `showLink` link. - LinkText String `json:"linkText,omitempty"` + LinkText string `json:"linkText,omitempty"` // Locale // arrayOK: false // type: string // Which localization should we use? Should be a string like 'en' or 'en-US'. - Locale String `json:"locale,omitempty"` + Locale string `json:"locale,omitempty"` // Locales // arrayOK: false @@ -95,7 +95,7 @@ type Config struct { // arrayOK: false // type: string // Mapbox access token (required to plot mapbox trace types) If using an Mapbox Atlas server, set this option to '' so that plotly.js won't attempt to authenticate to the public Mapbox server. - MapboxAccessToken String `json:"mapboxAccessToken,omitempty"` + MapboxAccessToken string `json:"mapboxAccessToken,omitempty"` // ModeBarButtons // arrayOK: false @@ -131,7 +131,7 @@ type Config struct { // arrayOK: false // type: string // When set it determines base URL for the 'Edit in Chart Studio' `showEditInChartStudio`/`showSendToCloud` mode bar button and the showLink/sendData on-graph link. To enable sending your data to Chart Studio Cloud, you need to set both `plotlyServerURL` to 'https://chart-studio.plotly.com' and also set `showSendToCloud` to true. - PlotlyServerURL String `json:"plotlyServerURL,omitempty"` + PlotlyServerURL string `json:"plotlyServerURL,omitempty"` // QueueLength // arrayOK: false @@ -221,7 +221,7 @@ type Config struct { // arrayOK: false // type: string // Set the URL to topojson used in geo charts. By default, the topojson files are fetched from cdn.plot.ly. For example, set this option to: /dist/topojson/ to render geographical feature using the topojson files that ship with the plotly.js module. - TopojsonURL String `json:"topojsonURL,omitempty"` + TopojsonURL string `json:"topojsonURL,omitempty"` // TypesetMath // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/contour_gen.go b/generated/v2.31.1/graph_objects/contour_gen.go index 4bbb550..79e46ed 100644 --- a/generated/v2.31.1/graph_objects/contour_gen.go +++ b/generated/v2.31.1/graph_objects/contour_gen.go @@ -63,7 +63,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -81,7 +81,7 @@ type Contour struct { // arrayOK: false // type: color // Sets the fill color if `contours.type` is *constraint*. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. - Fillcolor Color `json:"fillcolor,omitempty"` + Fillcolor ColorWithColorScale `json:"fillcolor,omitempty"` // Hoverinfo // default: all @@ -93,7 +93,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -109,13 +109,13 @@ type Contour struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: false @@ -127,7 +127,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -139,7 +139,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -151,7 +151,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -177,19 +177,19 @@ type Contour struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Ncontours // arrayOK: false @@ -239,13 +239,13 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: false // type: string // For this trace it only has an effect if `coloring` is set to *heatmap*. Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `x`, `y`, `z` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate string `json:"texttemplate,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -263,7 +263,7 @@ type Contour struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -305,7 +305,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -329,7 +329,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Xtype // default: %!s() @@ -365,7 +365,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -389,7 +389,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Ytype // default: %!s() @@ -413,7 +413,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zmax // arrayOK: false @@ -443,7 +443,7 @@ type Contour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // ContourColorbarTickfont Sets the color bar's tick label font @@ -459,7 +459,7 @@ type ContourColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -481,7 +481,7 @@ type ContourColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -507,7 +507,7 @@ type ContourColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ContourColorbar @@ -659,7 +659,7 @@ type ContourColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -701,7 +701,7 @@ type ContourColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -713,7 +713,7 @@ type ContourColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -725,7 +725,7 @@ type ContourColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -737,7 +737,7 @@ type ContourColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -811,7 +811,7 @@ type ContourContoursLabelfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -843,7 +843,7 @@ type ContourContours struct { // arrayOK: false // type: string // Sets the contour label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. - Labelformat String `json:"labelformat,omitempty"` + Labelformat string `json:"labelformat,omitempty"` // Operation // default: = @@ -895,37 +895,37 @@ type ContourHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ContourHoverlabel @@ -941,31 +941,31 @@ type ContourHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -975,13 +975,13 @@ type ContourHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ContourLegendgrouptitleFont Sets this legend group's title font. @@ -997,7 +997,7 @@ type ContourLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1017,7 +1017,7 @@ type ContourLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ContourLine @@ -1033,7 +1033,7 @@ type ContourLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Smoothing // arrayOK: false @@ -1061,7 +1061,7 @@ type ContourStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ContourTextfont For this trace it only has an effect if `coloring` is set to *heatmap*. Sets the text font. @@ -1077,7 +1077,7 @@ type ContourTextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/contourcarpet_gen.go b/generated/v2.31.1/graph_objects/contourcarpet_gen.go index 00dd5b8..84365f6 100644 --- a/generated/v2.31.1/graph_objects/contourcarpet_gen.go +++ b/generated/v2.31.1/graph_objects/contourcarpet_gen.go @@ -31,7 +31,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `a`. - Asrc String `json:"asrc,omitempty"` + Asrc string `json:"asrc,omitempty"` // Atype // default: %!s() @@ -67,7 +67,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `b`. - Bsrc String `json:"bsrc,omitempty"` + Bsrc string `json:"bsrc,omitempty"` // Btype // default: %!s() @@ -79,7 +79,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // The `carpet` of the carpet axes on which this contour trace lies - Carpet String `json:"carpet,omitempty"` + Carpet string `json:"carpet,omitempty"` // Coloraxis // arrayOK: false @@ -111,7 +111,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Da // arrayOK: false @@ -129,7 +129,7 @@ type Contourcarpet struct { // arrayOK: false // type: color // Sets the fill color if `contours.type` is *constraint*. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. - Fillcolor Color `json:"fillcolor,omitempty"` + Fillcolor ColorWithColorScale `json:"fillcolor,omitempty"` // Hovertext // arrayOK: false @@ -141,7 +141,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -153,7 +153,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -165,7 +165,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -191,19 +191,19 @@ type Contourcarpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Ncontours // arrayOK: false @@ -249,7 +249,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transpose // arrayOK: false @@ -261,7 +261,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -327,7 +327,7 @@ type Contourcarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // ContourcarpetColorbarTickfont Sets the color bar's tick label font @@ -343,7 +343,7 @@ type ContourcarpetColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -365,7 +365,7 @@ type ContourcarpetColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -391,7 +391,7 @@ type ContourcarpetColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ContourcarpetColorbar @@ -543,7 +543,7 @@ type ContourcarpetColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -585,7 +585,7 @@ type ContourcarpetColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -597,7 +597,7 @@ type ContourcarpetColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -609,7 +609,7 @@ type ContourcarpetColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -621,7 +621,7 @@ type ContourcarpetColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -695,7 +695,7 @@ type ContourcarpetContoursLabelfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -727,7 +727,7 @@ type ContourcarpetContours struct { // arrayOK: false // type: string // Sets the contour label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. - Labelformat String `json:"labelformat,omitempty"` + Labelformat string `json:"labelformat,omitempty"` // Operation // default: = @@ -785,7 +785,7 @@ type ContourcarpetLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -805,7 +805,7 @@ type ContourcarpetLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ContourcarpetLine @@ -821,7 +821,7 @@ type ContourcarpetLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Smoothing // arrayOK: false @@ -849,7 +849,7 @@ type ContourcarpetStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ContourcarpetAtype If *array*, the heatmap's x coordinates are given by *x* (the default behavior when `x` is provided). If *scaled*, the heatmap's x coordinates are given by *x0* and *dx* (the default behavior when `x` is not provided). diff --git a/generated/v2.31.1/graph_objects/densitymapbox_gen.go b/generated/v2.31.1/graph_objects/densitymapbox_gen.go index 1a1a1e0..43cdb3c 100644 --- a/generated/v2.31.1/graph_objects/densitymapbox_gen.go +++ b/generated/v2.31.1/graph_objects/densitymapbox_gen.go @@ -25,7 +25,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Determines if the densitymapbox trace will be inserted before the layer with the specified ID. By default, densitymapbox traces are placed below the first layer of type symbol If set to '', the layer will be inserted above every existing layer. - Below String `json:"below,omitempty"` + Below string `json:"below,omitempty"` // Coloraxis // arrayOK: false @@ -53,7 +53,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo // default: all @@ -65,7 +65,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -75,25 +75,25 @@ type Densitymapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -105,7 +105,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Lat // arrayOK: false @@ -117,7 +117,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `lat`. - Latsrc String `json:"latsrc,omitempty"` + Latsrc string `json:"latsrc,omitempty"` // Legend // arrayOK: false @@ -129,7 +129,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -157,25 +157,25 @@ type Densitymapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `lon`. - Lonsrc String `json:"lonsrc,omitempty"` + Lonsrc string `json:"lonsrc,omitempty"` // Meta // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -187,13 +187,13 @@ type Densitymapbox struct { // arrayOK: true // type: number // Sets the radius of influence of one `lon` / `lat` point in pixels. Increasing the value makes the densitymapbox trace smoother, but less detailed. - Radius float64 `json:"radius,omitempty"` + Radius ArrayOK[*float64] `json:"radius,omitempty"` // Radiussrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `radius`. - Radiussrc String `json:"radiussrc,omitempty"` + Radiussrc string `json:"radiussrc,omitempty"` // Reversescale // arrayOK: false @@ -227,13 +227,13 @@ type Densitymapbox struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -245,7 +245,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -293,7 +293,7 @@ type Densitymapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // DensitymapboxColorbarTickfont Sets the color bar's tick label font @@ -309,7 +309,7 @@ type DensitymapboxColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -331,7 +331,7 @@ type DensitymapboxColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -357,7 +357,7 @@ type DensitymapboxColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // DensitymapboxColorbar @@ -509,7 +509,7 @@ type DensitymapboxColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -551,7 +551,7 @@ type DensitymapboxColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -563,7 +563,7 @@ type DensitymapboxColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -575,7 +575,7 @@ type DensitymapboxColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -587,7 +587,7 @@ type DensitymapboxColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -655,37 +655,37 @@ type DensitymapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // DensitymapboxHoverlabel @@ -701,31 +701,31 @@ type DensitymapboxHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -735,13 +735,13 @@ type DensitymapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // DensitymapboxLegendgrouptitleFont Sets this legend group's title font. @@ -757,7 +757,7 @@ type DensitymapboxLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -777,7 +777,7 @@ type DensitymapboxLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // DensitymapboxStream @@ -793,7 +793,7 @@ type DensitymapboxStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // DensitymapboxColorbarExponentformat Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. diff --git a/generated/v2.31.1/graph_objects/funnel_gen.go b/generated/v2.31.1/graph_objects/funnel_gen.go index 565e4d8..3361ba8 100644 --- a/generated/v2.31.1/graph_objects/funnel_gen.go +++ b/generated/v2.31.1/graph_objects/funnel_gen.go @@ -19,7 +19,7 @@ type Funnel struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. - Alignmentgroup String `json:"alignmentgroup,omitempty"` + Alignmentgroup string `json:"alignmentgroup,omitempty"` // Cliponaxis // arrayOK: false @@ -47,7 +47,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -71,7 +71,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -81,25 +81,25 @@ type Funnel struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `percentInitial`, `percentPrevious` and `percentTotal`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -111,7 +111,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextanchor // default: middle @@ -133,7 +133,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -159,19 +159,19 @@ type Funnel struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Offset // arrayOK: false @@ -183,7 +183,7 @@ type Funnel struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. - Offsetgroup String `json:"offsetgroup,omitempty"` + Offsetgroup string `json:"offsetgroup,omitempty"` // Opacity // arrayOK: false @@ -221,7 +221,7 @@ type Funnel struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -249,25 +249,25 @@ type Funnel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `percentInitial`, `percentPrevious`, `percentTotal`, `label` and `value`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -279,7 +279,7 @@ type Funnel struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -321,7 +321,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -345,7 +345,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -369,7 +369,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -393,7 +393,7 @@ type Funnel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Zorder // arrayOK: false @@ -415,7 +415,7 @@ type FunnelConnectorLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -451,37 +451,37 @@ type FunnelHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelHoverlabel @@ -497,31 +497,31 @@ type FunnelHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -531,13 +531,13 @@ type FunnelHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // FunnelInsidetextfont Sets the font used for `text` lying inside the bar. @@ -547,37 +547,37 @@ type FunnelInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelLegendgrouptitleFont Sets this legend group's title font. @@ -593,7 +593,7 @@ type FunnelLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -613,7 +613,7 @@ type FunnelLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // FunnelMarkerColorbarTickfont Sets the color bar's tick label font @@ -629,7 +629,7 @@ type FunnelMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -651,7 +651,7 @@ type FunnelMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -677,7 +677,7 @@ type FunnelMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // FunnelMarkerColorbar @@ -829,7 +829,7 @@ type FunnelMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -871,7 +871,7 @@ type FunnelMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -883,7 +883,7 @@ type FunnelMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -895,7 +895,7 @@ type FunnelMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -907,7 +907,7 @@ type FunnelMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -1005,7 +1005,7 @@ type FunnelMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1023,7 +1023,7 @@ type FunnelMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -1035,13 +1035,13 @@ type FunnelMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // FunnelMarker @@ -1081,7 +1081,7 @@ type FunnelMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1103,7 +1103,7 @@ type FunnelMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Line // role: Object @@ -1113,13 +1113,13 @@ type FunnelMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1141,37 +1141,37 @@ type FunnelOutsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelStream @@ -1187,7 +1187,7 @@ type FunnelStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // FunnelTextfont Sets the font used for `text`. @@ -1197,37 +1197,37 @@ type FunnelTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelConstraintext Constrain the size of text inside or outside a bar to be no larger than the bar itself. diff --git a/generated/v2.31.1/graph_objects/funnelarea_gen.go b/generated/v2.31.1/graph_objects/funnelarea_gen.go index 3bec04a..dc81295 100644 --- a/generated/v2.31.1/graph_objects/funnelarea_gen.go +++ b/generated/v2.31.1/graph_objects/funnelarea_gen.go @@ -37,7 +37,7 @@ type Funnelarea struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dlabel // arrayOK: false @@ -59,7 +59,7 @@ type Funnelarea struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -69,25 +69,25 @@ type Funnelarea struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `text` and `percent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -99,7 +99,7 @@ type Funnelarea struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextfont // role: Object @@ -121,7 +121,7 @@ type Funnelarea struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `labels`. - Labelssrc String `json:"labelssrc,omitempty"` + Labelssrc string `json:"labelssrc,omitempty"` // Legend // arrayOK: false @@ -133,7 +133,7 @@ type Funnelarea struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -159,19 +159,19 @@ type Funnelarea struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -183,7 +183,7 @@ type Funnelarea struct { // arrayOK: false // type: string // If there are multiple funnelareas that should be sized according to their totals, link them by providing a non-empty group id here shared by every trace in the same group. - Scalegroup String `json:"scalegroup,omitempty"` + Scalegroup string `json:"scalegroup,omitempty"` // Showlegend // arrayOK: false @@ -221,25 +221,25 @@ type Funnelarea struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `text` and `percent`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Title // role: Object @@ -255,7 +255,7 @@ type Funnelarea struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -273,7 +273,7 @@ type Funnelarea struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `values`. - Valuessrc String `json:"valuessrc,omitempty"` + Valuessrc string `json:"valuessrc,omitempty"` // Visible // default: %!s(bool=true) @@ -317,37 +317,37 @@ type FunnelareaHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelareaHoverlabel @@ -363,31 +363,31 @@ type FunnelareaHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -397,13 +397,13 @@ type FunnelareaHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // FunnelareaInsidetextfont Sets the font used for `textinfo` lying inside the sector. @@ -413,37 +413,37 @@ type FunnelareaInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelareaLegendgrouptitleFont Sets this legend group's title font. @@ -459,7 +459,7 @@ type FunnelareaLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -479,7 +479,7 @@ type FunnelareaLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // FunnelareaMarkerLine @@ -489,25 +489,25 @@ type FunnelareaMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // FunnelareaMarkerPattern Sets the pattern within the marker. @@ -517,25 +517,25 @@ type FunnelareaMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -559,31 +559,31 @@ type FunnelareaMarkerPattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // FunnelareaMarker @@ -599,7 +599,7 @@ type FunnelareaMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `colors`. - Colorssrc String `json:"colorssrc,omitempty"` + Colorssrc string `json:"colorssrc,omitempty"` // Line // role: Object @@ -623,7 +623,7 @@ type FunnelareaStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // FunnelareaTextfont Sets the font used for `textinfo`. @@ -633,37 +633,37 @@ type FunnelareaTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelareaTitleFont Sets the font used for `title`. Note that the title's font used to be set by the now deprecated `titlefont` attribute. @@ -673,37 +673,37 @@ type FunnelareaTitleFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // FunnelareaTitle @@ -723,7 +723,7 @@ type FunnelareaTitle struct { // arrayOK: false // type: string // Sets the title of the chart. If it is empty, no title is displayed. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // FunnelareaHoverlabelAlign Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines diff --git a/generated/v2.31.1/graph_objects/heatmap_gen.go b/generated/v2.31.1/graph_objects/heatmap_gen.go index 1d29965..9029f02 100644 --- a/generated/v2.31.1/graph_objects/heatmap_gen.go +++ b/generated/v2.31.1/graph_objects/heatmap_gen.go @@ -53,7 +53,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -77,7 +77,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -93,13 +93,13 @@ type Heatmap struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: false @@ -111,7 +111,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -123,7 +123,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -135,7 +135,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -157,19 +157,19 @@ type Heatmap struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -213,13 +213,13 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: false // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `x`, `y`, `z` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate string `json:"texttemplate,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -237,7 +237,7 @@ type Heatmap struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -285,7 +285,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -309,7 +309,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Xtype // default: %!s() @@ -351,7 +351,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -375,7 +375,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Ytype // default: %!s() @@ -399,7 +399,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zmax // arrayOK: false @@ -435,7 +435,7 @@ type Heatmap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // HeatmapColorbarTickfont Sets the color bar's tick label font @@ -451,7 +451,7 @@ type HeatmapColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -473,7 +473,7 @@ type HeatmapColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -499,7 +499,7 @@ type HeatmapColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // HeatmapColorbar @@ -651,7 +651,7 @@ type HeatmapColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -693,7 +693,7 @@ type HeatmapColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -705,7 +705,7 @@ type HeatmapColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -717,7 +717,7 @@ type HeatmapColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -729,7 +729,7 @@ type HeatmapColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -797,37 +797,37 @@ type HeatmapHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // HeatmapHoverlabel @@ -843,31 +843,31 @@ type HeatmapHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -877,13 +877,13 @@ type HeatmapHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // HeatmapLegendgrouptitleFont Sets this legend group's title font. @@ -899,7 +899,7 @@ type HeatmapLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -919,7 +919,7 @@ type HeatmapLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // HeatmapStream @@ -935,7 +935,7 @@ type HeatmapStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // HeatmapTextfont Sets the text font. @@ -951,7 +951,7 @@ type HeatmapTextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/heatmapgl_gen.go b/generated/v2.31.1/graph_objects/heatmapgl_gen.go index 83d7a88..0575e81 100644 --- a/generated/v2.31.1/graph_objects/heatmapgl_gen.go +++ b/generated/v2.31.1/graph_objects/heatmapgl_gen.go @@ -47,7 +47,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -71,7 +71,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -87,7 +87,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -115,19 +115,19 @@ type Heatmapgl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -161,7 +161,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -179,7 +179,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -215,7 +215,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Xtype // default: %!s() @@ -245,7 +245,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Ytype // default: %!s() @@ -293,7 +293,7 @@ type Heatmapgl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // HeatmapglColorbarTickfont Sets the color bar's tick label font @@ -309,7 +309,7 @@ type HeatmapglColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -331,7 +331,7 @@ type HeatmapglColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -357,7 +357,7 @@ type HeatmapglColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // HeatmapglColorbar @@ -509,7 +509,7 @@ type HeatmapglColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -551,7 +551,7 @@ type HeatmapglColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -563,7 +563,7 @@ type HeatmapglColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -575,7 +575,7 @@ type HeatmapglColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -587,7 +587,7 @@ type HeatmapglColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -655,37 +655,37 @@ type HeatmapglHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // HeatmapglHoverlabel @@ -701,31 +701,31 @@ type HeatmapglHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -735,13 +735,13 @@ type HeatmapglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // HeatmapglLegendgrouptitleFont Sets this legend group's title font. @@ -757,7 +757,7 @@ type HeatmapglLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -777,7 +777,7 @@ type HeatmapglLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // HeatmapglStream @@ -793,7 +793,7 @@ type HeatmapglStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // HeatmapglColorbarExponentformat Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. diff --git a/generated/v2.31.1/graph_objects/histogram2d_gen.go b/generated/v2.31.1/graph_objects/histogram2d_gen.go index 56b4800..94ac8aa 100644 --- a/generated/v2.31.1/graph_objects/histogram2d_gen.go +++ b/generated/v2.31.1/graph_objects/histogram2d_gen.go @@ -37,7 +37,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Set the `xbingroup` and `ybingroup` default prefix For example, setting a `bingroup` of *1* on two histogram2d traces will make them their x-bins and y-bins match separately. - Bingroup String `json:"bingroup,omitempty"` + Bingroup string `json:"bingroup,omitempty"` // Coloraxis // arrayOK: false @@ -65,7 +65,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Histfunc // default: count @@ -89,7 +89,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -99,13 +99,13 @@ type Histogram2d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `z` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Ids // arrayOK: false @@ -117,7 +117,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -129,7 +129,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -155,19 +155,19 @@ type Histogram2d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Nbinsx // arrayOK: false @@ -217,7 +217,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `z` - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate string `json:"texttemplate,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -229,7 +229,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -259,7 +259,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Set a group of histogram traces which will have compatible x-bin settings. Using `xbingroup`, histogram2d and histogram2dcontour traces (on axes of the same axis type) can have compatible x-bin settings. Note that the same `xbingroup` value can be used to set (1D) histogram `bingroup` - Xbingroup String `json:"xbingroup,omitempty"` + Xbingroup string `json:"xbingroup,omitempty"` // Xbins // role: Object @@ -281,13 +281,13 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -305,7 +305,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Set a group of histogram traces which will have compatible y-bin settings. Using `ybingroup`, histogram2d and histogram2dcontour traces (on axes of the same axis type) can have compatible y-bin settings. Note that the same `ybingroup` value can be used to set (1D) histogram `bingroup` - Ybingroup String `json:"ybingroup,omitempty"` + Ybingroup string `json:"ybingroup,omitempty"` // Ybins // role: Object @@ -327,13 +327,13 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -351,7 +351,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zmax // arrayOK: false @@ -381,7 +381,7 @@ type Histogram2d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // Histogram2dColorbarTickfont Sets the color bar's tick label font @@ -397,7 +397,7 @@ type Histogram2dColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -419,7 +419,7 @@ type Histogram2dColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -445,7 +445,7 @@ type Histogram2dColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Histogram2dColorbar @@ -597,7 +597,7 @@ type Histogram2dColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -639,7 +639,7 @@ type Histogram2dColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -651,7 +651,7 @@ type Histogram2dColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -663,7 +663,7 @@ type Histogram2dColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -675,7 +675,7 @@ type Histogram2dColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -743,37 +743,37 @@ type Histogram2dHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // Histogram2dHoverlabel @@ -789,31 +789,31 @@ type Histogram2dHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -823,13 +823,13 @@ type Histogram2dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // Histogram2dLegendgrouptitleFont Sets this legend group's title font. @@ -845,7 +845,7 @@ type Histogram2dLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -865,7 +865,7 @@ type Histogram2dLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Histogram2dMarker @@ -881,7 +881,7 @@ type Histogram2dMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` } // Histogram2dStream @@ -897,7 +897,7 @@ type Histogram2dStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // Histogram2dTextfont Sets the text font. @@ -913,7 +913,7 @@ type Histogram2dTextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/histogram2dcontour_gen.go b/generated/v2.31.1/graph_objects/histogram2dcontour_gen.go index 7101178..8c74f2d 100644 --- a/generated/v2.31.1/graph_objects/histogram2dcontour_gen.go +++ b/generated/v2.31.1/graph_objects/histogram2dcontour_gen.go @@ -43,7 +43,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Set the `xbingroup` and `ybingroup` default prefix For example, setting a `bingroup` of *1* on two histogram2d traces will make them their x-bins and y-bins match separately. - Bingroup String `json:"bingroup,omitempty"` + Bingroup string `json:"bingroup,omitempty"` // Coloraxis // arrayOK: false @@ -75,7 +75,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Histfunc // default: count @@ -99,7 +99,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -109,13 +109,13 @@ type Histogram2dcontour struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `z` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Ids // arrayOK: false @@ -127,7 +127,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -139,7 +139,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -169,19 +169,19 @@ type Histogram2dcontour struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Nbinsx // arrayOK: false @@ -237,7 +237,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // For this trace it only has an effect if `coloring` is set to *heatmap*. Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `x`, `y`, `z` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate string `json:"texttemplate,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -249,7 +249,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -279,7 +279,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Set a group of histogram traces which will have compatible x-bin settings. Using `xbingroup`, histogram2d and histogram2dcontour traces (on axes of the same axis type) can have compatible x-bin settings. Note that the same `xbingroup` value can be used to set (1D) histogram `bingroup` - Xbingroup String `json:"xbingroup,omitempty"` + Xbingroup string `json:"xbingroup,omitempty"` // Xbins // role: Object @@ -295,13 +295,13 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -319,7 +319,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Set a group of histogram traces which will have compatible y-bin settings. Using `ybingroup`, histogram2d and histogram2dcontour traces (on axes of the same axis type) can have compatible y-bin settings. Note that the same `ybingroup` value can be used to set (1D) histogram `bingroup` - Ybingroup String `json:"ybingroup,omitempty"` + Ybingroup string `json:"ybingroup,omitempty"` // Ybins // role: Object @@ -335,13 +335,13 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -359,7 +359,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zmax // arrayOK: false @@ -383,7 +383,7 @@ type Histogram2dcontour struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // Histogram2dcontourColorbarTickfont Sets the color bar's tick label font @@ -399,7 +399,7 @@ type Histogram2dcontourColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -421,7 +421,7 @@ type Histogram2dcontourColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -447,7 +447,7 @@ type Histogram2dcontourColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Histogram2dcontourColorbar @@ -599,7 +599,7 @@ type Histogram2dcontourColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -641,7 +641,7 @@ type Histogram2dcontourColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -653,7 +653,7 @@ type Histogram2dcontourColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -665,7 +665,7 @@ type Histogram2dcontourColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -677,7 +677,7 @@ type Histogram2dcontourColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -751,7 +751,7 @@ type Histogram2dcontourContoursLabelfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -783,7 +783,7 @@ type Histogram2dcontourContours struct { // arrayOK: false // type: string // Sets the contour label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. - Labelformat String `json:"labelformat,omitempty"` + Labelformat string `json:"labelformat,omitempty"` // Operation // default: = @@ -835,37 +835,37 @@ type Histogram2dcontourHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // Histogram2dcontourHoverlabel @@ -881,31 +881,31 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -915,13 +915,13 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // Histogram2dcontourLegendgrouptitleFont Sets this legend group's title font. @@ -937,7 +937,7 @@ type Histogram2dcontourLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -957,7 +957,7 @@ type Histogram2dcontourLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Histogram2dcontourLine @@ -973,7 +973,7 @@ type Histogram2dcontourLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Smoothing // arrayOK: false @@ -1001,7 +1001,7 @@ type Histogram2dcontourMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` } // Histogram2dcontourStream @@ -1017,7 +1017,7 @@ type Histogram2dcontourStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // Histogram2dcontourTextfont For this trace it only has an effect if `coloring` is set to *heatmap*. Sets the text font. @@ -1033,7 +1033,7 @@ type Histogram2dcontourTextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/histogram_gen.go b/generated/v2.31.1/graph_objects/histogram_gen.go index 65b83ff..735f821 100644 --- a/generated/v2.31.1/graph_objects/histogram_gen.go +++ b/generated/v2.31.1/graph_objects/histogram_gen.go @@ -19,7 +19,7 @@ type Histogram struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. - Alignmentgroup String `json:"alignmentgroup,omitempty"` + Alignmentgroup string `json:"alignmentgroup,omitempty"` // Autobinx // arrayOK: false @@ -37,7 +37,7 @@ type Histogram struct { // arrayOK: false // type: string // Set a group of histogram traces which will have compatible bin settings. Note that traces on the same subplot and with the same *orientation* under `barmode` *stack*, *relative* and *group* are forced into the same bingroup, Using `bingroup`, traces under `barmode` *overlay* and on different axes (of the same axis type) can have compatible bin settings. Note that histogram and histogram2d* trace can share the same `bingroup` - Bingroup String `json:"bingroup,omitempty"` + Bingroup string `json:"bingroup,omitempty"` // Cliponaxis // arrayOK: false @@ -65,7 +65,7 @@ type Histogram struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // ErrorX // role: Object @@ -97,7 +97,7 @@ type Histogram struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -107,25 +107,25 @@ type Histogram struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `binNumber` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -137,7 +137,7 @@ type Histogram struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextanchor // default: end @@ -159,7 +159,7 @@ type Histogram struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -185,19 +185,19 @@ type Histogram struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Nbinsx // arrayOK: false @@ -215,7 +215,7 @@ type Histogram struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. - Offsetgroup String `json:"offsetgroup,omitempty"` + Offsetgroup string `json:"offsetgroup,omitempty"` // Opacity // arrayOK: false @@ -257,7 +257,7 @@ type Histogram struct { // arrayOK: true // type: string // Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace's coordinates. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -279,13 +279,13 @@ type Histogram struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: false // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label` and `value`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate string `json:"texttemplate,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -297,7 +297,7 @@ type Histogram struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -341,13 +341,13 @@ type Histogram struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -375,13 +375,13 @@ type Histogram struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Zorder // arrayOK: false @@ -431,13 +431,13 @@ type HistogramErrorX struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -525,13 +525,13 @@ type HistogramErrorY struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -601,37 +601,37 @@ type HistogramHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // HistogramHoverlabel @@ -647,31 +647,31 @@ type HistogramHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -681,13 +681,13 @@ type HistogramHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // HistogramInsidetextfont Sets the font used for `text` lying inside the bar. @@ -703,7 +703,7 @@ type HistogramInsidetextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -725,7 +725,7 @@ type HistogramLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -745,7 +745,7 @@ type HistogramLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // HistogramMarkerColorbarTickfont Sets the color bar's tick label font @@ -761,7 +761,7 @@ type HistogramMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -783,7 +783,7 @@ type HistogramMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -809,7 +809,7 @@ type HistogramMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // HistogramMarkerColorbar @@ -961,7 +961,7 @@ type HistogramMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -1003,7 +1003,7 @@ type HistogramMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -1015,7 +1015,7 @@ type HistogramMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -1027,7 +1027,7 @@ type HistogramMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -1039,7 +1039,7 @@ type HistogramMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -1137,7 +1137,7 @@ type HistogramMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1155,7 +1155,7 @@ type HistogramMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -1167,13 +1167,13 @@ type HistogramMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // HistogramMarkerPattern Sets the pattern within the marker. @@ -1183,25 +1183,25 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -1225,31 +1225,31 @@ type HistogramMarkerPattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // HistogramMarker @@ -1289,7 +1289,7 @@ type HistogramMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1311,7 +1311,7 @@ type HistogramMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Cornerradius // arrayOK: false @@ -1327,13 +1327,13 @@ type HistogramMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Pattern // role: Object @@ -1365,7 +1365,7 @@ type HistogramOutsidetextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1425,7 +1425,7 @@ type HistogramStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // HistogramTextfont Sets the text font. @@ -1441,7 +1441,7 @@ type HistogramTextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/icicle_gen.go b/generated/v2.31.1/graph_objects/icicle_gen.go index 6fe94b9..9ffff73 100644 --- a/generated/v2.31.1/graph_objects/icicle_gen.go +++ b/generated/v2.31.1/graph_objects/icicle_gen.go @@ -37,7 +37,7 @@ type Icicle struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Domain // role: Object @@ -53,7 +53,7 @@ type Icicle struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -63,25 +63,25 @@ type Icicle struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -93,7 +93,7 @@ type Icicle struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextfont // role: Object @@ -109,7 +109,7 @@ type Icicle struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `labels`. - Labelssrc String `json:"labelssrc,omitempty"` + Labelssrc string `json:"labelssrc,omitempty"` // Leaf // role: Object @@ -157,19 +157,19 @@ type Icicle struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -191,7 +191,7 @@ type Icicle struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `parents`. - Parentssrc String `json:"parentssrc,omitempty"` + Parentssrc string `json:"parentssrc,omitempty"` // Pathbar // role: Object @@ -237,19 +237,19 @@ type Icicle struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Tiling // role: Object @@ -265,7 +265,7 @@ type Icicle struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -283,7 +283,7 @@ type Icicle struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `values`. - Valuessrc String `json:"valuessrc,omitempty"` + Valuessrc string `json:"valuessrc,omitempty"` // Visible // default: %!s(bool=true) @@ -327,37 +327,37 @@ type IcicleHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // IcicleHoverlabel @@ -373,31 +373,31 @@ type IcicleHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -407,13 +407,13 @@ type IcicleHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // IcicleInsidetextfont Sets the font used for `textinfo` lying inside the sector. @@ -423,37 +423,37 @@ type IcicleInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // IcicleLeaf @@ -479,7 +479,7 @@ type IcicleLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -499,7 +499,7 @@ type IcicleLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // IcicleMarkerColorbarTickfont Sets the color bar's tick label font @@ -515,7 +515,7 @@ type IcicleMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -537,7 +537,7 @@ type IcicleMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -563,7 +563,7 @@ type IcicleMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // IcicleMarkerColorbar @@ -715,7 +715,7 @@ type IcicleMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -757,7 +757,7 @@ type IcicleMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -769,7 +769,7 @@ type IcicleMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -781,7 +781,7 @@ type IcicleMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -793,7 +793,7 @@ type IcicleMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -861,25 +861,25 @@ type IcicleMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // IcicleMarkerPattern Sets the pattern within the marker. @@ -889,25 +889,25 @@ type IcicleMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -931,31 +931,31 @@ type IcicleMarkerPattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // IcicleMarker @@ -1017,7 +1017,7 @@ type IcicleMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `colors`. - Colorssrc String `json:"colorssrc,omitempty"` + Colorssrc string `json:"colorssrc,omitempty"` // Line // role: Object @@ -1047,37 +1047,37 @@ type IcicleOutsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // IciclePathbarTextfont Sets the font used inside `pathbar`. @@ -1087,37 +1087,37 @@ type IciclePathbarTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // IciclePathbar @@ -1175,7 +1175,7 @@ type IcicleStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // IcicleTextfont Sets the font used for `textinfo`. @@ -1185,37 +1185,37 @@ type IcicleTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // IcicleTiling diff --git a/generated/v2.31.1/graph_objects/image_gen.go b/generated/v2.31.1/graph_objects/image_gen.go index 5ca21c8..ab9f6a1 100644 --- a/generated/v2.31.1/graph_objects/image_gen.go +++ b/generated/v2.31.1/graph_objects/image_gen.go @@ -31,7 +31,7 @@ type Image struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -55,7 +55,7 @@ type Image struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -65,13 +65,13 @@ type Image struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `z`, `color` and `colormodel`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: false @@ -83,7 +83,7 @@ type Image struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -95,7 +95,7 @@ type Image struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -123,19 +123,19 @@ type Image struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -147,7 +147,7 @@ type Image struct { // arrayOK: false // type: string // Specifies the data URI of the image to be visualized. The URI consists of "data:image/[][;base64]," - Source String `json:"source,omitempty"` + Source string `json:"source,omitempty"` // Stream // role: Object @@ -163,13 +163,13 @@ type Image struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -241,7 +241,7 @@ type Image struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // ImageHoverlabelFont Sets the font used in hover labels. @@ -251,37 +251,37 @@ type ImageHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ImageHoverlabel @@ -297,31 +297,31 @@ type ImageHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -331,13 +331,13 @@ type ImageHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ImageLegendgrouptitleFont Sets this legend group's title font. @@ -353,7 +353,7 @@ type ImageLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -373,7 +373,7 @@ type ImageLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ImageStream @@ -389,7 +389,7 @@ type ImageStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ImageColormodel Color model used to map the numerical color components described in `z` into colors. If `source` is specified, this attribute will be set to `rgba256` otherwise it defaults to `rgb`. diff --git a/generated/v2.31.1/graph_objects/indicator_gen.go b/generated/v2.31.1/graph_objects/indicator_gen.go index d4d5b11..f32859e 100644 --- a/generated/v2.31.1/graph_objects/indicator_gen.go +++ b/generated/v2.31.1/graph_objects/indicator_gen.go @@ -31,7 +31,7 @@ type Indicator struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Delta // role: Object @@ -55,7 +55,7 @@ type Indicator struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -83,13 +83,13 @@ type Indicator struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: number @@ -101,7 +101,7 @@ type Indicator struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Number // role: Object @@ -125,7 +125,7 @@ type Indicator struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -159,7 +159,7 @@ type IndicatorDeltaDecreasing struct { // arrayOK: false // type: string // Sets the symbol to display for increasing value - Symbol String `json:"symbol,omitempty"` + Symbol string `json:"symbol,omitempty"` } // IndicatorDeltaFont Set the font used to display the delta @@ -175,7 +175,7 @@ type IndicatorDeltaFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -197,7 +197,7 @@ type IndicatorDeltaIncreasing struct { // arrayOK: false // type: string // Sets the symbol to display for increasing value - Symbol String `json:"symbol,omitempty"` + Symbol string `json:"symbol,omitempty"` } // IndicatorDelta @@ -225,7 +225,7 @@ type IndicatorDelta struct { // arrayOK: false // type: string // Sets a prefix appearing before the delta. - Prefix String `json:"prefix,omitempty"` + Prefix string `json:"prefix,omitempty"` // Reference // arrayOK: false @@ -243,13 +243,13 @@ type IndicatorDelta struct { // arrayOK: false // type: string // Sets a suffix appearing next to the delta. - Suffix String `json:"suffix,omitempty"` + Suffix string `json:"suffix,omitempty"` // Valueformat // arrayOK: false // type: string // Sets the value formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. - Valueformat String `json:"valueformat,omitempty"` + Valueformat string `json:"valueformat,omitempty"` } // IndicatorDomain @@ -293,7 +293,7 @@ type IndicatorGaugeAxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -397,7 +397,7 @@ type IndicatorGaugeAxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -427,7 +427,7 @@ type IndicatorGaugeAxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: outside @@ -439,7 +439,7 @@ type IndicatorGaugeAxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -451,7 +451,7 @@ type IndicatorGaugeAxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -463,7 +463,7 @@ type IndicatorGaugeAxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -609,7 +609,7 @@ type IndicatorLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -629,7 +629,7 @@ type IndicatorLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // IndicatorNumberFont Set the font used to display main number @@ -645,7 +645,7 @@ type IndicatorNumberFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -665,19 +665,19 @@ type IndicatorNumber struct { // arrayOK: false // type: string // Sets a prefix appearing before the number. - Prefix String `json:"prefix,omitempty"` + Prefix string `json:"prefix,omitempty"` // Suffix // arrayOK: false // type: string // Sets a suffix appearing next to the number. - Suffix String `json:"suffix,omitempty"` + Suffix string `json:"suffix,omitempty"` // Valueformat // arrayOK: false // type: string // Sets the value formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. - Valueformat String `json:"valueformat,omitempty"` + Valueformat string `json:"valueformat,omitempty"` } // IndicatorStream @@ -693,7 +693,7 @@ type IndicatorStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // IndicatorTitleFont Set the font used to display the title @@ -709,7 +709,7 @@ type IndicatorTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -735,7 +735,7 @@ type IndicatorTitle struct { // arrayOK: false // type: string // Sets the title of this indicator. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // IndicatorAlign Sets the horizontal alignment of the `text` within the box. Note that this attribute has no effect if an angular gauge is displayed: in this case, it is always centered diff --git a/generated/v2.31.1/graph_objects/isosurface_gen.go b/generated/v2.31.1/graph_objects/isosurface_gen.go index cfdb3d3..0fe5b65 100644 --- a/generated/v2.31.1/graph_objects/isosurface_gen.go +++ b/generated/v2.31.1/graph_objects/isosurface_gen.go @@ -79,7 +79,7 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Flatshading // arrayOK: false @@ -97,7 +97,7 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -107,25 +107,25 @@ type Isosurface struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -137,7 +137,7 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Isomax // arrayOK: false @@ -161,7 +161,7 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -191,19 +191,19 @@ type Isosurface struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -255,19 +255,19 @@ type Isosurface struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -285,13 +285,13 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `value` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Valuehoverformat String `json:"valuehoverformat,omitempty"` + Valuehoverformat string `json:"valuehoverformat,omitempty"` // Valuesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `value`. - Valuesrc String `json:"valuesrc,omitempty"` + Valuesrc string `json:"valuesrc,omitempty"` // Visible // default: %!s(bool=true) @@ -309,13 +309,13 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -327,13 +327,13 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -345,13 +345,13 @@ type Isosurface struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `zaxis.hoverformat`. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // IsosurfaceCapsX @@ -431,7 +431,7 @@ type IsosurfaceColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -453,7 +453,7 @@ type IsosurfaceColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -479,7 +479,7 @@ type IsosurfaceColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // IsosurfaceColorbar @@ -631,7 +631,7 @@ type IsosurfaceColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -673,7 +673,7 @@ type IsosurfaceColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -685,7 +685,7 @@ type IsosurfaceColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -697,7 +697,7 @@ type IsosurfaceColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -709,7 +709,7 @@ type IsosurfaceColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -799,37 +799,37 @@ type IsosurfaceHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // IsosurfaceHoverlabel @@ -845,31 +845,31 @@ type IsosurfaceHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -879,13 +879,13 @@ type IsosurfaceHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // IsosurfaceLegendgrouptitleFont Sets this legend group's title font. @@ -901,7 +901,7 @@ type IsosurfaceLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -921,7 +921,7 @@ type IsosurfaceLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // IsosurfaceLighting @@ -1011,7 +1011,7 @@ type IsosurfaceSlicesX struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Show // arrayOK: false @@ -1039,7 +1039,7 @@ type IsosurfaceSlicesY struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Show // arrayOK: false @@ -1067,7 +1067,7 @@ type IsosurfaceSlicesZ struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Show // arrayOK: false @@ -1121,7 +1121,7 @@ type IsosurfaceStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // IsosurfaceSurface diff --git a/generated/v2.31.1/graph_objects/layout_gen.go b/generated/v2.31.1/graph_objects/layout_gen.go index 6e2c1fb..4f68da3 100644 --- a/generated/v2.31.1/graph_objects/layout_gen.go +++ b/generated/v2.31.1/graph_objects/layout_gen.go @@ -209,7 +209,7 @@ type Layout struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hiddenlabels`. - Hiddenlabelssrc String `json:"hiddenlabelssrc,omitempty"` + Hiddenlabelssrc string `json:"hiddenlabelssrc,omitempty"` // Hidesources // arrayOK: false @@ -267,13 +267,13 @@ type Layout struct { // arrayOK: true // type: any // Assigns extra meta information that can be used in various `text` attributes. Attributes such as the graph, axis and colorbar `title.text`, annotation `text` `trace.name` in legend items, `rangeselector`, `updatemenus` and `sliders` `label` text all support `meta`. One can access `meta` fields using template strings: `%{meta[i]}` where `i` is the index of the `meta` item in question. `meta` can also be an object for example `{key: value}` which can be accessed %{meta[key]}. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Minreducedheight // arrayOK: false @@ -303,7 +303,7 @@ type Layout struct { // arrayOK: false // type: color // Sets the background color of the paper where the graph is drawn. - PaperBgcolor Color `json:"paper_bgcolor,omitempty"` + PaperBgcolor ColorWithColorScale `json:"paper_bgcolor,omitempty"` // Piecolorway // arrayOK: false @@ -315,7 +315,7 @@ type Layout struct { // arrayOK: false // type: color // Sets the background color of the plotting area in-between x and y axes. - PlotBgcolor Color `json:"plot_bgcolor,omitempty"` + PlotBgcolor ColorWithColorScale `json:"plot_bgcolor,omitempty"` // Polar // role: Object @@ -359,7 +359,7 @@ type Layout struct { // arrayOK: false // type: string // Sets the decimal and thousand separators. For example, *. * puts a '.' before decimals and a space between thousands. In English locales, dflt is *.,* but other locales may alter this default. - Separators String `json:"separators,omitempty"` + Separators string `json:"separators,omitempty"` // Shapes // It's an items array and what goes inside it's... messy... check the docs @@ -571,7 +571,7 @@ type LayoutColoraxisColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -593,7 +593,7 @@ type LayoutColoraxisColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -619,7 +619,7 @@ type LayoutColoraxisColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutColoraxisColorbar @@ -771,7 +771,7 @@ type LayoutColoraxisColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -813,7 +813,7 @@ type LayoutColoraxisColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -825,7 +825,7 @@ type LayoutColoraxisColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -837,7 +837,7 @@ type LayoutColoraxisColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -849,7 +849,7 @@ type LayoutColoraxisColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -1001,7 +1001,7 @@ type LayoutFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1073,7 +1073,7 @@ type LayoutGeoLataxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -1119,7 +1119,7 @@ type LayoutGeoLonaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -1495,7 +1495,7 @@ type LayoutHoverlabelFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1517,7 +1517,7 @@ type LayoutHoverlabelGrouptitlefont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1575,7 +1575,7 @@ type LayoutLegendFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1597,7 +1597,7 @@ type LayoutLegendGrouptitlefont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1619,7 +1619,7 @@ type LayoutLegendTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1645,7 +1645,7 @@ type LayoutLegendTitle struct { // arrayOK: false // type: string // Sets the title of the legend. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutLegend @@ -1881,7 +1881,7 @@ type LayoutMapbox struct { // arrayOK: false // type: string // Sets the mapbox access token to be used for this mapbox map. Alternatively, the mapbox access token can be set in the configuration options under `mapboxAccessToken`. Note that accessToken are only required when `style` (e.g with values : basic, streets, outdoors, light, dark, satellite, satellite-streets ) and/or a layout layer references the Mapbox server. - Accesstoken String `json:"accesstoken,omitempty"` + Accesstoken string `json:"accesstoken,omitempty"` // Bearing // arrayOK: false @@ -1985,13 +1985,13 @@ type LayoutModebar struct { // arrayOK: true // type: string // Determines which predefined modebar buttons to add. Please note that these buttons will only be shown if they are compatible with all trace types used in a graph. Similar to `config.modeBarButtonsToAdd` option. This may include *v1hovermode*, *hoverclosest*, *hovercompare*, *togglehover*, *togglespikelines*, *drawline*, *drawopenpath*, *drawclosedpath*, *drawcircle*, *drawrect*, *eraseshape*. - Add String `json:"add,omitempty"` + Add ArrayOK[*string] `json:"add,omitempty"` // Addsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `add`. - Addsrc String `json:"addsrc,omitempty"` + Addsrc string `json:"addsrc,omitempty"` // Bgcolor // arrayOK: false @@ -2015,13 +2015,13 @@ type LayoutModebar struct { // arrayOK: true // type: string // Determines which predefined modebar buttons to remove. Similar to `config.modeBarButtonsToRemove` option. This may include *autoScale2d*, *autoscale*, *editInChartStudio*, *editinchartstudio*, *hoverCompareCartesian*, *hovercompare*, *lasso*, *lasso2d*, *orbitRotation*, *orbitrotation*, *pan*, *pan2d*, *pan3d*, *reset*, *resetCameraDefault3d*, *resetCameraLastSave3d*, *resetGeo*, *resetSankeyGroup*, *resetScale2d*, *resetViewMapbox*, *resetViews*, *resetcameradefault*, *resetcameralastsave*, *resetsankeygroup*, *resetscale*, *resetview*, *resetviews*, *select*, *select2d*, *sendDataToCloud*, *senddatatocloud*, *tableRotation*, *tablerotation*, *toImage*, *toggleHover*, *toggleSpikelines*, *togglehover*, *togglespikelines*, *toimage*, *zoom*, *zoom2d*, *zoom3d*, *zoomIn2d*, *zoomInGeo*, *zoomInMapbox*, *zoomOut2d*, *zoomOutGeo*, *zoomOutMapbox*, *zoomin*, *zoomout*. - Remove String `json:"remove,omitempty"` + Remove ArrayOK[*string] `json:"remove,omitempty"` // Removesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `remove`. - Removesrc String `json:"removesrc,omitempty"` + Removesrc string `json:"removesrc,omitempty"` // Uirevision // arrayOK: false @@ -2043,7 +2043,7 @@ type LayoutNewselectionLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -2079,7 +2079,7 @@ type LayoutNewshapeLabelFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -2105,7 +2105,7 @@ type LayoutNewshapeLabel struct { // arrayOK: false // type: string // Sets the text to display with the new shape. It is also used for legend item if `name` is not provided. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` // Textangle // arrayOK: false @@ -2123,7 +2123,7 @@ type LayoutNewshapeLabel struct { // arrayOK: false // type: string // Template string used for rendering the new shape's label. Note that this will override `text`. Variables are inserted using %{variable}, for example "x0: %{x0}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{x0:$.2f}". See https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{x0|%m %b %Y}". See https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. A single multiplication or division operation may be applied to numeric variables, and combined with d3 number formatting, for example "Length in cm: %{x0*2.54}", "%{slope*60:.1f} meters per second." For log axes, variable values are given in log units. For date axes, x/y coordinate variables and center variables use datetimes, while all other variable values use values in ms. Finally, the template string has access to variables `x0`, `x1`, `y0`, `y1`, `slope`, `dx`, `dy`, `width`, `height`, `length`, `xcenter` and `ycenter`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate string `json:"texttemplate,omitempty"` // Xanchor // default: auto @@ -2151,7 +2151,7 @@ type LayoutNewshapeLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -2171,7 +2171,7 @@ type LayoutNewshapeLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutNewshapeLine @@ -2187,7 +2187,7 @@ type LayoutNewshapeLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -2237,7 +2237,7 @@ type LayoutNewshape struct { // arrayOK: false // type: string // Sets the legend group for new shape. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -2263,7 +2263,7 @@ type LayoutNewshape struct { // arrayOK: false // type: string // Sets new shape name. The name appears as the legend item. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -2297,7 +2297,7 @@ type LayoutPolarAngularaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -2325,7 +2325,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -2367,7 +2367,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -2379,7 +2379,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -2503,7 +2503,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -2533,7 +2533,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -2545,7 +2545,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -2557,7 +2557,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -2569,7 +2569,7 @@ type LayoutPolarAngularaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -2643,13 +2643,13 @@ type LayoutPolarRadialaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include interface{} `json:"include,omitempty"` + Include ArrayOK[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `include`. - Includesrc String `json:"includesrc,omitempty"` + Includesrc string `json:"includesrc,omitempty"` // Maxallowed // arrayOK: false @@ -2677,7 +2677,7 @@ type LayoutPolarRadialaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -2699,7 +2699,7 @@ type LayoutPolarRadialaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -2719,7 +2719,7 @@ type LayoutPolarRadialaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutPolarRadialaxis @@ -2769,7 +2769,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -2805,7 +2805,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -2817,7 +2817,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -2953,7 +2953,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -2983,7 +2983,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -2995,7 +2995,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -3007,7 +3007,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -3019,7 +3019,7 @@ type LayoutPolarRadialaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -3261,13 +3261,13 @@ type LayoutSceneXaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include interface{} `json:"include,omitempty"` + Include ArrayOK[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `include`. - Includesrc String `json:"includesrc,omitempty"` + Includesrc string `json:"includesrc,omitempty"` // Maxallowed // arrayOK: false @@ -3295,7 +3295,7 @@ type LayoutSceneXaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -3317,7 +3317,7 @@ type LayoutSceneXaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -3337,7 +3337,7 @@ type LayoutSceneXaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutSceneXaxis @@ -3381,7 +3381,7 @@ type LayoutSceneXaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -3423,7 +3423,7 @@ type LayoutSceneXaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -3589,7 +3589,7 @@ type LayoutSceneXaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -3613,7 +3613,7 @@ type LayoutSceneXaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -3625,7 +3625,7 @@ type LayoutSceneXaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -3637,7 +3637,7 @@ type LayoutSceneXaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -3649,7 +3649,7 @@ type LayoutSceneXaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -3711,13 +3711,13 @@ type LayoutSceneYaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include interface{} `json:"include,omitempty"` + Include ArrayOK[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `include`. - Includesrc String `json:"includesrc,omitempty"` + Includesrc string `json:"includesrc,omitempty"` // Maxallowed // arrayOK: false @@ -3745,7 +3745,7 @@ type LayoutSceneYaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -3767,7 +3767,7 @@ type LayoutSceneYaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -3787,7 +3787,7 @@ type LayoutSceneYaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutSceneYaxis @@ -3831,7 +3831,7 @@ type LayoutSceneYaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -3873,7 +3873,7 @@ type LayoutSceneYaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -4039,7 +4039,7 @@ type LayoutSceneYaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -4063,7 +4063,7 @@ type LayoutSceneYaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -4075,7 +4075,7 @@ type LayoutSceneYaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -4087,7 +4087,7 @@ type LayoutSceneYaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -4099,7 +4099,7 @@ type LayoutSceneYaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -4161,13 +4161,13 @@ type LayoutSceneZaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include interface{} `json:"include,omitempty"` + Include ArrayOK[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `include`. - Includesrc String `json:"includesrc,omitempty"` + Includesrc string `json:"includesrc,omitempty"` // Maxallowed // arrayOK: false @@ -4195,7 +4195,7 @@ type LayoutSceneZaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -4217,7 +4217,7 @@ type LayoutSceneZaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -4237,7 +4237,7 @@ type LayoutSceneZaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutSceneZaxis @@ -4281,7 +4281,7 @@ type LayoutSceneZaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -4323,7 +4323,7 @@ type LayoutSceneZaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -4489,7 +4489,7 @@ type LayoutSceneZaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -4513,7 +4513,7 @@ type LayoutSceneZaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -4525,7 +4525,7 @@ type LayoutSceneZaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -4537,7 +4537,7 @@ type LayoutSceneZaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -4549,7 +4549,7 @@ type LayoutSceneZaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -4697,7 +4697,7 @@ type LayoutSmithImaginaryaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -4725,7 +4725,7 @@ type LayoutSmithImaginaryaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -4737,7 +4737,7 @@ type LayoutSmithImaginaryaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -4807,7 +4807,7 @@ type LayoutSmithImaginaryaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Ticklen // arrayOK: false @@ -4819,7 +4819,7 @@ type LayoutSmithImaginaryaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -4831,7 +4831,7 @@ type LayoutSmithImaginaryaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Tickvals // arrayOK: false @@ -4843,7 +4843,7 @@ type LayoutSmithImaginaryaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -4871,7 +4871,7 @@ type LayoutSmithRealaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -4899,7 +4899,7 @@ type LayoutSmithRealaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -4911,7 +4911,7 @@ type LayoutSmithRealaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -4993,7 +4993,7 @@ type LayoutSmithRealaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Ticklen // arrayOK: false @@ -5005,7 +5005,7 @@ type LayoutSmithRealaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -5017,7 +5017,7 @@ type LayoutSmithRealaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Tickvals // arrayOK: false @@ -5029,7 +5029,7 @@ type LayoutSmithRealaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -5079,7 +5079,7 @@ type LayoutTernaryAaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -5101,7 +5101,7 @@ type LayoutTernaryAaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -5121,7 +5121,7 @@ type LayoutTernaryAaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutTernaryAaxis @@ -5155,7 +5155,7 @@ type LayoutTernaryAaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -5167,7 +5167,7 @@ type LayoutTernaryAaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -5279,7 +5279,7 @@ type LayoutTernaryAaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -5309,7 +5309,7 @@ type LayoutTernaryAaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -5321,7 +5321,7 @@ type LayoutTernaryAaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -5333,7 +5333,7 @@ type LayoutTernaryAaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -5345,7 +5345,7 @@ type LayoutTernaryAaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -5377,7 +5377,7 @@ type LayoutTernaryBaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -5399,7 +5399,7 @@ type LayoutTernaryBaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -5419,7 +5419,7 @@ type LayoutTernaryBaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutTernaryBaxis @@ -5453,7 +5453,7 @@ type LayoutTernaryBaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -5465,7 +5465,7 @@ type LayoutTernaryBaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -5577,7 +5577,7 @@ type LayoutTernaryBaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -5607,7 +5607,7 @@ type LayoutTernaryBaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -5619,7 +5619,7 @@ type LayoutTernaryBaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -5631,7 +5631,7 @@ type LayoutTernaryBaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -5643,7 +5643,7 @@ type LayoutTernaryBaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -5675,7 +5675,7 @@ type LayoutTernaryCaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -5697,7 +5697,7 @@ type LayoutTernaryCaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -5717,7 +5717,7 @@ type LayoutTernaryCaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutTernaryCaxis @@ -5751,7 +5751,7 @@ type LayoutTernaryCaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -5763,7 +5763,7 @@ type LayoutTernaryCaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Labelalias // arrayOK: false @@ -5875,7 +5875,7 @@ type LayoutTernaryCaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -5905,7 +5905,7 @@ type LayoutTernaryCaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -5917,7 +5917,7 @@ type LayoutTernaryCaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -5929,7 +5929,7 @@ type LayoutTernaryCaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -5941,7 +5941,7 @@ type LayoutTernaryCaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -6039,7 +6039,7 @@ type LayoutTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -6097,7 +6097,7 @@ type LayoutTitle struct { // arrayOK: false // type: string // Sets the plot's title. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` // X // arrayOK: false @@ -6193,13 +6193,13 @@ type LayoutXaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include interface{} `json:"include,omitempty"` + Include ArrayOK[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `include`. - Includesrc String `json:"includesrc,omitempty"` + Includesrc string `json:"includesrc,omitempty"` // Maxallowed // arrayOK: false @@ -6233,7 +6233,7 @@ type LayoutXaxisMinor struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -6293,7 +6293,7 @@ type LayoutXaxisMinor struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -6315,7 +6315,7 @@ type LayoutXaxisRangeselectorFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -6471,7 +6471,7 @@ type LayoutXaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -6493,7 +6493,7 @@ type LayoutXaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -6519,7 +6519,7 @@ type LayoutXaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutXaxis @@ -6575,7 +6575,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -6647,7 +6647,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -6659,7 +6659,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Insiderange // arrayOK: false @@ -6851,7 +6851,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Spikedash String `json:"spikedash,omitempty"` + Spikedash string `json:"spikedash,omitempty"` // Spikemode // default: toaxis @@ -6897,7 +6897,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -6945,7 +6945,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -6963,7 +6963,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -6975,7 +6975,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -6987,7 +6987,7 @@ type LayoutXaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -7055,13 +7055,13 @@ type LayoutYaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include interface{} `json:"include,omitempty"` + Include ArrayOK[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `include`. - Includesrc String `json:"includesrc,omitempty"` + Includesrc string `json:"includesrc,omitempty"` // Maxallowed // arrayOK: false @@ -7095,7 +7095,7 @@ type LayoutYaxisMinor struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -7155,7 +7155,7 @@ type LayoutYaxisMinor struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -7177,7 +7177,7 @@ type LayoutYaxisTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -7199,7 +7199,7 @@ type LayoutYaxisTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -7225,7 +7225,7 @@ type LayoutYaxisTitle struct { // arrayOK: false // type: string // Sets the title of this axis. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // LayoutYaxis @@ -7287,7 +7287,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `categoryarray`. - Categoryarraysrc String `json:"categoryarraysrc,omitempty"` + Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder // default: trace @@ -7359,7 +7359,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Griddash String `json:"griddash,omitempty"` + Griddash string `json:"griddash,omitempty"` // Gridwidth // arrayOK: false @@ -7371,7 +7371,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Hoverformat String `json:"hoverformat,omitempty"` + Hoverformat string `json:"hoverformat,omitempty"` // Insiderange // arrayOK: false @@ -7561,7 +7561,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Spikedash String `json:"spikedash,omitempty"` + Spikedash string `json:"spikedash,omitempty"` // Spikemode // default: toaxis @@ -7607,7 +7607,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -7655,7 +7655,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: %!s() @@ -7673,7 +7673,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -7685,7 +7685,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -7697,7 +7697,7 @@ type LayoutYaxis struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/mesh3d_gen.go b/generated/v2.31.1/graph_objects/mesh3d_gen.go index e3f4dce..066d8ac 100644 --- a/generated/v2.31.1/graph_objects/mesh3d_gen.go +++ b/generated/v2.31.1/graph_objects/mesh3d_gen.go @@ -55,7 +55,7 @@ type Mesh3d struct { // arrayOK: false // type: color // Sets the color of the whole mesh - Color Color `json:"color,omitempty"` + Color ColorWithColorScale `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -87,7 +87,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Delaunayaxis // default: z @@ -105,7 +105,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `facecolor`. - Facecolorsrc String `json:"facecolorsrc,omitempty"` + Facecolorsrc string `json:"facecolorsrc,omitempty"` // Flatshading // arrayOK: false @@ -123,7 +123,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -133,25 +133,25 @@ type Mesh3d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // I // arrayOK: false @@ -169,7 +169,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Intensity // arrayOK: false @@ -187,13 +187,13 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `intensity`. - Intensitysrc String `json:"intensitysrc,omitempty"` + Intensitysrc string `json:"intensitysrc,omitempty"` // Isrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `i`. - Isrc String `json:"isrc,omitempty"` + Isrc string `json:"isrc,omitempty"` // J // arrayOK: false @@ -205,7 +205,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `j`. - Jsrc String `json:"jsrc,omitempty"` + Jsrc string `json:"jsrc,omitempty"` // K // arrayOK: false @@ -217,7 +217,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `k`. - Ksrc String `json:"ksrc,omitempty"` + Ksrc string `json:"ksrc,omitempty"` // Legend // arrayOK: false @@ -229,7 +229,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -259,19 +259,19 @@ type Mesh3d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -311,19 +311,19 @@ type Mesh3d struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -341,7 +341,7 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `vertexcolor`. - Vertexcolorsrc String `json:"vertexcolorsrc,omitempty"` + Vertexcolorsrc string `json:"vertexcolorsrc,omitempty"` // Visible // default: %!s(bool=true) @@ -365,13 +365,13 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -389,13 +389,13 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -413,13 +413,13 @@ type Mesh3d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `zaxis.hoverformat`. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // Mesh3dColorbarTickfont Sets the color bar's tick label font @@ -435,7 +435,7 @@ type Mesh3dColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -457,7 +457,7 @@ type Mesh3dColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -483,7 +483,7 @@ type Mesh3dColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Mesh3dColorbar @@ -635,7 +635,7 @@ type Mesh3dColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -677,7 +677,7 @@ type Mesh3dColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -689,7 +689,7 @@ type Mesh3dColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -701,7 +701,7 @@ type Mesh3dColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -713,7 +713,7 @@ type Mesh3dColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -803,37 +803,37 @@ type Mesh3dHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // Mesh3dHoverlabel @@ -849,31 +849,31 @@ type Mesh3dHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -883,13 +883,13 @@ type Mesh3dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // Mesh3dLegendgrouptitleFont Sets this legend group's title font. @@ -905,7 +905,7 @@ type Mesh3dLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -925,7 +925,7 @@ type Mesh3dLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Mesh3dLighting @@ -1009,7 +1009,7 @@ type Mesh3dStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // Mesh3dColorbarExponentformat Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. diff --git a/generated/v2.31.1/graph_objects/ohlc_gen.go b/generated/v2.31.1/graph_objects/ohlc_gen.go index 3eb83ea..c6fcdeb 100644 --- a/generated/v2.31.1/graph_objects/ohlc_gen.go +++ b/generated/v2.31.1/graph_objects/ohlc_gen.go @@ -25,7 +25,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `close`. - Closesrc String `json:"closesrc,omitempty"` + Closesrc string `json:"closesrc,omitempty"` // Customdata // arrayOK: false @@ -37,7 +37,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Decreasing // role: Object @@ -53,7 +53,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `high`. - Highsrc String `json:"highsrc,omitempty"` + Highsrc string `json:"highsrc,omitempty"` // Hoverinfo // default: all @@ -65,7 +65,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -75,13 +75,13 @@ type Ohlc struct { // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -93,7 +93,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Increasing // role: Object @@ -109,7 +109,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -141,25 +141,25 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `low`. - Lowsrc String `json:"lowsrc,omitempty"` + Lowsrc string `json:"lowsrc,omitempty"` // Meta // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -177,7 +177,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `open`. - Opensrc String `json:"opensrc,omitempty"` + Opensrc string `json:"opensrc,omitempty"` // Selectedpoints // arrayOK: false @@ -199,13 +199,13 @@ type Ohlc struct { // arrayOK: true // type: string // Sets hover text elements associated with each sample point. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to this trace's sample points. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Tickwidth // arrayOK: false @@ -223,7 +223,7 @@ type Ohlc struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -259,7 +259,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -283,7 +283,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Yaxis // arrayOK: false @@ -295,7 +295,7 @@ type Ohlc struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Zorder // arrayOK: false @@ -317,7 +317,7 @@ type OhlcDecreasingLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -341,37 +341,37 @@ type OhlcHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // OhlcHoverlabel @@ -387,31 +387,31 @@ type OhlcHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -421,13 +421,13 @@ type OhlcHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` // Split // arrayOK: false @@ -449,7 +449,7 @@ type OhlcIncreasingLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -479,7 +479,7 @@ type OhlcLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -499,7 +499,7 @@ type OhlcLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // OhlcLine @@ -509,7 +509,7 @@ type OhlcLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). Note that this style setting can also be set per direction via `increasing.line.dash` and `decreasing.line.dash`. - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -531,7 +531,7 @@ type OhlcStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // OhlcHoverlabelAlign Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines diff --git a/generated/v2.31.1/graph_objects/parcats_gen.go b/generated/v2.31.1/graph_objects/parcats_gen.go index be41595..1da5921 100644 --- a/generated/v2.31.1/graph_objects/parcats_gen.go +++ b/generated/v2.31.1/graph_objects/parcats_gen.go @@ -31,13 +31,13 @@ type Parcats struct { // arrayOK: true // type: number // The number of observations represented by each state. Defaults to 1 so that each state represents one observation - Counts float64 `json:"counts,omitempty"` + Counts ArrayOK[*float64] `json:"counts,omitempty"` // Countssrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `counts`. - Countssrc String `json:"countssrc,omitempty"` + Countssrc string `json:"countssrc,omitempty"` // Dimensions // It's an items array and what goes inside it's... messy... check the docs @@ -65,7 +65,7 @@ type Parcats struct { // arrayOK: false // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. This value here applies when hovering over dimensions. Note that `*categorycount`, *colorcount* and *bandcolorcount* are only available when `hoveron` contains the *color* flagFinally, the template string has access to variables `count`, `probability`, `category`, `categorycount`, `colorcount` and `bandcolorcount`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate string `json:"hovertemplate,omitempty"` // Labelfont // role: Object @@ -89,19 +89,19 @@ type Parcats struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Sortpaths // default: forward @@ -127,7 +127,7 @@ type Parcats struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -183,7 +183,7 @@ type ParcatsLabelfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -205,7 +205,7 @@ type ParcatsLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -225,7 +225,7 @@ type ParcatsLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ParcatsLineColorbarTickfont Sets the color bar's tick label font @@ -241,7 +241,7 @@ type ParcatsLineColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -263,7 +263,7 @@ type ParcatsLineColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -289,7 +289,7 @@ type ParcatsLineColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ParcatsLineColorbar @@ -441,7 +441,7 @@ type ParcatsLineColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -483,7 +483,7 @@ type ParcatsLineColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -495,7 +495,7 @@ type ParcatsLineColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -507,7 +507,7 @@ type ParcatsLineColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -519,7 +519,7 @@ type ParcatsLineColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -617,7 +617,7 @@ type ParcatsLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -639,13 +639,13 @@ type ParcatsLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Hovertemplate // arrayOK: false // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. This value here applies when hovering over lines.Finally, the template string has access to variables `count` and `probability`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate string `json:"hovertemplate,omitempty"` // Reversescale // arrayOK: false @@ -679,7 +679,7 @@ type ParcatsStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ParcatsTickfont Sets the font for the `category` labels. @@ -695,7 +695,7 @@ type ParcatsTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/parcoords_gen.go b/generated/v2.31.1/graph_objects/parcoords_gen.go index c0fdaab..44ce49c 100644 --- a/generated/v2.31.1/graph_objects/parcoords_gen.go +++ b/generated/v2.31.1/graph_objects/parcoords_gen.go @@ -25,7 +25,7 @@ type Parcoords struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dimensions // It's an items array and what goes inside it's... messy... check the docs @@ -47,7 +47,7 @@ type Parcoords struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Labelangle // arrayOK: false @@ -95,19 +95,19 @@ type Parcoords struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Rangefont // role: Object @@ -131,7 +131,7 @@ type Parcoords struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -191,7 +191,7 @@ type ParcoordsLabelfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -213,7 +213,7 @@ type ParcoordsLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -233,7 +233,7 @@ type ParcoordsLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ParcoordsLineColorbarTickfont Sets the color bar's tick label font @@ -249,7 +249,7 @@ type ParcoordsLineColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -271,7 +271,7 @@ type ParcoordsLineColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -297,7 +297,7 @@ type ParcoordsLineColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ParcoordsLineColorbar @@ -449,7 +449,7 @@ type ParcoordsLineColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -491,7 +491,7 @@ type ParcoordsLineColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -503,7 +503,7 @@ type ParcoordsLineColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -515,7 +515,7 @@ type ParcoordsLineColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -527,7 +527,7 @@ type ParcoordsLineColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -625,7 +625,7 @@ type ParcoordsLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -647,7 +647,7 @@ type ParcoordsLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -675,7 +675,7 @@ type ParcoordsRangefont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -697,7 +697,7 @@ type ParcoordsStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ParcoordsTickfont Sets the font for the `dimension` tick values. @@ -713,7 +713,7 @@ type ParcoordsTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/pie_gen.go b/generated/v2.31.1/graph_objects/pie_gen.go index 8cb8922..89d0f0a 100644 --- a/generated/v2.31.1/graph_objects/pie_gen.go +++ b/generated/v2.31.1/graph_objects/pie_gen.go @@ -31,7 +31,7 @@ type Pie struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Direction // default: counterclockwise @@ -65,7 +65,7 @@ type Pie struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -75,25 +75,25 @@ type Pie struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `percent` and `text`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -105,7 +105,7 @@ type Pie struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextfont // role: Object @@ -133,7 +133,7 @@ type Pie struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `labels`. - Labelssrc String `json:"labelssrc,omitempty"` + Labelssrc string `json:"labelssrc,omitempty"` // Legend // arrayOK: false @@ -145,7 +145,7 @@ type Pie struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -171,19 +171,19 @@ type Pie struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -199,13 +199,13 @@ type Pie struct { // arrayOK: true // type: number // Sets the fraction of larger radius to pull the sectors out from the center. This can be a constant to pull all slices apart from each other equally or an array to highlight one or more slices. - Pull float64 `json:"pull,omitempty"` + Pull ArrayOK[*float64] `json:"pull,omitempty"` // Pullsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `pull`. - Pullsrc String `json:"pullsrc,omitempty"` + Pullsrc string `json:"pullsrc,omitempty"` // Rotation // arrayOK: false @@ -217,7 +217,7 @@ type Pie struct { // arrayOK: false // type: string // If there are multiple pie charts that should be sized according to their totals, link them by providing a non-empty group id here shared by every trace in the same group. - Scalegroup String `json:"scalegroup,omitempty"` + Scalegroup string `json:"scalegroup,omitempty"` // Showlegend // arrayOK: false @@ -261,25 +261,25 @@ type Pie struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `percent` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Title // role: Object @@ -295,7 +295,7 @@ type Pie struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -313,7 +313,7 @@ type Pie struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `values`. - Valuessrc String `json:"valuessrc,omitempty"` + Valuessrc string `json:"valuessrc,omitempty"` // Visible // default: %!s(bool=true) @@ -357,37 +357,37 @@ type PieHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // PieHoverlabel @@ -403,31 +403,31 @@ type PieHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -437,13 +437,13 @@ type PieHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // PieInsidetextfont Sets the font used for `textinfo` lying inside the sector. @@ -453,37 +453,37 @@ type PieInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // PieLegendgrouptitleFont Sets this legend group's title font. @@ -499,7 +499,7 @@ type PieLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -519,7 +519,7 @@ type PieLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // PieMarkerLine @@ -529,25 +529,25 @@ type PieMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // PieMarkerPattern Sets the pattern within the marker. @@ -557,25 +557,25 @@ type PieMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -599,31 +599,31 @@ type PieMarkerPattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // PieMarker @@ -639,7 +639,7 @@ type PieMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `colors`. - Colorssrc String `json:"colorssrc,omitempty"` + Colorssrc string `json:"colorssrc,omitempty"` // Line // role: Object @@ -657,37 +657,37 @@ type PieOutsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // PieStream @@ -703,7 +703,7 @@ type PieStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // PieTextfont Sets the font used for `textinfo`. @@ -713,37 +713,37 @@ type PieTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // PieTitleFont Sets the font used for `title`. Note that the title's font used to be set by the now deprecated `titlefont` attribute. @@ -753,37 +753,37 @@ type PieTitleFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // PieTitle @@ -803,7 +803,7 @@ type PieTitle struct { // arrayOK: false // type: string // Sets the title of the chart. If it is empty, no title is displayed. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // PieDirection Specifies the direction at which succeeding sectors follow one another. diff --git a/generated/v2.31.1/graph_objects/plotly_gen.go b/generated/v2.31.1/graph_objects/plotly_gen.go index 4158d9f..f1b563d 100644 --- a/generated/v2.31.1/graph_objects/plotly_gen.go +++ b/generated/v2.31.1/graph_objects/plotly_gen.go @@ -71,7 +71,7 @@ type unmarshalFig struct { Config *Config `json:"config,omitempty"` } -// Bool represents a *bool value. Needed to tell the differenc between false and nil. +// Bool represents a *bool value. Needed to tell the different between false and nil. type Bool *bool var ( @@ -89,10 +89,116 @@ var ( type String interface{} // Color A string describing color. Supported formats: - hex (e.g. '#d3d3d3') - rgb (e.g. 'rgb(255, 0, 0)') - rgba (e.g. 'rgb(255, 0, 0, 0.5)') - hsl (e.g. 'hsl(0, 100%, 50%)') - hsv (e.g. 'hsv(0, 100%, 100%)') - named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)", -type Color interface{} +type Color string + +func UseColorScaleValues(in []float64) []ColorWithColorScale { + out := make([]ColorWithColorScale, len(in), len(in)) + for i := 0; i < len(in); i++ { + out[i] = ColorWithColorScale{ + Value: in[i], + } + } + return out +} + +func UseColors(in []Color) []ColorWithColorScale { + out := make([]ColorWithColorScale, len(in), len(in)) + for i := 0; i < len(in); i++ { + out[i] = ColorWithColorScale{ + Color: &in[i], + } + } + return out +} + +func UseColor(in Color) ColorWithColorScale { + return ColorWithColorScale{ + Color: &in, + } +} + +type ColorWithColorScale struct { + Color *Color + Value float64 +} + +func (c *ColorWithColorScale) MarshalJSON() ([]byte, error) { + if c.Color != nil { + return json.Marshal(c.Color) + } + return json.Marshal(c.Value) +} + +func (c *ColorWithColorScale) UnmarshalJSON(data []byte) error { + c.Color = nil + + var color Color + err := json.Unmarshal(data, &color) + if err == nil { + c.Color = &color + return nil + } + + var value float64 + err = json.Unmarshal(data, &value) + if err != nil { + return err + } + c.Value = value + return nil +} // ColorList A list of colors. Must be an {array} containing valid colors. type ColorList []Color // ColorScale A Plotly colorscale either picked by a name: (any of Greys, YlGnBu, Greens, YlOrRd, Bluered, RdBu, Reds, Blues, Picnic, Rainbow, Portland, Jet, Hot, Blackbody, Earth, Electric, Viridis, Cividis ) customized as an {array} of 2-element {arrays} where the first element is the normalized color level value (starting at *0* and ending at *1*), and the second item is a valid color string. type ColorScale interface{} + +func ArrayOKValue[T any](value T) ArrayOK[*T] { + v := &value + return ArrayOK[*T]{Value: v} +} + +func ArrayOKArray[T any](array ...T) ArrayOK[*T] { + out := make([]*T, len(array)) + for i, v := range array { + value := v + out[i] = &value + } + return ArrayOK[*T]{ + Array: out, + } +} + +// ArrayOK is a type that allows you to define a single value or an array of values, But not both. +// If Array is defined, Value will be ignored. +type ArrayOK[T any] struct { + Value T + Array []T +} + +func (arrayOK *ArrayOK[T]) MarshalJSON() ([]byte, error) { + if arrayOK.Array != nil { + return json.Marshal(arrayOK.Array) + } + return json.Marshal(arrayOK.Value) +} + +func (arrayOK *ArrayOK[T]) UnmarshalJSON(data []byte) error { + arrayOK.Array = nil + + var array []T + err := json.Unmarshal(data, &array) + if err == nil { + arrayOK.Array = array + return nil + } + + var value T + err = json.Unmarshal(data, &value) + if err != nil { + return err + } + arrayOK.Value = value + return nil +} diff --git a/generated/v2.31.1/graph_objects/pointcloud_gen.go b/generated/v2.31.1/graph_objects/pointcloud_gen.go index 99069de..415ed7e 100644 --- a/generated/v2.31.1/graph_objects/pointcloud_gen.go +++ b/generated/v2.31.1/graph_objects/pointcloud_gen.go @@ -25,7 +25,7 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo // default: all @@ -37,7 +37,7 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -53,7 +53,7 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Indices // arrayOK: false @@ -65,7 +65,7 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `indices`. - Indicessrc String `json:"indicessrc,omitempty"` + Indicessrc string `json:"indicessrc,omitempty"` // Legend // arrayOK: false @@ -77,7 +77,7 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -103,19 +103,19 @@ type Pointcloud struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -137,19 +137,19 @@ type Pointcloud struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -185,13 +185,13 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `xbounds`. - Xboundssrc String `json:"xboundssrc,omitempty"` + Xboundssrc string `json:"xboundssrc,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Xy // arrayOK: false @@ -203,7 +203,7 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `xy`. - Xysrc String `json:"xysrc,omitempty"` + Xysrc string `json:"xysrc,omitempty"` // Y // arrayOK: false @@ -227,13 +227,13 @@ type Pointcloud struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ybounds`. - Yboundssrc String `json:"yboundssrc,omitempty"` + Yboundssrc string `json:"yboundssrc,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // PointcloudHoverlabelFont Sets the font used in hover labels. @@ -243,37 +243,37 @@ type PointcloudHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // PointcloudHoverlabel @@ -289,31 +289,31 @@ type PointcloudHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -323,13 +323,13 @@ type PointcloudHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // PointcloudLegendgrouptitleFont Sets this legend group's title font. @@ -345,7 +345,7 @@ type PointcloudLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -365,7 +365,7 @@ type PointcloudLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // PointcloudMarkerBorder @@ -435,7 +435,7 @@ type PointcloudStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // PointcloudHoverlabelAlign Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines diff --git a/generated/v2.31.1/graph_objects/sankey_gen.go b/generated/v2.31.1/graph_objects/sankey_gen.go index a35494c..96f8abd 100644 --- a/generated/v2.31.1/graph_objects/sankey_gen.go +++ b/generated/v2.31.1/graph_objects/sankey_gen.go @@ -31,7 +31,7 @@ type Sankey struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Domain // role: Object @@ -57,7 +57,7 @@ type Sankey struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -89,19 +89,19 @@ type Sankey struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Node // role: Object @@ -131,7 +131,7 @@ type Sankey struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -143,13 +143,13 @@ type Sankey struct { // arrayOK: false // type: string // Sets the value formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. - Valueformat String `json:"valueformat,omitempty"` + Valueformat string `json:"valueformat,omitempty"` // Valuesuffix // arrayOK: false // type: string // Adds a unit to follow the value in the hover tooltip. Add a space if a separation is necessary from the value. - Valuesuffix String `json:"valuesuffix,omitempty"` + Valuesuffix string `json:"valuesuffix,omitempty"` // Visible // default: %!s(bool=true) @@ -193,37 +193,37 @@ type SankeyHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SankeyHoverlabel @@ -239,31 +239,31 @@ type SankeyHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -273,13 +273,13 @@ type SankeyHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // SankeyLegendgrouptitleFont Sets this legend group's title font. @@ -295,7 +295,7 @@ type SankeyLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -315,7 +315,7 @@ type SankeyLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // SankeyLinkHoverlabelFont Sets the font used in hover labels. @@ -325,37 +325,37 @@ type SankeyLinkHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SankeyLinkHoverlabel @@ -371,31 +371,31 @@ type SankeyLinkHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -405,13 +405,13 @@ type SankeyLinkHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // SankeyLinkLine @@ -421,25 +421,25 @@ type SankeyLinkLine struct { // arrayOK: true // type: color // Sets the color of the `line` around each `link`. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the `line` around each `link`. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // SankeyLink The links of the Sankey plot. @@ -455,7 +455,7 @@ type SankeyLink struct { // arrayOK: true // type: color // Sets the `link` color. It can be a single value, or an array for specifying color for each `link`. If `link.color` is omitted, then by default, a translucent grey link will be used. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorscales // It's an items array and what goes inside it's... messy... check the docs @@ -467,7 +467,7 @@ type SankeyLink struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Customdata // arrayOK: false @@ -479,19 +479,19 @@ type SankeyLink struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Hovercolor // arrayOK: true // type: color // Sets the `link` hover color. It can be a single value, or an array for specifying hover colors for each `link`. If `link.hovercolor` is omitted, then by default, links will become slightly more opaque when hovered over. - Hovercolor Color `json:"hovercolor,omitempty"` + Hovercolor ArrayOK[*Color] `json:"hovercolor,omitempty"` // Hovercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovercolor`. - Hovercolorsrc String `json:"hovercolorsrc,omitempty"` + Hovercolorsrc string `json:"hovercolorsrc,omitempty"` // Hoverinfo // default: all @@ -507,13 +507,13 @@ type SankeyLink struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Variables `source` and `target` are node objects.Finally, the template string has access to variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Label // arrayOK: false @@ -525,7 +525,7 @@ type SankeyLink struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `label`. - Labelsrc String `json:"labelsrc,omitempty"` + Labelsrc string `json:"labelsrc,omitempty"` // Line // role: Object @@ -541,7 +541,7 @@ type SankeyLink struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `source`. - Sourcesrc String `json:"sourcesrc,omitempty"` + Sourcesrc string `json:"sourcesrc,omitempty"` // Target // arrayOK: false @@ -553,7 +553,7 @@ type SankeyLink struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `target`. - Targetsrc String `json:"targetsrc,omitempty"` + Targetsrc string `json:"targetsrc,omitempty"` // Value // arrayOK: false @@ -565,7 +565,7 @@ type SankeyLink struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `value`. - Valuesrc String `json:"valuesrc,omitempty"` + Valuesrc string `json:"valuesrc,omitempty"` } // SankeyNodeHoverlabelFont Sets the font used in hover labels. @@ -575,37 +575,37 @@ type SankeyNodeHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SankeyNodeHoverlabel @@ -621,31 +621,31 @@ type SankeyNodeHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -655,13 +655,13 @@ type SankeyNodeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // SankeyNodeLine @@ -671,25 +671,25 @@ type SankeyNodeLine struct { // arrayOK: true // type: color // Sets the color of the `line` around each `node`. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the `line` around each `node`. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // SankeyNode The nodes of the Sankey plot. @@ -705,13 +705,13 @@ type SankeyNode struct { // arrayOK: true // type: color // Sets the `node` color. It can be a single value, or an array for specifying color for each `node`. If `node.color` is omitted, then the default `Plotly` color palette will be cycled through to have a variety of colors. These defaults are not fully opaque, to allow some visibility of what is beneath the node. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Customdata // arrayOK: false @@ -723,7 +723,7 @@ type SankeyNode struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Groups // arrayOK: false @@ -745,13 +745,13 @@ type SankeyNode struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Variables `sourceLinks` and `targetLinks` are arrays of link objects.Finally, the template string has access to variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Label // arrayOK: false @@ -763,7 +763,7 @@ type SankeyNode struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `label`. - Labelsrc String `json:"labelsrc,omitempty"` + Labelsrc string `json:"labelsrc,omitempty"` // Line // role: Object @@ -791,7 +791,7 @@ type SankeyNode struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -803,7 +803,7 @@ type SankeyNode struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // SankeyStream @@ -819,7 +819,7 @@ type SankeyStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // SankeyTextfont Sets the font for node labels @@ -835,7 +835,7 @@ type SankeyTextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scatter3d_gen.go b/generated/v2.31.1/graph_objects/scatter3d_gen.go index f735702..dd9bb49 100644 --- a/generated/v2.31.1/graph_objects/scatter3d_gen.go +++ b/generated/v2.31.1/graph_objects/scatter3d_gen.go @@ -31,7 +31,7 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // ErrorX // role: Object @@ -55,7 +55,7 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -65,25 +65,25 @@ type Scatter3d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets text elements associated with each (x,y,z) triplet. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y,z) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -95,7 +95,7 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -107,7 +107,7 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -137,13 +137,13 @@ type Scatter3d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: lines+markers @@ -155,7 +155,7 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -199,7 +199,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y,z) triplet. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y,z) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -215,25 +215,25 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -245,7 +245,7 @@ type Scatter3d struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -275,13 +275,13 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -299,13 +299,13 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -323,13 +323,13 @@ type Scatter3d struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `zaxis.hoverformat`. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // Scatter3dErrorX @@ -351,13 +351,13 @@ type Scatter3dErrorX struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -445,13 +445,13 @@ type Scatter3dErrorY struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -539,13 +539,13 @@ type Scatter3dErrorZ struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -615,37 +615,37 @@ type Scatter3dHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // Scatter3dHoverlabel @@ -661,31 +661,31 @@ type Scatter3dHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -695,13 +695,13 @@ type Scatter3dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // Scatter3dLegendgrouptitleFont Sets this legend group's title font. @@ -717,7 +717,7 @@ type Scatter3dLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -737,7 +737,7 @@ type Scatter3dLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Scatter3dLineColorbarTickfont Sets the color bar's tick label font @@ -753,7 +753,7 @@ type Scatter3dLineColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -775,7 +775,7 @@ type Scatter3dLineColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -801,7 +801,7 @@ type Scatter3dLineColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Scatter3dLineColorbar @@ -953,7 +953,7 @@ type Scatter3dLineColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -995,7 +995,7 @@ type Scatter3dLineColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -1007,7 +1007,7 @@ type Scatter3dLineColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -1019,7 +1019,7 @@ type Scatter3dLineColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -1031,7 +1031,7 @@ type Scatter3dLineColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -1129,7 +1129,7 @@ type Scatter3dLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1151,7 +1151,7 @@ type Scatter3dLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Dash // default: solid @@ -1191,7 +1191,7 @@ type Scatter3dMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1213,7 +1213,7 @@ type Scatter3dMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1239,7 +1239,7 @@ type Scatter3dMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // Scatter3dMarkerColorbar @@ -1391,7 +1391,7 @@ type Scatter3dMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -1433,7 +1433,7 @@ type Scatter3dMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -1445,7 +1445,7 @@ type Scatter3dMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -1457,7 +1457,7 @@ type Scatter3dMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -1469,7 +1469,7 @@ type Scatter3dMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -1567,7 +1567,7 @@ type Scatter3dMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1585,7 +1585,7 @@ type Scatter3dMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -1637,7 +1637,7 @@ type Scatter3dMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1659,7 +1659,7 @@ type Scatter3dMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Line // role: Object @@ -1687,7 +1687,7 @@ type Scatter3dMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1711,7 +1711,7 @@ type Scatter3dMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Symbol // default: circle @@ -1723,7 +1723,7 @@ type Scatter3dMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // Scatter3dProjectionX @@ -1821,7 +1821,7 @@ type Scatter3dStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // Scatter3dTextfont @@ -1831,31 +1831,31 @@ type Scatter3dTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // Scatter3dErrorXType Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. diff --git a/generated/v2.31.1/graph_objects/scatter_gen.go b/generated/v2.31.1/graph_objects/scatter_gen.go index 4f727f4..7c9367f 100644 --- a/generated/v2.31.1/graph_objects/scatter_gen.go +++ b/generated/v2.31.1/graph_objects/scatter_gen.go @@ -19,7 +19,7 @@ type Scatter struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. - Alignmentgroup String `json:"alignmentgroup,omitempty"` + Alignmentgroup string `json:"alignmentgroup,omitempty"` // Cliponaxis // arrayOK: false @@ -43,7 +43,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -101,7 +101,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -117,25 +117,25 @@ type Scatter struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -147,7 +147,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -159,7 +159,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -189,13 +189,13 @@ type Scatter struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: %!s() @@ -207,13 +207,13 @@ type Scatter struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Offsetgroup // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. - Offsetgroup String `json:"offsetgroup,omitempty"` + Offsetgroup string `json:"offsetgroup,omitempty"` // Opacity // arrayOK: false @@ -253,7 +253,7 @@ type Scatter struct { // arrayOK: false // type: string // Set several scatter traces (on the same subplot) to the same stackgroup in order to add their y values (or their x values if `orientation` is *h*). If blank or omitted this trace will not be stacked. Stacking also turns `fill` on by default, using *tonexty* (*tonextx*) if `orientation` is *h* (*v*) and sets the default `mode` to *lines* irrespective of point count. You can only stack on a numeric (linear or log) axis. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order. - Stackgroup String `json:"stackgroup,omitempty"` + Stackgroup string `json:"stackgroup,omitempty"` // Stream // role: Object @@ -263,7 +263,7 @@ type Scatter struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -279,25 +279,25 @@ type Scatter struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -309,7 +309,7 @@ type Scatter struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -355,7 +355,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -379,7 +379,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -409,7 +409,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -433,7 +433,7 @@ type Scatter struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Zorder // arrayOK: false @@ -461,13 +461,13 @@ type ScatterErrorX struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -555,13 +555,13 @@ type ScatterErrorY struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -659,25 +659,25 @@ type ScatterFillpattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -701,31 +701,31 @@ type ScatterFillpattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // ScatterHoverlabelFont Sets the font used in hover labels. @@ -735,37 +735,37 @@ type ScatterHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterHoverlabel @@ -781,31 +781,31 @@ type ScatterHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -815,13 +815,13 @@ type ScatterHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScatterLegendgrouptitleFont Sets this legend group's title font. @@ -837,7 +837,7 @@ type ScatterLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -857,7 +857,7 @@ type ScatterLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterLine @@ -867,13 +867,13 @@ type ScatterLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff float64 `json:"backoff,omitempty"` + Backoff ArrayOK[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `backoff`. - Backoffsrc String `json:"backoffsrc,omitempty"` + Backoffsrc string `json:"backoffsrc,omitempty"` // Color // arrayOK: false @@ -885,7 +885,7 @@ type ScatterLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Shape // default: linear @@ -925,7 +925,7 @@ type ScatterMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -947,7 +947,7 @@ type ScatterMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -973,7 +973,7 @@ type ScatterMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterMarkerColorbar @@ -1125,7 +1125,7 @@ type ScatterMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -1167,7 +1167,7 @@ type ScatterMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -1179,7 +1179,7 @@ type ScatterMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -1191,7 +1191,7 @@ type ScatterMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -1203,7 +1203,7 @@ type ScatterMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -1271,13 +1271,13 @@ type ScatterMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Type // default: none @@ -1289,7 +1289,7 @@ type ScatterMarkerGradient struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `type`. - Typesrc String `json:"typesrc,omitempty"` + Typesrc string `json:"typesrc,omitempty"` } // ScatterMarkerLine @@ -1329,7 +1329,7 @@ type ScatterMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1347,7 +1347,7 @@ type ScatterMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -1359,13 +1359,13 @@ type ScatterMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScatterMarker @@ -1375,7 +1375,7 @@ type ScatterMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref // default: up @@ -1387,7 +1387,7 @@ type ScatterMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -1423,7 +1423,7 @@ type ScatterMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1445,7 +1445,7 @@ type ScatterMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Gradient // role: Object @@ -1465,13 +1465,13 @@ type ScatterMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1489,7 +1489,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1513,19 +1513,19 @@ type ScatterMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Standoff // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff float64 `json:"standoff,omitempty"` + Standoff ArrayOK[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `standoff`. - Standoffsrc String `json:"standoffsrc,omitempty"` + Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol // default: circle @@ -1537,7 +1537,7 @@ type ScatterMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScatterSelectedMarker @@ -1597,7 +1597,7 @@ type ScatterStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScatterTextfont Sets the text font. @@ -1607,37 +1607,37 @@ type ScatterTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterUnselectedMarker diff --git a/generated/v2.31.1/graph_objects/scattercarpet_gen.go b/generated/v2.31.1/graph_objects/scattercarpet_gen.go index 3b881b0..2831030 100644 --- a/generated/v2.31.1/graph_objects/scattercarpet_gen.go +++ b/generated/v2.31.1/graph_objects/scattercarpet_gen.go @@ -25,7 +25,7 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `a`. - Asrc String `json:"asrc,omitempty"` + Asrc string `json:"asrc,omitempty"` // B // arrayOK: false @@ -37,13 +37,13 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `b`. - Bsrc String `json:"bsrc,omitempty"` + Bsrc string `json:"bsrc,omitempty"` // Carpet // arrayOK: false // type: string // An identifier for this carpet, so that `scattercarpet` and `contourcarpet` traces can specify a carpet plot on which they lie - Carpet String `json:"carpet,omitempty"` + Carpet string `json:"carpet,omitempty"` // Connectgaps // arrayOK: false @@ -61,7 +61,7 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Fill // default: none @@ -85,7 +85,7 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -101,25 +101,25 @@ type Scattercarpet struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -131,7 +131,7 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -143,7 +143,7 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -173,13 +173,13 @@ type Scattercarpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: markers @@ -191,7 +191,7 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -223,7 +223,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Sets text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -239,25 +239,25 @@ type Scattercarpet struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `a`, `b` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -269,7 +269,7 @@ type Scattercarpet struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -313,37 +313,37 @@ type ScattercarpetHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScattercarpetHoverlabel @@ -359,31 +359,31 @@ type ScattercarpetHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -393,13 +393,13 @@ type ScattercarpetHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScattercarpetLegendgrouptitleFont Sets this legend group's title font. @@ -415,7 +415,7 @@ type ScattercarpetLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -435,7 +435,7 @@ type ScattercarpetLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattercarpetLine @@ -445,13 +445,13 @@ type ScattercarpetLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff float64 `json:"backoff,omitempty"` + Backoff ArrayOK[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `backoff`. - Backoffsrc String `json:"backoffsrc,omitempty"` + Backoffsrc string `json:"backoffsrc,omitempty"` // Color // arrayOK: false @@ -463,7 +463,7 @@ type ScattercarpetLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Shape // default: linear @@ -497,7 +497,7 @@ type ScattercarpetMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -519,7 +519,7 @@ type ScattercarpetMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -545,7 +545,7 @@ type ScattercarpetMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattercarpetMarkerColorbar @@ -697,7 +697,7 @@ type ScattercarpetMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -739,7 +739,7 @@ type ScattercarpetMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -751,7 +751,7 @@ type ScattercarpetMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -763,7 +763,7 @@ type ScattercarpetMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -775,7 +775,7 @@ type ScattercarpetMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -843,13 +843,13 @@ type ScattercarpetMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Type // default: none @@ -861,7 +861,7 @@ type ScattercarpetMarkerGradient struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `type`. - Typesrc String `json:"typesrc,omitempty"` + Typesrc string `json:"typesrc,omitempty"` } // ScattercarpetMarkerLine @@ -901,7 +901,7 @@ type ScattercarpetMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -919,7 +919,7 @@ type ScattercarpetMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -931,13 +931,13 @@ type ScattercarpetMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScattercarpetMarker @@ -947,7 +947,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref // default: up @@ -959,7 +959,7 @@ type ScattercarpetMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -995,7 +995,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1017,7 +1017,7 @@ type ScattercarpetMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Gradient // role: Object @@ -1037,13 +1037,13 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1061,7 +1061,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1085,19 +1085,19 @@ type ScattercarpetMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Standoff // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff float64 `json:"standoff,omitempty"` + Standoff ArrayOK[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `standoff`. - Standoffsrc String `json:"standoffsrc,omitempty"` + Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol // default: circle @@ -1109,7 +1109,7 @@ type ScattercarpetMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScattercarpetSelectedMarker @@ -1169,7 +1169,7 @@ type ScattercarpetStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScattercarpetTextfont Sets the text font. @@ -1179,37 +1179,37 @@ type ScattercarpetTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScattercarpetUnselectedMarker diff --git a/generated/v2.31.1/graph_objects/scattergeo_gen.go b/generated/v2.31.1/graph_objects/scattergeo_gen.go index f9961d7..e671cf8 100644 --- a/generated/v2.31.1/graph_objects/scattergeo_gen.go +++ b/generated/v2.31.1/graph_objects/scattergeo_gen.go @@ -31,13 +31,13 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Featureidkey // arrayOK: false // type: string // Sets the key in GeoJSON features which is used as id to match the items included in the `locations` array. Only has an effect when `geojson` is set. Support nested property, for example *properties.name*. - Featureidkey String `json:"featureidkey,omitempty"` + Featureidkey string `json:"featureidkey,omitempty"` // Fill // default: none @@ -73,7 +73,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -83,25 +83,25 @@ type Scattergeo struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair or item in `locations`. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) or `locations` coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -113,7 +113,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Lat // arrayOK: false @@ -125,7 +125,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `lat`. - Latsrc String `json:"latsrc,omitempty"` + Latsrc string `json:"latsrc,omitempty"` // Legend // arrayOK: false @@ -137,7 +137,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -175,7 +175,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Lon // arrayOK: false @@ -187,7 +187,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `lon`. - Lonsrc String `json:"lonsrc,omitempty"` + Lonsrc string `json:"lonsrc,omitempty"` // Marker // role: Object @@ -197,13 +197,13 @@ type Scattergeo struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: markers @@ -215,7 +215,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -247,7 +247,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair or item in `locations`. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) or `locations` coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -263,25 +263,25 @@ type Scattergeo struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `lat`, `lon`, `location` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -293,7 +293,7 @@ type Scattergeo struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -319,37 +319,37 @@ type ScattergeoHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScattergeoHoverlabel @@ -365,31 +365,31 @@ type ScattergeoHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -399,13 +399,13 @@ type ScattergeoHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScattergeoLegendgrouptitleFont Sets this legend group's title font. @@ -421,7 +421,7 @@ type ScattergeoLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -441,7 +441,7 @@ type ScattergeoLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattergeoLine @@ -457,7 +457,7 @@ type ScattergeoLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -479,7 +479,7 @@ type ScattergeoMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -501,7 +501,7 @@ type ScattergeoMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -527,7 +527,7 @@ type ScattergeoMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattergeoMarkerColorbar @@ -679,7 +679,7 @@ type ScattergeoMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -721,7 +721,7 @@ type ScattergeoMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -733,7 +733,7 @@ type ScattergeoMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -745,7 +745,7 @@ type ScattergeoMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -757,7 +757,7 @@ type ScattergeoMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -825,13 +825,13 @@ type ScattergeoMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Type // default: none @@ -843,7 +843,7 @@ type ScattergeoMarkerGradient struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `type`. - Typesrc String `json:"typesrc,omitempty"` + Typesrc string `json:"typesrc,omitempty"` } // ScattergeoMarkerLine @@ -883,7 +883,7 @@ type ScattergeoMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -901,7 +901,7 @@ type ScattergeoMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -913,13 +913,13 @@ type ScattergeoMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScattergeoMarker @@ -929,7 +929,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref // default: up @@ -941,7 +941,7 @@ type ScattergeoMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -977,7 +977,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -999,7 +999,7 @@ type ScattergeoMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Gradient // role: Object @@ -1013,13 +1013,13 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1037,7 +1037,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1061,19 +1061,19 @@ type ScattergeoMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Standoff // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff float64 `json:"standoff,omitempty"` + Standoff ArrayOK[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `standoff`. - Standoffsrc String `json:"standoffsrc,omitempty"` + Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol // default: circle @@ -1085,7 +1085,7 @@ type ScattergeoMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScattergeoSelectedMarker @@ -1145,7 +1145,7 @@ type ScattergeoStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScattergeoTextfont Sets the text font. @@ -1155,37 +1155,37 @@ type ScattergeoTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScattergeoUnselectedMarker diff --git a/generated/v2.31.1/graph_objects/scattergl_gen.go b/generated/v2.31.1/graph_objects/scattergl_gen.go index 4dfa5ef..bbe038b 100644 --- a/generated/v2.31.1/graph_objects/scattergl_gen.go +++ b/generated/v2.31.1/graph_objects/scattergl_gen.go @@ -31,7 +31,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dx // arrayOK: false @@ -75,7 +75,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -85,25 +85,25 @@ type Scattergl struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -115,7 +115,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -127,7 +127,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -157,13 +157,13 @@ type Scattergl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: %!s() @@ -175,7 +175,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -207,7 +207,7 @@ type Scattergl struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -223,25 +223,25 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -253,7 +253,7 @@ type Scattergl struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -299,7 +299,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -323,7 +323,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -353,7 +353,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -377,7 +377,7 @@ type Scattergl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` } // ScatterglErrorX @@ -399,13 +399,13 @@ type ScatterglErrorX struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -493,13 +493,13 @@ type ScatterglErrorY struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `arrayminus`. - Arrayminussrc String `json:"arrayminussrc,omitempty"` + Arrayminussrc string `json:"arrayminussrc,omitempty"` // Arraysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `array`. - Arraysrc String `json:"arraysrc,omitempty"` + Arraysrc string `json:"arraysrc,omitempty"` // Color // arrayOK: false @@ -569,37 +569,37 @@ type ScatterglHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterglHoverlabel @@ -615,31 +615,31 @@ type ScatterglHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -649,13 +649,13 @@ type ScatterglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScatterglLegendgrouptitleFont Sets this legend group's title font. @@ -671,7 +671,7 @@ type ScatterglLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -691,7 +691,7 @@ type ScatterglLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterglLine @@ -735,7 +735,7 @@ type ScatterglMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -757,7 +757,7 @@ type ScatterglMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -783,7 +783,7 @@ type ScatterglMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterglMarkerColorbar @@ -935,7 +935,7 @@ type ScatterglMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -977,7 +977,7 @@ type ScatterglMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -989,7 +989,7 @@ type ScatterglMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -1001,7 +1001,7 @@ type ScatterglMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -1013,7 +1013,7 @@ type ScatterglMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -1111,7 +1111,7 @@ type ScatterglMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1129,7 +1129,7 @@ type ScatterglMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -1141,13 +1141,13 @@ type ScatterglMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScatterglMarker @@ -1157,13 +1157,13 @@ type ScatterglMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -1199,7 +1199,7 @@ type ScatterglMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1221,7 +1221,7 @@ type ScatterglMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Line // role: Object @@ -1231,13 +1231,13 @@ type ScatterglMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1255,7 +1255,7 @@ type ScatterglMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1279,7 +1279,7 @@ type ScatterglMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Symbol // default: circle @@ -1291,7 +1291,7 @@ type ScatterglMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScatterglSelectedMarker @@ -1351,7 +1351,7 @@ type ScatterglStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScatterglTextfont Sets the text font. @@ -1361,37 +1361,37 @@ type ScatterglTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterglUnselectedMarker diff --git a/generated/v2.31.1/graph_objects/scattermapbox_gen.go b/generated/v2.31.1/graph_objects/scattermapbox_gen.go index 4afd742..8576987 100644 --- a/generated/v2.31.1/graph_objects/scattermapbox_gen.go +++ b/generated/v2.31.1/graph_objects/scattermapbox_gen.go @@ -19,7 +19,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Determines if this scattermapbox trace's layers are to be inserted before the layer with the specified ID. By default, scattermapbox layers are inserted above all the base layers. To place the scattermapbox layers above every other layer, set `below` to *''*. - Below String `json:"below,omitempty"` + Below string `json:"below,omitempty"` // Cluster // role: Object @@ -41,7 +41,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Fill // default: none @@ -65,7 +65,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -75,25 +75,25 @@ type Scattermapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -105,7 +105,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Lat // arrayOK: false @@ -117,7 +117,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `lat`. - Latsrc String `json:"latsrc,omitempty"` + Latsrc string `json:"latsrc,omitempty"` // Legend // arrayOK: false @@ -129,7 +129,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -161,7 +161,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `lon`. - Lonsrc String `json:"lonsrc,omitempty"` + Lonsrc string `json:"lonsrc,omitempty"` // Marker // role: Object @@ -171,13 +171,13 @@ type Scattermapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: markers @@ -189,7 +189,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -227,7 +227,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -243,19 +243,19 @@ type Scattermapbox struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `lat`, `lon` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -267,7 +267,7 @@ type Scattermapbox struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -293,13 +293,13 @@ type ScattermapboxCluster struct { // arrayOK: true // type: color // Sets the color for each cluster step. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Enabled // arrayOK: false @@ -317,37 +317,37 @@ type ScattermapboxCluster struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size for each cluster step. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Step // arrayOK: true // type: number // Sets how many points it takes to create a cluster or advance to the next cluster step. Use this in conjunction with arrays for `size` and / or `color`. If an integer, steps start at multiples of this number. If an array, each step extends from the given value until one less than the next value. - Step float64 `json:"step,omitempty"` + Step ArrayOK[*float64] `json:"step,omitempty"` // Stepsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `step`. - Stepsrc String `json:"stepsrc,omitempty"` + Stepsrc string `json:"stepsrc,omitempty"` } // ScattermapboxHoverlabelFont Sets the font used in hover labels. @@ -357,37 +357,37 @@ type ScattermapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScattermapboxHoverlabel @@ -403,31 +403,31 @@ type ScattermapboxHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -437,13 +437,13 @@ type ScattermapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScattermapboxLegendgrouptitleFont Sets this legend group's title font. @@ -459,7 +459,7 @@ type ScattermapboxLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -479,7 +479,7 @@ type ScattermapboxLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattermapboxLine @@ -511,7 +511,7 @@ type ScattermapboxMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -533,7 +533,7 @@ type ScattermapboxMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -559,7 +559,7 @@ type ScattermapboxMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattermapboxMarkerColorbar @@ -711,7 +711,7 @@ type ScattermapboxMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -753,7 +753,7 @@ type ScattermapboxMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -765,7 +765,7 @@ type ScattermapboxMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -777,7 +777,7 @@ type ScattermapboxMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -789,7 +789,7 @@ type ScattermapboxMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -863,13 +863,13 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker orientation from true North, in degrees clockwise. When using the *auto* default, no rotation would be applied in perspective views which is different from using a zero angle. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -905,7 +905,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -927,19 +927,19 @@ type ScattermapboxMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Opacity // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -957,7 +957,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -981,19 +981,19 @@ type ScattermapboxMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Symbol // arrayOK: true // type: string // Sets the marker symbol. Full list: https://www.mapbox.com/maki-icons/ Note that the array `marker.color` and `marker.size` are only available for *circle* symbols. - Symbol String `json:"symbol,omitempty"` + Symbol ArrayOK[*string] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScattermapboxSelectedMarker @@ -1039,7 +1039,7 @@ type ScattermapboxStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScattermapboxTextfont Sets the icon text font (color=mapbox.layer.paint.text-color, size=mapbox.layer.layout.text-size). Has an effect only when `type` is set to *symbol*. @@ -1055,7 +1055,7 @@ type ScattermapboxTextfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scatterpolar_gen.go b/generated/v2.31.1/graph_objects/scatterpolar_gen.go index 4f47ab3..38ca335 100644 --- a/generated/v2.31.1/graph_objects/scatterpolar_gen.go +++ b/generated/v2.31.1/graph_objects/scatterpolar_gen.go @@ -37,7 +37,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dr // arrayOK: false @@ -73,7 +73,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -89,25 +89,25 @@ type Scatterpolar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -119,7 +119,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -131,7 +131,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -161,13 +161,13 @@ type Scatterpolar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: %!s() @@ -179,7 +179,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -203,7 +203,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `r`. - Rsrc String `json:"rsrc,omitempty"` + Rsrc string `json:"rsrc,omitempty"` // Selected // role: Object @@ -235,7 +235,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -251,25 +251,25 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `r`, `theta` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Theta // arrayOK: false @@ -287,7 +287,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `theta`. - Thetasrc String `json:"thetasrc,omitempty"` + Thetasrc string `json:"thetasrc,omitempty"` // Thetaunit // default: degrees @@ -305,7 +305,7 @@ type Scatterpolar struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -331,37 +331,37 @@ type ScatterpolarHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterpolarHoverlabel @@ -377,31 +377,31 @@ type ScatterpolarHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -411,13 +411,13 @@ type ScatterpolarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScatterpolarLegendgrouptitleFont Sets this legend group's title font. @@ -433,7 +433,7 @@ type ScatterpolarLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -453,7 +453,7 @@ type ScatterpolarLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterpolarLine @@ -463,13 +463,13 @@ type ScatterpolarLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff float64 `json:"backoff,omitempty"` + Backoff ArrayOK[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `backoff`. - Backoffsrc String `json:"backoffsrc,omitempty"` + Backoffsrc string `json:"backoffsrc,omitempty"` // Color // arrayOK: false @@ -481,7 +481,7 @@ type ScatterpolarLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Shape // default: linear @@ -515,7 +515,7 @@ type ScatterpolarMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -537,7 +537,7 @@ type ScatterpolarMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -563,7 +563,7 @@ type ScatterpolarMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterpolarMarkerColorbar @@ -715,7 +715,7 @@ type ScatterpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -757,7 +757,7 @@ type ScatterpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -769,7 +769,7 @@ type ScatterpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -781,7 +781,7 @@ type ScatterpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -793,7 +793,7 @@ type ScatterpolarMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -861,13 +861,13 @@ type ScatterpolarMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Type // default: none @@ -879,7 +879,7 @@ type ScatterpolarMarkerGradient struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `type`. - Typesrc String `json:"typesrc,omitempty"` + Typesrc string `json:"typesrc,omitempty"` } // ScatterpolarMarkerLine @@ -919,7 +919,7 @@ type ScatterpolarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -937,7 +937,7 @@ type ScatterpolarMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -949,13 +949,13 @@ type ScatterpolarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScatterpolarMarker @@ -965,7 +965,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref // default: up @@ -977,7 +977,7 @@ type ScatterpolarMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -1013,7 +1013,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1035,7 +1035,7 @@ type ScatterpolarMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Gradient // role: Object @@ -1055,13 +1055,13 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1079,7 +1079,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1103,19 +1103,19 @@ type ScatterpolarMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Standoff // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff float64 `json:"standoff,omitempty"` + Standoff ArrayOK[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `standoff`. - Standoffsrc String `json:"standoffsrc,omitempty"` + Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol // default: circle @@ -1127,7 +1127,7 @@ type ScatterpolarMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScatterpolarSelectedMarker @@ -1187,7 +1187,7 @@ type ScatterpolarStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScatterpolarTextfont Sets the text font. @@ -1197,37 +1197,37 @@ type ScatterpolarTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterpolarUnselectedMarker diff --git a/generated/v2.31.1/graph_objects/scatterpolargl_gen.go b/generated/v2.31.1/graph_objects/scatterpolargl_gen.go index 67d3515..dde8a85 100644 --- a/generated/v2.31.1/graph_objects/scatterpolargl_gen.go +++ b/generated/v2.31.1/graph_objects/scatterpolargl_gen.go @@ -31,7 +31,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Dr // arrayOK: false @@ -67,7 +67,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -77,25 +77,25 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -107,7 +107,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -119,7 +119,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -149,13 +149,13 @@ type Scatterpolargl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: %!s() @@ -167,7 +167,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -191,7 +191,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `r`. - Rsrc String `json:"rsrc,omitempty"` + Rsrc string `json:"rsrc,omitempty"` // Selected // role: Object @@ -223,7 +223,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -239,25 +239,25 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `r`, `theta` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Theta // arrayOK: false @@ -275,7 +275,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `theta`. - Thetasrc String `json:"thetasrc,omitempty"` + Thetasrc string `json:"thetasrc,omitempty"` // Thetaunit // default: degrees @@ -293,7 +293,7 @@ type Scatterpolargl struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -319,37 +319,37 @@ type ScatterpolarglHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterpolarglHoverlabel @@ -365,31 +365,31 @@ type ScatterpolarglHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -399,13 +399,13 @@ type ScatterpolarglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScatterpolarglLegendgrouptitleFont Sets this legend group's title font. @@ -421,7 +421,7 @@ type ScatterpolarglLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -441,7 +441,7 @@ type ScatterpolarglLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterpolarglLine @@ -479,7 +479,7 @@ type ScatterpolarglMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -501,7 +501,7 @@ type ScatterpolarglMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -527,7 +527,7 @@ type ScatterpolarglMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterpolarglMarkerColorbar @@ -679,7 +679,7 @@ type ScatterpolarglMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -721,7 +721,7 @@ type ScatterpolarglMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -733,7 +733,7 @@ type ScatterpolarglMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -745,7 +745,7 @@ type ScatterpolarglMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -757,7 +757,7 @@ type ScatterpolarglMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -855,7 +855,7 @@ type ScatterpolarglMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -873,7 +873,7 @@ type ScatterpolarglMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -885,13 +885,13 @@ type ScatterpolarglMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScatterpolarglMarker @@ -901,13 +901,13 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -943,7 +943,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -965,7 +965,7 @@ type ScatterpolarglMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Line // role: Object @@ -975,13 +975,13 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -999,7 +999,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1023,7 +1023,7 @@ type ScatterpolarglMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Symbol // default: circle @@ -1035,7 +1035,7 @@ type ScatterpolarglMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScatterpolarglSelectedMarker @@ -1095,7 +1095,7 @@ type ScatterpolarglStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScatterpolarglTextfont Sets the text font. @@ -1105,37 +1105,37 @@ type ScatterpolarglTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterpolarglUnselectedMarker diff --git a/generated/v2.31.1/graph_objects/scattersmith_gen.go b/generated/v2.31.1/graph_objects/scattersmith_gen.go index 1d98f00..94c4698 100644 --- a/generated/v2.31.1/graph_objects/scattersmith_gen.go +++ b/generated/v2.31.1/graph_objects/scattersmith_gen.go @@ -37,7 +37,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Fill // default: none @@ -61,7 +61,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -77,25 +77,25 @@ type Scattersmith struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -107,7 +107,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Imag // arrayOK: false @@ -119,7 +119,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `imag`. - Imagsrc String `json:"imagsrc,omitempty"` + Imagsrc string `json:"imagsrc,omitempty"` // Legend // arrayOK: false @@ -131,7 +131,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -161,13 +161,13 @@ type Scattersmith struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: %!s() @@ -179,7 +179,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -197,7 +197,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `real`. - Realsrc String `json:"realsrc,omitempty"` + Realsrc string `json:"realsrc,omitempty"` // Selected // role: Object @@ -229,7 +229,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -245,25 +245,25 @@ type Scattersmith struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `real`, `imag` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -275,7 +275,7 @@ type Scattersmith struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -301,37 +301,37 @@ type ScattersmithHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScattersmithHoverlabel @@ -347,31 +347,31 @@ type ScattersmithHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -381,13 +381,13 @@ type ScattersmithHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScattersmithLegendgrouptitleFont Sets this legend group's title font. @@ -403,7 +403,7 @@ type ScattersmithLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -423,7 +423,7 @@ type ScattersmithLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattersmithLine @@ -433,13 +433,13 @@ type ScattersmithLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff float64 `json:"backoff,omitempty"` + Backoff ArrayOK[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `backoff`. - Backoffsrc String `json:"backoffsrc,omitempty"` + Backoffsrc string `json:"backoffsrc,omitempty"` // Color // arrayOK: false @@ -451,7 +451,7 @@ type ScattersmithLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Shape // default: linear @@ -485,7 +485,7 @@ type ScattersmithMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -507,7 +507,7 @@ type ScattersmithMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -533,7 +533,7 @@ type ScattersmithMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScattersmithMarkerColorbar @@ -685,7 +685,7 @@ type ScattersmithMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -727,7 +727,7 @@ type ScattersmithMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -739,7 +739,7 @@ type ScattersmithMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -751,7 +751,7 @@ type ScattersmithMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -763,7 +763,7 @@ type ScattersmithMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -831,13 +831,13 @@ type ScattersmithMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Type // default: none @@ -849,7 +849,7 @@ type ScattersmithMarkerGradient struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `type`. - Typesrc String `json:"typesrc,omitempty"` + Typesrc string `json:"typesrc,omitempty"` } // ScattersmithMarkerLine @@ -889,7 +889,7 @@ type ScattersmithMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -907,7 +907,7 @@ type ScattersmithMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -919,13 +919,13 @@ type ScattersmithMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScattersmithMarker @@ -935,7 +935,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref // default: up @@ -947,7 +947,7 @@ type ScattersmithMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -983,7 +983,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1005,7 +1005,7 @@ type ScattersmithMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Gradient // role: Object @@ -1025,13 +1025,13 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1049,7 +1049,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1073,19 +1073,19 @@ type ScattersmithMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Standoff // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff float64 `json:"standoff,omitempty"` + Standoff ArrayOK[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `standoff`. - Standoffsrc String `json:"standoffsrc,omitempty"` + Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol // default: circle @@ -1097,7 +1097,7 @@ type ScattersmithMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScattersmithSelectedMarker @@ -1157,7 +1157,7 @@ type ScattersmithStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScattersmithTextfont Sets the text font. @@ -1167,37 +1167,37 @@ type ScattersmithTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScattersmithUnselectedMarker diff --git a/generated/v2.31.1/graph_objects/scatterternary_gen.go b/generated/v2.31.1/graph_objects/scatterternary_gen.go index 51507ac..ff03e3f 100644 --- a/generated/v2.31.1/graph_objects/scatterternary_gen.go +++ b/generated/v2.31.1/graph_objects/scatterternary_gen.go @@ -25,7 +25,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `a`. - Asrc String `json:"asrc,omitempty"` + Asrc string `json:"asrc,omitempty"` // B // arrayOK: false @@ -37,7 +37,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `b`. - Bsrc String `json:"bsrc,omitempty"` + Bsrc string `json:"bsrc,omitempty"` // C // arrayOK: false @@ -61,7 +61,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `c`. - Csrc String `json:"csrc,omitempty"` + Csrc string `json:"csrc,omitempty"` // Customdata // arrayOK: false @@ -73,7 +73,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Fill // default: none @@ -97,7 +97,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -113,25 +113,25 @@ type Scatterternary struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (a,b,c) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b,c). To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -143,7 +143,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -155,7 +155,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -185,13 +185,13 @@ type Scatterternary struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Mode // default: markers @@ -203,7 +203,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -247,7 +247,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Sets text elements associated with each (a,b,c) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b,c). If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textfont // role: Object @@ -263,25 +263,25 @@ type Scatterternary struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `a`, `b`, `c` and `text`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -293,7 +293,7 @@ type Scatterternary struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -319,37 +319,37 @@ type ScatterternaryHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterternaryHoverlabel @@ -365,31 +365,31 @@ type ScatterternaryHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -399,13 +399,13 @@ type ScatterternaryHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ScatterternaryLegendgrouptitleFont Sets this legend group's title font. @@ -421,7 +421,7 @@ type ScatterternaryLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -441,7 +441,7 @@ type ScatterternaryLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterternaryLine @@ -451,13 +451,13 @@ type ScatterternaryLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff float64 `json:"backoff,omitempty"` + Backoff ArrayOK[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `backoff`. - Backoffsrc String `json:"backoffsrc,omitempty"` + Backoffsrc string `json:"backoffsrc,omitempty"` // Color // arrayOK: false @@ -469,7 +469,7 @@ type ScatterternaryLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Shape // default: linear @@ -503,7 +503,7 @@ type ScatterternaryMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -525,7 +525,7 @@ type ScatterternaryMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -551,7 +551,7 @@ type ScatterternaryMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ScatterternaryMarkerColorbar @@ -703,7 +703,7 @@ type ScatterternaryMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -745,7 +745,7 @@ type ScatterternaryMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -757,7 +757,7 @@ type ScatterternaryMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -769,7 +769,7 @@ type ScatterternaryMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -781,7 +781,7 @@ type ScatterternaryMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -849,13 +849,13 @@ type ScatterternaryMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Type // default: none @@ -867,7 +867,7 @@ type ScatterternaryMarkerGradient struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `type`. - Typesrc String `json:"typesrc,omitempty"` + Typesrc string `json:"typesrc,omitempty"` } // ScatterternaryMarkerLine @@ -907,7 +907,7 @@ type ScatterternaryMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -925,7 +925,7 @@ type ScatterternaryMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -937,13 +937,13 @@ type ScatterternaryMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // ScatterternaryMarker @@ -953,7 +953,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref // default: up @@ -965,7 +965,7 @@ type ScatterternaryMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -1001,7 +1001,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1023,7 +1023,7 @@ type ScatterternaryMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Gradient // role: Object @@ -1043,13 +1043,13 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -1067,7 +1067,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1091,19 +1091,19 @@ type ScatterternaryMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Standoff // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff float64 `json:"standoff,omitempty"` + Standoff ArrayOK[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `standoff`. - Standoffsrc String `json:"standoffsrc,omitempty"` + Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol // default: circle @@ -1115,7 +1115,7 @@ type ScatterternaryMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // ScatterternarySelectedMarker @@ -1175,7 +1175,7 @@ type ScatterternaryStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ScatterternaryTextfont Sets the text font. @@ -1185,37 +1185,37 @@ type ScatterternaryTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ScatterternaryUnselectedMarker diff --git a/generated/v2.31.1/graph_objects/splom_gen.go b/generated/v2.31.1/graph_objects/splom_gen.go index 50d4c58..89c37bb 100644 --- a/generated/v2.31.1/graph_objects/splom_gen.go +++ b/generated/v2.31.1/graph_objects/splom_gen.go @@ -25,7 +25,7 @@ type Splom struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Diagonal // role: Object @@ -47,7 +47,7 @@ type Splom struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -57,25 +57,25 @@ type Splom struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -87,7 +87,7 @@ type Splom struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -99,7 +99,7 @@ type Splom struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -125,19 +125,19 @@ type Splom struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -181,13 +181,13 @@ type Splom struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair to appear on hover. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -199,7 +199,7 @@ type Splom struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -227,7 +227,7 @@ type Splom struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Yaxes // arrayOK: false @@ -239,7 +239,7 @@ type Splom struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` } // SplomDiagonal @@ -259,37 +259,37 @@ type SplomHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SplomHoverlabel @@ -305,31 +305,31 @@ type SplomHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -339,13 +339,13 @@ type SplomHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // SplomLegendgrouptitleFont Sets this legend group's title font. @@ -361,7 +361,7 @@ type SplomLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -381,7 +381,7 @@ type SplomLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // SplomMarkerColorbarTickfont Sets the color bar's tick label font @@ -397,7 +397,7 @@ type SplomMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -419,7 +419,7 @@ type SplomMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -445,7 +445,7 @@ type SplomMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // SplomMarkerColorbar @@ -597,7 +597,7 @@ type SplomMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -639,7 +639,7 @@ type SplomMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -651,7 +651,7 @@ type SplomMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -663,7 +663,7 @@ type SplomMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -675,7 +675,7 @@ type SplomMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -773,7 +773,7 @@ type SplomMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -791,7 +791,7 @@ type SplomMarkerLine struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Reversescale // arrayOK: false @@ -803,13 +803,13 @@ type SplomMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // SplomMarker @@ -819,13 +819,13 @@ type SplomMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle float64 `json:"angle,omitempty"` + Angle ArrayOK[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `angle`. - Anglesrc String `json:"anglesrc,omitempty"` + Anglesrc string `json:"anglesrc,omitempty"` // Autocolorscale // arrayOK: false @@ -861,7 +861,7 @@ type SplomMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color Color `json:"color,omitempty"` + Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -883,7 +883,7 @@ type SplomMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Line // role: Object @@ -893,13 +893,13 @@ type SplomMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity float64 `json:"opacity,omitempty"` + Opacity ArrayOK[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `opacity`. - Opacitysrc String `json:"opacitysrc,omitempty"` + Opacitysrc string `json:"opacitysrc,omitempty"` // Reversescale // arrayOK: false @@ -917,7 +917,7 @@ type SplomMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -941,7 +941,7 @@ type SplomMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Symbol // default: circle @@ -953,7 +953,7 @@ type SplomMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `symbol`. - Symbolsrc String `json:"symbolsrc,omitempty"` + Symbolsrc string `json:"symbolsrc,omitempty"` } // SplomSelectedMarker @@ -999,7 +999,7 @@ type SplomStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // SplomUnselectedMarker diff --git a/generated/v2.31.1/graph_objects/streamtube_gen.go b/generated/v2.31.1/graph_objects/streamtube_gen.go index 593e73a..3968863 100644 --- a/generated/v2.31.1/graph_objects/streamtube_gen.go +++ b/generated/v2.31.1/graph_objects/streamtube_gen.go @@ -71,7 +71,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo // default: x+y+z+norm+text+name @@ -83,7 +83,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -93,19 +93,19 @@ type Streamtube struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `tubex`, `tubey`, `tubez`, `tubeu`, `tubev`, `tubew`, `norm` and `divergence`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: false // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext string `json:"hovertext,omitempty"` // Ids // arrayOK: false @@ -117,7 +117,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -129,7 +129,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -165,19 +165,19 @@ type Streamtube struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -227,7 +227,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets a text element associated with this trace. If trace `hoverinfo` contains a *text* flag, this text element will be seen in all hover labels. Note that streamtube traces do not support array `text` values. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` // U // arrayOK: false @@ -239,13 +239,13 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `u` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Uhoverformat String `json:"uhoverformat,omitempty"` + Uhoverformat string `json:"uhoverformat,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -257,7 +257,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `u`. - Usrc String `json:"usrc,omitempty"` + Usrc string `json:"usrc,omitempty"` // V // arrayOK: false @@ -269,7 +269,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `v` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Vhoverformat String `json:"vhoverformat,omitempty"` + Vhoverformat string `json:"vhoverformat,omitempty"` // Visible // default: %!s(bool=true) @@ -281,7 +281,7 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `v`. - Vsrc String `json:"vsrc,omitempty"` + Vsrc string `json:"vsrc,omitempty"` // W // arrayOK: false @@ -293,13 +293,13 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `w` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Whoverformat String `json:"whoverformat,omitempty"` + Whoverformat string `json:"whoverformat,omitempty"` // Wsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `w`. - Wsrc String `json:"wsrc,omitempty"` + Wsrc string `json:"wsrc,omitempty"` // X // arrayOK: false @@ -311,13 +311,13 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -329,13 +329,13 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -347,13 +347,13 @@ type Streamtube struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `zaxis.hoverformat`. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // StreamtubeColorbarTickfont Sets the color bar's tick label font @@ -369,7 +369,7 @@ type StreamtubeColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -391,7 +391,7 @@ type StreamtubeColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -417,7 +417,7 @@ type StreamtubeColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // StreamtubeColorbar @@ -569,7 +569,7 @@ type StreamtubeColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -611,7 +611,7 @@ type StreamtubeColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -623,7 +623,7 @@ type StreamtubeColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -635,7 +635,7 @@ type StreamtubeColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -647,7 +647,7 @@ type StreamtubeColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -715,37 +715,37 @@ type StreamtubeHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // StreamtubeHoverlabel @@ -761,31 +761,31 @@ type StreamtubeHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -795,13 +795,13 @@ type StreamtubeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // StreamtubeLegendgrouptitleFont Sets this legend group's title font. @@ -817,7 +817,7 @@ type StreamtubeLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -837,7 +837,7 @@ type StreamtubeLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // StreamtubeLighting @@ -921,7 +921,7 @@ type StreamtubeStarts struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -933,7 +933,7 @@ type StreamtubeStarts struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -945,7 +945,7 @@ type StreamtubeStarts struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // StreamtubeStream @@ -961,7 +961,7 @@ type StreamtubeStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // StreamtubeColorbarExponentformat Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. diff --git a/generated/v2.31.1/graph_objects/sunburst_gen.go b/generated/v2.31.1/graph_objects/sunburst_gen.go index 5c0cbf2..9cc12aa 100644 --- a/generated/v2.31.1/graph_objects/sunburst_gen.go +++ b/generated/v2.31.1/graph_objects/sunburst_gen.go @@ -37,7 +37,7 @@ type Sunburst struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Domain // role: Object @@ -53,7 +53,7 @@ type Sunburst struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -63,25 +63,25 @@ type Sunburst struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -93,7 +93,7 @@ type Sunburst struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextfont // role: Object @@ -115,7 +115,7 @@ type Sunburst struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `labels`. - Labelssrc String `json:"labelssrc,omitempty"` + Labelssrc string `json:"labelssrc,omitempty"` // Leaf // role: Object @@ -163,19 +163,19 @@ type Sunburst struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -197,7 +197,7 @@ type Sunburst struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `parents`. - Parentssrc String `json:"parentssrc,omitempty"` + Parentssrc string `json:"parentssrc,omitempty"` // Root // role: Object @@ -239,19 +239,19 @@ type Sunburst struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -263,7 +263,7 @@ type Sunburst struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -281,7 +281,7 @@ type Sunburst struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `values`. - Valuessrc String `json:"valuessrc,omitempty"` + Valuessrc string `json:"valuessrc,omitempty"` // Visible // default: %!s(bool=true) @@ -325,37 +325,37 @@ type SunburstHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SunburstHoverlabel @@ -371,31 +371,31 @@ type SunburstHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -405,13 +405,13 @@ type SunburstHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // SunburstInsidetextfont Sets the font used for `textinfo` lying inside the sector. @@ -421,37 +421,37 @@ type SunburstInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SunburstLeaf @@ -477,7 +477,7 @@ type SunburstLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -497,7 +497,7 @@ type SunburstLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // SunburstMarkerColorbarTickfont Sets the color bar's tick label font @@ -513,7 +513,7 @@ type SunburstMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -535,7 +535,7 @@ type SunburstMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -561,7 +561,7 @@ type SunburstMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // SunburstMarkerColorbar @@ -713,7 +713,7 @@ type SunburstMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -755,7 +755,7 @@ type SunburstMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -767,7 +767,7 @@ type SunburstMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -779,7 +779,7 @@ type SunburstMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -791,7 +791,7 @@ type SunburstMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -859,25 +859,25 @@ type SunburstMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // SunburstMarkerPattern Sets the pattern within the marker. @@ -887,25 +887,25 @@ type SunburstMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -929,31 +929,31 @@ type SunburstMarkerPattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // SunburstMarker @@ -1015,7 +1015,7 @@ type SunburstMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `colors`. - Colorssrc String `json:"colorssrc,omitempty"` + Colorssrc string `json:"colorssrc,omitempty"` // Line // role: Object @@ -1045,37 +1045,37 @@ type SunburstOutsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SunburstRoot @@ -1101,7 +1101,7 @@ type SunburstStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // SunburstTextfont Sets the font used for `textinfo`. @@ -1111,37 +1111,37 @@ type SunburstTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SunburstBranchvalues Determines how the items in `values` are summed. When set to *total*, items in `values` are taken to be value of all its descendants. When set to *remainder*, items in `values` corresponding to the root and the branches sectors are taken to be the extra part not part of the sum of the values at their leaves. diff --git a/generated/v2.31.1/graph_objects/surface_gen.go b/generated/v2.31.1/graph_objects/surface_gen.go index cc7fd74..42c4e29 100644 --- a/generated/v2.31.1/graph_objects/surface_gen.go +++ b/generated/v2.31.1/graph_objects/surface_gen.go @@ -81,7 +81,7 @@ type Surface struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Hidesurface // arrayOK: false @@ -99,7 +99,7 @@ type Surface struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -109,25 +109,25 @@ type Surface struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -139,7 +139,7 @@ type Surface struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -151,7 +151,7 @@ type Surface struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -181,19 +181,19 @@ type Surface struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -245,25 +245,25 @@ type Surface struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `surfacecolor`. - Surfacecolorsrc String `json:"surfacecolorsrc,omitempty"` + Surfacecolorsrc string `json:"surfacecolorsrc,omitempty"` // Text // arrayOK: true // type: string // Sets the text elements associated with each z value. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -293,13 +293,13 @@ type Surface struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -317,13 +317,13 @@ type Surface struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -341,13 +341,13 @@ type Surface struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `zaxis.hoverformat`. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // SurfaceColorbarTickfont Sets the color bar's tick label font @@ -363,7 +363,7 @@ type SurfaceColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -385,7 +385,7 @@ type SurfaceColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -411,7 +411,7 @@ type SurfaceColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // SurfaceColorbar @@ -563,7 +563,7 @@ type SurfaceColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -605,7 +605,7 @@ type SurfaceColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -617,7 +617,7 @@ type SurfaceColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -629,7 +629,7 @@ type SurfaceColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -641,7 +641,7 @@ type SurfaceColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -995,37 +995,37 @@ type SurfaceHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // SurfaceHoverlabel @@ -1041,31 +1041,31 @@ type SurfaceHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -1075,13 +1075,13 @@ type SurfaceHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // SurfaceLegendgrouptitleFont Sets this legend group's title font. @@ -1097,7 +1097,7 @@ type SurfaceLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -1117,7 +1117,7 @@ type SurfaceLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // SurfaceLighting @@ -1189,7 +1189,7 @@ type SurfaceStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // SurfaceColorbarExponentformat Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. diff --git a/generated/v2.31.1/graph_objects/table_gen.go b/generated/v2.31.1/graph_objects/table_gen.go index e093fd9..1475b6b 100644 --- a/generated/v2.31.1/graph_objects/table_gen.go +++ b/generated/v2.31.1/graph_objects/table_gen.go @@ -29,19 +29,19 @@ type Table struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `columnorder`. - Columnordersrc String `json:"columnordersrc,omitempty"` + Columnordersrc string `json:"columnordersrc,omitempty"` // Columnwidth // arrayOK: true // type: number // The width of columns expressed as a ratio. Columns fill the available width in proportion of their specified column widths. - Columnwidth float64 `json:"columnwidth,omitempty"` + Columnwidth ArrayOK[*float64] `json:"columnwidth,omitempty"` // Columnwidthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `columnwidth`. - Columnwidthsrc String `json:"columnwidthsrc,omitempty"` + Columnwidthsrc string `json:"columnwidthsrc,omitempty"` // Customdata // arrayOK: false @@ -53,7 +53,7 @@ type Table struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Domain // role: Object @@ -73,7 +73,7 @@ type Table struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -89,7 +89,7 @@ type Table struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Legend // arrayOK: false @@ -117,19 +117,19 @@ type Table struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Stream // role: Object @@ -139,7 +139,7 @@ type Table struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -161,13 +161,13 @@ type TableCellsFill struct { // arrayOK: true // type: color // Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` } // TableCellsFont @@ -177,37 +177,37 @@ type TableCellsFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TableCellsLine @@ -217,25 +217,25 @@ type TableCellsLine struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // TableCells @@ -251,7 +251,7 @@ type TableCells struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Fill // role: Object @@ -271,7 +271,7 @@ type TableCells struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `format`. - Formatsrc String `json:"formatsrc,omitempty"` + Formatsrc string `json:"formatsrc,omitempty"` // Height // arrayOK: false @@ -287,25 +287,25 @@ type TableCells struct { // arrayOK: true // type: string // Prefix for cell values. - Prefix String `json:"prefix,omitempty"` + Prefix ArrayOK[*string] `json:"prefix,omitempty"` // Prefixsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `prefix`. - Prefixsrc String `json:"prefixsrc,omitempty"` + Prefixsrc string `json:"prefixsrc,omitempty"` // Suffix // arrayOK: true // type: string // Suffix for cell values. - Suffix String `json:"suffix,omitempty"` + Suffix ArrayOK[*string] `json:"suffix,omitempty"` // Suffixsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `suffix`. - Suffixsrc String `json:"suffixsrc,omitempty"` + Suffixsrc string `json:"suffixsrc,omitempty"` // Values // arrayOK: false @@ -317,7 +317,7 @@ type TableCells struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `values`. - Valuessrc String `json:"valuessrc,omitempty"` + Valuessrc string `json:"valuessrc,omitempty"` } // TableDomain @@ -355,13 +355,13 @@ type TableHeaderFill struct { // arrayOK: true // type: color // Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` } // TableHeaderFont @@ -371,37 +371,37 @@ type TableHeaderFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TableHeaderLine @@ -411,25 +411,25 @@ type TableHeaderLine struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // TableHeader @@ -445,7 +445,7 @@ type TableHeader struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Fill // role: Object @@ -465,7 +465,7 @@ type TableHeader struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `format`. - Formatsrc String `json:"formatsrc,omitempty"` + Formatsrc string `json:"formatsrc,omitempty"` // Height // arrayOK: false @@ -481,25 +481,25 @@ type TableHeader struct { // arrayOK: true // type: string // Prefix for cell values. - Prefix String `json:"prefix,omitempty"` + Prefix ArrayOK[*string] `json:"prefix,omitempty"` // Prefixsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `prefix`. - Prefixsrc String `json:"prefixsrc,omitempty"` + Prefixsrc string `json:"prefixsrc,omitempty"` // Suffix // arrayOK: true // type: string // Suffix for cell values. - Suffix String `json:"suffix,omitempty"` + Suffix ArrayOK[*string] `json:"suffix,omitempty"` // Suffixsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `suffix`. - Suffixsrc String `json:"suffixsrc,omitempty"` + Suffixsrc string `json:"suffixsrc,omitempty"` // Values // arrayOK: false @@ -511,7 +511,7 @@ type TableHeader struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `values`. - Valuessrc String `json:"valuessrc,omitempty"` + Valuessrc string `json:"valuessrc,omitempty"` } // TableHoverlabelFont Sets the font used in hover labels. @@ -521,37 +521,37 @@ type TableHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TableHoverlabel @@ -567,31 +567,31 @@ type TableHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -601,13 +601,13 @@ type TableHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // TableLegendgrouptitleFont Sets this legend group's title font. @@ -623,7 +623,7 @@ type TableLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -643,7 +643,7 @@ type TableLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // TableStream @@ -659,7 +659,7 @@ type TableStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // TableCellsAlign Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more
HTML tags) or if an explicit width is set to override the text width. diff --git a/generated/v2.31.1/graph_objects/treemap_gen.go b/generated/v2.31.1/graph_objects/treemap_gen.go index a460678..51a2f05 100644 --- a/generated/v2.31.1/graph_objects/treemap_gen.go +++ b/generated/v2.31.1/graph_objects/treemap_gen.go @@ -37,7 +37,7 @@ type Treemap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Domain // role: Object @@ -53,7 +53,7 @@ type Treemap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -63,25 +63,25 @@ type Treemap struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -93,7 +93,7 @@ type Treemap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Insidetextfont // role: Object @@ -109,7 +109,7 @@ type Treemap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `labels`. - Labelssrc String `json:"labelssrc,omitempty"` + Labelssrc string `json:"labelssrc,omitempty"` // Legend // arrayOK: false @@ -153,19 +153,19 @@ type Treemap struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -187,7 +187,7 @@ type Treemap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `parents`. - Parentssrc String `json:"parentssrc,omitempty"` + Parentssrc string `json:"parentssrc,omitempty"` // Pathbar // role: Object @@ -233,19 +233,19 @@ type Treemap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Tiling // role: Object @@ -261,7 +261,7 @@ type Treemap struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -279,7 +279,7 @@ type Treemap struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `values`. - Valuessrc String `json:"valuessrc,omitempty"` + Valuessrc string `json:"valuessrc,omitempty"` // Visible // default: %!s(bool=true) @@ -323,37 +323,37 @@ type TreemapHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TreemapHoverlabel @@ -369,31 +369,31 @@ type TreemapHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -403,13 +403,13 @@ type TreemapHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // TreemapInsidetextfont Sets the font used for `textinfo` lying inside the sector. @@ -419,37 +419,37 @@ type TreemapInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TreemapLegendgrouptitleFont Sets this legend group's title font. @@ -465,7 +465,7 @@ type TreemapLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -485,7 +485,7 @@ type TreemapLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // TreemapMarkerColorbarTickfont Sets the color bar's tick label font @@ -501,7 +501,7 @@ type TreemapMarkerColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -523,7 +523,7 @@ type TreemapMarkerColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -549,7 +549,7 @@ type TreemapMarkerColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // TreemapMarkerColorbar @@ -701,7 +701,7 @@ type TreemapMarkerColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -743,7 +743,7 @@ type TreemapMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -755,7 +755,7 @@ type TreemapMarkerColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -767,7 +767,7 @@ type TreemapMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -779,7 +779,7 @@ type TreemapMarkerColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -847,25 +847,25 @@ type TreemapMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Width // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` } // TreemapMarkerPad @@ -903,25 +903,25 @@ type TreemapMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Fgcolor // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor Color `json:"fgcolor,omitempty"` + Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `fgcolor`. - Fgcolorsrc String `json:"fgcolorsrc,omitempty"` + Fgcolorsrc string `json:"fgcolorsrc,omitempty"` // Fgopacity // arrayOK: false @@ -945,31 +945,31 @@ type TreemapMarkerPattern struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `shape`. - Shapesrc String `json:"shapesrc,omitempty"` + Shapesrc string `json:"shapesrc,omitempty"` // Size // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` // Solidity // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity float64 `json:"solidity,omitempty"` + Solidity ArrayOK[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `solidity`. - Soliditysrc String `json:"soliditysrc,omitempty"` + Soliditysrc string `json:"soliditysrc,omitempty"` } // TreemapMarker @@ -1031,7 +1031,7 @@ type TreemapMarker struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `colors`. - Colorssrc String `json:"colorssrc,omitempty"` + Colorssrc string `json:"colorssrc,omitempty"` // Cornerradius // arrayOK: false @@ -1077,37 +1077,37 @@ type TreemapOutsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TreemapPathbarTextfont Sets the font used inside `pathbar`. @@ -1117,37 +1117,37 @@ type TreemapPathbarTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TreemapPathbar @@ -1205,7 +1205,7 @@ type TreemapStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // TreemapTextfont Sets the font used for `textinfo`. @@ -1215,37 +1215,37 @@ type TreemapTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // TreemapTiling diff --git a/generated/v2.31.1/graph_objects/violin_gen.go b/generated/v2.31.1/graph_objects/violin_gen.go index 9a01dd7..5a5ad89 100644 --- a/generated/v2.31.1/graph_objects/violin_gen.go +++ b/generated/v2.31.1/graph_objects/violin_gen.go @@ -19,7 +19,7 @@ type Violin struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. - Alignmentgroup String `json:"alignmentgroup,omitempty"` + Alignmentgroup string `json:"alignmentgroup,omitempty"` // Bandwidth // arrayOK: false @@ -41,7 +41,7 @@ type Violin struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Fillcolor // arrayOK: false @@ -59,7 +59,7 @@ type Violin struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -75,25 +75,25 @@ type Violin struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -105,7 +105,7 @@ type Violin struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Jitter // arrayOK: false @@ -123,7 +123,7 @@ type Violin struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -157,25 +157,25 @@ type Violin struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. For violin traces, the name will also be used for the position coordinate, if `x` and `x0` (`y` and `y0` if horizontal) are missing and the position axis is categorical. Note that the trace name is also used as a default value for attribute `scalegroup` (please see its description for details). - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Offsetgroup // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. - Offsetgroup String `json:"offsetgroup,omitempty"` + Offsetgroup string `json:"offsetgroup,omitempty"` // Opacity // arrayOK: false @@ -211,7 +211,7 @@ type Violin struct { // arrayOK: false // type: string // If there are multiple violins that should be sized according to to some metric (see `scalemode`), link them by providing a non-empty group id here shared by every trace in the same group. If a violin's `width` is undefined, `scalegroup` will default to the trace's name. In this case, violins with the same names will be linked together - Scalegroup String `json:"scalegroup,omitempty"` + Scalegroup string `json:"scalegroup,omitempty"` // Scalemode // default: width @@ -261,13 +261,13 @@ type Violin struct { // arrayOK: true // type: string // Sets the text elements associated with each sample value. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Transforms // It's an items array and what goes inside it's... messy... check the docs @@ -279,7 +279,7 @@ type Violin struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -325,13 +325,13 @@ type Violin struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -355,13 +355,13 @@ type Violin struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Zorder // arrayOK: false @@ -419,37 +419,37 @@ type ViolinHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // ViolinHoverlabel @@ -465,31 +465,31 @@ type ViolinHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -499,13 +499,13 @@ type ViolinHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // ViolinLegendgrouptitleFont Sets this legend group's title font. @@ -521,7 +521,7 @@ type ViolinLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -541,7 +541,7 @@ type ViolinLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // ViolinLine @@ -697,7 +697,7 @@ type ViolinStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // ViolinUnselectedMarker diff --git a/generated/v2.31.1/graph_objects/volume_gen.go b/generated/v2.31.1/graph_objects/volume_gen.go index f809c72..2e026a3 100644 --- a/generated/v2.31.1/graph_objects/volume_gen.go +++ b/generated/v2.31.1/graph_objects/volume_gen.go @@ -79,7 +79,7 @@ type Volume struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Flatshading // arrayOK: false @@ -97,7 +97,7 @@ type Volume struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -107,25 +107,25 @@ type Volume struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Same as `text`. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -137,7 +137,7 @@ type Volume struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Isomax // arrayOK: false @@ -161,7 +161,7 @@ type Volume struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -191,19 +191,19 @@ type Volume struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Opacity // arrayOK: false @@ -261,19 +261,19 @@ type Volume struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Uid // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -291,13 +291,13 @@ type Volume struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `value` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format.By default the values are formatted using generic number format. - Valuehoverformat String `json:"valuehoverformat,omitempty"` + Valuehoverformat string `json:"valuehoverformat,omitempty"` // Valuesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `value`. - Valuesrc String `json:"valuesrc,omitempty"` + Valuesrc string `json:"valuesrc,omitempty"` // Visible // default: %!s(bool=true) @@ -315,13 +315,13 @@ type Volume struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -333,13 +333,13 @@ type Volume struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Ysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Z // arrayOK: false @@ -351,13 +351,13 @@ type Volume struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `zaxis.hoverformat`. - Zhoverformat String `json:"zhoverformat,omitempty"` + Zhoverformat string `json:"zhoverformat,omitempty"` // Zsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `z`. - Zsrc String `json:"zsrc,omitempty"` + Zsrc string `json:"zsrc,omitempty"` } // VolumeCapsX @@ -437,7 +437,7 @@ type VolumeColorbarTickfont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -459,7 +459,7 @@ type VolumeColorbarTitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -485,7 +485,7 @@ type VolumeColorbarTitle struct { // arrayOK: false // type: string // Sets the title of the color bar. Note that before the existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // VolumeColorbar @@ -637,7 +637,7 @@ type VolumeColorbar struct { // arrayOK: false // type: string // Sets the tick label formatting rule using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46* - Tickformat String `json:"tickformat,omitempty"` + Tickformat string `json:"tickformat,omitempty"` // Tickformatstops // It's an items array and what goes inside it's... messy... check the docs @@ -679,7 +679,7 @@ type VolumeColorbar struct { // arrayOK: false // type: string // Sets a tick label prefix. - Tickprefix String `json:"tickprefix,omitempty"` + Tickprefix string `json:"tickprefix,omitempty"` // Ticks // default: @@ -691,7 +691,7 @@ type VolumeColorbar struct { // arrayOK: false // type: string // Sets a tick label suffix. - Ticksuffix String `json:"ticksuffix,omitempty"` + Ticksuffix string `json:"ticksuffix,omitempty"` // Ticktext // arrayOK: false @@ -703,7 +703,7 @@ type VolumeColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ticktext`. - Ticktextsrc String `json:"ticktextsrc,omitempty"` + Ticktextsrc string `json:"ticktextsrc,omitempty"` // Tickvals // arrayOK: false @@ -715,7 +715,7 @@ type VolumeColorbar struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `tickvals`. - Tickvalssrc String `json:"tickvalssrc,omitempty"` + Tickvalssrc string `json:"tickvalssrc,omitempty"` // Tickwidth // arrayOK: false @@ -805,37 +805,37 @@ type VolumeHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // VolumeHoverlabel @@ -851,31 +851,31 @@ type VolumeHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -885,13 +885,13 @@ type VolumeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // VolumeLegendgrouptitleFont Sets this legend group's title font. @@ -907,7 +907,7 @@ type VolumeLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -927,7 +927,7 @@ type VolumeLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // VolumeLighting @@ -1017,7 +1017,7 @@ type VolumeSlicesX struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Show // arrayOK: false @@ -1045,7 +1045,7 @@ type VolumeSlicesY struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Show // arrayOK: false @@ -1073,7 +1073,7 @@ type VolumeSlicesZ struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `locations`. - Locationssrc String `json:"locationssrc,omitempty"` + Locationssrc string `json:"locationssrc,omitempty"` // Show // arrayOK: false @@ -1127,7 +1127,7 @@ type VolumeStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // VolumeSurface diff --git a/generated/v2.31.1/graph_objects/waterfall_gen.go b/generated/v2.31.1/graph_objects/waterfall_gen.go index 451c01f..f683c40 100644 --- a/generated/v2.31.1/graph_objects/waterfall_gen.go +++ b/generated/v2.31.1/graph_objects/waterfall_gen.go @@ -19,7 +19,7 @@ type Waterfall struct { // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently. - Alignmentgroup String `json:"alignmentgroup,omitempty"` + Alignmentgroup string `json:"alignmentgroup,omitempty"` // Base // arrayOK: false @@ -53,7 +53,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `customdata`. - Customdatasrc String `json:"customdatasrc,omitempty"` + Customdatasrc string `json:"customdatasrc,omitempty"` // Decreasing // role: Object @@ -81,7 +81,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hoverinfo`. - Hoverinfosrc String `json:"hoverinfosrc,omitempty"` + Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel // role: Object @@ -91,25 +91,25 @@ type Waterfall struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `initial`, `delta` and `final`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate String `json:"hovertemplate,omitempty"` + Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertemplate`. - Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"` + Hovertemplatesrc string `json:"hovertemplatesrc,omitempty"` // Hovertext // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext String `json:"hovertext,omitempty"` + Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `hovertext`. - Hovertextsrc String `json:"hovertextsrc,omitempty"` + Hovertextsrc string `json:"hovertextsrc,omitempty"` // Ids // arrayOK: false @@ -121,7 +121,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `ids`. - Idssrc String `json:"idssrc,omitempty"` + Idssrc string `json:"idssrc,omitempty"` // Increasing // role: Object @@ -147,7 +147,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the legend group for this trace. Traces and shapes part of the same legend group hide/show at the same time when toggling legend items. - Legendgroup String `json:"legendgroup,omitempty"` + Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle // role: Object @@ -175,43 +175,43 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `measure`. - Measuresrc String `json:"measuresrc,omitempty"` + Measuresrc string `json:"measuresrc,omitempty"` // Meta // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta interface{} `json:"meta,omitempty"` + Meta ArrayOK[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `meta`. - Metasrc String `json:"metasrc,omitempty"` + Metasrc string `json:"metasrc,omitempty"` // Name // arrayOK: false // type: string // Sets the trace name. The trace name appears as the legend item and on hover. - Name String `json:"name,omitempty"` + Name string `json:"name,omitempty"` // Offset // arrayOK: true // type: number // Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead. - Offset float64 `json:"offset,omitempty"` + Offset ArrayOK[*float64] `json:"offset,omitempty"` // Offsetgroup // arrayOK: false // type: string // Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up. - Offsetgroup String `json:"offsetgroup,omitempty"` + Offsetgroup string `json:"offsetgroup,omitempty"` // Offsetsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `offset`. - Offsetsrc String `json:"offsetsrc,omitempty"` + Offsetsrc string `json:"offsetsrc,omitempty"` // Opacity // arrayOK: false @@ -249,7 +249,7 @@ type Waterfall struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text String `json:"text,omitempty"` + Text ArrayOK[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -277,25 +277,25 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `textposition`. - Textpositionsrc String `json:"textpositionsrc,omitempty"` + Textpositionsrc string `json:"textpositionsrc,omitempty"` // Textsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `text`. - Textsrc String `json:"textsrc,omitempty"` + Textsrc string `json:"textsrc,omitempty"` // Texttemplate // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `initial`, `delta`, `final` and `label`. - Texttemplate String `json:"texttemplate,omitempty"` + Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `texttemplate`. - Texttemplatesrc String `json:"texttemplatesrc,omitempty"` + Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Totals // role: Object @@ -311,7 +311,7 @@ type Waterfall struct { // arrayOK: false // type: string // Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions. - Uid String `json:"uid,omitempty"` + Uid string `json:"uid,omitempty"` // Uirevision // arrayOK: false @@ -329,13 +329,13 @@ type Waterfall struct { // arrayOK: true // type: number // Sets the bar width (in position axis units). - Width float64 `json:"width,omitempty"` + Width ArrayOK[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `width`. - Widthsrc String `json:"widthsrc,omitempty"` + Widthsrc string `json:"widthsrc,omitempty"` // X // arrayOK: false @@ -359,7 +359,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `xaxis.hoverformat`. - Xhoverformat String `json:"xhoverformat,omitempty"` + Xhoverformat string `json:"xhoverformat,omitempty"` // Xperiod // arrayOK: false @@ -383,7 +383,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `x`. - Xsrc String `json:"xsrc,omitempty"` + Xsrc string `json:"xsrc,omitempty"` // Y // arrayOK: false @@ -407,7 +407,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format. We add two items to d3's date formatter: *%h* for half of the year as a decimal number as well as *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*By default the values are formatted using `yaxis.hoverformat`. - Yhoverformat String `json:"yhoverformat,omitempty"` + Yhoverformat string `json:"yhoverformat,omitempty"` // Yperiod // arrayOK: false @@ -431,7 +431,7 @@ type Waterfall struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `y`. - Ysrc String `json:"ysrc,omitempty"` + Ysrc string `json:"ysrc,omitempty"` // Zorder // arrayOK: false @@ -453,7 +453,7 @@ type WaterfallConnectorLine struct { // arrayOK: false // type: string // Sets the dash style of lines. Set to a dash type string (*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*). - Dash String `json:"dash,omitempty"` + Dash string `json:"dash,omitempty"` // Width // arrayOK: false @@ -527,37 +527,37 @@ type WaterfallHoverlabelFont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // WaterfallHoverlabel @@ -573,31 +573,31 @@ type WaterfallHoverlabel struct { // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `align`. - Alignsrc String `json:"alignsrc,omitempty"` + Alignsrc string `json:"alignsrc,omitempty"` // Bgcolor // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor Color `json:"bgcolor,omitempty"` + Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bgcolor`. - Bgcolorsrc String `json:"bgcolorsrc,omitempty"` + Bgcolorsrc string `json:"bgcolorsrc,omitempty"` // Bordercolor // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor Color `json:"bordercolor,omitempty"` + Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `bordercolor`. - Bordercolorsrc String `json:"bordercolorsrc,omitempty"` + Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font // role: Object @@ -607,13 +607,13 @@ type WaterfallHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength int64 `json:"namelength,omitempty"` + Namelength ArrayOK[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `namelength`. - Namelengthsrc String `json:"namelengthsrc,omitempty"` + Namelengthsrc string `json:"namelengthsrc,omitempty"` } // WaterfallIncreasingMarkerLine @@ -661,37 +661,37 @@ type WaterfallInsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // WaterfallLegendgrouptitleFont Sets this legend group's title font. @@ -707,7 +707,7 @@ type WaterfallLegendgrouptitleFont struct { // arrayOK: false // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family string `json:"family,omitempty"` // Size // arrayOK: false @@ -727,7 +727,7 @@ type WaterfallLegendgrouptitle struct { // arrayOK: false // type: string // Sets the title of the legend group. - Text String `json:"text,omitempty"` + Text string `json:"text,omitempty"` } // WaterfallOutsidetextfont Sets the font used for `text` lying outside the bar. @@ -737,37 +737,37 @@ type WaterfallOutsidetextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // WaterfallStream @@ -783,7 +783,7 @@ type WaterfallStream struct { // arrayOK: false // type: string // The stream id number links a data trace on a plot with a stream. See https://chart-studio.plotly.com/settings for more details. - Token String `json:"token,omitempty"` + Token string `json:"token,omitempty"` } // WaterfallTextfont Sets the font used for `text`. @@ -793,37 +793,37 @@ type WaterfallTextfont struct { // arrayOK: true // type: color // - Color Color `json:"color,omitempty"` + Color ArrayOK[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `color`. - Colorsrc String `json:"colorsrc,omitempty"` + Colorsrc string `json:"colorsrc,omitempty"` // Family // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family String `json:"family,omitempty"` + Family ArrayOK[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `family`. - Familysrc String `json:"familysrc,omitempty"` + Familysrc string `json:"familysrc,omitempty"` // Size // arrayOK: true // type: number // - Size float64 `json:"size,omitempty"` + Size ArrayOK[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false // type: string // Sets the source reference on Chart Studio Cloud for `size`. - Sizesrc String `json:"sizesrc,omitempty"` + Sizesrc string `json:"sizesrc,omitempty"` } // WaterfallTotalsMarkerLine diff --git a/generator/renderer.go b/generator/renderer.go index 2e7c5e5..e3cd706 100644 --- a/generator/renderer.go +++ b/generator/renderer.go @@ -27,7 +27,7 @@ type Renderer struct { fs Creator } -//go:embed templates/*.tmpl +//go:embed templates var templates embed.FS // NewRenderer initializes a renderer @@ -36,7 +36,7 @@ func NewRenderer(fs Creator, root *Root) (*Renderer, error) { root: root, fs: fs, } - tmpl, err := template.New("base").ParseFS(templates, "templates/*.tmpl") + tmpl, err := template.New("base").ParseFS(templates, "templates/*") if err != nil { return nil, err } @@ -127,7 +127,7 @@ func (r *Renderer) WritePlotGo(w io.Writer, graphObjectsImportPath string, cdnUr // WritePlotly writes the base plotly file func (r *Renderer) WritePlotly(w io.Writer) error { - return r.tmpl.ExecuteTemplate(w, "plotly.tmpl", w) + return r.tmpl.ExecuteTemplate(w, "plotly.go", w) } // CreateTrace creates a file with the content of a trace by name @@ -492,7 +492,7 @@ var valTypeMap = map[ValType]string{ ValTypeBoolean: "Bool", ValTypeNumber: "float64", ValTypeInteger: "int64", - ValTypeString: "String", + ValTypeString: "string", ValTypeColor: "Color", ValTypeColorlist: "ColorList", ValTypeColorscale: "ColorScale", diff --git a/generator/templates/plotly.tmpl b/generator/templates/plotly.go similarity index 63% rename from generator/templates/plotly.tmpl rename to generator/templates/plotly.go index 1d25df5..f1b563d 100644 --- a/generator/templates/plotly.tmpl +++ b/generator/templates/plotly.go @@ -1,4 +1,3 @@ - package grob import ( @@ -72,7 +71,7 @@ type unmarshalFig struct { Config *Config `json:"config,omitempty"` } -// Bool represents a *bool value. Needed to tell the differenc between false and nil. +// Bool represents a *bool value. Needed to tell the different between false and nil. type Bool *bool var ( @@ -90,10 +89,116 @@ var ( type String interface{} // Color A string describing color. Supported formats: - hex (e.g. '#d3d3d3') - rgb (e.g. 'rgb(255, 0, 0)') - rgba (e.g. 'rgb(255, 0, 0, 0.5)') - hsl (e.g. 'hsl(0, 100%, 50%)') - hsv (e.g. 'hsv(0, 100%, 100%)') - named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)", -type Color interface{} +type Color string + +func UseColorScaleValues(in []float64) []ColorWithColorScale { + out := make([]ColorWithColorScale, len(in), len(in)) + for i := 0; i < len(in); i++ { + out[i] = ColorWithColorScale{ + Value: in[i], + } + } + return out +} + +func UseColors(in []Color) []ColorWithColorScale { + out := make([]ColorWithColorScale, len(in), len(in)) + for i := 0; i < len(in); i++ { + out[i] = ColorWithColorScale{ + Color: &in[i], + } + } + return out +} + +func UseColor(in Color) ColorWithColorScale { + return ColorWithColorScale{ + Color: &in, + } +} + +type ColorWithColorScale struct { + Color *Color + Value float64 +} + +func (c *ColorWithColorScale) MarshalJSON() ([]byte, error) { + if c.Color != nil { + return json.Marshal(c.Color) + } + return json.Marshal(c.Value) +} + +func (c *ColorWithColorScale) UnmarshalJSON(data []byte) error { + c.Color = nil + + var color Color + err := json.Unmarshal(data, &color) + if err == nil { + c.Color = &color + return nil + } + + var value float64 + err = json.Unmarshal(data, &value) + if err != nil { + return err + } + c.Value = value + return nil +} // ColorList A list of colors. Must be an {array} containing valid colors. type ColorList []Color // ColorScale A Plotly colorscale either picked by a name: (any of Greys, YlGnBu, Greens, YlOrRd, Bluered, RdBu, Reds, Blues, Picnic, Rainbow, Portland, Jet, Hot, Blackbody, Earth, Electric, Viridis, Cividis ) customized as an {array} of 2-element {arrays} where the first element is the normalized color level value (starting at *0* and ending at *1*), and the second item is a valid color string. -type ColorScale interface{} \ No newline at end of file +type ColorScale interface{} + +func ArrayOKValue[T any](value T) ArrayOK[*T] { + v := &value + return ArrayOK[*T]{Value: v} +} + +func ArrayOKArray[T any](array ...T) ArrayOK[*T] { + out := make([]*T, len(array)) + for i, v := range array { + value := v + out[i] = &value + } + return ArrayOK[*T]{ + Array: out, + } +} + +// ArrayOK is a type that allows you to define a single value or an array of values, But not both. +// If Array is defined, Value will be ignored. +type ArrayOK[T any] struct { + Value T + Array []T +} + +func (arrayOK *ArrayOK[T]) MarshalJSON() ([]byte, error) { + if arrayOK.Array != nil { + return json.Marshal(arrayOK.Array) + } + return json.Marshal(arrayOK.Value) +} + +func (arrayOK *ArrayOK[T]) UnmarshalJSON(data []byte) error { + arrayOK.Array = nil + + var array []T + err := json.Unmarshal(data, &array) + if err == nil { + arrayOK.Array = array + return nil + } + + var value T + err = json.Unmarshal(data, &value) + if err != nil { + return err + } + arrayOK.Value = value + return nil +} diff --git a/generator/typefile.go b/generator/typefile.go index f5ee3d6..37ed28d 100644 --- a/generator/typefile.go +++ b/generator/typefile.go @@ -77,15 +77,15 @@ const ( // parseAttributes returns a []StructField containing all the fields for the attributes parsed. // Nested structures found such as enums, flags u other objects are stored in the TypeFile caller. -func (file *typeFile) parseAttributes(namePrefix string, typePrefix string, attr map[string]*Attribute) ([]structField, error) { - fields := make([]structField, 0, len(attr)) +func (file *typeFile) parseAttributes(namePrefix string, typePrefix string, attrs map[string]*Attribute) ([]structField, error) { + fields := make([]structField, 0, len(attrs)) - for _, name := range sortKeys(attr) { + for _, name := range sortKeys(attrs) { if name == "_deprecated" { continue } - attr := attr[name] + attr := attrs[name] switch { case attr.Role == RoleObject && len(attr.Items) > 0: @@ -164,6 +164,13 @@ func (file *typeFile) parseAttributes(namePrefix string, typePrefix string, attr default: ty := valTypeMap[attr.ValType] + if attr.ValType == ValTypeColor && attrs["colorscale"] != nil { + ty = "ColorWithColorScale" + } + if attr.ArrayOK { + ty = fmt.Sprintf("ArrayOK[*%s]", ty) + } + fields = append(fields, structField{ Name: xstrings.ToCamelCase(attr.Name), JSONName: attr.Name, From 40b51c044c85b80b8b5a7747fafe07e80e64b2f9 Mon Sep 17 00:00:00 2001 From: metalblueberry Date: Wed, 14 Aug 2024 14:05:41 +0200 Subject: [PATCH 13/17] flags and enums --- generated/v2.19.0/graph_objects/bar_gen.go | 36 ++- .../v2.19.0/graph_objects/barpolar_gen.go | 25 +- generated/v2.19.0/graph_objects/box_gen.go | 15 +- .../v2.19.0/graph_objects/candlestick_gen.go | 8 +- generated/v2.19.0/graph_objects/carpet_gen.go | 25 ++ .../v2.19.0/graph_objects/choropleth_gen.go | 21 +- .../graph_objects/choroplethmapbox_gen.go | 20 +- generated/v2.19.0/graph_objects/cone_gen.go | 22 +- generated/v2.19.0/graph_objects/config_gen.go | 2 + .../v2.19.0/graph_objects/contour_gen.go | 29 ++- .../graph_objects/contourcarpet_gen.go | 20 ++ .../graph_objects/densitymapbox_gen.go | 20 +- generated/v2.19.0/graph_objects/funnel_gen.go | 28 ++- .../v2.19.0/graph_objects/funnelarea_gen.go | 10 +- .../v2.19.0/graph_objects/heatmap_gen.go | 27 ++- .../v2.19.0/graph_objects/heatmapgl_gen.go | 23 +- .../v2.19.0/graph_objects/histogram2d_gen.go | 25 +- .../graph_objects/histogram2dcontour_gen.go | 27 ++- .../v2.19.0/graph_objects/histogram_gen.go | 36 ++- generated/v2.19.0/graph_objects/icicle_gen.go | 25 +- generated/v2.19.0/graph_objects/image_gen.go | 8 +- .../v2.19.0/graph_objects/indicator_gen.go | 11 + .../v2.19.0/graph_objects/isosurface_gen.go | 20 +- generated/v2.19.0/graph_objects/layout_gen.go | 219 +++++++++++++++++ generated/v2.19.0/graph_objects/mesh3d_gen.go | 25 +- generated/v2.19.0/graph_objects/ohlc_gen.go | 8 +- .../v2.19.0/graph_objects/parcats_gen.go | 19 ++ .../v2.19.0/graph_objects/parcoords_gen.go | 16 ++ generated/v2.19.0/graph_objects/pie_gen.go | 12 +- .../v2.19.0/graph_objects/pointcloud_gen.go | 6 +- generated/v2.19.0/graph_objects/sankey_gen.go | 14 +- .../v2.19.0/graph_objects/scatter3d_gen.go | 49 +++- .../v2.19.0/graph_objects/scatter_gen.go | 46 +++- .../graph_objects/scattercarpet_gen.go | 33 ++- .../v2.19.0/graph_objects/scattergeo_gen.go | 33 ++- .../v2.19.0/graph_objects/scattergl_gen.go | 36 ++- .../graph_objects/scattermapbox_gen.go | 23 +- .../v2.19.0/graph_objects/scatterpolar_gen.go | 34 ++- .../graph_objects/scatterpolargl_gen.go | 31 ++- .../v2.19.0/graph_objects/scattersmith_gen.go | 33 ++- .../graph_objects/scatterternary_gen.go | 33 ++- generated/v2.19.0/graph_objects/splom_gen.go | 24 +- .../v2.19.0/graph_objects/streamtube_gen.go | 20 +- .../v2.19.0/graph_objects/sunburst_gen.go | 22 +- .../v2.19.0/graph_objects/surface_gen.go | 23 +- generated/v2.19.0/graph_objects/table_gen.go | 12 +- .../v2.19.0/graph_objects/treemap_gen.go | 26 +- generated/v2.19.0/graph_objects/violin_gen.go | 13 +- generated/v2.19.0/graph_objects/volume_gen.go | 20 +- .../v2.19.0/graph_objects/waterfall_gen.go | 15 +- generated/v2.29.1/graph_objects/bar_gen.go | 38 ++- .../v2.29.1/graph_objects/barpolar_gen.go | 27 ++- generated/v2.29.1/graph_objects/box_gen.go | 16 +- .../v2.29.1/graph_objects/candlestick_gen.go | 8 +- generated/v2.29.1/graph_objects/carpet_gen.go | 25 ++ .../v2.29.1/graph_objects/choropleth_gen.go | 23 +- .../graph_objects/choroplethmapbox_gen.go | 22 +- generated/v2.29.1/graph_objects/cone_gen.go | 24 +- generated/v2.29.1/graph_objects/config_gen.go | 2 + .../v2.29.1/graph_objects/contour_gen.go | 31 ++- .../graph_objects/contourcarpet_gen.go | 22 ++ .../graph_objects/densitymapbox_gen.go | 22 +- generated/v2.29.1/graph_objects/funnel_gen.go | 30 ++- .../v2.29.1/graph_objects/funnelarea_gen.go | 14 +- .../v2.29.1/graph_objects/heatmap_gen.go | 29 ++- .../v2.29.1/graph_objects/heatmapgl_gen.go | 25 +- .../v2.29.1/graph_objects/histogram2d_gen.go | 27 ++- .../graph_objects/histogram2dcontour_gen.go | 29 ++- .../v2.29.1/graph_objects/histogram_gen.go | 38 ++- generated/v2.29.1/graph_objects/icicle_gen.go | 31 ++- generated/v2.29.1/graph_objects/image_gen.go | 8 +- .../v2.29.1/graph_objects/indicator_gen.go | 11 + .../v2.29.1/graph_objects/isosurface_gen.go | 22 +- generated/v2.29.1/graph_objects/layout_gen.go | 224 +++++++++++++++++ generated/v2.29.1/graph_objects/mesh3d_gen.go | 27 ++- generated/v2.29.1/graph_objects/ohlc_gen.go | 8 +- .../v2.29.1/graph_objects/parcats_gen.go | 21 ++ .../v2.29.1/graph_objects/parcoords_gen.go | 18 ++ generated/v2.29.1/graph_objects/pie_gen.go | 16 +- .../v2.29.1/graph_objects/pointcloud_gen.go | 6 +- generated/v2.29.1/graph_objects/sankey_gen.go | 15 +- .../v2.29.1/graph_objects/scatter3d_gen.go | 53 ++++- .../v2.29.1/graph_objects/scatter_gen.go | 48 +++- .../graph_objects/scattercarpet_gen.go | 35 ++- .../v2.29.1/graph_objects/scattergeo_gen.go | 35 ++- .../v2.29.1/graph_objects/scattergl_gen.go | 38 ++- .../graph_objects/scattermapbox_gen.go | 25 +- .../v2.29.1/graph_objects/scatterpolar_gen.go | 36 ++- .../graph_objects/scatterpolargl_gen.go | 32 ++- .../v2.29.1/graph_objects/scattersmith_gen.go | 35 ++- .../graph_objects/scatterternary_gen.go | 35 ++- generated/v2.29.1/graph_objects/splom_gen.go | 26 +- .../v2.29.1/graph_objects/streamtube_gen.go | 22 +- .../v2.29.1/graph_objects/sunburst_gen.go | 28 ++- .../v2.29.1/graph_objects/surface_gen.go | 25 +- generated/v2.29.1/graph_objects/table_gen.go | 12 +- .../v2.29.1/graph_objects/treemap_gen.go | 32 ++- generated/v2.29.1/graph_objects/violin_gen.go | 13 +- generated/v2.29.1/graph_objects/volume_gen.go | 22 +- .../v2.29.1/graph_objects/waterfall_gen.go | 15 +- generated/v2.31.1/graph_objects/bar_gen.go | 38 ++- .../v2.31.1/graph_objects/barpolar_gen.go | 27 ++- generated/v2.31.1/graph_objects/box_gen.go | 16 +- .../v2.31.1/graph_objects/candlestick_gen.go | 8 +- generated/v2.31.1/graph_objects/carpet_gen.go | 25 ++ .../v2.31.1/graph_objects/choropleth_gen.go | 23 +- .../graph_objects/choroplethmapbox_gen.go | 22 +- generated/v2.31.1/graph_objects/cone_gen.go | 24 +- generated/v2.31.1/graph_objects/config_gen.go | 2 + .../v2.31.1/graph_objects/contour_gen.go | 31 ++- .../graph_objects/contourcarpet_gen.go | 22 ++ .../graph_objects/densitymapbox_gen.go | 22 +- generated/v2.31.1/graph_objects/funnel_gen.go | 30 ++- .../v2.31.1/graph_objects/funnelarea_gen.go | 14 +- .../v2.31.1/graph_objects/heatmap_gen.go | 29 ++- .../v2.31.1/graph_objects/heatmapgl_gen.go | 25 +- .../v2.31.1/graph_objects/histogram2d_gen.go | 27 ++- .../graph_objects/histogram2dcontour_gen.go | 29 ++- .../v2.31.1/graph_objects/histogram_gen.go | 38 ++- generated/v2.31.1/graph_objects/icicle_gen.go | 31 ++- generated/v2.31.1/graph_objects/image_gen.go | 8 +- .../v2.31.1/graph_objects/indicator_gen.go | 11 + .../v2.31.1/graph_objects/isosurface_gen.go | 22 +- generated/v2.31.1/graph_objects/layout_gen.go | 225 ++++++++++++++++++ generated/v2.31.1/graph_objects/mesh3d_gen.go | 27 ++- generated/v2.31.1/graph_objects/ohlc_gen.go | 8 +- .../v2.31.1/graph_objects/parcats_gen.go | 21 ++ .../v2.31.1/graph_objects/parcoords_gen.go | 18 ++ generated/v2.31.1/graph_objects/pie_gen.go | 16 +- .../v2.31.1/graph_objects/pointcloud_gen.go | 6 +- generated/v2.31.1/graph_objects/sankey_gen.go | 15 +- .../v2.31.1/graph_objects/scatter3d_gen.go | 53 ++++- .../v2.31.1/graph_objects/scatter_gen.go | 49 +++- .../graph_objects/scattercarpet_gen.go | 35 ++- .../v2.31.1/graph_objects/scattergeo_gen.go | 35 ++- .../v2.31.1/graph_objects/scattergl_gen.go | 38 ++- .../graph_objects/scattermapbox_gen.go | 25 +- .../v2.31.1/graph_objects/scatterpolar_gen.go | 36 ++- .../graph_objects/scatterpolargl_gen.go | 32 ++- .../v2.31.1/graph_objects/scattersmith_gen.go | 35 ++- .../graph_objects/scatterternary_gen.go | 35 ++- generated/v2.31.1/graph_objects/splom_gen.go | 26 +- .../v2.31.1/graph_objects/streamtube_gen.go | 22 +- .../v2.31.1/graph_objects/sunburst_gen.go | 28 ++- .../v2.31.1/graph_objects/surface_gen.go | 25 +- generated/v2.31.1/graph_objects/table_gen.go | 12 +- .../v2.31.1/graph_objects/treemap_gen.go | 32 ++- generated/v2.31.1/graph_objects/violin_gen.go | 13 +- generated/v2.31.1/graph_objects/volume_gen.go | 22 +- .../v2.31.1/graph_objects/waterfall_gen.go | 15 +- generator/typefile.go | 11 +- 151 files changed, 3813 insertions(+), 380 deletions(-) diff --git a/generated/v2.19.0/graph_objects/bar_gen.go b/generated/v2.19.0/graph_objects/bar_gen.go index 6dd89f8..2c18b68 100644 --- a/generated/v2.19.0/graph_objects/bar_gen.go +++ b/generated/v2.19.0/graph_objects/bar_gen.go @@ -40,6 +40,7 @@ type Bar struct { Cliponaxis Bool `json:"cliponaxis,omitempty"` // Constraintext + // arrayOK: false // default: both // type: enumerated // Constrain the size of text inside or outside a bar to be no larger than the bar itself. @@ -81,7 +82,7 @@ type Bar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo BarHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*BarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -130,6 +131,7 @@ type Bar struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextanchor + // arrayOK: false // default: end // type: enumerated // Determines if texts are kept at center or start/end points in `textposition` *inside* mode. @@ -208,6 +210,7 @@ type Bar struct { Opacity float64 `json:"opacity,omitempty"` // Orientation + // arrayOK: false // default: %!s() // type: enumerated // Sets the orientation of the bars. With *v* (*h*), the value of the each bar spans along the vertical (horizontal). @@ -254,10 +257,11 @@ type Bar struct { Textfont *BarTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition BarTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*BarTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -306,6 +310,7 @@ type Bar struct { Unselected *BarUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -342,6 +347,7 @@ type Bar struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -366,6 +372,7 @@ type Bar struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -396,6 +403,7 @@ type Bar struct { Yaxis String `json:"yaxis,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -420,6 +428,7 @@ type Bar struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -496,6 +505,7 @@ type BarErrorX struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -584,6 +594,7 @@ type BarErrorY struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -658,10 +669,11 @@ type BarHoverlabelFont struct { type BarHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align BarHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*BarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -838,6 +850,7 @@ type BarMarkerColorbarTitle struct { Font *BarMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -878,6 +891,7 @@ type BarMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -896,6 +910,7 @@ type BarMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -914,6 +929,7 @@ type BarMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -938,6 +954,7 @@ type BarMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -950,12 +967,14 @@ type BarMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix BarMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -968,6 +987,7 @@ type BarMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -1008,12 +1028,14 @@ type BarMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow BarMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -1032,6 +1054,7 @@ type BarMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -1044,6 +1067,7 @@ type BarMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -1096,6 +1120,7 @@ type BarMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -1114,6 +1139,7 @@ type BarMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -1236,16 +1262,18 @@ type BarMarkerPattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode BarMarkerPatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape BarMarkerPatternShape `json:"shape,omitempty"` + Shape ArrayOK[*BarMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/barpolar_gen.go b/generated/v2.19.0/graph_objects/barpolar_gen.go index bb51934..6345d64 100644 --- a/generated/v2.19.0/graph_objects/barpolar_gen.go +++ b/generated/v2.19.0/graph_objects/barpolar_gen.go @@ -55,7 +55,7 @@ type Barpolar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo BarpolarHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*BarpolarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -240,6 +240,7 @@ type Barpolar struct { Thetasrc string `json:"thetasrc,omitempty"` // Thetaunit + // arrayOK: false // default: degrees // type: enumerated // Sets the unit of input *theta* values. Has an effect only when on *linear* angular axes. @@ -268,6 +269,7 @@ type Barpolar struct { Unselected *BarpolarUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -330,10 +332,11 @@ type BarpolarHoverlabelFont struct { type BarpolarHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align BarpolarHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*BarpolarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -470,6 +473,7 @@ type BarpolarMarkerColorbarTitle struct { Font *BarpolarMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -510,6 +514,7 @@ type BarpolarMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -528,6 +533,7 @@ type BarpolarMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -546,6 +552,7 @@ type BarpolarMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -570,6 +577,7 @@ type BarpolarMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -582,12 +590,14 @@ type BarpolarMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix BarpolarMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -600,6 +610,7 @@ type BarpolarMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -640,12 +651,14 @@ type BarpolarMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow BarpolarMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -664,6 +677,7 @@ type BarpolarMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -676,6 +690,7 @@ type BarpolarMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -728,6 +743,7 @@ type BarpolarMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -746,6 +762,7 @@ type BarpolarMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -868,16 +885,18 @@ type BarpolarMarkerPattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode BarpolarMarkerPatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape BarpolarMarkerPatternShape `json:"shape,omitempty"` + Shape ArrayOK[*BarpolarMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/box_gen.go b/generated/v2.19.0/graph_objects/box_gen.go index cdee58c..11af937 100644 --- a/generated/v2.19.0/graph_objects/box_gen.go +++ b/generated/v2.19.0/graph_objects/box_gen.go @@ -22,12 +22,14 @@ type Box struct { Alignmentgroup string `json:"alignmentgroup,omitempty"` // Boxmean + // arrayOK: false // default: %!s() // type: enumerated // If *true*, the mean of the box(es)' underlying distribution is drawn as a dashed line inside the box(es). If *sd* the standard deviation is also drawn. Defaults to *true* when `mean` is set. Defaults to *sd* when `sd` is set Otherwise defaults to *false*. Boxmean BoxBoxmean `json:"boxmean,omitempty"` // Boxpoints + // arrayOK: false // default: %!s() // type: enumerated // If *outliers*, only the sample points lying outside the whiskers are shown If *suspectedoutliers*, the outlier points are shown and points either less than 4*Q1-3*Q3 or greater than 4*Q3-3*Q1 are highlighted (see `outliercolor`) If *all*, all sample points are shown If *false*, only the box(es) are shown with no sample points Defaults to *suspectedoutliers* when `marker.outliercolor` or `marker.line.outliercolor` is set. Defaults to *all* under the q1/median/q3 signature. Otherwise defaults to *outliers*. @@ -67,7 +69,7 @@ type Box struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo BoxHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*BoxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -248,6 +250,7 @@ type Box struct { Opacity float64 `json:"opacity,omitempty"` // Orientation + // arrayOK: false // default: %!s() // type: enumerated // Sets the orientation of the box(es). If *v* (*h*), the distribution is visualized along the vertical (horizontal). @@ -284,6 +287,7 @@ type Box struct { Q3src string `json:"q3src,omitempty"` // Quartilemethod + // arrayOK: false // default: linear // type: enumerated // Sets the method used to compute the sample's Q1 and Q3 quartiles. The *linear* method uses the 25th percentile for Q1 and 75th percentile for Q3 as computed using method #10 (listed on http://jse.amstat.org/v14n3/langford.html). The *exclusive* method uses the median to divide the ordered dataset into two halves if the sample is odd, it does not include the median in either half - Q1 is then the median of the lower half and Q3 the median of the upper half. The *inclusive* method also uses the median to divide the ordered dataset into two halves but if the sample is odd, it includes the median in both halves - Q1 is then the median of the lower half and Q3 the median of the upper half. @@ -368,6 +372,7 @@ type Box struct { Upperfencesrc string `json:"upperfencesrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -404,6 +409,7 @@ type Box struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -428,6 +434,7 @@ type Box struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -458,6 +465,7 @@ type Box struct { Yaxis String `json:"yaxis,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -482,6 +490,7 @@ type Box struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -538,10 +547,11 @@ type BoxHoverlabelFont struct { type BoxHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align BoxHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*BoxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -708,6 +718,7 @@ type BoxMarker struct { Size float64 `json:"size,omitempty"` // Symbol + // arrayOK: false // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. diff --git a/generated/v2.19.0/graph_objects/candlestick_gen.go b/generated/v2.19.0/graph_objects/candlestick_gen.go index 7381192..6c67b26 100644 --- a/generated/v2.19.0/graph_objects/candlestick_gen.go +++ b/generated/v2.19.0/graph_objects/candlestick_gen.go @@ -59,7 +59,7 @@ type Candlestick struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo CandlestickHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*CandlestickHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -220,6 +220,7 @@ type Candlestick struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -244,6 +245,7 @@ type Candlestick struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -268,6 +270,7 @@ type Candlestick struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -366,10 +369,11 @@ type CandlestickHoverlabelFont struct { type CandlestickHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align CandlestickHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*CandlestickHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/carpet_gen.go b/generated/v2.19.0/graph_objects/carpet_gen.go index cc97281..8c1e3b2 100644 --- a/generated/v2.19.0/graph_objects/carpet_gen.go +++ b/generated/v2.19.0/graph_objects/carpet_gen.go @@ -174,6 +174,7 @@ type Carpet struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -296,12 +297,14 @@ type CarpetAaxis struct { Arraytick0 int64 `json:"arraytick0,omitempty"` // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided, then `autorange` is set to *false*. Autorange CarpetAaxisAutorange `json:"autorange,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. @@ -320,12 +323,14 @@ type CarpetAaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Categoryorder CarpetAaxisCategoryorder `json:"categoryorder,omitempty"` // Cheatertype + // arrayOK: false // default: value // type: enumerated // @@ -362,6 +367,7 @@ type CarpetAaxis struct { Endlinewidth float64 `json:"endlinewidth,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -470,6 +476,7 @@ type CarpetAaxis struct { Range interface{} `json:"range,omitempty"` // Rangemode + // arrayOK: false // default: normal // type: enumerated // If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. @@ -482,6 +489,7 @@ type CarpetAaxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -500,18 +508,21 @@ type CarpetAaxis struct { Showline Bool `json:"showline,omitempty"` // Showticklabels + // arrayOK: false // default: start // type: enumerated // Determines whether axis labels are drawn on the low side, the high side, both, or neither side of the axis. Showticklabels CarpetAaxisShowticklabels `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix CarpetAaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -570,6 +581,7 @@ type CarpetAaxis struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Tickmode + // arrayOK: false // default: array // type: enumerated // @@ -616,6 +628,7 @@ type CarpetAaxis struct { Title *CarpetAaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. @@ -702,12 +715,14 @@ type CarpetBaxis struct { Arraytick0 int64 `json:"arraytick0,omitempty"` // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided, then `autorange` is set to *false*. Autorange CarpetBaxisAutorange `json:"autorange,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. @@ -726,12 +741,14 @@ type CarpetBaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Categoryorder CarpetBaxisCategoryorder `json:"categoryorder,omitempty"` // Cheatertype + // arrayOK: false // default: value // type: enumerated // @@ -768,6 +785,7 @@ type CarpetBaxis struct { Endlinewidth float64 `json:"endlinewidth,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -876,6 +894,7 @@ type CarpetBaxis struct { Range interface{} `json:"range,omitempty"` // Rangemode + // arrayOK: false // default: normal // type: enumerated // If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. @@ -888,6 +907,7 @@ type CarpetBaxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -906,18 +926,21 @@ type CarpetBaxis struct { Showline Bool `json:"showline,omitempty"` // Showticklabels + // arrayOK: false // default: start // type: enumerated // Determines whether axis labels are drawn on the low side, the high side, both, or neither side of the axis. Showticklabels CarpetBaxisShowticklabels `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix CarpetBaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -976,6 +999,7 @@ type CarpetBaxis struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Tickmode + // arrayOK: false // default: array // type: enumerated // @@ -1022,6 +1046,7 @@ type CarpetBaxis struct { Title *CarpetBaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. diff --git a/generated/v2.19.0/graph_objects/choropleth_gen.go b/generated/v2.19.0/graph_objects/choropleth_gen.go index 0dbf433..ff1bc00 100644 --- a/generated/v2.19.0/graph_objects/choropleth_gen.go +++ b/generated/v2.19.0/graph_objects/choropleth_gen.go @@ -71,7 +71,7 @@ type Choropleth struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ChoroplethHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ChoroplethHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -142,6 +142,7 @@ type Choropleth struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Locationmode + // arrayOK: false // default: ISO-3 // type: enumerated // Determines the set of locations used to match entries in `locations` to regions on the map. Values *ISO-3*, *USA-states*, *country names* correspond to features on the base map and value *geojson-id* corresponds to features from a custom GeoJSON linked to the `geojson` attribute. @@ -248,6 +249,7 @@ type Choropleth struct { Unselected *ChoroplethUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -342,6 +344,7 @@ type ChoroplethColorbarTitle struct { Font *ChoroplethColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -382,6 +385,7 @@ type ChoroplethColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -400,6 +404,7 @@ type ChoroplethColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -418,6 +423,7 @@ type ChoroplethColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -442,6 +448,7 @@ type ChoroplethColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -454,12 +461,14 @@ type ChoroplethColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ChoroplethColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -472,6 +481,7 @@ type ChoroplethColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -512,12 +522,14 @@ type ChoroplethColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ChoroplethColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -536,6 +548,7 @@ type ChoroplethColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -548,6 +561,7 @@ type ChoroplethColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -600,6 +614,7 @@ type ChoroplethColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -618,6 +633,7 @@ type ChoroplethColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -674,10 +690,11 @@ type ChoroplethHoverlabelFont struct { type ChoroplethHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ChoroplethHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ChoroplethHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go b/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go index 0d192bf..51f7c77 100644 --- a/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go +++ b/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go @@ -71,7 +71,7 @@ type Choroplethmapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ChoroplethmapboxHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ChoroplethmapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -248,6 +248,7 @@ type Choroplethmapbox struct { Unselected *ChoroplethmapboxUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -342,6 +343,7 @@ type ChoroplethmapboxColorbarTitle struct { Font *ChoroplethmapboxColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -382,6 +384,7 @@ type ChoroplethmapboxColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -400,6 +403,7 @@ type ChoroplethmapboxColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -418,6 +422,7 @@ type ChoroplethmapboxColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -442,6 +447,7 @@ type ChoroplethmapboxColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -454,12 +460,14 @@ type ChoroplethmapboxColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ChoroplethmapboxColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -472,6 +480,7 @@ type ChoroplethmapboxColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -512,12 +521,14 @@ type ChoroplethmapboxColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ChoroplethmapboxColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -536,6 +547,7 @@ type ChoroplethmapboxColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -548,6 +560,7 @@ type ChoroplethmapboxColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -600,6 +613,7 @@ type ChoroplethmapboxColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -618,6 +632,7 @@ type ChoroplethmapboxColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -674,10 +689,11 @@ type ChoroplethmapboxHoverlabelFont struct { type ChoroplethmapboxHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ChoroplethmapboxHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ChoroplethmapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/cone_gen.go b/generated/v2.19.0/graph_objects/cone_gen.go index 7348633..acec5b0 100644 --- a/generated/v2.19.0/graph_objects/cone_gen.go +++ b/generated/v2.19.0/graph_objects/cone_gen.go @@ -16,6 +16,7 @@ type Cone struct { Type TraceType `json:"type,omitempty"` // Anchor + // arrayOK: false // default: cm // type: enumerated // Sets the cones' anchor with respect to their x/y/z positions. Note that *cm* denote the cone's center of mass which corresponds to 1/4 from the tail to tip. @@ -83,7 +84,7 @@ type Cone struct { // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ConeHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ConeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -210,6 +211,7 @@ type Cone struct { Showscale Bool `json:"showscale,omitempty"` // Sizemode + // arrayOK: false // default: scaled // type: enumerated // Determines whether `sizeref` is set as a *scaled* (i.e unitless) scalar (normalized by the max u/v/w norm in the vector field) or as *absolute* value (in the same units as the vector field). @@ -280,6 +282,7 @@ type Cone struct { Vhoverformat string `json:"vhoverformat,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -416,6 +419,7 @@ type ConeColorbarTitle struct { Font *ConeColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -456,6 +460,7 @@ type ConeColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -474,6 +479,7 @@ type ConeColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -492,6 +498,7 @@ type ConeColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -516,6 +523,7 @@ type ConeColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -528,12 +536,14 @@ type ConeColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ConeColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -546,6 +556,7 @@ type ConeColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -586,12 +597,14 @@ type ConeColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ConeColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -610,6 +623,7 @@ type ConeColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -622,6 +636,7 @@ type ConeColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -674,6 +689,7 @@ type ConeColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -692,6 +708,7 @@ type ConeColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -748,10 +765,11 @@ type ConeHoverlabelFont struct { type ConeHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ConeHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ConeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/config_gen.go b/generated/v2.19.0/graph_objects/config_gen.go index 2b9e074..d6486c9 100644 --- a/generated/v2.19.0/graph_objects/config_gen.go +++ b/generated/v2.19.0/graph_objects/config_gen.go @@ -10,6 +10,7 @@ type Config struct { Autosizable Bool `json:"autosizable,omitempty"` // DisplayModeBar + // arrayOK: false // default: hover // type: enumerated // Determines the mode bar display mode. If *true*, the mode bar is always visible. If *false*, the mode bar is always hidden. If *hover*, the mode bar is visible while the mouse cursor is on the graph container. @@ -22,6 +23,7 @@ type Config struct { Displaylogo Bool `json:"displaylogo,omitempty"` // DoubleClick + // arrayOK: false // default: reset+autosize // type: enumerated // Sets the double click interaction mode. Has an effect only in cartesian plots. If *false*, double click is disable. If *reset*, double click resets the axis ranges to their initial values. If *autosize*, double click set the axis ranges to their autorange values. If *reset+autosize*, the odd double clicks resets the axis ranges to their initial values and even double clicks set the axis ranges to their autorange values. diff --git a/generated/v2.19.0/graph_objects/contour_gen.go b/generated/v2.19.0/graph_objects/contour_gen.go index 715cd30..cd624a4 100644 --- a/generated/v2.19.0/graph_objects/contour_gen.go +++ b/generated/v2.19.0/graph_objects/contour_gen.go @@ -87,7 +87,7 @@ type Contour struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ContourHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ContourHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -266,6 +266,7 @@ type Contour struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -290,6 +291,7 @@ type Contour struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -314,6 +316,7 @@ type Contour struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -326,6 +329,7 @@ type Contour struct { Xsrc string `json:"xsrc,omitempty"` // Xtype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's x coordinates are given by *x* (the default behavior when `x` is provided). If *scaled*, the heatmap's x coordinates are given by *x0* and *dx* (the default behavior when `x` is not provided). @@ -350,6 +354,7 @@ type Contour struct { Yaxis String `json:"yaxis,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -374,6 +379,7 @@ type Contour struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -386,6 +392,7 @@ type Contour struct { Ysrc string `json:"ysrc,omitempty"` // Ytype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's y coordinates are given by *y* (the default behavior when `y` is provided) If *scaled*, the heatmap's y coordinates are given by *y0* and *dy* (the default behavior when `y` is not provided) @@ -486,6 +493,7 @@ type ContourColorbarTitle struct { Font *ContourColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -526,6 +534,7 @@ type ContourColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -544,6 +553,7 @@ type ContourColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -562,6 +572,7 @@ type ContourColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -586,6 +597,7 @@ type ContourColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -598,12 +610,14 @@ type ContourColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ContourColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -616,6 +630,7 @@ type ContourColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -656,12 +671,14 @@ type ContourColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ContourColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -680,6 +697,7 @@ type ContourColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -692,6 +710,7 @@ type ContourColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -744,6 +763,7 @@ type ContourColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -762,6 +782,7 @@ type ContourColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -800,6 +821,7 @@ type ContourContoursLabelfont struct { type ContourContours struct { // Coloring + // arrayOK: false // default: fill // type: enumerated // Determines the coloring method showing the contour values. If *fill*, coloring is done evenly between each contour level If *heatmap*, a heatmap gradient coloring is applied between each contour level. If *lines*, coloring is done on the contour lines. If *none*, no coloring is applied on this trace. @@ -822,6 +844,7 @@ type ContourContours struct { Labelformat string `json:"labelformat,omitempty"` // Operation + // arrayOK: false // default: = // type: enumerated // Sets the constraint operation. *=* keeps regions equal to `value` *<* and *<=* keep regions less than `value` *>* and *>=* keep regions greater than `value` *[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]` *][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. @@ -852,6 +875,7 @@ type ContourContours struct { Start float64 `json:"start,omitempty"` // Type + // arrayOK: false // default: levels // type: enumerated // If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. @@ -908,10 +932,11 @@ type ContourHoverlabelFont struct { type ContourHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ContourHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ContourHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/contourcarpet_gen.go b/generated/v2.19.0/graph_objects/contourcarpet_gen.go index 9cc4c90..d933e86 100644 --- a/generated/v2.19.0/graph_objects/contourcarpet_gen.go +++ b/generated/v2.19.0/graph_objects/contourcarpet_gen.go @@ -34,6 +34,7 @@ type Contourcarpet struct { Asrc string `json:"asrc,omitempty"` // Atype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's x coordinates are given by *x* (the default behavior when `x` is provided). If *scaled*, the heatmap's x coordinates are given by *x0* and *dx* (the default behavior when `x` is not provided). @@ -70,6 +71,7 @@ type Contourcarpet struct { Bsrc string `json:"bsrc,omitempty"` // Btype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's y coordinates are given by *y* (the default behavior when `y` is provided) If *scaled*, the heatmap's y coordinates are given by *y0* and *dy* (the default behavior when `y` is not provided) @@ -264,6 +266,7 @@ type Contourcarpet struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -370,6 +373,7 @@ type ContourcarpetColorbarTitle struct { Font *ContourcarpetColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -410,6 +414,7 @@ type ContourcarpetColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -428,6 +433,7 @@ type ContourcarpetColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -446,6 +452,7 @@ type ContourcarpetColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -470,6 +477,7 @@ type ContourcarpetColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -482,12 +490,14 @@ type ContourcarpetColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ContourcarpetColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -500,6 +510,7 @@ type ContourcarpetColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -540,12 +551,14 @@ type ContourcarpetColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ContourcarpetColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -564,6 +577,7 @@ type ContourcarpetColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -576,6 +590,7 @@ type ContourcarpetColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -628,6 +643,7 @@ type ContourcarpetColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -646,6 +662,7 @@ type ContourcarpetColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -684,6 +701,7 @@ type ContourcarpetContoursLabelfont struct { type ContourcarpetContours struct { // Coloring + // arrayOK: false // default: fill // type: enumerated // Determines the coloring method showing the contour values. If *fill*, coloring is done evenly between each contour level If *lines*, coloring is done on the contour lines. If *none*, no coloring is applied on this trace. @@ -706,6 +724,7 @@ type ContourcarpetContours struct { Labelformat string `json:"labelformat,omitempty"` // Operation + // arrayOK: false // default: = // type: enumerated // Sets the constraint operation. *=* keeps regions equal to `value` *<* and *<=* keep regions less than `value` *>* and *>=* keep regions greater than `value` *[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]` *][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. @@ -736,6 +755,7 @@ type ContourcarpetContours struct { Start float64 `json:"start,omitempty"` // Type + // arrayOK: false // default: levels // type: enumerated // If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. diff --git a/generated/v2.19.0/graph_objects/densitymapbox_gen.go b/generated/v2.19.0/graph_objects/densitymapbox_gen.go index ebbd8c8..c33b124 100644 --- a/generated/v2.19.0/graph_objects/densitymapbox_gen.go +++ b/generated/v2.19.0/graph_objects/densitymapbox_gen.go @@ -59,7 +59,7 @@ type Densitymapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo DensitymapboxHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*DensitymapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -248,6 +248,7 @@ type Densitymapbox struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -342,6 +343,7 @@ type DensitymapboxColorbarTitle struct { Font *DensitymapboxColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -382,6 +384,7 @@ type DensitymapboxColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -400,6 +403,7 @@ type DensitymapboxColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -418,6 +422,7 @@ type DensitymapboxColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -442,6 +447,7 @@ type DensitymapboxColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -454,12 +460,14 @@ type DensitymapboxColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix DensitymapboxColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -472,6 +480,7 @@ type DensitymapboxColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -512,12 +521,14 @@ type DensitymapboxColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow DensitymapboxColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -536,6 +547,7 @@ type DensitymapboxColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -548,6 +560,7 @@ type DensitymapboxColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -600,6 +613,7 @@ type DensitymapboxColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -618,6 +632,7 @@ type DensitymapboxColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -674,10 +689,11 @@ type DensitymapboxHoverlabelFont struct { type DensitymapboxHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align DensitymapboxHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*DensitymapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/funnel_gen.go b/generated/v2.19.0/graph_objects/funnel_gen.go index 1418682..9c6d704 100644 --- a/generated/v2.19.0/graph_objects/funnel_gen.go +++ b/generated/v2.19.0/graph_objects/funnel_gen.go @@ -32,6 +32,7 @@ type Funnel struct { Connector *FunnelConnector `json:"connector,omitempty"` // Constraintext + // arrayOK: false // default: both // type: enumerated // Constrain the size of text inside or outside a bar to be no larger than the bar itself. @@ -65,7 +66,7 @@ type Funnel struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo FunnelHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*FunnelHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -114,6 +115,7 @@ type Funnel struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextanchor + // arrayOK: false // default: middle // type: enumerated // Determines if texts are kept at center or start/end points in `textposition` *inside* mode. @@ -186,6 +188,7 @@ type Funnel struct { Opacity float64 `json:"opacity,omitempty"` // Orientation + // arrayOK: false // default: %!s() // type: enumerated // Sets the orientation of the funnels. With *v* (*h*), the value of the each bar spans along the vertical (horizontal). By default funnels are tend to be oriented horizontally; unless only *y* array is presented or orientation is set to *v*. Also regarding graphs including only 'horizontal' funnels, *autorange* on the *y-axis* are set to *reversed*. @@ -234,10 +237,11 @@ type Funnel struct { Textinfo FunnelTextinfo `json:"textinfo,omitempty"` // Textposition + // arrayOK: true // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition FunnelTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*FunnelTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -282,6 +286,7 @@ type Funnel struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -330,6 +335,7 @@ type Funnel struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -378,6 +384,7 @@ type Funnel struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -476,10 +483,11 @@ type FunnelHoverlabelFont struct { type FunnelHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align FunnelHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*FunnelHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -656,6 +664,7 @@ type FunnelMarkerColorbarTitle struct { Font *FunnelMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -696,6 +705,7 @@ type FunnelMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -714,6 +724,7 @@ type FunnelMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -732,6 +743,7 @@ type FunnelMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -756,6 +768,7 @@ type FunnelMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -768,12 +781,14 @@ type FunnelMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix FunnelMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -786,6 +801,7 @@ type FunnelMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -826,12 +842,14 @@ type FunnelMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow FunnelMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -850,6 +868,7 @@ type FunnelMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -862,6 +881,7 @@ type FunnelMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -914,6 +934,7 @@ type FunnelMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -932,6 +953,7 @@ type FunnelMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. diff --git a/generated/v2.19.0/graph_objects/funnelarea_gen.go b/generated/v2.19.0/graph_objects/funnelarea_gen.go index 21e0da3..7657f7f 100644 --- a/generated/v2.19.0/graph_objects/funnelarea_gen.go +++ b/generated/v2.19.0/graph_objects/funnelarea_gen.go @@ -53,7 +53,7 @@ type Funnelarea struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo FunnelareaHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*FunnelareaHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -206,10 +206,11 @@ type Funnelarea struct { Textinfo FunnelareaTextinfo `json:"textinfo,omitempty"` // Textposition + // arrayOK: true // default: inside // type: enumerated // Specifies the location of the `textinfo`. - Textposition FunnelareaTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*FunnelareaTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -270,6 +271,7 @@ type Funnelarea struct { Valuessrc string `json:"valuessrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -348,10 +350,11 @@ type FunnelareaHoverlabelFont struct { type FunnelareaHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align FunnelareaHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*FunnelareaHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -628,6 +631,7 @@ type FunnelareaTitle struct { Font *FunnelareaTitleFont `json:"font,omitempty"` // Position + // arrayOK: false // default: top center // type: enumerated // Specifies the location of the `title`. Note that the title's position used to be set by the now deprecated `titleposition` attribute. diff --git a/generated/v2.19.0/graph_objects/heatmap_gen.go b/generated/v2.19.0/graph_objects/heatmap_gen.go index de3fa7e..8567054 100644 --- a/generated/v2.19.0/graph_objects/heatmap_gen.go +++ b/generated/v2.19.0/graph_objects/heatmap_gen.go @@ -71,7 +71,7 @@ type Heatmap struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo HeatmapHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*HeatmapHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -240,6 +240,7 @@ type Heatmap struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -264,6 +265,7 @@ type Heatmap struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -294,6 +296,7 @@ type Heatmap struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -306,6 +309,7 @@ type Heatmap struct { Xsrc string `json:"xsrc,omitempty"` // Xtype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's x coordinates are given by *x* (the default behavior when `x` is provided). If *scaled*, the heatmap's x coordinates are given by *x0* and *dx* (the default behavior when `x` is not provided). @@ -330,6 +334,7 @@ type Heatmap struct { Yaxis String `json:"yaxis,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -360,6 +365,7 @@ type Heatmap struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -372,6 +378,7 @@ type Heatmap struct { Ysrc string `json:"ysrc,omitempty"` // Ytype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's y coordinates are given by *y* (the default behavior when `y` is provided) If *scaled*, the heatmap's y coordinates are given by *y0* and *dy* (the default behavior when `y` is not provided) @@ -414,6 +421,7 @@ type Heatmap struct { Zmin float64 `json:"zmin,omitempty"` // Zsmooth + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Picks a smoothing algorithm use to smooth `z` data. @@ -478,6 +486,7 @@ type HeatmapColorbarTitle struct { Font *HeatmapColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -518,6 +527,7 @@ type HeatmapColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -536,6 +546,7 @@ type HeatmapColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -554,6 +565,7 @@ type HeatmapColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -578,6 +590,7 @@ type HeatmapColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -590,12 +603,14 @@ type HeatmapColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix HeatmapColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -608,6 +623,7 @@ type HeatmapColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -648,12 +664,14 @@ type HeatmapColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow HeatmapColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -672,6 +690,7 @@ type HeatmapColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -684,6 +703,7 @@ type HeatmapColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -736,6 +756,7 @@ type HeatmapColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -754,6 +775,7 @@ type HeatmapColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -810,10 +832,11 @@ type HeatmapHoverlabelFont struct { type HeatmapHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align HeatmapHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*HeatmapHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/heatmapgl_gen.go b/generated/v2.19.0/graph_objects/heatmapgl_gen.go index 709e102..9708de8 100644 --- a/generated/v2.19.0/graph_objects/heatmapgl_gen.go +++ b/generated/v2.19.0/graph_objects/heatmapgl_gen.go @@ -65,7 +65,7 @@ type Heatmapgl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo HeatmapglHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*HeatmapglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -182,6 +182,7 @@ type Heatmapgl struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -212,6 +213,7 @@ type Heatmapgl struct { Xsrc string `json:"xsrc,omitempty"` // Xtype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's x coordinates are given by *x* (the default behavior when `x` is provided). If *scaled*, the heatmap's x coordinates are given by *x0* and *dx* (the default behavior when `x` is not provided). @@ -242,6 +244,7 @@ type Heatmapgl struct { Ysrc string `json:"ysrc,omitempty"` // Ytype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's y coordinates are given by *y* (the default behavior when `y` is provided) If *scaled*, the heatmap's y coordinates are given by *y0* and *dy* (the default behavior when `y` is not provided) @@ -278,6 +281,7 @@ type Heatmapgl struct { Zmin float64 `json:"zmin,omitempty"` // Zsmooth + // arrayOK: false // default: fast // type: enumerated // Picks a smoothing algorithm use to smooth `z` data. @@ -342,6 +346,7 @@ type HeatmapglColorbarTitle struct { Font *HeatmapglColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -382,6 +387,7 @@ type HeatmapglColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -400,6 +406,7 @@ type HeatmapglColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -418,6 +425,7 @@ type HeatmapglColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -442,6 +450,7 @@ type HeatmapglColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -454,12 +463,14 @@ type HeatmapglColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix HeatmapglColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -472,6 +483,7 @@ type HeatmapglColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -512,12 +524,14 @@ type HeatmapglColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow HeatmapglColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -536,6 +550,7 @@ type HeatmapglColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -548,6 +563,7 @@ type HeatmapglColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -600,6 +616,7 @@ type HeatmapglColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -618,6 +635,7 @@ type HeatmapglColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -674,10 +692,11 @@ type HeatmapglHoverlabelFont struct { type HeatmapglHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align HeatmapglHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*HeatmapglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/histogram2d_gen.go b/generated/v2.19.0/graph_objects/histogram2d_gen.go index 0296020..34ca79a 100644 --- a/generated/v2.19.0/graph_objects/histogram2d_gen.go +++ b/generated/v2.19.0/graph_objects/histogram2d_gen.go @@ -68,12 +68,14 @@ type Histogram2d struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Histfunc + // arrayOK: false // default: count // type: enumerated // Specifies the binning function used for this histogram trace. If *count*, the histogram values are computed by counting the number of values lying inside each bin. If *sum*, *avg*, *min*, *max*, the histogram values are computed using the sum, the average, the minimum or the maximum of the values lying inside each bin respectively. Histfunc Histogram2dHistfunc `json:"histfunc,omitempty"` // Histnorm + // arrayOK: false // default: // type: enumerated // Specifies the type of normalization used for this histogram trace. If **, the span of each bar corresponds to the number of occurrences (i.e. the number of data points lying inside the bins). If *percent* / *probability*, the span of each bar corresponds to the percentage / fraction of occurrences with respect to the total number of sample points (here, the sum of all bin HEIGHTS equals 100% / 1). If *density*, the span of each bar corresponds to the number of occurrences in a bin divided by the size of the bin interval (here, the sum of all bin AREAS equals the total number of sample points). If *probability density*, the area of each bar corresponds to the probability that an event will fall into the corresponding bin (here, the sum of all bin AREAS equals 1). @@ -83,7 +85,7 @@ type Histogram2d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo Histogram2dHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*Histogram2dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -232,6 +234,7 @@ type Histogram2d struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -260,6 +263,7 @@ type Histogram2d struct { Xbins *Histogram2dXbins `json:"xbins,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -306,6 +310,7 @@ type Histogram2d struct { Ybins *Histogram2dYbins `json:"ybins,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -366,6 +371,7 @@ type Histogram2d struct { Zmin float64 `json:"zmin,omitempty"` // Zsmooth + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Picks a smoothing algorithm use to smooth `z` data. @@ -430,6 +436,7 @@ type Histogram2dColorbarTitle struct { Font *Histogram2dColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -470,6 +477,7 @@ type Histogram2dColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -488,6 +496,7 @@ type Histogram2dColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -506,6 +515,7 @@ type Histogram2dColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -530,6 +540,7 @@ type Histogram2dColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -542,12 +553,14 @@ type Histogram2dColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix Histogram2dColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -560,6 +573,7 @@ type Histogram2dColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -600,12 +614,14 @@ type Histogram2dColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow Histogram2dColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -624,6 +640,7 @@ type Histogram2dColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -636,6 +653,7 @@ type Histogram2dColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -688,6 +706,7 @@ type Histogram2dColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -706,6 +725,7 @@ type Histogram2dColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -762,10 +782,11 @@ type Histogram2dHoverlabelFont struct { type Histogram2dHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align Histogram2dHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*Histogram2dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go b/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go index e42bf25..fcbf633 100644 --- a/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go +++ b/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go @@ -78,12 +78,14 @@ type Histogram2dcontour struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Histfunc + // arrayOK: false // default: count // type: enumerated // Specifies the binning function used for this histogram trace. If *count*, the histogram values are computed by counting the number of values lying inside each bin. If *sum*, *avg*, *min*, *max*, the histogram values are computed using the sum, the average, the minimum or the maximum of the values lying inside each bin respectively. Histfunc Histogram2dcontourHistfunc `json:"histfunc,omitempty"` // Histnorm + // arrayOK: false // default: // type: enumerated // Specifies the type of normalization used for this histogram trace. If **, the span of each bar corresponds to the number of occurrences (i.e. the number of data points lying inside the bins). If *percent* / *probability*, the span of each bar corresponds to the percentage / fraction of occurrences with respect to the total number of sample points (here, the sum of all bin HEIGHTS equals 100% / 1). If *density*, the span of each bar corresponds to the number of occurrences in a bin divided by the size of the bin interval (here, the sum of all bin AREAS equals the total number of sample points). If *probability density*, the area of each bar corresponds to the probability that an event will fall into the corresponding bin (here, the sum of all bin AREAS equals 1). @@ -93,7 +95,7 @@ type Histogram2dcontour struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo Histogram2dcontourHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*Histogram2dcontourHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -252,6 +254,7 @@ type Histogram2dcontour struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -280,6 +283,7 @@ type Histogram2dcontour struct { Xbins *Histogram2dcontourXbins `json:"xbins,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -320,6 +324,7 @@ type Histogram2dcontour struct { Ybins *Histogram2dcontourYbins `json:"ybins,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -432,6 +437,7 @@ type Histogram2dcontourColorbarTitle struct { Font *Histogram2dcontourColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -472,6 +478,7 @@ type Histogram2dcontourColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -490,6 +497,7 @@ type Histogram2dcontourColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -508,6 +516,7 @@ type Histogram2dcontourColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -532,6 +541,7 @@ type Histogram2dcontourColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -544,12 +554,14 @@ type Histogram2dcontourColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix Histogram2dcontourColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -562,6 +574,7 @@ type Histogram2dcontourColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -602,12 +615,14 @@ type Histogram2dcontourColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow Histogram2dcontourColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -626,6 +641,7 @@ type Histogram2dcontourColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -638,6 +654,7 @@ type Histogram2dcontourColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -690,6 +707,7 @@ type Histogram2dcontourColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -708,6 +726,7 @@ type Histogram2dcontourColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -746,6 +765,7 @@ type Histogram2dcontourContoursLabelfont struct { type Histogram2dcontourContours struct { // Coloring + // arrayOK: false // default: fill // type: enumerated // Determines the coloring method showing the contour values. If *fill*, coloring is done evenly between each contour level If *heatmap*, a heatmap gradient coloring is applied between each contour level. If *lines*, coloring is done on the contour lines. If *none*, no coloring is applied on this trace. @@ -768,6 +788,7 @@ type Histogram2dcontourContours struct { Labelformat string `json:"labelformat,omitempty"` // Operation + // arrayOK: false // default: = // type: enumerated // Sets the constraint operation. *=* keeps regions equal to `value` *<* and *<=* keep regions less than `value` *>* and *>=* keep regions greater than `value` *[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]` *][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. @@ -798,6 +819,7 @@ type Histogram2dcontourContours struct { Start float64 `json:"start,omitempty"` // Type + // arrayOK: false // default: levels // type: enumerated // If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. @@ -854,10 +876,11 @@ type Histogram2dcontourHoverlabelFont struct { type Histogram2dcontourHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align Histogram2dcontourHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*Histogram2dcontourHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/histogram_gen.go b/generated/v2.19.0/graph_objects/histogram_gen.go index a433228..312d88a 100644 --- a/generated/v2.19.0/graph_objects/histogram_gen.go +++ b/generated/v2.19.0/graph_objects/histogram_gen.go @@ -46,6 +46,7 @@ type Histogram struct { Cliponaxis Bool `json:"cliponaxis,omitempty"` // Constraintext + // arrayOK: false // default: both // type: enumerated // Constrain the size of text inside or outside a bar to be no larger than the bar itself. @@ -76,12 +77,14 @@ type Histogram struct { ErrorY *HistogramErrorY `json:"error_y,omitempty"` // Histfunc + // arrayOK: false // default: count // type: enumerated // Specifies the binning function used for this histogram trace. If *count*, the histogram values are computed by counting the number of values lying inside each bin. If *sum*, *avg*, *min*, *max*, the histogram values are computed using the sum, the average, the minimum or the maximum of the values lying inside each bin respectively. Histfunc HistogramHistfunc `json:"histfunc,omitempty"` // Histnorm + // arrayOK: false // default: // type: enumerated // Specifies the type of normalization used for this histogram trace. If **, the span of each bar corresponds to the number of occurrences (i.e. the number of data points lying inside the bins). If *percent* / *probability*, the span of each bar corresponds to the percentage / fraction of occurrences with respect to the total number of sample points (here, the sum of all bin HEIGHTS equals 100% / 1). If *density*, the span of each bar corresponds to the number of occurrences in a bin divided by the size of the bin interval (here, the sum of all bin AREAS equals the total number of sample points). If *probability density*, the area of each bar corresponds to the probability that an event will fall into the corresponding bin (here, the sum of all bin AREAS equals 1). @@ -91,7 +94,7 @@ type Histogram struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo HistogramHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*HistogramHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -140,6 +143,7 @@ type Histogram struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextanchor + // arrayOK: false // default: end // type: enumerated // Determines if texts are kept at center or start/end points in `textposition` *inside* mode. @@ -218,6 +222,7 @@ type Histogram struct { Opacity float64 `json:"opacity,omitempty"` // Orientation + // arrayOK: false // default: %!s() // type: enumerated // Sets the orientation of the bars. With *v* (*h*), the value of the each bar spans along the vertical (horizontal). @@ -264,6 +269,7 @@ type Histogram struct { Textfont *HistogramTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: false // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. @@ -304,6 +310,7 @@ type Histogram struct { Unselected *HistogramUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -326,6 +333,7 @@ type Histogram struct { Xbins *HistogramXbins `json:"xbins,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -360,6 +368,7 @@ type Histogram struct { Ybins *HistogramYbins `json:"ybins,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -382,12 +391,14 @@ type Histogram struct { type HistogramCumulative struct { // Currentbin + // arrayOK: false // default: include // type: enumerated // Only applies if cumulative is enabled. Sets whether the current bin is included, excluded, or has half of its value included in the current cumulative value. *include* is the default for compatibility with various other tools, however it introduces a half-bin bias to the results. *exclude* makes the opposite half-bin bias, and *half* removes it. Currentbin HistogramCumulativeCurrentbin `json:"currentbin,omitempty"` // Direction + // arrayOK: false // default: increasing // type: enumerated // Only applies if cumulative is enabled. If *increasing* (default) we sum all prior bins, so the result increases from left to right. If *decreasing* we sum later bins so the result decreases from left to right. @@ -464,6 +475,7 @@ type HistogramErrorX struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -552,6 +564,7 @@ type HistogramErrorY struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -626,10 +639,11 @@ type HistogramHoverlabelFont struct { type HistogramHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align HistogramHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*HistogramHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -788,6 +802,7 @@ type HistogramMarkerColorbarTitle struct { Font *HistogramMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -828,6 +843,7 @@ type HistogramMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -846,6 +862,7 @@ type HistogramMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -864,6 +881,7 @@ type HistogramMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -888,6 +906,7 @@ type HistogramMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -900,12 +919,14 @@ type HistogramMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix HistogramMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -918,6 +939,7 @@ type HistogramMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -958,12 +980,14 @@ type HistogramMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow HistogramMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -982,6 +1006,7 @@ type HistogramMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -994,6 +1019,7 @@ type HistogramMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -1046,6 +1072,7 @@ type HistogramMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -1064,6 +1091,7 @@ type HistogramMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -1186,16 +1214,18 @@ type HistogramMarkerPattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode HistogramMarkerPatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape HistogramMarkerPatternShape `json:"shape,omitempty"` + Shape ArrayOK[*HistogramMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/icicle_gen.go b/generated/v2.19.0/graph_objects/icicle_gen.go index fdd329d..58ca23d 100644 --- a/generated/v2.19.0/graph_objects/icicle_gen.go +++ b/generated/v2.19.0/graph_objects/icicle_gen.go @@ -16,6 +16,7 @@ type Icicle struct { Type TraceType `json:"type,omitempty"` // Branchvalues + // arrayOK: false // default: remainder // type: enumerated // Determines how the items in `values` are summed. When set to *total*, items in `values` are taken to be value of all its descendants. When set to *remainder*, items in `values` corresponding to the root and the branches sectors are taken to be the extra part not part of the sum of the values at their leaves. @@ -47,7 +48,7 @@ type Icicle struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo IcicleHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*IcicleHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -222,6 +223,7 @@ type Icicle struct { Textinfo IcicleTextinfo `json:"textinfo,omitempty"` // Textposition + // arrayOK: false // default: top left // type: enumerated // Sets the positions of the `text` elements. @@ -280,6 +282,7 @@ type Icicle struct { Valuessrc string `json:"valuessrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -358,10 +361,11 @@ type IcicleHoverlabelFont struct { type IcicleHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align IcicleHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*IcicleHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -548,6 +552,7 @@ type IcicleMarkerColorbarTitle struct { Font *IcicleMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -588,6 +593,7 @@ type IcicleMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -606,6 +612,7 @@ type IcicleMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -624,6 +631,7 @@ type IcicleMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -648,6 +656,7 @@ type IcicleMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -660,12 +669,14 @@ type IcicleMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix IcicleMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -678,6 +689,7 @@ type IcicleMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -718,12 +730,14 @@ type IcicleMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow IcicleMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -742,6 +756,7 @@ type IcicleMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -754,6 +769,7 @@ type IcicleMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -806,6 +822,7 @@ type IcicleMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -824,6 +841,7 @@ type IcicleMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -1026,12 +1044,14 @@ type IciclePathbarTextfont struct { type IciclePathbar struct { // Edgeshape + // arrayOK: false // default: > // type: enumerated // Determines which shape is used for edges between `barpath` labels. Edgeshape IciclePathbarEdgeshape `json:"edgeshape,omitempty"` // Side + // arrayOK: false // default: top // type: enumerated // Determines on which side of the the treemap the `pathbar` should be presented. @@ -1130,6 +1150,7 @@ type IcicleTiling struct { Flip IcicleTilingFlip `json:"flip,omitempty"` // Orientation + // arrayOK: false // default: h // type: enumerated // When set in conjunction with `tiling.flip`, determines on which side the root nodes are drawn in the chart. If `tiling.orientation` is *v* and `tiling.flip` is **, the root nodes appear at the top. If `tiling.orientation` is *v* and `tiling.flip` is *y*, the root nodes appear at the bottom. If `tiling.orientation` is *h* and `tiling.flip` is **, the root nodes appear at the left. If `tiling.orientation` is *h* and `tiling.flip` is *x*, the root nodes appear at the right. diff --git a/generated/v2.19.0/graph_objects/image_gen.go b/generated/v2.19.0/graph_objects/image_gen.go index 03b974b..42d73f5 100644 --- a/generated/v2.19.0/graph_objects/image_gen.go +++ b/generated/v2.19.0/graph_objects/image_gen.go @@ -16,6 +16,7 @@ type Image struct { Type TraceType `json:"type,omitempty"` // Colormodel + // arrayOK: false // default: %!s() // type: enumerated // Color model used to map the numerical color components described in `z` into colors. If `source` is specified, this attribute will be set to `rgba256` otherwise it defaults to `rgb`. @@ -49,7 +50,7 @@ type Image struct { // default: x+y+z+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ImageHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ImageHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -172,6 +173,7 @@ type Image struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -220,6 +222,7 @@ type Image struct { Zmin interface{} `json:"zmin,omitempty"` // Zsmooth + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Picks a smoothing algorithm used to smooth `z` data. This only applies for image traces that use the `source` attribute. @@ -276,10 +279,11 @@ type ImageHoverlabelFont struct { type ImageHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ImageHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ImageHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/indicator_gen.go b/generated/v2.19.0/graph_objects/indicator_gen.go index 5986ace..6f55870 100644 --- a/generated/v2.19.0/graph_objects/indicator_gen.go +++ b/generated/v2.19.0/graph_objects/indicator_gen.go @@ -16,6 +16,7 @@ type Indicator struct { Type TraceType `json:"type,omitempty"` // Align + // arrayOK: false // default: %!s() // type: enumerated // Sets the horizontal alignment of the `text` within the box. Note that this attribute has no effect if an angular gauge is displayed: in this case, it is always centered @@ -134,6 +135,7 @@ type Indicator struct { Value float64 `json:"value,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -210,6 +212,7 @@ type IndicatorDelta struct { Increasing *IndicatorDeltaIncreasing `json:"increasing,omitempty"` // Position + // arrayOK: false // default: bottom // type: enumerated // Sets the position of delta with respect to the number. @@ -306,6 +309,7 @@ type IndicatorGaugeAxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -342,6 +346,7 @@ type IndicatorGaugeAxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -354,12 +359,14 @@ type IndicatorGaugeAxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix IndicatorGaugeAxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -412,6 +419,7 @@ type IndicatorGaugeAxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -424,6 +432,7 @@ type IndicatorGaugeAxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: outside // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -574,6 +583,7 @@ type IndicatorGauge struct { Borderwidth float64 `json:"borderwidth,omitempty"` // Shape + // arrayOK: false // default: angular // type: enumerated // Set the shape of the gauge @@ -716,6 +726,7 @@ type IndicatorTitleFont struct { type IndicatorTitle struct { // Align + // arrayOK: false // default: %!s() // type: enumerated // Sets the horizontal alignment of the title. It defaults to `center` except for bullet charts for which it defaults to right. diff --git a/generated/v2.19.0/graph_objects/isosurface_gen.go b/generated/v2.19.0/graph_objects/isosurface_gen.go index 9eb91cf..3df0417 100644 --- a/generated/v2.19.0/graph_objects/isosurface_gen.go +++ b/generated/v2.19.0/graph_objects/isosurface_gen.go @@ -91,7 +91,7 @@ type Isosurface struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo IsosurfaceHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*IsosurfaceHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -288,6 +288,7 @@ type Isosurface struct { Valuesrc string `json:"valuesrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -464,6 +465,7 @@ type IsosurfaceColorbarTitle struct { Font *IsosurfaceColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -504,6 +506,7 @@ type IsosurfaceColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -522,6 +525,7 @@ type IsosurfaceColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -540,6 +544,7 @@ type IsosurfaceColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -564,6 +569,7 @@ type IsosurfaceColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -576,12 +582,14 @@ type IsosurfaceColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix IsosurfaceColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -594,6 +602,7 @@ type IsosurfaceColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -634,12 +643,14 @@ type IsosurfaceColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow IsosurfaceColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -658,6 +669,7 @@ type IsosurfaceColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -670,6 +682,7 @@ type IsosurfaceColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -722,6 +735,7 @@ type IsosurfaceColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -740,6 +754,7 @@ type IsosurfaceColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -818,10 +833,11 @@ type IsosurfaceHoverlabelFont struct { type IsosurfaceHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align IsosurfaceHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*IsosurfaceHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/layout_gen.go b/generated/v2.19.0/graph_objects/layout_gen.go index cf5259d..e8fcb52 100644 --- a/generated/v2.19.0/graph_objects/layout_gen.go +++ b/generated/v2.19.0/graph_objects/layout_gen.go @@ -24,6 +24,7 @@ type Layout struct { Autosize Bool `json:"autosize,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. This is the default value; however it could be overridden for individual axes. @@ -42,12 +43,14 @@ type Layout struct { Bargroupgap float64 `json:"bargroupgap,omitempty"` // Barmode + // arrayOK: false // default: group // type: enumerated // Determines how bars at the same location coordinate are displayed on the graph. With *stack*, the bars are stacked on top of one another With *relative*, the bars are stacked on top of one another, with negative values below the axis, positive values above With *group*, the bars are plotted next to one another centered around the shared location. With *overlay*, the bars are plotted over one another, you might need to reduce *opacity* to see multiple bars. Barmode LayoutBarmode `json:"barmode,omitempty"` // Barnorm + // arrayOK: false // default: // type: enumerated // Sets the normalization for bar traces on the graph. With *fraction*, the value of each bar is divided by the sum of all values at that location coordinate. *percent* is the same but multiplied by 100 to show percentages. @@ -66,12 +69,14 @@ type Layout struct { Boxgroupgap float64 `json:"boxgroupgap,omitempty"` // Boxmode + // arrayOK: false // default: overlay // type: enumerated // Determines how boxes at the same location coordinate are displayed on the graph. If *group*, the boxes are plotted next to one another centered around the shared location. If *overlay*, the boxes are plotted over one another, you might need to set *opacity* to see them multiple boxes. Has no effect on traces that have *width* set. Boxmode LayoutBoxmode `json:"boxmode,omitempty"` // Calendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the default calendar system to use for interpreting and displaying dates throughout the plot. @@ -110,6 +115,7 @@ type Layout struct { Datarevision interface{} `json:"datarevision,omitempty"` // Dragmode + // arrayOK: false // default: zoom // type: enumerated // Determines the mode of drag interactions. *select* and *lasso* apply only to scatter traces with markers or text. *orbit* and *turntable* apply only to 3D scenes. @@ -174,6 +180,7 @@ type Layout struct { Funnelgroupgap float64 `json:"funnelgroupgap,omitempty"` // Funnelmode + // arrayOK: false // default: stack // type: enumerated // Determines how bars at the same location coordinate are displayed on the graph. With *stack*, the bars are stacked on top of one another With *group*, the bars are plotted next to one another centered around the shared location. With *overlay*, the bars are plotted over one another, you might need to reduce *opacity* to see multiple bars. @@ -222,6 +229,7 @@ type Layout struct { Hoverlabel *LayoutHoverlabel `json:"hoverlabel,omitempty"` // Hovermode + // arrayOK: false // default: closest // type: enumerated // Determines the mode of hover interactions. If *closest*, a single hoverlabel will appear for the *closest* point within the `hoverdistance`. If *x* (or *y*), multiple hoverlabels will appear for multiple points at the *closest* x- (or y-) coordinate within the `hoverdistance`, with the caveat that no more than one hoverlabel will appear per trace. If *x unified* (or *y unified*), a single hoverlabel will appear multiple points at the closest x- (or y-) coordinate within the `hoverdistance` with the caveat that no more than one hoverlabel will appear per trace. In this mode, spikelines are enabled by default perpendicular to the specified axis. If false, hover interactions are disabled. @@ -316,6 +324,7 @@ type Layout struct { Scattergap float64 `json:"scattergap,omitempty"` // Scattermode + // arrayOK: false // default: overlay // type: enumerated // Determines how scatter points at the same location coordinate are displayed on the graph. With *group*, the scatter points are plotted next to one another centered around the shared location. With *overlay*, the scatter points are plotted over one another, you might need to reduce *opacity* to see multiple scatter points. @@ -326,6 +335,7 @@ type Layout struct { Scene *LayoutScene `json:"scene,omitempty"` // Selectdirection + // arrayOK: false // default: any // type: enumerated // When `dragmode` is set to *select*, this limits the selection of the drag to horizontal, vertical or diagonal. *h* only allows horizontal selection, *v* only vertical, *d* only diagonal and *any* sets no limit. @@ -436,6 +446,7 @@ type Layout struct { Violingroupgap float64 `json:"violingroupgap,omitempty"` // Violinmode + // arrayOK: false // default: overlay // type: enumerated // Determines how violins at the same location coordinate are displayed on the graph. If *group*, the violins are plotted next to one another centered around the shared location. If *overlay*, the violins are plotted over one another, you might need to set *opacity* to see them multiple violins. Has no effect on traces that have *width* set. @@ -454,6 +465,7 @@ type Layout struct { Waterfallgroupgap float64 `json:"waterfallgroupgap,omitempty"` // Waterfallmode + // arrayOK: false // default: group // type: enumerated // Determines how bars at the same location coordinate are displayed on the graph. With *group*, the bars are plotted next to one another centered around the shared location. With *overlay*, the bars are plotted over one another, you might need to reduce *opacity* to see multiple bars. @@ -598,6 +610,7 @@ type LayoutColoraxisColorbarTitle struct { Font *LayoutColoraxisColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -638,6 +651,7 @@ type LayoutColoraxisColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -656,6 +670,7 @@ type LayoutColoraxisColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -674,6 +689,7 @@ type LayoutColoraxisColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -698,6 +714,7 @@ type LayoutColoraxisColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -710,12 +727,14 @@ type LayoutColoraxisColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutColoraxisColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -728,6 +747,7 @@ type LayoutColoraxisColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -768,12 +788,14 @@ type LayoutColoraxisColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow LayoutColoraxisColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -792,6 +814,7 @@ type LayoutColoraxisColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -804,6 +827,7 @@ type LayoutColoraxisColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -856,6 +880,7 @@ type LayoutColoraxisColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -874,6 +899,7 @@ type LayoutColoraxisColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -1176,6 +1202,7 @@ type LayoutGeoProjection struct { Tilt float64 `json:"tilt,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Sets the projection type. @@ -1224,6 +1251,7 @@ type LayoutGeo struct { Domain *LayoutGeoDomain `json:"domain,omitempty"` // Fitbounds + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Determines if this subplot's view settings are auto-computed to fit trace data. On scoped maps, setting `fitbounds` leads to `center.lon` and `center.lat` getting auto-filled. On maps with a non-clipped projection, setting `fitbounds` leads to `center.lon`, `center.lat`, and `projection.rotation.lon` getting auto-filled. On maps with a clipped projection, setting `fitbounds` leads to `center.lon`, `center.lat`, `projection.rotation.lon`, `projection.rotation.lat`, `lonaxis.range` and `lonaxis.range` getting auto-filled. If *locations*, only the trace's visible locations are considered in the `fitbounds` computations. If *geojson*, the entire trace input `geojson` (if provided) is considered in the `fitbounds` computations, Defaults to *false*. @@ -1272,6 +1300,7 @@ type LayoutGeo struct { Projection *LayoutGeoProjection `json:"projection,omitempty"` // Resolution + // arrayOK: false // default: %!s(float64=110) // type: enumerated // Sets the resolution of the base layers. The values have units of km/mm e.g. 110 corresponds to a scale ratio of 1:110,000,000. @@ -1290,6 +1319,7 @@ type LayoutGeo struct { Riverwidth float64 `json:"riverwidth,omitempty"` // Scope + // arrayOK: false // default: world // type: enumerated // Set the scope of the map. @@ -1398,12 +1428,14 @@ type LayoutGrid struct { Domain *LayoutGridDomain `json:"domain,omitempty"` // Pattern + // arrayOK: false // default: coupled // type: enumerated // If no `subplots`, `xaxes`, or `yaxes` are given but we do have `rows` and `columns`, we can generate defaults using consecutive axis IDs, in two ways: *coupled* gives one x axis per column and one y axis per row. *independent* uses a new xy pair for each cell, left-to-right across each row then iterating rows according to `roworder`. Pattern LayoutGridPattern `json:"pattern,omitempty"` // Roworder + // arrayOK: false // default: top to bottom // type: enumerated // Is the first row the top or the bottom? Note that columns are always enumerated from left to right. @@ -1434,6 +1466,7 @@ type LayoutGrid struct { Xgap float64 `json:"xgap,omitempty"` // Xside + // arrayOK: false // default: bottom plot // type: enumerated // Sets where the x axis labels and titles go. *bottom* means the very bottom of the grid. *bottom plot* is the lowest plot that each x axis is used in. *top* and *top plot* are similar. @@ -1452,6 +1485,7 @@ type LayoutGrid struct { Ygap float64 `json:"ygap,omitempty"` // Yside + // arrayOK: false // default: left plot // type: enumerated // Sets where the y axis labels and titles go. *left* means the very left edge of the grid. *left plot* is the leftmost plot that each y axis is used in. *right* and *right plot* are similar. @@ -1506,6 +1540,7 @@ type LayoutHoverlabelGrouptitlefont struct { type LayoutHoverlabel struct { // Align + // arrayOK: false // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines @@ -1612,6 +1647,7 @@ type LayoutLegendTitle struct { Font *LayoutLegendTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of legend's title with respect to the legend items. Defaulted to *top* with `orientation` is *h*. Defaulted to *left* with `orientation` is *v*. The *top left* options could be used to expand legend area in both x and y sides. @@ -1652,6 +1688,7 @@ type LayoutLegend struct { Entrywidth float64 `json:"entrywidth,omitempty"` // Entrywidthmode + // arrayOK: false // default: pixels // type: enumerated // Determines what entrywidth means. @@ -1662,6 +1699,7 @@ type LayoutLegend struct { Font *LayoutLegendFont `json:"font,omitempty"` // Groupclick + // arrayOK: false // default: togglegroup // type: enumerated // Determines the behavior on legend group item click. *toggleitem* toggles the visibility of the individual item clicked on the graph. *togglegroup* toggles the visibility of all items in the same legendgroup as the item clicked on the graph. @@ -1672,18 +1710,21 @@ type LayoutLegend struct { Grouptitlefont *LayoutLegendGrouptitlefont `json:"grouptitlefont,omitempty"` // Itemclick + // arrayOK: false // default: toggle // type: enumerated // Determines the behavior on legend item click. *toggle* toggles the visibility of the item clicked on the graph. *toggleothers* makes the clicked item the sole visible item on the graph. *false* disables legend item click interactions. Itemclick LayoutLegendItemclick `json:"itemclick,omitempty"` // Itemdoubleclick + // arrayOK: false // default: toggleothers // type: enumerated // Determines the behavior on legend item double-click. *toggle* toggles the visibility of the item clicked on the graph. *toggleothers* makes the clicked item the sole visible item on the graph. *false* disables legend item double-click interactions. Itemdoubleclick LayoutLegendItemdoubleclick `json:"itemdoubleclick,omitempty"` // Itemsizing + // arrayOK: false // default: trace // type: enumerated // Determines if the legend items symbols scale with their corresponding *trace* attributes or remain *constant* independent of the symbol size on the graph. @@ -1696,6 +1737,7 @@ type LayoutLegend struct { Itemwidth float64 `json:"itemwidth,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the legend. @@ -1724,6 +1766,7 @@ type LayoutLegend struct { Uirevision interface{} `json:"uirevision,omitempty"` // Valign + // arrayOK: false // default: middle // type: enumerated // Sets the vertical alignment of the symbols with respect to their associated text. @@ -1736,6 +1779,7 @@ type LayoutLegend struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: left // type: enumerated // Sets the legend's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the legend. Value *auto* anchors legends to the right for `x` values greater than or equal to 2/3, anchors legends to the left for `x` values less than or equal to 1/3 and anchors legends with respect to their center otherwise. @@ -1748,6 +1792,7 @@ type LayoutLegend struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets the legend's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the legend. Value *auto* anchors legends at their bottom for `y` values less than or equal to 1/3, anchors legends to at their top for `y` values greater than or equal to 2/3 and anchors legends with respect to their middle otherwise. @@ -1958,6 +2003,7 @@ type LayoutModebar struct { Color Color `json:"color,omitempty"` // Orientation + // arrayOK: false // default: h // type: enumerated // Sets the orientation of the modebar. @@ -2012,6 +2058,7 @@ type LayoutNewselection struct { Line *LayoutNewselectionLine `json:"line,omitempty"` // Mode + // arrayOK: false // default: immediate // type: enumerated // Describes how a new selection is created. If `immediate`, a new selection is created after first mouse up. If `gradual`, a new selection is not created after first mouse. By adding to and subtracting from the initial selection, this option allows declaring extra outlines of the selection. @@ -2066,18 +2113,21 @@ type LayoutNewshapeLabel struct { Textangle float64 `json:"textangle,omitempty"` // Textposition + // arrayOK: false // default: %!s() // type: enumerated // Sets the position of the label text relative to the new shape. Supported values for rectangles, circles and paths are *top left*, *top center*, *top right*, *middle left*, *middle center*, *middle right*, *bottom left*, *bottom center*, and *bottom right*. Supported values for lines are *start*, *middle*, and *end*. Default: *middle center* for rectangles, circles, and paths; *middle* for lines. Textposition LayoutNewshapeLabelTextposition `json:"textposition,omitempty"` // Xanchor + // arrayOK: false // default: auto // type: enumerated // Sets the label's horizontal position anchor This anchor binds the specified `textposition` to the *left*, *center* or *right* of the label text. For example, if `textposition` is set to *top right* and `xanchor` to *right* then the right-most portion of the label text lines up with the right-most edge of the new shape. Xanchor LayoutNewshapeLabelXanchor `json:"xanchor,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets the label's vertical position anchor This anchor binds the specified `textposition` to the *top*, *middle* or *bottom* of the label text. For example, if `textposition` is set to *top right* and `yanchor` to *top* then the top-most portion of the label text lines up with the top-most edge of the new shape. @@ -2110,6 +2160,7 @@ type LayoutNewshapeLine struct { type LayoutNewshape struct { // Drawdirection + // arrayOK: false // default: diagonal // type: enumerated // When `dragmode` is set to *drawrect*, *drawline* or *drawcircle* this limits the drag to be horizontal, vertical or diagonal. Using *diagonal* there is no limit e.g. in drawing lines in any direction. *ortho* limits the draw to be either horizontal or vertical. *horizontal* allows horizontal extend. *vertical* allows vertical extend. @@ -2122,6 +2173,7 @@ type LayoutNewshape struct { Fillcolor Color `json:"fillcolor,omitempty"` // Fillrule + // arrayOK: false // default: evenodd // type: enumerated // Determines the path's interior. For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule @@ -2132,6 +2184,7 @@ type LayoutNewshape struct { Label *LayoutNewshapeLabel `json:"label,omitempty"` // Layer + // arrayOK: false // default: above // type: enumerated // Specifies whether new shapes are drawn below or above traces. @@ -2174,6 +2227,7 @@ type LayoutPolarAngularaxisTickfont struct { type LayoutPolarAngularaxis struct { // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. @@ -2192,6 +2246,7 @@ type LayoutPolarAngularaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -2204,6 +2259,7 @@ type LayoutPolarAngularaxis struct { Color Color `json:"color,omitempty"` // Direction + // arrayOK: false // default: counterclockwise // type: enumerated // Sets the direction corresponding to positive angles. @@ -2216,6 +2272,7 @@ type LayoutPolarAngularaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -2252,6 +2309,7 @@ type LayoutPolarAngularaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -2300,6 +2358,7 @@ type LayoutPolarAngularaxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -2324,18 +2383,21 @@ type LayoutPolarAngularaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutPolarAngularaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. Showticksuffix LayoutPolarAngularaxisShowticksuffix `json:"showticksuffix,omitempty"` // Thetaunit + // arrayOK: false // default: degrees // type: enumerated // Sets the format unit of the formatted *theta* values. Has an effect only when `angularaxis.type` is *linear*. @@ -2388,6 +2450,7 @@ type LayoutPolarAngularaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -2400,6 +2463,7 @@ type LayoutPolarAngularaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -2442,6 +2506,7 @@ type LayoutPolarAngularaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the angular axis type. If *linear*, set `thetaunit` to determine the unit in which axis value are shown. If *category, use `period` to set the number of integer coordinates around polar axis. @@ -2556,18 +2621,21 @@ type LayoutPolarRadialaxis struct { Angle float64 `json:"angle,omitempty"` // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided, then `autorange` is set to *false*. Autorange LayoutPolarRadialaxisAutorange `json:"autorange,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. Autotypenumbers LayoutPolarRadialaxisAutotypenumbers `json:"autotypenumbers,omitempty"` // Calendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar` @@ -2586,6 +2654,7 @@ type LayoutPolarRadialaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -2604,6 +2673,7 @@ type LayoutPolarRadialaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -2640,6 +2710,7 @@ type LayoutPolarRadialaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -2676,6 +2747,7 @@ type LayoutPolarRadialaxis struct { Range interface{} `json:"range,omitempty"` // Rangemode + // arrayOK: false // default: tozero // type: enumerated // If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. If *normal*, the range is computed in relation to the extrema of the input data (same behavior as for cartesian axes). @@ -2688,6 +2760,7 @@ type LayoutPolarRadialaxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -2712,18 +2785,21 @@ type LayoutPolarRadialaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutPolarRadialaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. Showticksuffix LayoutPolarRadialaxisShowticksuffix `json:"showticksuffix,omitempty"` // Side + // arrayOK: false // default: clockwise // type: enumerated // Determines on which side of radial axis line the tick and tick labels appear. @@ -2776,6 +2852,7 @@ type LayoutPolarRadialaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -2788,6 +2865,7 @@ type LayoutPolarRadialaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -2834,6 +2912,7 @@ type LayoutPolarRadialaxis struct { Title *LayoutPolarRadialaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. @@ -2870,6 +2949,7 @@ type LayoutPolar struct { Domain *LayoutPolarDomain `json:"domain,omitempty"` // Gridshape + // arrayOK: false // default: circular // type: enumerated // Determines if the radial axis grid lines and angular axis line are drawn as *circular* sectors or as *linear* (polygon) sectors. Has an effect only when the angular axis has `type` *category*. Note that `radialaxis.angle` is snapped to the angle of the closest vertex when `gridshape` is *circular* (so that radial axis scale is the same as the data scale). @@ -2968,6 +3048,7 @@ type LayoutSceneCameraEye struct { type LayoutSceneCameraProjection struct { // Type + // arrayOK: false // default: perspective // type: enumerated // Sets the projection type. The projection type could be either *perspective* or *orthographic*. The default is *perspective*. @@ -3106,12 +3187,14 @@ type LayoutSceneXaxisTitle struct { type LayoutSceneXaxis struct { // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided, then `autorange` is set to *false*. Autorange LayoutSceneXaxisAutorange `json:"autorange,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. @@ -3124,6 +3207,7 @@ type LayoutSceneXaxis struct { Backgroundcolor Color `json:"backgroundcolor,omitempty"` // Calendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar` @@ -3142,6 +3226,7 @@ type LayoutSceneXaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -3160,6 +3245,7 @@ type LayoutSceneXaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -3208,6 +3294,7 @@ type LayoutSceneXaxis struct { Minexponent float64 `json:"minexponent,omitempty"` // Mirror + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area. If *true*, the axis lines are mirrored. If *ticks*, the axis lines and ticks are mirrored. If *false*, mirroring is disable. If *all*, axis lines are mirrored on all shared-axes subplots. If *allticks*, axis lines and ticks are mirrored on all shared-axes subplots. @@ -3226,6 +3313,7 @@ type LayoutSceneXaxis struct { Range interface{} `json:"range,omitempty"` // Rangemode + // arrayOK: false // default: normal // type: enumerated // If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. Applies only to linear axes. @@ -3250,6 +3338,7 @@ type LayoutSceneXaxis struct { Showbackground Bool `json:"showbackground,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -3280,12 +3369,14 @@ type LayoutSceneXaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutSceneXaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -3350,6 +3441,7 @@ type LayoutSceneXaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -3362,6 +3454,7 @@ type LayoutSceneXaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -3408,6 +3501,7 @@ type LayoutSceneXaxis struct { Title *LayoutSceneXaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. @@ -3500,12 +3594,14 @@ type LayoutSceneYaxisTitle struct { type LayoutSceneYaxis struct { // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided, then `autorange` is set to *false*. Autorange LayoutSceneYaxisAutorange `json:"autorange,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. @@ -3518,6 +3614,7 @@ type LayoutSceneYaxis struct { Backgroundcolor Color `json:"backgroundcolor,omitempty"` // Calendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar` @@ -3536,6 +3633,7 @@ type LayoutSceneYaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -3554,6 +3652,7 @@ type LayoutSceneYaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -3602,6 +3701,7 @@ type LayoutSceneYaxis struct { Minexponent float64 `json:"minexponent,omitempty"` // Mirror + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area. If *true*, the axis lines are mirrored. If *ticks*, the axis lines and ticks are mirrored. If *false*, mirroring is disable. If *all*, axis lines are mirrored on all shared-axes subplots. If *allticks*, axis lines and ticks are mirrored on all shared-axes subplots. @@ -3620,6 +3720,7 @@ type LayoutSceneYaxis struct { Range interface{} `json:"range,omitempty"` // Rangemode + // arrayOK: false // default: normal // type: enumerated // If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. Applies only to linear axes. @@ -3644,6 +3745,7 @@ type LayoutSceneYaxis struct { Showbackground Bool `json:"showbackground,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -3674,12 +3776,14 @@ type LayoutSceneYaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutSceneYaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -3744,6 +3848,7 @@ type LayoutSceneYaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -3756,6 +3861,7 @@ type LayoutSceneYaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -3802,6 +3908,7 @@ type LayoutSceneYaxis struct { Title *LayoutSceneYaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. @@ -3894,12 +4001,14 @@ type LayoutSceneZaxisTitle struct { type LayoutSceneZaxis struct { // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided, then `autorange` is set to *false*. Autorange LayoutSceneZaxisAutorange `json:"autorange,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. @@ -3912,6 +4021,7 @@ type LayoutSceneZaxis struct { Backgroundcolor Color `json:"backgroundcolor,omitempty"` // Calendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar` @@ -3930,6 +4040,7 @@ type LayoutSceneZaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -3948,6 +4059,7 @@ type LayoutSceneZaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -3996,6 +4108,7 @@ type LayoutSceneZaxis struct { Minexponent float64 `json:"minexponent,omitempty"` // Mirror + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area. If *true*, the axis lines are mirrored. If *ticks*, the axis lines and ticks are mirrored. If *false*, mirroring is disable. If *all*, axis lines are mirrored on all shared-axes subplots. If *allticks*, axis lines and ticks are mirrored on all shared-axes subplots. @@ -4014,6 +4127,7 @@ type LayoutSceneZaxis struct { Range interface{} `json:"range,omitempty"` // Rangemode + // arrayOK: false // default: normal // type: enumerated // If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. Applies only to linear axes. @@ -4038,6 +4152,7 @@ type LayoutSceneZaxis struct { Showbackground Bool `json:"showbackground,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -4068,12 +4183,14 @@ type LayoutSceneZaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutSceneZaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -4138,6 +4255,7 @@ type LayoutSceneZaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -4150,6 +4268,7 @@ type LayoutSceneZaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -4196,6 +4315,7 @@ type LayoutSceneZaxis struct { Title *LayoutSceneZaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. @@ -4236,6 +4356,7 @@ type LayoutScene struct { Annotations interface{} `json:"annotations,omitempty"` // Aspectmode + // arrayOK: false // default: auto // type: enumerated // If *cube*, this scene's axes are drawn as a cube, regardless of the axes' ranges. If *data*, this scene's axes are drawn in proportion with the axes' ranges. If *manual*, this scene's axes are drawn in proportion with the input of *aspectratio* (the default behavior if *aspectratio* is provided). If *auto*, this scene's axes are drawn using the results of *data* except when one axis is more than four times the size of the two others, where in that case the results of *cube* are used. @@ -4260,12 +4381,14 @@ type LayoutScene struct { Domain *LayoutSceneDomain `json:"domain,omitempty"` // Dragmode + // arrayOK: false // default: %!s() // type: enumerated // Determines the mode of drag interactions for this scene. Dragmode LayoutSceneDragmode `json:"dragmode,omitempty"` // Hovermode + // arrayOK: false // default: closest // type: enumerated // Determines the mode of hover interactions for this scene. @@ -4380,6 +4503,7 @@ type LayoutSmithImaginaryaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -4416,12 +4540,14 @@ type LayoutSmithImaginaryaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutSmithImaginaryaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -4456,6 +4582,7 @@ type LayoutSmithImaginaryaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -4554,6 +4681,7 @@ type LayoutSmithRealaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -4590,18 +4718,21 @@ type LayoutSmithRealaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutSmithRealaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. Showticksuffix LayoutSmithRealaxisShowticksuffix `json:"showticksuffix,omitempty"` // Side + // arrayOK: false // default: top // type: enumerated // Determines on which side of real axis line the tick and tick labels appear. @@ -4642,6 +4773,7 @@ type LayoutSmithRealaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *top* (*bottom*), this axis' are drawn above (below) the axis line. @@ -4774,6 +4906,7 @@ type LayoutTernaryAaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -4810,6 +4943,7 @@ type LayoutTernaryAaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -4852,6 +4986,7 @@ type LayoutTernaryAaxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -4876,12 +5011,14 @@ type LayoutTernaryAaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutTernaryAaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -4934,6 +5071,7 @@ type LayoutTernaryAaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -4946,6 +5084,7 @@ type LayoutTernaryAaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -5072,6 +5211,7 @@ type LayoutTernaryBaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -5108,6 +5248,7 @@ type LayoutTernaryBaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -5150,6 +5291,7 @@ type LayoutTernaryBaxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -5174,12 +5316,14 @@ type LayoutTernaryBaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutTernaryBaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -5232,6 +5376,7 @@ type LayoutTernaryBaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -5244,6 +5389,7 @@ type LayoutTernaryBaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -5370,6 +5516,7 @@ type LayoutTernaryCaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -5406,6 +5553,7 @@ type LayoutTernaryCaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -5448,6 +5596,7 @@ type LayoutTernaryCaxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -5472,12 +5621,14 @@ type LayoutTernaryCaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutTernaryCaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -5530,6 +5681,7 @@ type LayoutTernaryCaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -5542,6 +5694,7 @@ type LayoutTernaryCaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -5734,12 +5887,14 @@ type LayoutTitle struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: auto // type: enumerated // Sets the title's horizontal alignment with respect to its x position. *left* means that the title starts at x, *right* means that the title ends at x and *center* means that the title's center is at x. *auto* divides `xref` by three and calculates the `xanchor` value automatically based on the value of `x`. Xanchor LayoutTitleXanchor `json:"xanchor,omitempty"` // Xref + // arrayOK: false // default: container // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -5752,12 +5907,14 @@ type LayoutTitle struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: auto // type: enumerated // Sets the title's vertical alignment with respect to its y position. *top* means that the title's cap line is at y, *bottom* means that the title's baseline is at y and *middle* means that the title's midline is at y. *auto* divides `yref` by three and calculates the `yanchor` value automatically based on the value of `y`. Yanchor LayoutTitleYanchor `json:"yanchor,omitempty"` // Yref + // arrayOK: false // default: container // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -5774,12 +5931,14 @@ type LayoutTransition struct { Duration float64 `json:"duration,omitempty"` // Easing + // arrayOK: false // default: cubic-in-out // type: enumerated // The easing function used for the transition Easing LayoutTransitionEasing `json:"easing,omitempty"` // Ordering + // arrayOK: false // default: layout first // type: enumerated // Determines whether the figure's layout or traces smoothly transitions during updates that make both traces and layout change. @@ -5796,6 +5955,7 @@ type LayoutUniformtext struct { Minsize float64 `json:"minsize,omitempty"` // Mode + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Determines how the font size for various text elements are uniformed between each trace type. If the computed text sizes were smaller than the minimum size defined by `uniformtext.minsize` using *hide* option hides the text; and using *show* option shows the text without further downscaling. Please note that if the size defined by `minsize` is greater than the font size defined by trace, then the `minsize` is used. @@ -5860,12 +6020,14 @@ type LayoutXaxisMinor struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). Tickmode LayoutXaxisMinorTickmode `json:"tickmode,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -5962,6 +6124,7 @@ type LayoutXaxisRangeselector struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: left // type: enumerated // Sets the range selector's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the range selector. @@ -5974,6 +6137,7 @@ type LayoutXaxisRangeselector struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: bottom // type: enumerated // Sets the range selector's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the range selector. @@ -5990,6 +6154,7 @@ type LayoutXaxisRangesliderYaxis struct { Range interface{} `json:"range,omitempty"` // Rangemode + // arrayOK: false // default: match // type: enumerated // Determines whether or not the range of this axis in the rangeslider use the same value than in the main plot when zooming in/out. If *auto*, the autorange will be used. If *fixed*, the `range` is used. If *match*, the current range of the corresponding y-axis on the main subplot is used. @@ -6114,6 +6279,7 @@ type LayoutXaxisTitle struct { type LayoutXaxis struct { // Anchor + // arrayOK: false // default: %!s() // type: enumerated // If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to the corresponding opposite-letter axis. If set to *free*, this axis' position is determined by `position`. @@ -6126,18 +6292,21 @@ type LayoutXaxis struct { Automargin LayoutXaxisAutomargin `json:"automargin,omitempty"` // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided, then `autorange` is set to *false*. Autorange LayoutXaxisAutorange `json:"autorange,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. Autotypenumbers LayoutXaxisAutotypenumbers `json:"autotypenumbers,omitempty"` // Calendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar` @@ -6156,6 +6325,7 @@ type LayoutXaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -6168,12 +6338,14 @@ type LayoutXaxis struct { Color Color `json:"color,omitempty"` // Constrain + // arrayOK: false // default: %!s() // type: enumerated // If this axis needs to be compressed (either due to its own `scaleanchor` and `scaleratio` or those of the other axis), determines how that happens: by increasing the *range*, or by decreasing the *domain*. Default is *domain* for axes containing image traces, *range* otherwise. Constrain LayoutXaxisConstrain `json:"constrain,omitempty"` // Constraintoward + // arrayOK: false // default: %!s() // type: enumerated // If this axis needs to be compressed (either due to its own `scaleanchor` and `scaleratio` or those of the other axis), determines which direction we push the originally specified plot area. Options are *left*, *center* (default), and *right* for x axes, and *top*, *middle* (default), and *bottom* for y axes. @@ -6204,6 +6376,7 @@ type LayoutXaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -6246,6 +6419,7 @@ type LayoutXaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -6264,6 +6438,7 @@ type LayoutXaxis struct { Linewidth float64 `json:"linewidth,omitempty"` // Matches + // arrayOK: false // default: %!s() // type: enumerated // If set to another axis id (e.g. `x2`, `y`), the range of this axis will match the range of the corresponding axis in data-coordinates space. Moreover, matching axes share auto-range values, category lists and histogram auto-bins. Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint is currently forbidden. Moreover, note that matching axes must have the same `type`. @@ -6280,6 +6455,7 @@ type LayoutXaxis struct { Minor *LayoutXaxisMinor `json:"minor,omitempty"` // Mirror + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area. If *true*, the axis lines are mirrored. If *ticks*, the axis lines and ticks are mirrored. If *false*, mirroring is disable. If *all*, axis lines are mirrored on all shared-axes subplots. If *allticks*, axis lines and ticks are mirrored on all shared-axes subplots. @@ -6292,6 +6468,7 @@ type LayoutXaxis struct { Nticks int64 `json:"nticks,omitempty"` // Overlaying + // arrayOK: false // default: %!s() // type: enumerated // If set a same-letter axis id, this axis is overlaid on top of the corresponding same-letter axis, with traces and axes visible for both axes. If *false*, this axis does not overlay any same-letter axes. In this case, for axes with overlapping domains only the highest-numbered axis will be visible. @@ -6316,6 +6493,7 @@ type LayoutXaxis struct { Rangebreaks interface{} `json:"rangebreaks,omitempty"` // Rangemode + // arrayOK: false // default: normal // type: enumerated // If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. Applies only to linear axes. @@ -6330,6 +6508,7 @@ type LayoutXaxis struct { Rangeslider *LayoutXaxisRangeslider `json:"rangeslider,omitempty"` // Scaleanchor + // arrayOK: false // default: %!s() // type: enumerated // If set to another axis id (e.g. `x2`, `y`), the range of this axis changes together with the range of the corresponding axis such that the scale of pixels per unit is in a constant ratio. Both axes are still zoomable, but when you zoom one, the other will zoom the same amount, keeping a fixed midpoint. `constrain` and `constraintoward` determine how we enforce the constraint. You can chain these, ie `yaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}` but you can only link axes of the same `type`. The linked axis can have the opposite letter (to constrain the aspect ratio) or the same letter (to match scales across subplots). Loops (`yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}` or longer) are redundant and the last constraint encountered will be ignored to avoid possible inconsistent constraints via `scaleratio`. Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint is currently forbidden. @@ -6354,6 +6533,7 @@ type LayoutXaxis struct { Showdividers Bool `json:"showdividers,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -6384,18 +6564,21 @@ type LayoutXaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutXaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. Showticksuffix LayoutXaxisShowticksuffix `json:"showticksuffix,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines whether a x (y) axis is positioned at the *bottom* (*left*) or *top* (*right*) of the plotting area. @@ -6420,6 +6603,7 @@ type LayoutXaxis struct { Spikemode LayoutXaxisSpikemode `json:"spikemode,omitempty"` // Spikesnap + // arrayOK: false // default: hovered data // type: enumerated // Determines whether spikelines are stuck to the cursor or to the closest datapoints. @@ -6466,18 +6650,21 @@ type LayoutXaxis struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabelmode + // arrayOK: false // default: instant // type: enumerated // Determines where tick labels are drawn with respect to their corresponding ticks and grid lines. Only has an effect for axes of `type` *date* When set to *period*, tick labels are drawn in the middle of the period between ticks. Ticklabelmode LayoutXaxisTicklabelmode `json:"ticklabelmode,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. Otherwise on *category* and *multicategory* axes the default is *allow*. In other cases the default is *hide past div*. Ticklabeloverflow LayoutXaxisTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn with respect to the axis Please note that top or bottom has no effect on x axes or when `ticklabelmode` is set to *period*. Similarly left or right has no effect on y axes or when `ticklabelmode` is set to *period*. Has no effect on *multicategory* axes or when `tickson` is set to *boundaries*. When used on axes linked by `matches` or `scaleanchor`, no extra padding for inside labels would be added by autorange, so that the scales could match. @@ -6496,6 +6683,7 @@ type LayoutXaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). If *sync*, the number of ticks will sync with the overlayed axis set by `overlaying` property. @@ -6508,12 +6696,14 @@ type LayoutXaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. Ticks LayoutXaxisTicks `json:"ticks,omitempty"` // Tickson + // arrayOK: false // default: labels // type: enumerated // Determines where ticks and grid lines are drawn with respect to their corresponding tick labels. Only has an effect for axes of `type` *category* or *multicategory*. When set to *boundaries*, ticks and grid lines are drawn half a category to the left/bottom of labels. @@ -6560,6 +6750,7 @@ type LayoutXaxis struct { Title *LayoutXaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. @@ -6654,12 +6845,14 @@ type LayoutYaxisMinor struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). Tickmode LayoutYaxisMinorTickmode `json:"tickmode,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -6752,6 +6945,7 @@ type LayoutYaxisTitle struct { type LayoutYaxis struct { // Anchor + // arrayOK: false // default: %!s() // type: enumerated // If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to the corresponding opposite-letter axis. If set to *free*, this axis' position is determined by `position`. @@ -6764,6 +6958,7 @@ type LayoutYaxis struct { Automargin LayoutYaxisAutomargin `json:"automargin,omitempty"` // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided, then `autorange` is set to *false*. @@ -6776,12 +6971,14 @@ type LayoutYaxis struct { Autoshift Bool `json:"autoshift,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. Autotypenumbers LayoutYaxisAutotypenumbers `json:"autotypenumbers,omitempty"` // Calendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar` @@ -6800,6 +6997,7 @@ type LayoutYaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -6812,12 +7010,14 @@ type LayoutYaxis struct { Color Color `json:"color,omitempty"` // Constrain + // arrayOK: false // default: %!s() // type: enumerated // If this axis needs to be compressed (either due to its own `scaleanchor` and `scaleratio` or those of the other axis), determines how that happens: by increasing the *range*, or by decreasing the *domain*. Default is *domain* for axes containing image traces, *range* otherwise. Constrain LayoutYaxisConstrain `json:"constrain,omitempty"` // Constraintoward + // arrayOK: false // default: %!s() // type: enumerated // If this axis needs to be compressed (either due to its own `scaleanchor` and `scaleratio` or those of the other axis), determines which direction we push the originally specified plot area. Options are *left*, *center* (default), and *right* for x axes, and *top*, *middle* (default), and *bottom* for y axes. @@ -6848,6 +7048,7 @@ type LayoutYaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -6890,6 +7091,7 @@ type LayoutYaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -6908,6 +7110,7 @@ type LayoutYaxis struct { Linewidth float64 `json:"linewidth,omitempty"` // Matches + // arrayOK: false // default: %!s() // type: enumerated // If set to another axis id (e.g. `x2`, `y`), the range of this axis will match the range of the corresponding axis in data-coordinates space. Moreover, matching axes share auto-range values, category lists and histogram auto-bins. Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint is currently forbidden. Moreover, note that matching axes must have the same `type`. @@ -6924,6 +7127,7 @@ type LayoutYaxis struct { Minor *LayoutYaxisMinor `json:"minor,omitempty"` // Mirror + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area. If *true*, the axis lines are mirrored. If *ticks*, the axis lines and ticks are mirrored. If *false*, mirroring is disable. If *all*, axis lines are mirrored on all shared-axes subplots. If *allticks*, axis lines and ticks are mirrored on all shared-axes subplots. @@ -6936,6 +7140,7 @@ type LayoutYaxis struct { Nticks int64 `json:"nticks,omitempty"` // Overlaying + // arrayOK: false // default: %!s() // type: enumerated // If set a same-letter axis id, this axis is overlaid on top of the corresponding same-letter axis, with traces and axes visible for both axes. If *false*, this axis does not overlay any same-letter axes. In this case, for axes with overlapping domains only the highest-numbered axis will be visible. @@ -6960,12 +7165,14 @@ type LayoutYaxis struct { Rangebreaks interface{} `json:"rangebreaks,omitempty"` // Rangemode + // arrayOK: false // default: normal // type: enumerated // If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. Applies only to linear axes. Rangemode LayoutYaxisRangemode `json:"rangemode,omitempty"` // Scaleanchor + // arrayOK: false // default: %!s() // type: enumerated // If set to another axis id (e.g. `x2`, `y`), the range of this axis changes together with the range of the corresponding axis such that the scale of pixels per unit is in a constant ratio. Both axes are still zoomable, but when you zoom one, the other will zoom the same amount, keeping a fixed midpoint. `constrain` and `constraintoward` determine how we enforce the constraint. You can chain these, ie `yaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}` but you can only link axes of the same `type`. The linked axis can have the opposite letter (to constrain the aspect ratio) or the same letter (to match scales across subplots). Loops (`yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}` or longer) are redundant and the last constraint encountered will be ignored to avoid possible inconsistent constraints via `scaleratio`. Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint is currently forbidden. @@ -6996,6 +7203,7 @@ type LayoutYaxis struct { Showdividers Bool `json:"showdividers,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -7026,18 +7234,21 @@ type LayoutYaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutYaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. Showticksuffix LayoutYaxisShowticksuffix `json:"showticksuffix,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines whether a x (y) axis is positioned at the *bottom* (*left*) or *top* (*right*) of the plotting area. @@ -7062,6 +7273,7 @@ type LayoutYaxis struct { Spikemode LayoutYaxisSpikemode `json:"spikemode,omitempty"` // Spikesnap + // arrayOK: false // default: hovered data // type: enumerated // Determines whether spikelines are stuck to the cursor or to the closest datapoints. @@ -7108,18 +7320,21 @@ type LayoutYaxis struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabelmode + // arrayOK: false // default: instant // type: enumerated // Determines where tick labels are drawn with respect to their corresponding ticks and grid lines. Only has an effect for axes of `type` *date* When set to *period*, tick labels are drawn in the middle of the period between ticks. Ticklabelmode LayoutYaxisTicklabelmode `json:"ticklabelmode,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. Otherwise on *category* and *multicategory* axes the default is *allow*. In other cases the default is *hide past div*. Ticklabeloverflow LayoutYaxisTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn with respect to the axis Please note that top or bottom has no effect on x axes or when `ticklabelmode` is set to *period*. Similarly left or right has no effect on y axes or when `ticklabelmode` is set to *period*. Has no effect on *multicategory* axes or when `tickson` is set to *boundaries*. When used on axes linked by `matches` or `scaleanchor`, no extra padding for inside labels would be added by autorange, so that the scales could match. @@ -7138,6 +7353,7 @@ type LayoutYaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). If *sync*, the number of ticks will sync with the overlayed axis set by `overlaying` property. @@ -7150,12 +7366,14 @@ type LayoutYaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. Ticks LayoutYaxisTicks `json:"ticks,omitempty"` // Tickson + // arrayOK: false // default: labels // type: enumerated // Determines where ticks and grid lines are drawn with respect to their corresponding tick labels. Only has an effect for axes of `type` *category* or *multicategory*. When set to *boundaries*, ticks and grid lines are drawn half a category to the left/bottom of labels. @@ -7202,6 +7420,7 @@ type LayoutYaxis struct { Title *LayoutYaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. diff --git a/generated/v2.19.0/graph_objects/mesh3d_gen.go b/generated/v2.19.0/graph_objects/mesh3d_gen.go index e210e1d..37d9a70 100644 --- a/generated/v2.19.0/graph_objects/mesh3d_gen.go +++ b/generated/v2.19.0/graph_objects/mesh3d_gen.go @@ -90,6 +90,7 @@ type Mesh3d struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Delaunayaxis + // arrayOK: false // default: z // type: enumerated // Sets the Delaunay axis, which is the axis that is perpendicular to the surface of the Delaunay triangulation. It has an effect if `i`, `j`, `k` are not provided and `alphahull` is set to indicate Delaunay triangulation. @@ -117,7 +118,7 @@ type Mesh3d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo Mesh3dHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*Mesh3dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -178,6 +179,7 @@ type Mesh3d struct { Intensity interface{} `json:"intensity,omitempty"` // Intensitymode + // arrayOK: false // default: vertex // type: enumerated // Determines the source of `intensity` values. @@ -338,6 +340,7 @@ type Mesh3d struct { Vertexcolorsrc string `json:"vertexcolorsrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -350,6 +353,7 @@ type Mesh3d struct { X interface{} `json:"x,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -374,6 +378,7 @@ type Mesh3d struct { Y interface{} `json:"y,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -398,6 +403,7 @@ type Mesh3d struct { Z interface{} `json:"z,omitempty"` // Zcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `z` date data. @@ -468,6 +474,7 @@ type Mesh3dColorbarTitle struct { Font *Mesh3dColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -508,6 +515,7 @@ type Mesh3dColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -526,6 +534,7 @@ type Mesh3dColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -544,6 +553,7 @@ type Mesh3dColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -568,6 +578,7 @@ type Mesh3dColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -580,12 +591,14 @@ type Mesh3dColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix Mesh3dColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -598,6 +611,7 @@ type Mesh3dColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -638,12 +652,14 @@ type Mesh3dColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow Mesh3dColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -662,6 +678,7 @@ type Mesh3dColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -674,6 +691,7 @@ type Mesh3dColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -726,6 +744,7 @@ type Mesh3dColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -744,6 +763,7 @@ type Mesh3dColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -822,10 +842,11 @@ type Mesh3dHoverlabelFont struct { type Mesh3dHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align Mesh3dHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*Mesh3dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/ohlc_gen.go b/generated/v2.19.0/graph_objects/ohlc_gen.go index c2c5d75..ff38d64 100644 --- a/generated/v2.19.0/graph_objects/ohlc_gen.go +++ b/generated/v2.19.0/graph_objects/ohlc_gen.go @@ -59,7 +59,7 @@ type Ohlc struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo OhlcHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*OhlcHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -226,6 +226,7 @@ type Ohlc struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -244,6 +245,7 @@ type Ohlc struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -268,6 +270,7 @@ type Ohlc struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -366,10 +369,11 @@ type OhlcHoverlabelFont struct { type OhlcHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align OhlcHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*OhlcHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/parcats_gen.go b/generated/v2.19.0/graph_objects/parcats_gen.go index c1c09ed..d246ff5 100644 --- a/generated/v2.19.0/graph_objects/parcats_gen.go +++ b/generated/v2.19.0/graph_objects/parcats_gen.go @@ -16,6 +16,7 @@ type Parcats struct { Type TraceType `json:"type,omitempty"` // Arrangement + // arrayOK: false // default: perpendicular // type: enumerated // Sets the drag interaction mode for categories and dimensions. If `perpendicular`, the categories can only move along a line perpendicular to the paths. If `freeform`, the categories can freely move on the plane. If `fixed`, the categories and dimensions are stationary. @@ -56,6 +57,7 @@ type Parcats struct { Hoverinfo ParcatsHoverinfo `json:"hoverinfo,omitempty"` // Hoveron + // arrayOK: false // default: category // type: enumerated // Sets the hover interaction mode for the parcats diagram. If `category`, hover interaction take place per category. If `color`, hover interactions take place per color per category. If `dimension`, hover interactions take place across all categories per dimension. @@ -104,6 +106,7 @@ type Parcats struct { Name string `json:"name,omitempty"` // Sortpaths + // arrayOK: false // default: forward // type: enumerated // Sets the path sorting algorithm. If `forward`, sort paths based on dimension categories from left to right. If `backward`, sort paths based on dimensions categories from right to left. @@ -136,6 +139,7 @@ type Parcats struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -280,6 +284,7 @@ type ParcatsLineColorbarTitle struct { Font *ParcatsLineColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -320,6 +325,7 @@ type ParcatsLineColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -338,6 +344,7 @@ type ParcatsLineColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -356,6 +363,7 @@ type ParcatsLineColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -380,6 +388,7 @@ type ParcatsLineColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -392,12 +401,14 @@ type ParcatsLineColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ParcatsLineColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -410,6 +421,7 @@ type ParcatsLineColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -450,12 +462,14 @@ type ParcatsLineColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ParcatsLineColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -474,6 +488,7 @@ type ParcatsLineColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -486,6 +501,7 @@ type ParcatsLineColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -538,6 +554,7 @@ type ParcatsLineColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -556,6 +573,7 @@ type ParcatsLineColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -642,6 +660,7 @@ type ParcatsLine struct { Reversescale Bool `json:"reversescale,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Sets the shape of the paths. If `linear`, paths are composed of straight lines. If `hspline`, paths are composed of horizontal curved splines diff --git a/generated/v2.19.0/graph_objects/parcoords_gen.go b/generated/v2.19.0/graph_objects/parcoords_gen.go index 56fd5fa..ab9799a 100644 --- a/generated/v2.19.0/graph_objects/parcoords_gen.go +++ b/generated/v2.19.0/graph_objects/parcoords_gen.go @@ -60,6 +60,7 @@ type Parcoords struct { Labelfont *ParcoordsLabelfont `json:"labelfont,omitempty"` // Labelside + // arrayOK: false // default: top // type: enumerated // Specifies the location of the `label`. *top* positions labels above, next to the title *bottom* positions labels below the graph Tilted labels with *labelangle* may be positioned better inside margins when `labelposition` is set to *bottom*. @@ -138,6 +139,7 @@ type Parcoords struct { Unselected *ParcoordsUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -282,6 +284,7 @@ type ParcoordsLineColorbarTitle struct { Font *ParcoordsLineColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -322,6 +325,7 @@ type ParcoordsLineColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -340,6 +344,7 @@ type ParcoordsLineColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -358,6 +363,7 @@ type ParcoordsLineColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -382,6 +388,7 @@ type ParcoordsLineColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -394,12 +401,14 @@ type ParcoordsLineColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ParcoordsLineColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -412,6 +421,7 @@ type ParcoordsLineColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -452,12 +462,14 @@ type ParcoordsLineColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ParcoordsLineColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -476,6 +488,7 @@ type ParcoordsLineColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -488,6 +501,7 @@ type ParcoordsLineColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -540,6 +554,7 @@ type ParcoordsLineColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -558,6 +573,7 @@ type ParcoordsLineColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. diff --git a/generated/v2.19.0/graph_objects/pie_gen.go b/generated/v2.19.0/graph_objects/pie_gen.go index 3582daa..219acc6 100644 --- a/generated/v2.19.0/graph_objects/pie_gen.go +++ b/generated/v2.19.0/graph_objects/pie_gen.go @@ -34,6 +34,7 @@ type Pie struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Direction + // arrayOK: false // default: counterclockwise // type: enumerated // Specifies the direction at which succeeding sectors follow one another. @@ -59,7 +60,7 @@ type Pie struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo PieHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*PieHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -112,6 +113,7 @@ type Pie struct { Insidetextfont *PieInsidetextfont `json:"insidetextfont,omitempty"` // Insidetextorientation + // arrayOK: false // default: auto // type: enumerated // Controls the orientation of the text inside chart sectors. When set to *auto*, text may be oriented in any direction in order to be as big as possible in the middle of a sector. The *horizontal* option orients text to be parallel with the bottom of the chart, and may make text smaller in order to achieve that goal. The *radial* option orients text along the radius of the sector. The *tangential* option orients text perpendicular to the radius of the sector. @@ -246,10 +248,11 @@ type Pie struct { Textinfo PieTextinfo `json:"textinfo,omitempty"` // Textposition + // arrayOK: true // default: auto // type: enumerated // Specifies the location of the `textinfo`. - Textposition PieTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*PieTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -310,6 +313,7 @@ type Pie struct { Valuessrc string `json:"valuessrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -388,10 +392,11 @@ type PieHoverlabelFont struct { type PieHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align PieHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*PieHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -708,6 +713,7 @@ type PieTitle struct { Font *PieTitleFont `json:"font,omitempty"` // Position + // arrayOK: false // default: %!s() // type: enumerated // Specifies the location of the `title`. Note that the title's position used to be set by the now deprecated `titleposition` attribute. diff --git a/generated/v2.19.0/graph_objects/pointcloud_gen.go b/generated/v2.19.0/graph_objects/pointcloud_gen.go index 4def0f8..73b0ae8 100644 --- a/generated/v2.19.0/graph_objects/pointcloud_gen.go +++ b/generated/v2.19.0/graph_objects/pointcloud_gen.go @@ -31,7 +31,7 @@ type Pointcloud struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo PointcloudHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*PointcloudHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -152,6 +152,7 @@ type Pointcloud struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -274,10 +275,11 @@ type PointcloudHoverlabelFont struct { type PointcloudHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align PointcloudHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*PointcloudHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/sankey_gen.go b/generated/v2.19.0/graph_objects/sankey_gen.go index 15ea55e..3921dd1 100644 --- a/generated/v2.19.0/graph_objects/sankey_gen.go +++ b/generated/v2.19.0/graph_objects/sankey_gen.go @@ -16,6 +16,7 @@ type Sankey struct { Type TraceType `json:"type,omitempty"` // Arrangement + // arrayOK: false // default: snap // type: enumerated // If value is `snap` (the default), the node arrangement is assisted by automatic snapping of elements to preserve space between nodes specified via `nodepad`. If value is `perpendicular`, the nodes can only move along a line perpendicular to the flow. If value is `freeform`, the nodes can freely move on the plane. If value is `fixed`, the nodes are stationary. @@ -102,6 +103,7 @@ type Sankey struct { Node *SankeyNode `json:"node,omitempty"` // Orientation + // arrayOK: false // default: h // type: enumerated // Sets the orientation of the Sankey diagram. @@ -146,6 +148,7 @@ type Sankey struct { Valuesuffix string `json:"valuesuffix,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -224,10 +227,11 @@ type SankeyHoverlabelFont struct { type SankeyHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align SankeyHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*SankeyHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -356,10 +360,11 @@ type SankeyLinkHoverlabelFont struct { type SankeyLinkHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align SankeyLinkHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*SankeyLinkHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -476,6 +481,7 @@ type SankeyLink struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo + // arrayOK: false // default: all // type: enumerated // Determines which trace information appear when hovering links. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -594,10 +600,11 @@ type SankeyNodeHoverlabelFont struct { type SankeyNodeHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align SankeyNodeHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*SankeyNodeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -708,6 +715,7 @@ type SankeyNode struct { Groups interface{} `json:"groups,omitempty"` // Hoverinfo + // arrayOK: false // default: all // type: enumerated // Determines which trace information appear when hovering nodes. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. diff --git a/generated/v2.19.0/graph_objects/scatter3d_gen.go b/generated/v2.19.0/graph_objects/scatter3d_gen.go index 5470b2a..77a1b05 100644 --- a/generated/v2.19.0/graph_objects/scatter3d_gen.go +++ b/generated/v2.19.0/graph_objects/scatter3d_gen.go @@ -49,7 +49,7 @@ type Scatter3d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo Scatter3dHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*Scatter3dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -178,6 +178,7 @@ type Scatter3d struct { Stream *Scatter3dStream `json:"stream,omitempty"` // Surfaceaxis + // arrayOK: false // default: %!s(float64=-1) // type: enumerated // If *-1*, the scatter points are not fill with a surface If *0*, *1*, *2*, the scatter points are filled with a Delaunay surface about the x, y, z respectively. @@ -200,10 +201,11 @@ type Scatter3d struct { Textfont *Scatter3dTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: top center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition Scatter3dTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*Scatter3dTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -248,6 +250,7 @@ type Scatter3d struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -260,6 +263,7 @@ type Scatter3d struct { X interface{} `json:"x,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -284,6 +288,7 @@ type Scatter3d struct { Y interface{} `json:"y,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -308,6 +313,7 @@ type Scatter3d struct { Z interface{} `json:"z,omitempty"` // Zcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `z` date data. @@ -390,6 +396,7 @@ type Scatter3dErrorX struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -484,6 +491,7 @@ type Scatter3dErrorY struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -572,6 +580,7 @@ type Scatter3dErrorZ struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -646,10 +655,11 @@ type Scatter3dHoverlabelFont struct { type Scatter3dHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align Scatter3dHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*Scatter3dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -786,6 +796,7 @@ type Scatter3dLineColorbarTitle struct { Font *Scatter3dLineColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -826,6 +837,7 @@ type Scatter3dLineColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -844,6 +856,7 @@ type Scatter3dLineColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -862,6 +875,7 @@ type Scatter3dLineColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -886,6 +900,7 @@ type Scatter3dLineColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -898,12 +913,14 @@ type Scatter3dLineColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix Scatter3dLineColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -916,6 +933,7 @@ type Scatter3dLineColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -956,12 +974,14 @@ type Scatter3dLineColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow Scatter3dLineColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -980,6 +1000,7 @@ type Scatter3dLineColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -992,6 +1013,7 @@ type Scatter3dLineColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -1044,6 +1066,7 @@ type Scatter3dLineColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -1062,6 +1085,7 @@ type Scatter3dLineColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -1136,6 +1160,7 @@ type Scatter3dLine struct { Colorsrc string `json:"colorsrc,omitempty"` // Dash + // arrayOK: false // default: solid // type: enumerated // Sets the dash style of the lines. @@ -1212,6 +1237,7 @@ type Scatter3dMarkerColorbarTitle struct { Font *Scatter3dMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -1252,6 +1278,7 @@ type Scatter3dMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -1270,6 +1297,7 @@ type Scatter3dMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -1288,6 +1316,7 @@ type Scatter3dMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -1312,6 +1341,7 @@ type Scatter3dMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -1324,12 +1354,14 @@ type Scatter3dMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix Scatter3dMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -1342,6 +1374,7 @@ type Scatter3dMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -1382,12 +1415,14 @@ type Scatter3dMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow Scatter3dMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -1406,6 +1441,7 @@ type Scatter3dMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -1418,6 +1454,7 @@ type Scatter3dMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -1470,6 +1507,7 @@ type Scatter3dMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -1488,6 +1526,7 @@ type Scatter3dMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -1666,6 +1705,7 @@ type Scatter3dMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1684,10 +1724,11 @@ type Scatter3dMarker struct { Sizesrc string `json:"sizesrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. - Symbol Scatter3dMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*Scatter3dMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scatter_gen.go b/generated/v2.19.0/graph_objects/scatter_gen.go index 24ed9e9..78f0134 100644 --- a/generated/v2.19.0/graph_objects/scatter_gen.go +++ b/generated/v2.19.0/graph_objects/scatter_gen.go @@ -66,6 +66,7 @@ type Scatter struct { ErrorY *ScatterErrorY `json:"error_y,omitempty"` // Fill + // arrayOK: false // default: %!s() // type: enumerated // Sets the area to fill with a solid color. Defaults to *none* unless this trace is stacked, then it gets *tonexty* (*tonextx*) if `orientation` is *v* (*h*) Use with `fillcolor` if not *none*. *tozerox* and *tozeroy* fill to x=0 and y=0 respectively. *tonextx* and *tonexty* fill between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area graph); if there is no trace before it, they behave like *tozerox* and *tozeroy*. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order. @@ -82,6 +83,7 @@ type Scatter struct { Fillpattern *ScatterFillpattern `json:"fillpattern,omitempty"` // Groupnorm + // arrayOK: false // default: // type: enumerated // Only relevant when `stackgroup` is used, and only the first `groupnorm` found in the `stackgroup` will be used - including if `visible` is *legendonly* but not if it is `false`. Sets the normalization for the sum of this `stackgroup`. With *fraction*, the value of each trace at each location is divided by the sum of all trace values at that location. *percent* is the same but multiplied by 100 to show percentages. If there are multiple subplots, or multiple `stackgroup`s on one subplot, each will be normalized within its own set. @@ -91,7 +93,7 @@ type Scatter struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScatterHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScatterHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -212,6 +214,7 @@ type Scatter struct { Opacity float64 `json:"opacity,omitempty"` // Orientation + // arrayOK: false // default: %!s() // type: enumerated // Only relevant in the following cases: 1. when `scattermode` is set to *group*. 2. when `stackgroup` is used, and only the first `orientation` found in the `stackgroup` will be used - including if `visible` is *legendonly* but not if it is `false`. Sets the stacking direction. With *v* (*h*), the y (x) values of subsequent traces are added. Also affects the default value of `fill`. @@ -234,6 +237,7 @@ type Scatter struct { Showlegend Bool `json:"showlegend,omitempty"` // Stackgaps + // arrayOK: false // default: infer zero // type: enumerated // Only relevant when `stackgroup` is used, and only the first `stackgaps` found in the `stackgroup` will be used - including if `visible` is *legendonly* but not if it is `false`. Determines how we handle locations at which other traces in this group have data but this one does not. With *infer zero* we insert a zero at these locations. With *interpolate* we linearly interpolate between existing values, and extrapolate a constant beyond the existing values. @@ -260,10 +264,11 @@ type Scatter struct { Textfont *ScatterTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScatterTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScatterTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -312,6 +317,7 @@ type Scatter struct { Unselected *ScatterUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -336,6 +342,7 @@ type Scatter struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -360,6 +367,7 @@ type Scatter struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -390,6 +398,7 @@ type Scatter struct { Yaxis String `json:"yaxis,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -414,6 +423,7 @@ type Scatter struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -490,6 +500,7 @@ type ScatterErrorX struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -578,6 +589,7 @@ type ScatterErrorY struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -642,16 +654,18 @@ type ScatterFillpattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode ScatterFillpatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ScatterFillpatternShape `json:"shape,omitempty"` + Shape ArrayOK[*ScatterFillpatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -728,10 +742,11 @@ type ScatterHoverlabelFont struct { type ScatterHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScatterHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScatterHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -844,6 +859,7 @@ type ScatterLine struct { Dash string `json:"dash,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Determines the line shape. With *spline* the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes. @@ -920,6 +936,7 @@ type ScatterMarkerColorbarTitle struct { Font *ScatterMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -960,6 +977,7 @@ type ScatterMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -978,6 +996,7 @@ type ScatterMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -996,6 +1015,7 @@ type ScatterMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -1020,6 +1040,7 @@ type ScatterMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -1032,12 +1053,14 @@ type ScatterMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScatterMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -1050,6 +1073,7 @@ type ScatterMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -1090,12 +1114,14 @@ type ScatterMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScatterMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -1114,6 +1140,7 @@ type ScatterMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -1126,6 +1153,7 @@ type ScatterMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -1178,6 +1206,7 @@ type ScatterMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -1196,6 +1225,7 @@ type ScatterMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -1224,10 +1254,11 @@ type ScatterMarkerGradient struct { Colorsrc string `json:"colorsrc,omitempty"` // Type + // arrayOK: true // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ScatterMarkerGradientType `json:"type,omitempty"` + Type ArrayOK[*ScatterMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -1322,6 +1353,7 @@ type ScatterMarker struct { Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref + // arrayOK: false // default: up // type: enumerated // Sets the reference for marker angle. With *previous*, angle 0 points along the line from the previous point to this one. With *up*, angle 0 points toward the top of the screen. @@ -1442,6 +1474,7 @@ type ScatterMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1472,10 +1505,11 @@ type ScatterMarker struct { Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScatterMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScatterMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scattercarpet_gen.go b/generated/v2.19.0/graph_objects/scattercarpet_gen.go index 4a1841e..725b410 100644 --- a/generated/v2.19.0/graph_objects/scattercarpet_gen.go +++ b/generated/v2.19.0/graph_objects/scattercarpet_gen.go @@ -64,6 +64,7 @@ type Scattercarpet struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Use with `fillcolor` if not *none*. scatterternary has a subset of the options available to scatter. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. @@ -79,7 +80,7 @@ type Scattercarpet struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScattercarpetHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScattercarpetHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -224,10 +225,11 @@ type Scattercarpet struct { Textfont *ScattercarpetTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScattercarpetTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScattercarpetTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -276,6 +278,7 @@ type Scattercarpet struct { Unselected *ScattercarpetUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -338,10 +341,11 @@ type ScattercarpetHoverlabelFont struct { type ScattercarpetHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScattercarpetHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScattercarpetHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -454,6 +458,7 @@ type ScattercarpetLine struct { Dash string `json:"dash,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Determines the line shape. With *spline* the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes. @@ -524,6 +529,7 @@ type ScattercarpetMarkerColorbarTitle struct { Font *ScattercarpetMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -564,6 +570,7 @@ type ScattercarpetMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -582,6 +589,7 @@ type ScattercarpetMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -600,6 +608,7 @@ type ScattercarpetMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -624,6 +633,7 @@ type ScattercarpetMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -636,12 +646,14 @@ type ScattercarpetMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScattercarpetMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -654,6 +666,7 @@ type ScattercarpetMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -694,12 +707,14 @@ type ScattercarpetMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScattercarpetMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -718,6 +733,7 @@ type ScattercarpetMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -730,6 +746,7 @@ type ScattercarpetMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -782,6 +799,7 @@ type ScattercarpetMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -800,6 +818,7 @@ type ScattercarpetMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -828,10 +847,11 @@ type ScattercarpetMarkerGradient struct { Colorsrc string `json:"colorsrc,omitempty"` // Type + // arrayOK: true // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ScattercarpetMarkerGradientType `json:"type,omitempty"` + Type ArrayOK[*ScattercarpetMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -926,6 +946,7 @@ type ScattercarpetMarker struct { Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref + // arrayOK: false // default: up // type: enumerated // Sets the reference for marker angle. With *previous*, angle 0 points along the line from the previous point to this one. With *up*, angle 0 points toward the top of the screen. @@ -1046,6 +1067,7 @@ type ScattercarpetMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1076,10 +1098,11 @@ type ScattercarpetMarker struct { Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScattercarpetMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScattercarpetMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scattergeo_gen.go b/generated/v2.19.0/graph_objects/scattergeo_gen.go index 7944633..6794ea9 100644 --- a/generated/v2.19.0/graph_objects/scattergeo_gen.go +++ b/generated/v2.19.0/graph_objects/scattergeo_gen.go @@ -40,6 +40,7 @@ type Scattergeo struct { Featureidkey string `json:"featureidkey,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Use with `fillcolor` if not *none*. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. @@ -67,7 +68,7 @@ type Scattergeo struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScattergeoHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScattergeoHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -154,6 +155,7 @@ type Scattergeo struct { Line *ScattergeoLine `json:"line,omitempty"` // Locationmode + // arrayOK: false // default: ISO-3 // type: enumerated // Determines the set of locations used to match entries in `locations` to regions on the map. Values *ISO-3*, *USA-states*, *country names* correspond to features on the base map and value *geojson-id* corresponds to features from a custom GeoJSON linked to the `geojson` attribute. @@ -248,10 +250,11 @@ type Scattergeo struct { Textfont *ScattergeoTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScattergeoTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScattergeoTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -300,6 +303,7 @@ type Scattergeo struct { Unselected *ScattergeoUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -350,10 +354,11 @@ type ScattergeoHoverlabelFont struct { type ScattergeoHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScattergeoHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScattergeoHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -512,6 +517,7 @@ type ScattergeoMarkerColorbarTitle struct { Font *ScattergeoMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -552,6 +558,7 @@ type ScattergeoMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -570,6 +577,7 @@ type ScattergeoMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -588,6 +596,7 @@ type ScattergeoMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -612,6 +621,7 @@ type ScattergeoMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -624,12 +634,14 @@ type ScattergeoMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScattergeoMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -642,6 +654,7 @@ type ScattergeoMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -682,12 +695,14 @@ type ScattergeoMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScattergeoMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -706,6 +721,7 @@ type ScattergeoMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -718,6 +734,7 @@ type ScattergeoMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -770,6 +787,7 @@ type ScattergeoMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -788,6 +806,7 @@ type ScattergeoMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -816,10 +835,11 @@ type ScattergeoMarkerGradient struct { Colorsrc string `json:"colorsrc,omitempty"` // Type + // arrayOK: true // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ScattergeoMarkerGradientType `json:"type,omitempty"` + Type ArrayOK[*ScattergeoMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -914,6 +934,7 @@ type ScattergeoMarker struct { Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref + // arrayOK: false // default: up // type: enumerated // Sets the reference for marker angle. With *previous*, angle 0 points along the line from the previous point to this one. With *up*, angle 0 points toward the top of the screen. With *north*, angle 0 points north based on the current map projection. @@ -1028,6 +1049,7 @@ type ScattergeoMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1058,10 +1080,11 @@ type ScattergeoMarker struct { Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScattergeoMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScattergeoMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scattergl_gen.go b/generated/v2.19.0/graph_objects/scattergl_gen.go index e164302..fe9c715 100644 --- a/generated/v2.19.0/graph_objects/scattergl_gen.go +++ b/generated/v2.19.0/graph_objects/scattergl_gen.go @@ -54,6 +54,7 @@ type Scattergl struct { ErrorY *ScatterglErrorY `json:"error_y,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Defaults to *none* unless this trace is stacked, then it gets *tonexty* (*tonextx*) if `orientation` is *v* (*h*) Use with `fillcolor` if not *none*. *tozerox* and *tozeroy* fill to x=0 and y=0 respectively. *tonextx* and *tonexty* fill between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area graph); if there is no trace before it, they behave like *tozerox* and *tozeroy*. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order. @@ -69,7 +70,7 @@ type Scattergl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScatterglHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScatterglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -208,10 +209,11 @@ type Scattergl struct { Textfont *ScatterglTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScatterglTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScatterglTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -260,6 +262,7 @@ type Scattergl struct { Unselected *ScatterglUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -284,6 +287,7 @@ type Scattergl struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -308,6 +312,7 @@ type Scattergl struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -338,6 +343,7 @@ type Scattergl struct { Yaxis String `json:"yaxis,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -362,6 +368,7 @@ type Scattergl struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -438,6 +445,7 @@ type ScatterglErrorX struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -526,6 +534,7 @@ type ScatterglErrorY struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -600,10 +609,11 @@ type ScatterglHoverlabelFont struct { type ScatterglHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScatterglHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScatterglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -698,12 +708,14 @@ type ScatterglLine struct { Color Color `json:"color,omitempty"` // Dash + // arrayOK: false // default: solid // type: enumerated // Sets the style of the lines. Dash ScatterglLineDash `json:"dash,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Determines the line shape. The values correspond to step-wise line shapes. @@ -768,6 +780,7 @@ type ScatterglMarkerColorbarTitle struct { Font *ScatterglMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -808,6 +821,7 @@ type ScatterglMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -826,6 +840,7 @@ type ScatterglMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -844,6 +859,7 @@ type ScatterglMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -868,6 +884,7 @@ type ScatterglMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -880,12 +897,14 @@ type ScatterglMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScatterglMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -898,6 +917,7 @@ type ScatterglMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -938,12 +958,14 @@ type ScatterglMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScatterglMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -962,6 +984,7 @@ type ScatterglMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -974,6 +997,7 @@ type ScatterglMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -1026,6 +1050,7 @@ type ScatterglMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -1044,6 +1069,7 @@ type ScatterglMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -1246,6 +1272,7 @@ type ScatterglMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1264,10 +1291,11 @@ type ScatterglMarker struct { Sizesrc string `json:"sizesrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScatterglMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScatterglMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scattermapbox_gen.go b/generated/v2.19.0/graph_objects/scattermapbox_gen.go index b8c72a9..39b1ce0 100644 --- a/generated/v2.19.0/graph_objects/scattermapbox_gen.go +++ b/generated/v2.19.0/graph_objects/scattermapbox_gen.go @@ -44,6 +44,7 @@ type Scattermapbox struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Use with `fillcolor` if not *none*. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. @@ -59,7 +60,7 @@ type Scattermapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScattermapboxHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScattermapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -228,6 +229,7 @@ type Scattermapbox struct { Textfont *ScattermapboxTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: false // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. @@ -274,6 +276,7 @@ type Scattermapbox struct { Unselected *ScattermapboxUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -388,10 +391,11 @@ type ScattermapboxHoverlabelFont struct { type ScattermapboxHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScattermapboxHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScattermapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -544,6 +548,7 @@ type ScattermapboxMarkerColorbarTitle struct { Font *ScattermapboxMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -584,6 +589,7 @@ type ScattermapboxMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -602,6 +608,7 @@ type ScattermapboxMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -620,6 +627,7 @@ type ScattermapboxMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -644,6 +652,7 @@ type ScattermapboxMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -656,12 +665,14 @@ type ScattermapboxMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScattermapboxMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -674,6 +685,7 @@ type ScattermapboxMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -714,12 +726,14 @@ type ScattermapboxMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScattermapboxMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -738,6 +752,7 @@ type ScattermapboxMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -750,6 +765,7 @@ type ScattermapboxMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -802,6 +818,7 @@ type ScattermapboxMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -820,6 +837,7 @@ type ScattermapboxMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -948,6 +966,7 @@ type ScattermapboxMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. diff --git a/generated/v2.19.0/graph_objects/scatterpolar_gen.go b/generated/v2.19.0/graph_objects/scatterpolar_gen.go index 166b1b5..c65e6ea 100644 --- a/generated/v2.19.0/graph_objects/scatterpolar_gen.go +++ b/generated/v2.19.0/graph_objects/scatterpolar_gen.go @@ -52,6 +52,7 @@ type Scatterpolar struct { Dtheta float64 `json:"dtheta,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Use with `fillcolor` if not *none*. scatterpolar has a subset of the options available to scatter. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. @@ -67,7 +68,7 @@ type Scatterpolar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScatterpolarHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScatterpolarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -236,10 +237,11 @@ type Scatterpolar struct { Textfont *ScatterpolarTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScatterpolarTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScatterpolarTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -284,6 +286,7 @@ type Scatterpolar struct { Thetasrc string `json:"thetasrc,omitempty"` // Thetaunit + // arrayOK: false // default: degrees // type: enumerated // Sets the unit of input *theta* values. Has an effect only when on *linear* angular axes. @@ -312,6 +315,7 @@ type Scatterpolar struct { Unselected *ScatterpolarUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -362,10 +366,11 @@ type ScatterpolarHoverlabelFont struct { type ScatterpolarHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScatterpolarHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScatterpolarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -478,6 +483,7 @@ type ScatterpolarLine struct { Dash string `json:"dash,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Determines the line shape. With *spline* the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes. @@ -548,6 +554,7 @@ type ScatterpolarMarkerColorbarTitle struct { Font *ScatterpolarMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -588,6 +595,7 @@ type ScatterpolarMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -606,6 +614,7 @@ type ScatterpolarMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -624,6 +633,7 @@ type ScatterpolarMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -648,6 +658,7 @@ type ScatterpolarMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -660,12 +671,14 @@ type ScatterpolarMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScatterpolarMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -678,6 +691,7 @@ type ScatterpolarMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -718,12 +732,14 @@ type ScatterpolarMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScatterpolarMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -742,6 +758,7 @@ type ScatterpolarMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -754,6 +771,7 @@ type ScatterpolarMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -806,6 +824,7 @@ type ScatterpolarMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -824,6 +843,7 @@ type ScatterpolarMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -852,10 +872,11 @@ type ScatterpolarMarkerGradient struct { Colorsrc string `json:"colorsrc,omitempty"` // Type + // arrayOK: true // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ScatterpolarMarkerGradientType `json:"type,omitempty"` + Type ArrayOK[*ScatterpolarMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -950,6 +971,7 @@ type ScatterpolarMarker struct { Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref + // arrayOK: false // default: up // type: enumerated // Sets the reference for marker angle. With *previous*, angle 0 points along the line from the previous point to this one. With *up*, angle 0 points toward the top of the screen. @@ -1070,6 +1092,7 @@ type ScatterpolarMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1100,10 +1123,11 @@ type ScatterpolarMarker struct { Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScatterpolarMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScatterpolarMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scatterpolargl_gen.go b/generated/v2.19.0/graph_objects/scatterpolargl_gen.go index e5f7e26..b1427a8 100644 --- a/generated/v2.19.0/graph_objects/scatterpolargl_gen.go +++ b/generated/v2.19.0/graph_objects/scatterpolargl_gen.go @@ -46,6 +46,7 @@ type Scatterpolargl struct { Dtheta float64 `json:"dtheta,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Defaults to *none* unless this trace is stacked, then it gets *tonexty* (*tonextx*) if `orientation` is *v* (*h*) Use with `fillcolor` if not *none*. *tozerox* and *tozeroy* fill to x=0 and y=0 respectively. *tonextx* and *tonexty* fill between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area graph); if there is no trace before it, they behave like *tozerox* and *tozeroy*. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order. @@ -61,7 +62,7 @@ type Scatterpolargl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScatterpolarglHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScatterpolarglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -224,10 +225,11 @@ type Scatterpolargl struct { Textfont *ScatterpolarglTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScatterpolarglTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScatterpolarglTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -272,6 +274,7 @@ type Scatterpolargl struct { Thetasrc string `json:"thetasrc,omitempty"` // Thetaunit + // arrayOK: false // default: degrees // type: enumerated // Sets the unit of input *theta* values. Has an effect only when on *linear* angular axes. @@ -300,6 +303,7 @@ type Scatterpolargl struct { Unselected *ScatterpolarglUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -350,10 +354,11 @@ type ScatterpolarglHoverlabelFont struct { type ScatterpolarglHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScatterpolarglHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScatterpolarglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -448,12 +453,14 @@ type ScatterpolarglLine struct { Color Color `json:"color,omitempty"` // Dash + // arrayOK: false // default: solid // type: enumerated // Sets the style of the lines. Dash ScatterpolarglLineDash `json:"dash,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Determines the line shape. The values correspond to step-wise line shapes. @@ -518,6 +525,7 @@ type ScatterpolarglMarkerColorbarTitle struct { Font *ScatterpolarglMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -558,6 +566,7 @@ type ScatterpolarglMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -576,6 +585,7 @@ type ScatterpolarglMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -594,6 +604,7 @@ type ScatterpolarglMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -618,6 +629,7 @@ type ScatterpolarglMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -630,12 +642,14 @@ type ScatterpolarglMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScatterpolarglMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -648,6 +662,7 @@ type ScatterpolarglMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -688,12 +703,14 @@ type ScatterpolarglMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScatterpolarglMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -712,6 +729,7 @@ type ScatterpolarglMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -724,6 +742,7 @@ type ScatterpolarglMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -776,6 +795,7 @@ type ScatterpolarglMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -794,6 +814,7 @@ type ScatterpolarglMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -996,6 +1017,7 @@ type ScatterpolarglMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1014,10 +1036,11 @@ type ScatterpolarglMarker struct { Sizesrc string `json:"sizesrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScatterpolarglMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScatterpolarglMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scattersmith_gen.go b/generated/v2.19.0/graph_objects/scattersmith_gen.go index 3fec32b..f7cb554 100644 --- a/generated/v2.19.0/graph_objects/scattersmith_gen.go +++ b/generated/v2.19.0/graph_objects/scattersmith_gen.go @@ -40,6 +40,7 @@ type Scattersmith struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Use with `fillcolor` if not *none*. scattersmith has a subset of the options available to scatter. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. @@ -55,7 +56,7 @@ type Scattersmith struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScattersmithHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScattersmithHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -230,10 +231,11 @@ type Scattersmith struct { Textfont *ScattersmithTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScattersmithTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScattersmithTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -282,6 +284,7 @@ type Scattersmith struct { Unselected *ScattersmithUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -332,10 +335,11 @@ type ScattersmithHoverlabelFont struct { type ScattersmithHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScattersmithHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScattersmithHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -448,6 +452,7 @@ type ScattersmithLine struct { Dash string `json:"dash,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Determines the line shape. With *spline* the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes. @@ -518,6 +523,7 @@ type ScattersmithMarkerColorbarTitle struct { Font *ScattersmithMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -558,6 +564,7 @@ type ScattersmithMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -576,6 +583,7 @@ type ScattersmithMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -594,6 +602,7 @@ type ScattersmithMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -618,6 +627,7 @@ type ScattersmithMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -630,12 +640,14 @@ type ScattersmithMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScattersmithMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -648,6 +660,7 @@ type ScattersmithMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -688,12 +701,14 @@ type ScattersmithMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScattersmithMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -712,6 +727,7 @@ type ScattersmithMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -724,6 +740,7 @@ type ScattersmithMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -776,6 +793,7 @@ type ScattersmithMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -794,6 +812,7 @@ type ScattersmithMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -822,10 +841,11 @@ type ScattersmithMarkerGradient struct { Colorsrc string `json:"colorsrc,omitempty"` // Type + // arrayOK: true // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ScattersmithMarkerGradientType `json:"type,omitempty"` + Type ArrayOK[*ScattersmithMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -920,6 +940,7 @@ type ScattersmithMarker struct { Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref + // arrayOK: false // default: up // type: enumerated // Sets the reference for marker angle. With *previous*, angle 0 points along the line from the previous point to this one. With *up*, angle 0 points toward the top of the screen. @@ -1040,6 +1061,7 @@ type ScattersmithMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1070,10 +1092,11 @@ type ScattersmithMarker struct { Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScattersmithMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScattersmithMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scatterternary_gen.go b/generated/v2.19.0/graph_objects/scatterternary_gen.go index 99797fa..c86ce49 100644 --- a/generated/v2.19.0/graph_objects/scatterternary_gen.go +++ b/generated/v2.19.0/graph_objects/scatterternary_gen.go @@ -76,6 +76,7 @@ type Scatterternary struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Use with `fillcolor` if not *none*. scatterternary has a subset of the options available to scatter. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. @@ -91,7 +92,7 @@ type Scatterternary struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScatterternaryHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScatterternaryHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -248,10 +249,11 @@ type Scatterternary struct { Textfont *ScatterternaryTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScatterternaryTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScatterternaryTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -300,6 +302,7 @@ type Scatterternary struct { Unselected *ScatterternaryUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -350,10 +353,11 @@ type ScatterternaryHoverlabelFont struct { type ScatterternaryHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScatterternaryHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScatterternaryHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -466,6 +470,7 @@ type ScatterternaryLine struct { Dash string `json:"dash,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Determines the line shape. With *spline* the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes. @@ -536,6 +541,7 @@ type ScatterternaryMarkerColorbarTitle struct { Font *ScatterternaryMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -576,6 +582,7 @@ type ScatterternaryMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -594,6 +601,7 @@ type ScatterternaryMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -612,6 +620,7 @@ type ScatterternaryMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -636,6 +645,7 @@ type ScatterternaryMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -648,12 +658,14 @@ type ScatterternaryMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScatterternaryMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -666,6 +678,7 @@ type ScatterternaryMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -706,12 +719,14 @@ type ScatterternaryMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScatterternaryMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -730,6 +745,7 @@ type ScatterternaryMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -742,6 +758,7 @@ type ScatterternaryMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -794,6 +811,7 @@ type ScatterternaryMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -812,6 +830,7 @@ type ScatterternaryMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -840,10 +859,11 @@ type ScatterternaryMarkerGradient struct { Colorsrc string `json:"colorsrc,omitempty"` // Type + // arrayOK: true // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ScatterternaryMarkerGradientType `json:"type,omitempty"` + Type ArrayOK[*ScatterternaryMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -938,6 +958,7 @@ type ScatterternaryMarker struct { Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref + // arrayOK: false // default: up // type: enumerated // Sets the reference for marker angle. With *previous*, angle 0 points along the line from the previous point to this one. With *up*, angle 0 points toward the top of the screen. @@ -1058,6 +1079,7 @@ type ScatterternaryMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1088,10 +1110,11 @@ type ScatterternaryMarker struct { Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScatterternaryMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScatterternaryMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/splom_gen.go b/generated/v2.19.0/graph_objects/splom_gen.go index 4f1346f..bc9c862 100644 --- a/generated/v2.19.0/graph_objects/splom_gen.go +++ b/generated/v2.19.0/graph_objects/splom_gen.go @@ -41,7 +41,7 @@ type Splom struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo SplomHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*SplomHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -206,6 +206,7 @@ type Splom struct { Unselected *SplomUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -290,10 +291,11 @@ type SplomHoverlabelFont struct { type SplomHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align SplomHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*SplomHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -430,6 +432,7 @@ type SplomMarkerColorbarTitle struct { Font *SplomMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -470,6 +473,7 @@ type SplomMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -488,6 +492,7 @@ type SplomMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -506,6 +511,7 @@ type SplomMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -530,6 +536,7 @@ type SplomMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -542,12 +549,14 @@ type SplomMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix SplomMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -560,6 +569,7 @@ type SplomMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -600,12 +610,14 @@ type SplomMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow SplomMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -624,6 +636,7 @@ type SplomMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -636,6 +649,7 @@ type SplomMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -688,6 +702,7 @@ type SplomMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -706,6 +721,7 @@ type SplomMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -908,6 +924,7 @@ type SplomMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -926,10 +943,11 @@ type SplomMarker struct { Sizesrc string `json:"sizesrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol SplomMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*SplomMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/streamtube_gen.go b/generated/v2.19.0/graph_objects/streamtube_gen.go index 9ff5eb6..8c9b04d 100644 --- a/generated/v2.19.0/graph_objects/streamtube_gen.go +++ b/generated/v2.19.0/graph_objects/streamtube_gen.go @@ -77,7 +77,7 @@ type Streamtube struct { // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo StreamtubeHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*StreamtubeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -266,6 +266,7 @@ type Streamtube struct { Vhoverformat string `json:"vhoverformat,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -402,6 +403,7 @@ type StreamtubeColorbarTitle struct { Font *StreamtubeColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -442,6 +444,7 @@ type StreamtubeColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -460,6 +463,7 @@ type StreamtubeColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -478,6 +482,7 @@ type StreamtubeColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -502,6 +507,7 @@ type StreamtubeColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -514,12 +520,14 @@ type StreamtubeColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix StreamtubeColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -532,6 +540,7 @@ type StreamtubeColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -572,12 +581,14 @@ type StreamtubeColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow StreamtubeColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -596,6 +607,7 @@ type StreamtubeColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -608,6 +620,7 @@ type StreamtubeColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -660,6 +673,7 @@ type StreamtubeColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -678,6 +692,7 @@ type StreamtubeColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -734,10 +749,11 @@ type StreamtubeHoverlabelFont struct { type StreamtubeHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align StreamtubeHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*StreamtubeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/sunburst_gen.go b/generated/v2.19.0/graph_objects/sunburst_gen.go index 2f9b155..1173f76 100644 --- a/generated/v2.19.0/graph_objects/sunburst_gen.go +++ b/generated/v2.19.0/graph_objects/sunburst_gen.go @@ -16,6 +16,7 @@ type Sunburst struct { Type TraceType `json:"type,omitempty"` // Branchvalues + // arrayOK: false // default: remainder // type: enumerated // Determines how the items in `values` are summed. When set to *total*, items in `values` are taken to be value of all its descendants. When set to *remainder*, items in `values` corresponding to the root and the branches sectors are taken to be the extra part not part of the sum of the values at their leaves. @@ -47,7 +48,7 @@ type Sunburst struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo SunburstHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*SunburstHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -100,6 +101,7 @@ type Sunburst struct { Insidetextfont *SunburstInsidetextfont `json:"insidetextfont,omitempty"` // Insidetextorientation + // arrayOK: false // default: auto // type: enumerated // Controls the orientation of the text inside chart sectors. When set to *auto*, text may be oriented in any direction in order to be as big as possible in the middle of a sector. The *horizontal* option orients text to be parallel with the bottom of the chart, and may make text smaller in order to achieve that goal. The *radial* option orients text along the radius of the sector. The *tangential* option orients text perpendicular to the radius of the sector. @@ -278,6 +280,7 @@ type Sunburst struct { Valuessrc string `json:"valuessrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -356,10 +359,11 @@ type SunburstHoverlabelFont struct { type SunburstHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align SunburstHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*SunburstHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -546,6 +550,7 @@ type SunburstMarkerColorbarTitle struct { Font *SunburstMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -586,6 +591,7 @@ type SunburstMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -604,6 +610,7 @@ type SunburstMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -622,6 +629,7 @@ type SunburstMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -646,6 +654,7 @@ type SunburstMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -658,12 +667,14 @@ type SunburstMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix SunburstMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -676,6 +687,7 @@ type SunburstMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -716,12 +728,14 @@ type SunburstMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow SunburstMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -740,6 +754,7 @@ type SunburstMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -752,6 +767,7 @@ type SunburstMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -804,6 +820,7 @@ type SunburstMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -822,6 +839,7 @@ type SunburstMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. diff --git a/generated/v2.19.0/graph_objects/surface_gen.go b/generated/v2.19.0/graph_objects/surface_gen.go index 011fa6d..628546b 100644 --- a/generated/v2.19.0/graph_objects/surface_gen.go +++ b/generated/v2.19.0/graph_objects/surface_gen.go @@ -93,7 +93,7 @@ type Surface struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo SurfaceHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*SurfaceHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -266,6 +266,7 @@ type Surface struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -278,6 +279,7 @@ type Surface struct { X interface{} `json:"x,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -302,6 +304,7 @@ type Surface struct { Y interface{} `json:"y,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -326,6 +329,7 @@ type Surface struct { Z interface{} `json:"z,omitempty"` // Zcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `z` date data. @@ -396,6 +400,7 @@ type SurfaceColorbarTitle struct { Font *SurfaceColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -436,6 +441,7 @@ type SurfaceColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -454,6 +460,7 @@ type SurfaceColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -472,6 +479,7 @@ type SurfaceColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -496,6 +504,7 @@ type SurfaceColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -508,12 +517,14 @@ type SurfaceColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix SurfaceColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -526,6 +537,7 @@ type SurfaceColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -566,12 +578,14 @@ type SurfaceColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow SurfaceColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -590,6 +604,7 @@ type SurfaceColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -602,6 +617,7 @@ type SurfaceColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -654,6 +670,7 @@ type SurfaceColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -672,6 +689,7 @@ type SurfaceColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -1014,10 +1032,11 @@ type SurfaceHoverlabelFont struct { type SurfaceHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align SurfaceHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*SurfaceHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/table_gen.go b/generated/v2.19.0/graph_objects/table_gen.go index f5dfa2d..f952e44 100644 --- a/generated/v2.19.0/graph_objects/table_gen.go +++ b/generated/v2.19.0/graph_objects/table_gen.go @@ -67,7 +67,7 @@ type Table struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo TableHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*TableHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -142,6 +142,7 @@ type Table struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -236,10 +237,11 @@ type TableCellsLine struct { type TableCells struct { // Align + // arrayOK: true // default: center // type: enumerated // Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more
HTML tags) or if an explicit width is set to override the text width. - Align TableCellsAlign `json:"align,omitempty"` + Align ArrayOK[*TableCellsAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -430,10 +432,11 @@ type TableHeaderLine struct { type TableHeader struct { // Align + // arrayOK: true // default: center // type: enumerated // Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more
HTML tags) or if an explicit width is set to override the text width. - Align TableHeaderAlign `json:"align,omitempty"` + Align ArrayOK[*TableHeaderAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -552,10 +555,11 @@ type TableHoverlabelFont struct { type TableHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align TableHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*TableHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/treemap_gen.go b/generated/v2.19.0/graph_objects/treemap_gen.go index 4285a9d..6b4e066 100644 --- a/generated/v2.19.0/graph_objects/treemap_gen.go +++ b/generated/v2.19.0/graph_objects/treemap_gen.go @@ -16,6 +16,7 @@ type Treemap struct { Type TraceType `json:"type,omitempty"` // Branchvalues + // arrayOK: false // default: remainder // type: enumerated // Determines how the items in `values` are summed. When set to *total*, items in `values` are taken to be value of all its descendants. When set to *remainder*, items in `values` corresponding to the root and the branches sectors are taken to be the extra part not part of the sum of the values at their leaves. @@ -47,7 +48,7 @@ type Treemap struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo TreemapHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*TreemapHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -218,6 +219,7 @@ type Treemap struct { Textinfo TreemapTextinfo `json:"textinfo,omitempty"` // Textposition + // arrayOK: false // default: top left // type: enumerated // Sets the positions of the `text` elements. @@ -276,6 +278,7 @@ type Treemap struct { Valuessrc string `json:"valuessrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -354,10 +357,11 @@ type TreemapHoverlabelFont struct { type TreemapHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align TreemapHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*TreemapHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -534,6 +538,7 @@ type TreemapMarkerColorbarTitle struct { Font *TreemapMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -574,6 +579,7 @@ type TreemapMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -592,6 +598,7 @@ type TreemapMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -610,6 +617,7 @@ type TreemapMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -634,6 +642,7 @@ type TreemapMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -646,12 +655,14 @@ type TreemapMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix TreemapMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -664,6 +675,7 @@ type TreemapMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -704,12 +716,14 @@ type TreemapMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow TreemapMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -728,6 +742,7 @@ type TreemapMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -740,6 +755,7 @@ type TreemapMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -792,6 +808,7 @@ type TreemapMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -810,6 +827,7 @@ type TreemapMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -946,6 +964,7 @@ type TreemapMarker struct { Cornerradius float64 `json:"cornerradius,omitempty"` // Depthfade + // arrayOK: false // default: %!s() // type: enumerated // Determines if the sector colors are faded towards the background from the leaves up to the headers. This option is unavailable when a `colorscale` is present, defaults to false when `marker.colors` is set, but otherwise defaults to true. When set to *reversed*, the fading direction is inverted, that is the top elements within hierarchy are drawn with fully saturated colors while the leaves are faded towards the background color. @@ -1056,12 +1075,14 @@ type TreemapPathbarTextfont struct { type TreemapPathbar struct { // Edgeshape + // arrayOK: false // default: > // type: enumerated // Determines which shape is used for edges between `barpath` labels. Edgeshape TreemapPathbarEdgeshape `json:"edgeshape,omitempty"` // Side + // arrayOK: false // default: top // type: enumerated // Determines on which side of the the treemap the `pathbar` should be presented. @@ -1160,6 +1181,7 @@ type TreemapTiling struct { Flip TreemapTilingFlip `json:"flip,omitempty"` // Packing + // arrayOK: false // default: squarify // type: enumerated // Determines d3 treemap solver. For more info please refer to https://github.com/d3/d3-hierarchy#treemap-tiling diff --git a/generated/v2.19.0/graph_objects/violin_gen.go b/generated/v2.19.0/graph_objects/violin_gen.go index d84686e..38cc9a7 100644 --- a/generated/v2.19.0/graph_objects/violin_gen.go +++ b/generated/v2.19.0/graph_objects/violin_gen.go @@ -53,7 +53,7 @@ type Violin struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ViolinHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ViolinHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -178,6 +178,7 @@ type Violin struct { Opacity float64 `json:"opacity,omitempty"` // Orientation + // arrayOK: false // default: %!s() // type: enumerated // Sets the orientation of the violin(s). If *v* (*h*), the distribution is visualized along the vertical (horizontal). @@ -190,12 +191,14 @@ type Violin struct { Pointpos float64 `json:"pointpos,omitempty"` // Points + // arrayOK: false // default: %!s() // type: enumerated // If *outliers*, only the sample points lying outside the whiskers are shown If *suspectedoutliers*, the outlier points are shown and points either less than 4*Q1-3*Q3 or greater than 4*Q3-3*Q1 are highlighted (see `outliercolor`) If *all*, all sample points are shown If *false*, only the violins are shown with no sample points. Defaults to *suspectedoutliers* when `marker.outliercolor` or `marker.line.outliercolor` is set, otherwise defaults to *outliers*. Points ViolinPoints `json:"points,omitempty"` // Quartilemethod + // arrayOK: false // default: linear // type: enumerated // Sets the method used to compute the sample's Q1 and Q3 quartiles. The *linear* method uses the 25th percentile for Q1 and 75th percentile for Q3 as computed using method #10 (listed on http://jse.amstat.org/v14n3/langford.html). The *exclusive* method uses the median to divide the ordered dataset into two halves if the sample is odd, it does not include the median in either half - Q1 is then the median of the lower half and Q3 the median of the upper half. The *inclusive* method also uses the median to divide the ordered dataset into two halves but if the sample is odd, it includes the median in both halves - Q1 is then the median of the lower half and Q3 the median of the upper half. @@ -208,6 +211,7 @@ type Violin struct { Scalegroup string `json:"scalegroup,omitempty"` // Scalemode + // arrayOK: false // default: width // type: enumerated // Sets the metric by which the width of each violin is determined. *width* means each violin has the same (max) width *count* means the violins are scaled by the number of sample points making up each violin. @@ -230,6 +234,7 @@ type Violin struct { Showlegend Bool `json:"showlegend,omitempty"` // Side + // arrayOK: false // default: both // type: enumerated // Determines on which side of the position value the density function making up one half of a violin is plotted. Useful when comparing two violin traces under *overlay* mode, where one trace has `side` set to *positive* and the other to *negative*. @@ -242,6 +247,7 @@ type Violin struct { Span interface{} `json:"span,omitempty"` // Spanmode + // arrayOK: false // default: soft // type: enumerated // Sets the method by which the span in data space where the density function will be computed. *soft* means the span goes from the sample's minimum value minus two bandwidths to the sample's maximum value plus two bandwidths. *hard* means the span goes from the sample's minimum to its maximum value. For custom span settings, use mode *manual* and fill in the `span` attribute. @@ -286,6 +292,7 @@ type Violin struct { Unselected *ViolinUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -444,10 +451,11 @@ type ViolinHoverlabelFont struct { type ViolinHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ViolinHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ViolinHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -614,6 +622,7 @@ type ViolinMarker struct { Size float64 `json:"size,omitempty"` // Symbol + // arrayOK: false // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. diff --git a/generated/v2.19.0/graph_objects/volume_gen.go b/generated/v2.19.0/graph_objects/volume_gen.go index 4d87a5f..b28c194 100644 --- a/generated/v2.19.0/graph_objects/volume_gen.go +++ b/generated/v2.19.0/graph_objects/volume_gen.go @@ -91,7 +91,7 @@ type Volume struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo VolumeHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*VolumeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -294,6 +294,7 @@ type Volume struct { Valuesrc string `json:"valuesrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -470,6 +471,7 @@ type VolumeColorbarTitle struct { Font *VolumeColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -510,6 +512,7 @@ type VolumeColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -528,6 +531,7 @@ type VolumeColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -546,6 +550,7 @@ type VolumeColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -570,6 +575,7 @@ type VolumeColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -582,12 +588,14 @@ type VolumeColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix VolumeColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -600,6 +608,7 @@ type VolumeColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -640,12 +649,14 @@ type VolumeColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow VolumeColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -664,6 +675,7 @@ type VolumeColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -676,6 +688,7 @@ type VolumeColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -728,6 +741,7 @@ type VolumeColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -746,6 +760,7 @@ type VolumeColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -824,10 +839,11 @@ type VolumeHoverlabelFont struct { type VolumeHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align VolumeHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*VolumeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/waterfall_gen.go b/generated/v2.19.0/graph_objects/waterfall_gen.go index a39e2a6..6b24d34 100644 --- a/generated/v2.19.0/graph_objects/waterfall_gen.go +++ b/generated/v2.19.0/graph_objects/waterfall_gen.go @@ -38,6 +38,7 @@ type Waterfall struct { Connector *WaterfallConnector `json:"connector,omitempty"` // Constraintext + // arrayOK: false // default: both // type: enumerated // Constrain the size of text inside or outside a bar to be no larger than the bar itself. @@ -75,7 +76,7 @@ type Waterfall struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo WaterfallHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*WaterfallHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -128,6 +129,7 @@ type Waterfall struct { Increasing *WaterfallIncreasing `json:"increasing,omitempty"` // Insidetextanchor + // arrayOK: false // default: end // type: enumerated // Determines if texts are kept at center or start/end points in `textposition` *inside* mode. @@ -214,6 +216,7 @@ type Waterfall struct { Opacity float64 `json:"opacity,omitempty"` // Orientation + // arrayOK: false // default: %!s() // type: enumerated // Sets the orientation of the bars. With *v* (*h*), the value of the each bar spans along the vertical (horizontal). @@ -262,10 +265,11 @@ type Waterfall struct { Textinfo WaterfallTextinfo `json:"textinfo,omitempty"` // Textposition + // arrayOK: true // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition WaterfallTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*WaterfallTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -314,6 +318,7 @@ type Waterfall struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -368,6 +373,7 @@ type Waterfall struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -416,6 +422,7 @@ type Waterfall struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -458,6 +465,7 @@ type WaterfallConnector struct { Line *WaterfallConnectorLine `json:"line,omitempty"` // Mode + // arrayOK: false // default: between // type: enumerated // Sets the shape of connector lines. @@ -552,10 +560,11 @@ type WaterfallHoverlabelFont struct { type WaterfallHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align WaterfallHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*WaterfallHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/bar_gen.go b/generated/v2.29.1/graph_objects/bar_gen.go index cc177b2..066e25d 100644 --- a/generated/v2.29.1/graph_objects/bar_gen.go +++ b/generated/v2.29.1/graph_objects/bar_gen.go @@ -40,6 +40,7 @@ type Bar struct { Cliponaxis Bool `json:"cliponaxis,omitempty"` // Constraintext + // arrayOK: false // default: both // type: enumerated // Constrain the size of text inside or outside a bar to be no larger than the bar itself. @@ -81,7 +82,7 @@ type Bar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo BarHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*BarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -130,6 +131,7 @@ type Bar struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextanchor + // arrayOK: false // default: end // type: enumerated // Determines if texts are kept at center or start/end points in `textposition` *inside* mode. @@ -214,6 +216,7 @@ type Bar struct { Opacity float64 `json:"opacity,omitempty"` // Orientation + // arrayOK: false // default: %!s() // type: enumerated // Sets the orientation of the bars. With *v* (*h*), the value of the each bar spans along the vertical (horizontal). @@ -260,10 +263,11 @@ type Bar struct { Textfont *BarTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition BarTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*BarTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -312,6 +316,7 @@ type Bar struct { Unselected *BarUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -348,6 +353,7 @@ type Bar struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -372,6 +378,7 @@ type Bar struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -402,6 +409,7 @@ type Bar struct { Yaxis String `json:"yaxis,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -426,6 +434,7 @@ type Bar struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -502,6 +511,7 @@ type BarErrorX struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -590,6 +600,7 @@ type BarErrorY struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -664,10 +675,11 @@ type BarHoverlabelFont struct { type BarHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align BarHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*BarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -844,6 +856,7 @@ type BarMarkerColorbarTitle struct { Font *BarMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -884,6 +897,7 @@ type BarMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -902,6 +916,7 @@ type BarMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -920,6 +935,7 @@ type BarMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -944,6 +960,7 @@ type BarMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -956,12 +973,14 @@ type BarMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix BarMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -974,6 +993,7 @@ type BarMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -1014,12 +1034,14 @@ type BarMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow BarMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -1038,6 +1060,7 @@ type BarMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -1050,6 +1073,7 @@ type BarMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -1102,6 +1126,7 @@ type BarMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -1114,6 +1139,7 @@ type BarMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -1126,6 +1152,7 @@ type BarMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -1138,6 +1165,7 @@ type BarMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -1254,16 +1282,18 @@ type BarMarkerPattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode BarMarkerPatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape BarMarkerPatternShape `json:"shape,omitempty"` + Shape ArrayOK[*BarMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/barpolar_gen.go b/generated/v2.29.1/graph_objects/barpolar_gen.go index 06a0eb9..0522253 100644 --- a/generated/v2.29.1/graph_objects/barpolar_gen.go +++ b/generated/v2.29.1/graph_objects/barpolar_gen.go @@ -55,7 +55,7 @@ type Barpolar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo BarpolarHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*BarpolarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -246,6 +246,7 @@ type Barpolar struct { Thetasrc string `json:"thetasrc,omitempty"` // Thetaunit + // arrayOK: false // default: degrees // type: enumerated // Sets the unit of input *theta* values. Has an effect only when on *linear* angular axes. @@ -274,6 +275,7 @@ type Barpolar struct { Unselected *BarpolarUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -336,10 +338,11 @@ type BarpolarHoverlabelFont struct { type BarpolarHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align BarpolarHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*BarpolarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -476,6 +479,7 @@ type BarpolarMarkerColorbarTitle struct { Font *BarpolarMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -516,6 +520,7 @@ type BarpolarMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -534,6 +539,7 @@ type BarpolarMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -552,6 +558,7 @@ type BarpolarMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -576,6 +583,7 @@ type BarpolarMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -588,12 +596,14 @@ type BarpolarMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix BarpolarMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -606,6 +616,7 @@ type BarpolarMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -646,12 +657,14 @@ type BarpolarMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow BarpolarMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -670,6 +683,7 @@ type BarpolarMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -682,6 +696,7 @@ type BarpolarMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -734,6 +749,7 @@ type BarpolarMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -746,6 +762,7 @@ type BarpolarMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -758,6 +775,7 @@ type BarpolarMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -770,6 +788,7 @@ type BarpolarMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -886,16 +905,18 @@ type BarpolarMarkerPattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode BarpolarMarkerPatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape BarpolarMarkerPatternShape `json:"shape,omitempty"` + Shape ArrayOK[*BarpolarMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/box_gen.go b/generated/v2.29.1/graph_objects/box_gen.go index 9176ea9..2442203 100644 --- a/generated/v2.29.1/graph_objects/box_gen.go +++ b/generated/v2.29.1/graph_objects/box_gen.go @@ -22,12 +22,14 @@ type Box struct { Alignmentgroup string `json:"alignmentgroup,omitempty"` // Boxmean + // arrayOK: false // default: %!s() // type: enumerated // If *true*, the mean of the box(es)' underlying distribution is drawn as a dashed line inside the box(es). If *sd* the standard deviation is also drawn. Defaults to *true* when `mean` is set. Defaults to *sd* when `sd` is set Otherwise defaults to *false*. Boxmean BoxBoxmean `json:"boxmean,omitempty"` // Boxpoints + // arrayOK: false // default: %!s() // type: enumerated // If *outliers*, only the sample points lying outside the whiskers are shown If *suspectedoutliers*, the outlier points are shown and points either less than 4*Q1-3*Q3 or greater than 4*Q3-3*Q1 are highlighted (see `outliercolor`) If *all*, all sample points are shown If *false*, only the box(es) are shown with no sample points Defaults to *suspectedoutliers* when `marker.outliercolor` or `marker.line.outliercolor` is set. Defaults to *all* under the q1/median/q3 signature. Otherwise defaults to *outliers*. @@ -67,7 +69,7 @@ type Box struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo BoxHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*BoxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -254,6 +256,7 @@ type Box struct { Opacity float64 `json:"opacity,omitempty"` // Orientation + // arrayOK: false // default: %!s() // type: enumerated // Sets the orientation of the box(es). If *v* (*h*), the distribution is visualized along the vertical (horizontal). @@ -290,6 +293,7 @@ type Box struct { Q3src string `json:"q3src,omitempty"` // Quartilemethod + // arrayOK: false // default: linear // type: enumerated // Sets the method used to compute the sample's Q1 and Q3 quartiles. The *linear* method uses the 25th percentile for Q1 and 75th percentile for Q3 as computed using method #10 (listed on http://jse.amstat.org/v14n3/langford.html). The *exclusive* method uses the median to divide the ordered dataset into two halves if the sample is odd, it does not include the median in either half - Q1 is then the median of the lower half and Q3 the median of the upper half. The *inclusive* method also uses the median to divide the ordered dataset into two halves but if the sample is odd, it includes the median in both halves - Q1 is then the median of the lower half and Q3 the median of the upper half. @@ -336,6 +340,7 @@ type Box struct { Showwhiskers Bool `json:"showwhiskers,omitempty"` // Sizemode + // arrayOK: false // default: quartiles // type: enumerated // Sets the upper and lower bound for the boxes quartiles means box is drawn between Q1 and Q3 SD means the box is drawn between Mean +- Standard Deviation Argument sdmultiple (default 1) to scale the box size So it could be drawn 1-stddev, 3-stddev etc @@ -392,6 +397,7 @@ type Box struct { Upperfencesrc string `json:"upperfencesrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -428,6 +434,7 @@ type Box struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -452,6 +459,7 @@ type Box struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -482,6 +490,7 @@ type Box struct { Yaxis String `json:"yaxis,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -506,6 +515,7 @@ type Box struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -562,10 +572,11 @@ type BoxHoverlabelFont struct { type BoxHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align BoxHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*BoxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -732,6 +743,7 @@ type BoxMarker struct { Size float64 `json:"size,omitempty"` // Symbol + // arrayOK: false // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. diff --git a/generated/v2.29.1/graph_objects/candlestick_gen.go b/generated/v2.29.1/graph_objects/candlestick_gen.go index 964358c..012b5cd 100644 --- a/generated/v2.29.1/graph_objects/candlestick_gen.go +++ b/generated/v2.29.1/graph_objects/candlestick_gen.go @@ -59,7 +59,7 @@ type Candlestick struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo CandlestickHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*CandlestickHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -226,6 +226,7 @@ type Candlestick struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -250,6 +251,7 @@ type Candlestick struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -274,6 +276,7 @@ type Candlestick struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -372,10 +375,11 @@ type CandlestickHoverlabelFont struct { type CandlestickHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align CandlestickHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*CandlestickHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/carpet_gen.go b/generated/v2.29.1/graph_objects/carpet_gen.go index 590e341..e0b8e0e 100644 --- a/generated/v2.29.1/graph_objects/carpet_gen.go +++ b/generated/v2.29.1/graph_objects/carpet_gen.go @@ -180,6 +180,7 @@ type Carpet struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -302,12 +303,14 @@ type CarpetAaxis struct { Arraytick0 int64 `json:"arraytick0,omitempty"` // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided, then `autorange` is set to *false*. Autorange CarpetAaxisAutorange `json:"autorange,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. @@ -326,12 +329,14 @@ type CarpetAaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Categoryorder CarpetAaxisCategoryorder `json:"categoryorder,omitempty"` // Cheatertype + // arrayOK: false // default: value // type: enumerated // @@ -368,6 +373,7 @@ type CarpetAaxis struct { Endlinewidth float64 `json:"endlinewidth,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -476,6 +482,7 @@ type CarpetAaxis struct { Range interface{} `json:"range,omitempty"` // Rangemode + // arrayOK: false // default: normal // type: enumerated // If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. @@ -488,6 +495,7 @@ type CarpetAaxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -506,18 +514,21 @@ type CarpetAaxis struct { Showline Bool `json:"showline,omitempty"` // Showticklabels + // arrayOK: false // default: start // type: enumerated // Determines whether axis labels are drawn on the low side, the high side, both, or neither side of the axis. Showticklabels CarpetAaxisShowticklabels `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix CarpetAaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -576,6 +587,7 @@ type CarpetAaxis struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Tickmode + // arrayOK: false // default: array // type: enumerated // @@ -622,6 +634,7 @@ type CarpetAaxis struct { Title *CarpetAaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. @@ -708,12 +721,14 @@ type CarpetBaxis struct { Arraytick0 int64 `json:"arraytick0,omitempty"` // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided, then `autorange` is set to *false*. Autorange CarpetBaxisAutorange `json:"autorange,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. @@ -732,12 +747,14 @@ type CarpetBaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Categoryorder CarpetBaxisCategoryorder `json:"categoryorder,omitempty"` // Cheatertype + // arrayOK: false // default: value // type: enumerated // @@ -774,6 +791,7 @@ type CarpetBaxis struct { Endlinewidth float64 `json:"endlinewidth,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -882,6 +900,7 @@ type CarpetBaxis struct { Range interface{} `json:"range,omitempty"` // Rangemode + // arrayOK: false // default: normal // type: enumerated // If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. @@ -894,6 +913,7 @@ type CarpetBaxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -912,18 +932,21 @@ type CarpetBaxis struct { Showline Bool `json:"showline,omitempty"` // Showticklabels + // arrayOK: false // default: start // type: enumerated // Determines whether axis labels are drawn on the low side, the high side, both, or neither side of the axis. Showticklabels CarpetBaxisShowticklabels `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix CarpetBaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -982,6 +1005,7 @@ type CarpetBaxis struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Tickmode + // arrayOK: false // default: array // type: enumerated // @@ -1028,6 +1052,7 @@ type CarpetBaxis struct { Title *CarpetBaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. diff --git a/generated/v2.29.1/graph_objects/choropleth_gen.go b/generated/v2.29.1/graph_objects/choropleth_gen.go index 75ee700..bdc1b79 100644 --- a/generated/v2.29.1/graph_objects/choropleth_gen.go +++ b/generated/v2.29.1/graph_objects/choropleth_gen.go @@ -71,7 +71,7 @@ type Choropleth struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ChoroplethHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ChoroplethHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -148,6 +148,7 @@ type Choropleth struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Locationmode + // arrayOK: false // default: ISO-3 // type: enumerated // Determines the set of locations used to match entries in `locations` to regions on the map. Values *ISO-3*, *USA-states*, *country names* correspond to features on the base map and value *geojson-id* corresponds to features from a custom GeoJSON linked to the `geojson` attribute. @@ -254,6 +255,7 @@ type Choropleth struct { Unselected *ChoroplethUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -348,6 +350,7 @@ type ChoroplethColorbarTitle struct { Font *ChoroplethColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -388,6 +391,7 @@ type ChoroplethColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -406,6 +410,7 @@ type ChoroplethColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -424,6 +429,7 @@ type ChoroplethColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -448,6 +454,7 @@ type ChoroplethColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -460,12 +467,14 @@ type ChoroplethColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ChoroplethColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -478,6 +487,7 @@ type ChoroplethColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -518,12 +528,14 @@ type ChoroplethColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ChoroplethColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -542,6 +554,7 @@ type ChoroplethColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -554,6 +567,7 @@ type ChoroplethColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -606,6 +620,7 @@ type ChoroplethColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -618,6 +633,7 @@ type ChoroplethColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -630,6 +646,7 @@ type ChoroplethColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -642,6 +659,7 @@ type ChoroplethColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -692,10 +710,11 @@ type ChoroplethHoverlabelFont struct { type ChoroplethHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ChoroplethHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ChoroplethHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/choroplethmapbox_gen.go b/generated/v2.29.1/graph_objects/choroplethmapbox_gen.go index 1d2e9f7..32cc04d 100644 --- a/generated/v2.29.1/graph_objects/choroplethmapbox_gen.go +++ b/generated/v2.29.1/graph_objects/choroplethmapbox_gen.go @@ -71,7 +71,7 @@ type Choroplethmapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ChoroplethmapboxHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ChoroplethmapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -254,6 +254,7 @@ type Choroplethmapbox struct { Unselected *ChoroplethmapboxUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -348,6 +349,7 @@ type ChoroplethmapboxColorbarTitle struct { Font *ChoroplethmapboxColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -388,6 +390,7 @@ type ChoroplethmapboxColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -406,6 +409,7 @@ type ChoroplethmapboxColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -424,6 +428,7 @@ type ChoroplethmapboxColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -448,6 +453,7 @@ type ChoroplethmapboxColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -460,12 +466,14 @@ type ChoroplethmapboxColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ChoroplethmapboxColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -478,6 +486,7 @@ type ChoroplethmapboxColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -518,12 +527,14 @@ type ChoroplethmapboxColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ChoroplethmapboxColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -542,6 +553,7 @@ type ChoroplethmapboxColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -554,6 +566,7 @@ type ChoroplethmapboxColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -606,6 +619,7 @@ type ChoroplethmapboxColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -618,6 +632,7 @@ type ChoroplethmapboxColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -630,6 +645,7 @@ type ChoroplethmapboxColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -642,6 +658,7 @@ type ChoroplethmapboxColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -692,10 +709,11 @@ type ChoroplethmapboxHoverlabelFont struct { type ChoroplethmapboxHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ChoroplethmapboxHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ChoroplethmapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/cone_gen.go b/generated/v2.29.1/graph_objects/cone_gen.go index 3412b64..bc2e8ee 100644 --- a/generated/v2.29.1/graph_objects/cone_gen.go +++ b/generated/v2.29.1/graph_objects/cone_gen.go @@ -16,6 +16,7 @@ type Cone struct { Type TraceType `json:"type,omitempty"` // Anchor + // arrayOK: false // default: cm // type: enumerated // Sets the cones' anchor with respect to their x/y/z positions. Note that *cm* denote the cone's center of mass which corresponds to 1/4 from the tail to tip. @@ -83,7 +84,7 @@ type Cone struct { // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ConeHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ConeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -216,6 +217,7 @@ type Cone struct { Showscale Bool `json:"showscale,omitempty"` // Sizemode + // arrayOK: false // default: scaled // type: enumerated // Determines whether `sizeref` is set as a *scaled* (i.e unitless) scalar (normalized by the max u/v/w norm in the vector field) or as *absolute* value (in the same units as the vector field). @@ -286,6 +288,7 @@ type Cone struct { Vhoverformat string `json:"vhoverformat,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -422,6 +425,7 @@ type ConeColorbarTitle struct { Font *ConeColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -462,6 +466,7 @@ type ConeColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -480,6 +485,7 @@ type ConeColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -498,6 +504,7 @@ type ConeColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -522,6 +529,7 @@ type ConeColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -534,12 +542,14 @@ type ConeColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ConeColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -552,6 +562,7 @@ type ConeColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -592,12 +603,14 @@ type ConeColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ConeColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -616,6 +629,7 @@ type ConeColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -628,6 +642,7 @@ type ConeColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -680,6 +695,7 @@ type ConeColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -692,6 +708,7 @@ type ConeColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -704,6 +721,7 @@ type ConeColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -716,6 +734,7 @@ type ConeColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -766,10 +785,11 @@ type ConeHoverlabelFont struct { type ConeHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ConeHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ConeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/config_gen.go b/generated/v2.29.1/graph_objects/config_gen.go index 2b9e074..d6486c9 100644 --- a/generated/v2.29.1/graph_objects/config_gen.go +++ b/generated/v2.29.1/graph_objects/config_gen.go @@ -10,6 +10,7 @@ type Config struct { Autosizable Bool `json:"autosizable,omitempty"` // DisplayModeBar + // arrayOK: false // default: hover // type: enumerated // Determines the mode bar display mode. If *true*, the mode bar is always visible. If *false*, the mode bar is always hidden. If *hover*, the mode bar is visible while the mouse cursor is on the graph container. @@ -22,6 +23,7 @@ type Config struct { Displaylogo Bool `json:"displaylogo,omitempty"` // DoubleClick + // arrayOK: false // default: reset+autosize // type: enumerated // Sets the double click interaction mode. Has an effect only in cartesian plots. If *false*, double click is disable. If *reset*, double click resets the axis ranges to their initial values. If *autosize*, double click set the axis ranges to their autorange values. If *reset+autosize*, the odd double clicks resets the axis ranges to their initial values and even double clicks set the axis ranges to their autorange values. diff --git a/generated/v2.29.1/graph_objects/contour_gen.go b/generated/v2.29.1/graph_objects/contour_gen.go index 4e0d858..d8d2f5e 100644 --- a/generated/v2.29.1/graph_objects/contour_gen.go +++ b/generated/v2.29.1/graph_objects/contour_gen.go @@ -87,7 +87,7 @@ type Contour struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ContourHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ContourHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -272,6 +272,7 @@ type Contour struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -296,6 +297,7 @@ type Contour struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -320,6 +322,7 @@ type Contour struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -332,6 +335,7 @@ type Contour struct { Xsrc string `json:"xsrc,omitempty"` // Xtype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's x coordinates are given by *x* (the default behavior when `x` is provided). If *scaled*, the heatmap's x coordinates are given by *x0* and *dx* (the default behavior when `x` is not provided). @@ -356,6 +360,7 @@ type Contour struct { Yaxis String `json:"yaxis,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -380,6 +385,7 @@ type Contour struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -392,6 +398,7 @@ type Contour struct { Ysrc string `json:"ysrc,omitempty"` // Ytype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's y coordinates are given by *y* (the default behavior when `y` is provided) If *scaled*, the heatmap's y coordinates are given by *y0* and *dy* (the default behavior when `y` is not provided) @@ -492,6 +499,7 @@ type ContourColorbarTitle struct { Font *ContourColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -532,6 +540,7 @@ type ContourColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -550,6 +559,7 @@ type ContourColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -568,6 +578,7 @@ type ContourColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -592,6 +603,7 @@ type ContourColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -604,12 +616,14 @@ type ContourColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ContourColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -622,6 +636,7 @@ type ContourColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -662,12 +677,14 @@ type ContourColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ContourColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -686,6 +703,7 @@ type ContourColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -698,6 +716,7 @@ type ContourColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -750,6 +769,7 @@ type ContourColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -762,6 +782,7 @@ type ContourColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -774,6 +795,7 @@ type ContourColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -786,6 +808,7 @@ type ContourColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -818,6 +841,7 @@ type ContourContoursLabelfont struct { type ContourContours struct { // Coloring + // arrayOK: false // default: fill // type: enumerated // Determines the coloring method showing the contour values. If *fill*, coloring is done evenly between each contour level If *heatmap*, a heatmap gradient coloring is applied between each contour level. If *lines*, coloring is done on the contour lines. If *none*, no coloring is applied on this trace. @@ -840,6 +864,7 @@ type ContourContours struct { Labelformat string `json:"labelformat,omitempty"` // Operation + // arrayOK: false // default: = // type: enumerated // Sets the constraint operation. *=* keeps regions equal to `value` *<* and *<=* keep regions less than `value` *>* and *>=* keep regions greater than `value` *[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]` *][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. @@ -870,6 +895,7 @@ type ContourContours struct { Start float64 `json:"start,omitempty"` // Type + // arrayOK: false // default: levels // type: enumerated // If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. @@ -926,10 +952,11 @@ type ContourHoverlabelFont struct { type ContourHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ContourHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ContourHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/contourcarpet_gen.go b/generated/v2.29.1/graph_objects/contourcarpet_gen.go index 0aebe2f..79fee8e 100644 --- a/generated/v2.29.1/graph_objects/contourcarpet_gen.go +++ b/generated/v2.29.1/graph_objects/contourcarpet_gen.go @@ -34,6 +34,7 @@ type Contourcarpet struct { Asrc string `json:"asrc,omitempty"` // Atype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's x coordinates are given by *x* (the default behavior when `x` is provided). If *scaled*, the heatmap's x coordinates are given by *x0* and *dx* (the default behavior when `x` is not provided). @@ -70,6 +71,7 @@ type Contourcarpet struct { Bsrc string `json:"bsrc,omitempty"` // Btype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's y coordinates are given by *y* (the default behavior when `y` is provided) If *scaled*, the heatmap's y coordinates are given by *y0* and *dy* (the default behavior when `y` is not provided) @@ -270,6 +272,7 @@ type Contourcarpet struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -376,6 +379,7 @@ type ContourcarpetColorbarTitle struct { Font *ContourcarpetColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -416,6 +420,7 @@ type ContourcarpetColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -434,6 +439,7 @@ type ContourcarpetColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -452,6 +458,7 @@ type ContourcarpetColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -476,6 +483,7 @@ type ContourcarpetColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -488,12 +496,14 @@ type ContourcarpetColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ContourcarpetColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -506,6 +516,7 @@ type ContourcarpetColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -546,12 +557,14 @@ type ContourcarpetColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ContourcarpetColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -570,6 +583,7 @@ type ContourcarpetColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -582,6 +596,7 @@ type ContourcarpetColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -634,6 +649,7 @@ type ContourcarpetColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -646,6 +662,7 @@ type ContourcarpetColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -658,6 +675,7 @@ type ContourcarpetColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -670,6 +688,7 @@ type ContourcarpetColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -702,6 +721,7 @@ type ContourcarpetContoursLabelfont struct { type ContourcarpetContours struct { // Coloring + // arrayOK: false // default: fill // type: enumerated // Determines the coloring method showing the contour values. If *fill*, coloring is done evenly between each contour level If *lines*, coloring is done on the contour lines. If *none*, no coloring is applied on this trace. @@ -724,6 +744,7 @@ type ContourcarpetContours struct { Labelformat string `json:"labelformat,omitempty"` // Operation + // arrayOK: false // default: = // type: enumerated // Sets the constraint operation. *=* keeps regions equal to `value` *<* and *<=* keep regions less than `value` *>* and *>=* keep regions greater than `value` *[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]` *][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. @@ -754,6 +775,7 @@ type ContourcarpetContours struct { Start float64 `json:"start,omitempty"` // Type + // arrayOK: false // default: levels // type: enumerated // If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. diff --git a/generated/v2.29.1/graph_objects/densitymapbox_gen.go b/generated/v2.29.1/graph_objects/densitymapbox_gen.go index 43cdb3c..f0fd283 100644 --- a/generated/v2.29.1/graph_objects/densitymapbox_gen.go +++ b/generated/v2.29.1/graph_objects/densitymapbox_gen.go @@ -59,7 +59,7 @@ type Densitymapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo DensitymapboxHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*DensitymapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -254,6 +254,7 @@ type Densitymapbox struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -348,6 +349,7 @@ type DensitymapboxColorbarTitle struct { Font *DensitymapboxColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -388,6 +390,7 @@ type DensitymapboxColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -406,6 +409,7 @@ type DensitymapboxColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -424,6 +428,7 @@ type DensitymapboxColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -448,6 +453,7 @@ type DensitymapboxColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -460,12 +466,14 @@ type DensitymapboxColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix DensitymapboxColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -478,6 +486,7 @@ type DensitymapboxColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -518,12 +527,14 @@ type DensitymapboxColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow DensitymapboxColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -542,6 +553,7 @@ type DensitymapboxColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -554,6 +566,7 @@ type DensitymapboxColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -606,6 +619,7 @@ type DensitymapboxColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -618,6 +632,7 @@ type DensitymapboxColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -630,6 +645,7 @@ type DensitymapboxColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -642,6 +658,7 @@ type DensitymapboxColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -692,10 +709,11 @@ type DensitymapboxHoverlabelFont struct { type DensitymapboxHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align DensitymapboxHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*DensitymapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/funnel_gen.go b/generated/v2.29.1/graph_objects/funnel_gen.go index 265e27e..7585ae6 100644 --- a/generated/v2.29.1/graph_objects/funnel_gen.go +++ b/generated/v2.29.1/graph_objects/funnel_gen.go @@ -32,6 +32,7 @@ type Funnel struct { Connector *FunnelConnector `json:"connector,omitempty"` // Constraintext + // arrayOK: false // default: both // type: enumerated // Constrain the size of text inside or outside a bar to be no larger than the bar itself. @@ -65,7 +66,7 @@ type Funnel struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo FunnelHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*FunnelHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -114,6 +115,7 @@ type Funnel struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextanchor + // arrayOK: false // default: middle // type: enumerated // Determines if texts are kept at center or start/end points in `textposition` *inside* mode. @@ -192,6 +194,7 @@ type Funnel struct { Opacity float64 `json:"opacity,omitempty"` // Orientation + // arrayOK: false // default: %!s() // type: enumerated // Sets the orientation of the funnels. With *v* (*h*), the value of the each bar spans along the vertical (horizontal). By default funnels are tend to be oriented horizontally; unless only *y* array is presented or orientation is set to *v*. Also regarding graphs including only 'horizontal' funnels, *autorange* on the *y-axis* are set to *reversed*. @@ -240,10 +243,11 @@ type Funnel struct { Textinfo FunnelTextinfo `json:"textinfo,omitempty"` // Textposition + // arrayOK: true // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition FunnelTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*FunnelTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -288,6 +292,7 @@ type Funnel struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -336,6 +341,7 @@ type Funnel struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -384,6 +390,7 @@ type Funnel struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -482,10 +489,11 @@ type FunnelHoverlabelFont struct { type FunnelHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align FunnelHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*FunnelHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -662,6 +670,7 @@ type FunnelMarkerColorbarTitle struct { Font *FunnelMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -702,6 +711,7 @@ type FunnelMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -720,6 +730,7 @@ type FunnelMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -738,6 +749,7 @@ type FunnelMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -762,6 +774,7 @@ type FunnelMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -774,12 +787,14 @@ type FunnelMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix FunnelMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -792,6 +807,7 @@ type FunnelMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -832,12 +848,14 @@ type FunnelMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow FunnelMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -856,6 +874,7 @@ type FunnelMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -868,6 +887,7 @@ type FunnelMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -920,6 +940,7 @@ type FunnelMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -932,6 +953,7 @@ type FunnelMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -944,6 +966,7 @@ type FunnelMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -956,6 +979,7 @@ type FunnelMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. diff --git a/generated/v2.29.1/graph_objects/funnelarea_gen.go b/generated/v2.29.1/graph_objects/funnelarea_gen.go index dc81295..00b4758 100644 --- a/generated/v2.29.1/graph_objects/funnelarea_gen.go +++ b/generated/v2.29.1/graph_objects/funnelarea_gen.go @@ -53,7 +53,7 @@ type Funnelarea struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo FunnelareaHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*FunnelareaHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -212,10 +212,11 @@ type Funnelarea struct { Textinfo FunnelareaTextinfo `json:"textinfo,omitempty"` // Textposition + // arrayOK: true // default: inside // type: enumerated // Specifies the location of the `textinfo`. - Textposition FunnelareaTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*FunnelareaTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -276,6 +277,7 @@ type Funnelarea struct { Valuessrc string `json:"valuessrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -354,10 +356,11 @@ type FunnelareaHoverlabelFont struct { type FunnelareaHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align FunnelareaHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*FunnelareaHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -544,16 +547,18 @@ type FunnelareaMarkerPattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode FunnelareaMarkerPatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape FunnelareaMarkerPatternShape `json:"shape,omitempty"` + Shape ArrayOK[*FunnelareaMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -714,6 +719,7 @@ type FunnelareaTitle struct { Font *FunnelareaTitleFont `json:"font,omitempty"` // Position + // arrayOK: false // default: top center // type: enumerated // Specifies the location of the `title`. Note that the title's position used to be set by the now deprecated `titleposition` attribute. diff --git a/generated/v2.29.1/graph_objects/heatmap_gen.go b/generated/v2.29.1/graph_objects/heatmap_gen.go index 2244844..20b6ecf 100644 --- a/generated/v2.29.1/graph_objects/heatmap_gen.go +++ b/generated/v2.29.1/graph_objects/heatmap_gen.go @@ -71,7 +71,7 @@ type Heatmap struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo HeatmapHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*HeatmapHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -246,6 +246,7 @@ type Heatmap struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -270,6 +271,7 @@ type Heatmap struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -300,6 +302,7 @@ type Heatmap struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -312,6 +315,7 @@ type Heatmap struct { Xsrc string `json:"xsrc,omitempty"` // Xtype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's x coordinates are given by *x* (the default behavior when `x` is provided). If *scaled*, the heatmap's x coordinates are given by *x0* and *dx* (the default behavior when `x` is not provided). @@ -336,6 +340,7 @@ type Heatmap struct { Yaxis String `json:"yaxis,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -366,6 +371,7 @@ type Heatmap struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -378,6 +384,7 @@ type Heatmap struct { Ysrc string `json:"ysrc,omitempty"` // Ytype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's y coordinates are given by *y* (the default behavior when `y` is provided) If *scaled*, the heatmap's y coordinates are given by *y0* and *dy* (the default behavior when `y` is not provided) @@ -420,6 +427,7 @@ type Heatmap struct { Zmin float64 `json:"zmin,omitempty"` // Zsmooth + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Picks a smoothing algorithm use to smooth `z` data. @@ -484,6 +492,7 @@ type HeatmapColorbarTitle struct { Font *HeatmapColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -524,6 +533,7 @@ type HeatmapColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -542,6 +552,7 @@ type HeatmapColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -560,6 +571,7 @@ type HeatmapColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -584,6 +596,7 @@ type HeatmapColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -596,12 +609,14 @@ type HeatmapColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix HeatmapColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -614,6 +629,7 @@ type HeatmapColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -654,12 +670,14 @@ type HeatmapColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow HeatmapColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -678,6 +696,7 @@ type HeatmapColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -690,6 +709,7 @@ type HeatmapColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -742,6 +762,7 @@ type HeatmapColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -754,6 +775,7 @@ type HeatmapColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -766,6 +788,7 @@ type HeatmapColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -778,6 +801,7 @@ type HeatmapColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -828,10 +852,11 @@ type HeatmapHoverlabelFont struct { type HeatmapHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align HeatmapHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*HeatmapHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/heatmapgl_gen.go b/generated/v2.29.1/graph_objects/heatmapgl_gen.go index 0575e81..35c9187 100644 --- a/generated/v2.29.1/graph_objects/heatmapgl_gen.go +++ b/generated/v2.29.1/graph_objects/heatmapgl_gen.go @@ -65,7 +65,7 @@ type Heatmapgl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo HeatmapglHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*HeatmapglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -188,6 +188,7 @@ type Heatmapgl struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -218,6 +219,7 @@ type Heatmapgl struct { Xsrc string `json:"xsrc,omitempty"` // Xtype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's x coordinates are given by *x* (the default behavior when `x` is provided). If *scaled*, the heatmap's x coordinates are given by *x0* and *dx* (the default behavior when `x` is not provided). @@ -248,6 +250,7 @@ type Heatmapgl struct { Ysrc string `json:"ysrc,omitempty"` // Ytype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's y coordinates are given by *y* (the default behavior when `y` is provided) If *scaled*, the heatmap's y coordinates are given by *y0* and *dy* (the default behavior when `y` is not provided) @@ -284,6 +287,7 @@ type Heatmapgl struct { Zmin float64 `json:"zmin,omitempty"` // Zsmooth + // arrayOK: false // default: fast // type: enumerated // Picks a smoothing algorithm use to smooth `z` data. @@ -348,6 +352,7 @@ type HeatmapglColorbarTitle struct { Font *HeatmapglColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -388,6 +393,7 @@ type HeatmapglColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -406,6 +412,7 @@ type HeatmapglColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -424,6 +431,7 @@ type HeatmapglColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -448,6 +456,7 @@ type HeatmapglColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -460,12 +469,14 @@ type HeatmapglColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix HeatmapglColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -478,6 +489,7 @@ type HeatmapglColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -518,12 +530,14 @@ type HeatmapglColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow HeatmapglColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -542,6 +556,7 @@ type HeatmapglColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -554,6 +569,7 @@ type HeatmapglColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -606,6 +622,7 @@ type HeatmapglColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -618,6 +635,7 @@ type HeatmapglColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -630,6 +648,7 @@ type HeatmapglColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -642,6 +661,7 @@ type HeatmapglColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -692,10 +712,11 @@ type HeatmapglHoverlabelFont struct { type HeatmapglHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align HeatmapglHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*HeatmapglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/histogram2d_gen.go b/generated/v2.29.1/graph_objects/histogram2d_gen.go index 94ac8aa..e8cfad6 100644 --- a/generated/v2.29.1/graph_objects/histogram2d_gen.go +++ b/generated/v2.29.1/graph_objects/histogram2d_gen.go @@ -68,12 +68,14 @@ type Histogram2d struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Histfunc + // arrayOK: false // default: count // type: enumerated // Specifies the binning function used for this histogram trace. If *count*, the histogram values are computed by counting the number of values lying inside each bin. If *sum*, *avg*, *min*, *max*, the histogram values are computed using the sum, the average, the minimum or the maximum of the values lying inside each bin respectively. Histfunc Histogram2dHistfunc `json:"histfunc,omitempty"` // Histnorm + // arrayOK: false // default: // type: enumerated // Specifies the type of normalization used for this histogram trace. If **, the span of each bar corresponds to the number of occurrences (i.e. the number of data points lying inside the bins). If *percent* / *probability*, the span of each bar corresponds to the percentage / fraction of occurrences with respect to the total number of sample points (here, the sum of all bin HEIGHTS equals 100% / 1). If *density*, the span of each bar corresponds to the number of occurrences in a bin divided by the size of the bin interval (here, the sum of all bin AREAS equals the total number of sample points). If *probability density*, the area of each bar corresponds to the probability that an event will fall into the corresponding bin (here, the sum of all bin AREAS equals 1). @@ -83,7 +85,7 @@ type Histogram2d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo Histogram2dHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*Histogram2dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -238,6 +240,7 @@ type Histogram2d struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -266,6 +269,7 @@ type Histogram2d struct { Xbins *Histogram2dXbins `json:"xbins,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -312,6 +316,7 @@ type Histogram2d struct { Ybins *Histogram2dYbins `json:"ybins,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -372,6 +377,7 @@ type Histogram2d struct { Zmin float64 `json:"zmin,omitempty"` // Zsmooth + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Picks a smoothing algorithm use to smooth `z` data. @@ -436,6 +442,7 @@ type Histogram2dColorbarTitle struct { Font *Histogram2dColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -476,6 +483,7 @@ type Histogram2dColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -494,6 +502,7 @@ type Histogram2dColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -512,6 +521,7 @@ type Histogram2dColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -536,6 +546,7 @@ type Histogram2dColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -548,12 +559,14 @@ type Histogram2dColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix Histogram2dColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -566,6 +579,7 @@ type Histogram2dColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -606,12 +620,14 @@ type Histogram2dColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow Histogram2dColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -630,6 +646,7 @@ type Histogram2dColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -642,6 +659,7 @@ type Histogram2dColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -694,6 +712,7 @@ type Histogram2dColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -706,6 +725,7 @@ type Histogram2dColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -718,6 +738,7 @@ type Histogram2dColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -730,6 +751,7 @@ type Histogram2dColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -780,10 +802,11 @@ type Histogram2dHoverlabelFont struct { type Histogram2dHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align Histogram2dHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*Histogram2dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/histogram2dcontour_gen.go b/generated/v2.29.1/graph_objects/histogram2dcontour_gen.go index 8c74f2d..9e9e6d6 100644 --- a/generated/v2.29.1/graph_objects/histogram2dcontour_gen.go +++ b/generated/v2.29.1/graph_objects/histogram2dcontour_gen.go @@ -78,12 +78,14 @@ type Histogram2dcontour struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Histfunc + // arrayOK: false // default: count // type: enumerated // Specifies the binning function used for this histogram trace. If *count*, the histogram values are computed by counting the number of values lying inside each bin. If *sum*, *avg*, *min*, *max*, the histogram values are computed using the sum, the average, the minimum or the maximum of the values lying inside each bin respectively. Histfunc Histogram2dcontourHistfunc `json:"histfunc,omitempty"` // Histnorm + // arrayOK: false // default: // type: enumerated // Specifies the type of normalization used for this histogram trace. If **, the span of each bar corresponds to the number of occurrences (i.e. the number of data points lying inside the bins). If *percent* / *probability*, the span of each bar corresponds to the percentage / fraction of occurrences with respect to the total number of sample points (here, the sum of all bin HEIGHTS equals 100% / 1). If *density*, the span of each bar corresponds to the number of occurrences in a bin divided by the size of the bin interval (here, the sum of all bin AREAS equals the total number of sample points). If *probability density*, the area of each bar corresponds to the probability that an event will fall into the corresponding bin (here, the sum of all bin AREAS equals 1). @@ -93,7 +95,7 @@ type Histogram2dcontour struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo Histogram2dcontourHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*Histogram2dcontourHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -258,6 +260,7 @@ type Histogram2dcontour struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -286,6 +289,7 @@ type Histogram2dcontour struct { Xbins *Histogram2dcontourXbins `json:"xbins,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -326,6 +330,7 @@ type Histogram2dcontour struct { Ybins *Histogram2dcontourYbins `json:"ybins,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -438,6 +443,7 @@ type Histogram2dcontourColorbarTitle struct { Font *Histogram2dcontourColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -478,6 +484,7 @@ type Histogram2dcontourColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -496,6 +503,7 @@ type Histogram2dcontourColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -514,6 +522,7 @@ type Histogram2dcontourColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -538,6 +547,7 @@ type Histogram2dcontourColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -550,12 +560,14 @@ type Histogram2dcontourColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix Histogram2dcontourColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -568,6 +580,7 @@ type Histogram2dcontourColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -608,12 +621,14 @@ type Histogram2dcontourColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow Histogram2dcontourColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -632,6 +647,7 @@ type Histogram2dcontourColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -644,6 +660,7 @@ type Histogram2dcontourColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -696,6 +713,7 @@ type Histogram2dcontourColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -708,6 +726,7 @@ type Histogram2dcontourColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -720,6 +739,7 @@ type Histogram2dcontourColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -732,6 +752,7 @@ type Histogram2dcontourColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -764,6 +785,7 @@ type Histogram2dcontourContoursLabelfont struct { type Histogram2dcontourContours struct { // Coloring + // arrayOK: false // default: fill // type: enumerated // Determines the coloring method showing the contour values. If *fill*, coloring is done evenly between each contour level If *heatmap*, a heatmap gradient coloring is applied between each contour level. If *lines*, coloring is done on the contour lines. If *none*, no coloring is applied on this trace. @@ -786,6 +808,7 @@ type Histogram2dcontourContours struct { Labelformat string `json:"labelformat,omitempty"` // Operation + // arrayOK: false // default: = // type: enumerated // Sets the constraint operation. *=* keeps regions equal to `value` *<* and *<=* keep regions less than `value` *>* and *>=* keep regions greater than `value` *[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]` *][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. @@ -816,6 +839,7 @@ type Histogram2dcontourContours struct { Start float64 `json:"start,omitempty"` // Type + // arrayOK: false // default: levels // type: enumerated // If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. @@ -872,10 +896,11 @@ type Histogram2dcontourHoverlabelFont struct { type Histogram2dcontourHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align Histogram2dcontourHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*Histogram2dcontourHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/histogram_gen.go b/generated/v2.29.1/graph_objects/histogram_gen.go index c2a149d..d08d56f 100644 --- a/generated/v2.29.1/graph_objects/histogram_gen.go +++ b/generated/v2.29.1/graph_objects/histogram_gen.go @@ -46,6 +46,7 @@ type Histogram struct { Cliponaxis Bool `json:"cliponaxis,omitempty"` // Constraintext + // arrayOK: false // default: both // type: enumerated // Constrain the size of text inside or outside a bar to be no larger than the bar itself. @@ -76,12 +77,14 @@ type Histogram struct { ErrorY *HistogramErrorY `json:"error_y,omitempty"` // Histfunc + // arrayOK: false // default: count // type: enumerated // Specifies the binning function used for this histogram trace. If *count*, the histogram values are computed by counting the number of values lying inside each bin. If *sum*, *avg*, *min*, *max*, the histogram values are computed using the sum, the average, the minimum or the maximum of the values lying inside each bin respectively. Histfunc HistogramHistfunc `json:"histfunc,omitempty"` // Histnorm + // arrayOK: false // default: // type: enumerated // Specifies the type of normalization used for this histogram trace. If **, the span of each bar corresponds to the number of occurrences (i.e. the number of data points lying inside the bins). If *percent* / *probability*, the span of each bar corresponds to the percentage / fraction of occurrences with respect to the total number of sample points (here, the sum of all bin HEIGHTS equals 100% / 1). If *density*, the span of each bar corresponds to the number of occurrences in a bin divided by the size of the bin interval (here, the sum of all bin AREAS equals the total number of sample points). If *probability density*, the area of each bar corresponds to the probability that an event will fall into the corresponding bin (here, the sum of all bin AREAS equals 1). @@ -91,7 +94,7 @@ type Histogram struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo HistogramHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*HistogramHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -140,6 +143,7 @@ type Histogram struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextanchor + // arrayOK: false // default: end // type: enumerated // Determines if texts are kept at center or start/end points in `textposition` *inside* mode. @@ -224,6 +228,7 @@ type Histogram struct { Opacity float64 `json:"opacity,omitempty"` // Orientation + // arrayOK: false // default: %!s() // type: enumerated // Sets the orientation of the bars. With *v* (*h*), the value of the each bar spans along the vertical (horizontal). @@ -270,6 +275,7 @@ type Histogram struct { Textfont *HistogramTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: false // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. @@ -310,6 +316,7 @@ type Histogram struct { Unselected *HistogramUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -332,6 +339,7 @@ type Histogram struct { Xbins *HistogramXbins `json:"xbins,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -366,6 +374,7 @@ type Histogram struct { Ybins *HistogramYbins `json:"ybins,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -388,12 +397,14 @@ type Histogram struct { type HistogramCumulative struct { // Currentbin + // arrayOK: false // default: include // type: enumerated // Only applies if cumulative is enabled. Sets whether the current bin is included, excluded, or has half of its value included in the current cumulative value. *include* is the default for compatibility with various other tools, however it introduces a half-bin bias to the results. *exclude* makes the opposite half-bin bias, and *half* removes it. Currentbin HistogramCumulativeCurrentbin `json:"currentbin,omitempty"` // Direction + // arrayOK: false // default: increasing // type: enumerated // Only applies if cumulative is enabled. If *increasing* (default) we sum all prior bins, so the result increases from left to right. If *decreasing* we sum later bins so the result decreases from left to right. @@ -470,6 +481,7 @@ type HistogramErrorX struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -558,6 +570,7 @@ type HistogramErrorY struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -632,10 +645,11 @@ type HistogramHoverlabelFont struct { type HistogramHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align HistogramHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*HistogramHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -794,6 +808,7 @@ type HistogramMarkerColorbarTitle struct { Font *HistogramMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -834,6 +849,7 @@ type HistogramMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -852,6 +868,7 @@ type HistogramMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -870,6 +887,7 @@ type HistogramMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -894,6 +912,7 @@ type HistogramMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -906,12 +925,14 @@ type HistogramMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix HistogramMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -924,6 +945,7 @@ type HistogramMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -964,12 +986,14 @@ type HistogramMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow HistogramMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -988,6 +1012,7 @@ type HistogramMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -1000,6 +1025,7 @@ type HistogramMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -1052,6 +1078,7 @@ type HistogramMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -1064,6 +1091,7 @@ type HistogramMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -1076,6 +1104,7 @@ type HistogramMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -1088,6 +1117,7 @@ type HistogramMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -1204,16 +1234,18 @@ type HistogramMarkerPattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode HistogramMarkerPatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape HistogramMarkerPatternShape `json:"shape,omitempty"` + Shape ArrayOK[*HistogramMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/icicle_gen.go b/generated/v2.29.1/graph_objects/icicle_gen.go index 9ffff73..c57205c 100644 --- a/generated/v2.29.1/graph_objects/icicle_gen.go +++ b/generated/v2.29.1/graph_objects/icicle_gen.go @@ -16,6 +16,7 @@ type Icicle struct { Type TraceType `json:"type,omitempty"` // Branchvalues + // arrayOK: false // default: remainder // type: enumerated // Determines how the items in `values` are summed. When set to *total*, items in `values` are taken to be value of all its descendants. When set to *remainder*, items in `values` corresponding to the root and the branches sectors are taken to be the extra part not part of the sum of the values at their leaves. @@ -47,7 +48,7 @@ type Icicle struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo IcicleHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*IcicleHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -228,6 +229,7 @@ type Icicle struct { Textinfo IcicleTextinfo `json:"textinfo,omitempty"` // Textposition + // arrayOK: false // default: top left // type: enumerated // Sets the positions of the `text` elements. @@ -286,6 +288,7 @@ type Icicle struct { Valuessrc string `json:"valuessrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -364,10 +367,11 @@ type IcicleHoverlabelFont struct { type IcicleHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align IcicleHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*IcicleHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -554,6 +558,7 @@ type IcicleMarkerColorbarTitle struct { Font *IcicleMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -594,6 +599,7 @@ type IcicleMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -612,6 +618,7 @@ type IcicleMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -630,6 +637,7 @@ type IcicleMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -654,6 +662,7 @@ type IcicleMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -666,12 +675,14 @@ type IcicleMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix IcicleMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -684,6 +695,7 @@ type IcicleMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -724,12 +736,14 @@ type IcicleMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow IcicleMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -748,6 +762,7 @@ type IcicleMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -760,6 +775,7 @@ type IcicleMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -812,6 +828,7 @@ type IcicleMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -824,6 +841,7 @@ type IcicleMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -836,6 +854,7 @@ type IcicleMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -848,6 +867,7 @@ type IcicleMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -916,16 +936,18 @@ type IcicleMarkerPattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode IcicleMarkerPatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape IcicleMarkerPatternShape `json:"shape,omitempty"` + Shape ArrayOK[*IcicleMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -1124,12 +1146,14 @@ type IciclePathbarTextfont struct { type IciclePathbar struct { // Edgeshape + // arrayOK: false // default: > // type: enumerated // Determines which shape is used for edges between `barpath` labels. Edgeshape IciclePathbarEdgeshape `json:"edgeshape,omitempty"` // Side + // arrayOK: false // default: top // type: enumerated // Determines on which side of the the treemap the `pathbar` should be presented. @@ -1228,6 +1252,7 @@ type IcicleTiling struct { Flip IcicleTilingFlip `json:"flip,omitempty"` // Orientation + // arrayOK: false // default: h // type: enumerated // When set in conjunction with `tiling.flip`, determines on which side the root nodes are drawn in the chart. If `tiling.orientation` is *v* and `tiling.flip` is **, the root nodes appear at the top. If `tiling.orientation` is *v* and `tiling.flip` is *y*, the root nodes appear at the bottom. If `tiling.orientation` is *h* and `tiling.flip` is **, the root nodes appear at the left. If `tiling.orientation` is *h* and `tiling.flip` is *x*, the root nodes appear at the right. diff --git a/generated/v2.29.1/graph_objects/image_gen.go b/generated/v2.29.1/graph_objects/image_gen.go index 241ac4d..9e2a5ab 100644 --- a/generated/v2.29.1/graph_objects/image_gen.go +++ b/generated/v2.29.1/graph_objects/image_gen.go @@ -16,6 +16,7 @@ type Image struct { Type TraceType `json:"type,omitempty"` // Colormodel + // arrayOK: false // default: %!s() // type: enumerated // Color model used to map the numerical color components described in `z` into colors. If `source` is specified, this attribute will be set to `rgba256` otherwise it defaults to `rgb`. @@ -49,7 +50,7 @@ type Image struct { // default: x+y+z+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ImageHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ImageHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -178,6 +179,7 @@ type Image struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -226,6 +228,7 @@ type Image struct { Zmin interface{} `json:"zmin,omitempty"` // Zsmooth + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Picks a smoothing algorithm used to smooth `z` data. This only applies for image traces that use the `source` attribute. @@ -282,10 +285,11 @@ type ImageHoverlabelFont struct { type ImageHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ImageHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ImageHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/indicator_gen.go b/generated/v2.29.1/graph_objects/indicator_gen.go index f32859e..bfe6873 100644 --- a/generated/v2.29.1/graph_objects/indicator_gen.go +++ b/generated/v2.29.1/graph_objects/indicator_gen.go @@ -16,6 +16,7 @@ type Indicator struct { Type TraceType `json:"type,omitempty"` // Align + // arrayOK: false // default: %!s() // type: enumerated // Sets the horizontal alignment of the `text` within the box. Note that this attribute has no effect if an angular gauge is displayed: in this case, it is always centered @@ -140,6 +141,7 @@ type Indicator struct { Value float64 `json:"value,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -216,6 +218,7 @@ type IndicatorDelta struct { Increasing *IndicatorDeltaIncreasing `json:"increasing,omitempty"` // Position + // arrayOK: false // default: bottom // type: enumerated // Sets the position of delta with respect to the number. @@ -312,6 +315,7 @@ type IndicatorGaugeAxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -348,6 +352,7 @@ type IndicatorGaugeAxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -360,12 +365,14 @@ type IndicatorGaugeAxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix IndicatorGaugeAxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -418,6 +425,7 @@ type IndicatorGaugeAxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -430,6 +438,7 @@ type IndicatorGaugeAxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: outside // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -580,6 +589,7 @@ type IndicatorGauge struct { Borderwidth float64 `json:"borderwidth,omitempty"` // Shape + // arrayOK: false // default: angular // type: enumerated // Set the shape of the gauge @@ -722,6 +732,7 @@ type IndicatorTitleFont struct { type IndicatorTitle struct { // Align + // arrayOK: false // default: %!s() // type: enumerated // Sets the horizontal alignment of the title. It defaults to `center` except for bullet charts for which it defaults to right. diff --git a/generated/v2.29.1/graph_objects/isosurface_gen.go b/generated/v2.29.1/graph_objects/isosurface_gen.go index 0fe5b65..502dcba 100644 --- a/generated/v2.29.1/graph_objects/isosurface_gen.go +++ b/generated/v2.29.1/graph_objects/isosurface_gen.go @@ -91,7 +91,7 @@ type Isosurface struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo IsosurfaceHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*IsosurfaceHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -294,6 +294,7 @@ type Isosurface struct { Valuesrc string `json:"valuesrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -470,6 +471,7 @@ type IsosurfaceColorbarTitle struct { Font *IsosurfaceColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -510,6 +512,7 @@ type IsosurfaceColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -528,6 +531,7 @@ type IsosurfaceColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -546,6 +550,7 @@ type IsosurfaceColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -570,6 +575,7 @@ type IsosurfaceColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -582,12 +588,14 @@ type IsosurfaceColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix IsosurfaceColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -600,6 +608,7 @@ type IsosurfaceColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -640,12 +649,14 @@ type IsosurfaceColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow IsosurfaceColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -664,6 +675,7 @@ type IsosurfaceColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -676,6 +688,7 @@ type IsosurfaceColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -728,6 +741,7 @@ type IsosurfaceColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -740,6 +754,7 @@ type IsosurfaceColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -752,6 +767,7 @@ type IsosurfaceColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -764,6 +780,7 @@ type IsosurfaceColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -836,10 +853,11 @@ type IsosurfaceHoverlabelFont struct { type IsosurfaceHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align IsosurfaceHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*IsosurfaceHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/layout_gen.go b/generated/v2.29.1/graph_objects/layout_gen.go index aaec9dc..a170599 100644 --- a/generated/v2.29.1/graph_objects/layout_gen.go +++ b/generated/v2.29.1/graph_objects/layout_gen.go @@ -24,6 +24,7 @@ type Layout struct { Autosize Bool `json:"autosize,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. This is the default value; however it could be overridden for individual axes. @@ -48,12 +49,14 @@ type Layout struct { Bargroupgap float64 `json:"bargroupgap,omitempty"` // Barmode + // arrayOK: false // default: group // type: enumerated // Determines how bars at the same location coordinate are displayed on the graph. With *stack*, the bars are stacked on top of one another With *relative*, the bars are stacked on top of one another, with negative values below the axis, positive values above With *group*, the bars are plotted next to one another centered around the shared location. With *overlay*, the bars are plotted over one another, you might need to reduce *opacity* to see multiple bars. Barmode LayoutBarmode `json:"barmode,omitempty"` // Barnorm + // arrayOK: false // default: // type: enumerated // Sets the normalization for bar traces on the graph. With *fraction*, the value of each bar is divided by the sum of all values at that location coordinate. *percent* is the same but multiplied by 100 to show percentages. @@ -72,12 +75,14 @@ type Layout struct { Boxgroupgap float64 `json:"boxgroupgap,omitempty"` // Boxmode + // arrayOK: false // default: overlay // type: enumerated // Determines how boxes at the same location coordinate are displayed on the graph. If *group*, the boxes are plotted next to one another centered around the shared location. If *overlay*, the boxes are plotted over one another, you might need to set *opacity* to see them multiple boxes. Has no effect on traces that have *width* set. Boxmode LayoutBoxmode `json:"boxmode,omitempty"` // Calendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the default calendar system to use for interpreting and displaying dates throughout the plot. @@ -116,6 +121,7 @@ type Layout struct { Datarevision interface{} `json:"datarevision,omitempty"` // Dragmode + // arrayOK: false // default: zoom // type: enumerated // Determines the mode of drag interactions. *select* and *lasso* apply only to scatter traces with markers or text. *orbit* and *turntable* apply only to 3D scenes. @@ -180,6 +186,7 @@ type Layout struct { Funnelgroupgap float64 `json:"funnelgroupgap,omitempty"` // Funnelmode + // arrayOK: false // default: stack // type: enumerated // Determines how bars at the same location coordinate are displayed on the graph. With *stack*, the bars are stacked on top of one another With *group*, the bars are plotted next to one another centered around the shared location. With *overlay*, the bars are plotted over one another, you might need to reduce *opacity* to see multiple bars. @@ -228,6 +235,7 @@ type Layout struct { Hoverlabel *LayoutHoverlabel `json:"hoverlabel,omitempty"` // Hovermode + // arrayOK: false // default: closest // type: enumerated // Determines the mode of hover interactions. If *closest*, a single hoverlabel will appear for the *closest* point within the `hoverdistance`. If *x* (or *y*), multiple hoverlabels will appear for multiple points at the *closest* x- (or y-) coordinate within the `hoverdistance`, with the caveat that no more than one hoverlabel will appear per trace. If *x unified* (or *y unified*), a single hoverlabel will appear multiple points at the closest x- (or y-) coordinate within the `hoverdistance` with the caveat that no more than one hoverlabel will appear per trace. In this mode, spikelines are enabled by default perpendicular to the specified axis. If false, hover interactions are disabled. @@ -322,6 +330,7 @@ type Layout struct { Scattergap float64 `json:"scattergap,omitempty"` // Scattermode + // arrayOK: false // default: overlay // type: enumerated // Determines how scatter points at the same location coordinate are displayed on the graph. With *group*, the scatter points are plotted next to one another centered around the shared location. With *overlay*, the scatter points are plotted over one another, you might need to reduce *opacity* to see multiple scatter points. @@ -332,6 +341,7 @@ type Layout struct { Scene *LayoutScene `json:"scene,omitempty"` // Selectdirection + // arrayOK: false // default: any // type: enumerated // When `dragmode` is set to *select*, this limits the selection of the drag to horizontal, vertical or diagonal. *h* only allows horizontal selection, *v* only vertical, *d* only diagonal and *any* sets no limit. @@ -442,6 +452,7 @@ type Layout struct { Violingroupgap float64 `json:"violingroupgap,omitempty"` // Violinmode + // arrayOK: false // default: overlay // type: enumerated // Determines how violins at the same location coordinate are displayed on the graph. If *group*, the violins are plotted next to one another centered around the shared location. If *overlay*, the violins are plotted over one another, you might need to set *opacity* to see them multiple violins. Has no effect on traces that have *width* set. @@ -460,6 +471,7 @@ type Layout struct { Waterfallgroupgap float64 `json:"waterfallgroupgap,omitempty"` // Waterfallmode + // arrayOK: false // default: group // type: enumerated // Determines how bars at the same location coordinate are displayed on the graph. With *group*, the bars are plotted next to one another centered around the shared location. With *overlay*, the bars are plotted over one another, you might need to reduce *opacity* to see multiple bars. @@ -604,6 +616,7 @@ type LayoutColoraxisColorbarTitle struct { Font *LayoutColoraxisColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -644,6 +657,7 @@ type LayoutColoraxisColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -662,6 +676,7 @@ type LayoutColoraxisColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -680,6 +695,7 @@ type LayoutColoraxisColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -704,6 +720,7 @@ type LayoutColoraxisColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -716,12 +733,14 @@ type LayoutColoraxisColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutColoraxisColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -734,6 +753,7 @@ type LayoutColoraxisColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -774,12 +794,14 @@ type LayoutColoraxisColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow LayoutColoraxisColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -798,6 +820,7 @@ type LayoutColoraxisColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -810,6 +833,7 @@ type LayoutColoraxisColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -862,6 +886,7 @@ type LayoutColoraxisColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -874,6 +899,7 @@ type LayoutColoraxisColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -886,6 +912,7 @@ type LayoutColoraxisColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -898,6 +925,7 @@ type LayoutColoraxisColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -1194,6 +1222,7 @@ type LayoutGeoProjection struct { Tilt float64 `json:"tilt,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Sets the projection type. @@ -1242,6 +1271,7 @@ type LayoutGeo struct { Domain *LayoutGeoDomain `json:"domain,omitempty"` // Fitbounds + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Determines if this subplot's view settings are auto-computed to fit trace data. On scoped maps, setting `fitbounds` leads to `center.lon` and `center.lat` getting auto-filled. On maps with a non-clipped projection, setting `fitbounds` leads to `center.lon`, `center.lat`, and `projection.rotation.lon` getting auto-filled. On maps with a clipped projection, setting `fitbounds` leads to `center.lon`, `center.lat`, `projection.rotation.lon`, `projection.rotation.lat`, `lonaxis.range` and `lonaxis.range` getting auto-filled. If *locations*, only the trace's visible locations are considered in the `fitbounds` computations. If *geojson*, the entire trace input `geojson` (if provided) is considered in the `fitbounds` computations, Defaults to *false*. @@ -1290,6 +1320,7 @@ type LayoutGeo struct { Projection *LayoutGeoProjection `json:"projection,omitempty"` // Resolution + // arrayOK: false // default: %!s(float64=110) // type: enumerated // Sets the resolution of the base layers. The values have units of km/mm e.g. 110 corresponds to a scale ratio of 1:110,000,000. @@ -1308,6 +1339,7 @@ type LayoutGeo struct { Riverwidth float64 `json:"riverwidth,omitempty"` // Scope + // arrayOK: false // default: world // type: enumerated // Set the scope of the map. @@ -1416,12 +1448,14 @@ type LayoutGrid struct { Domain *LayoutGridDomain `json:"domain,omitempty"` // Pattern + // arrayOK: false // default: coupled // type: enumerated // If no `subplots`, `xaxes`, or `yaxes` are given but we do have `rows` and `columns`, we can generate defaults using consecutive axis IDs, in two ways: *coupled* gives one x axis per column and one y axis per row. *independent* uses a new xy pair for each cell, left-to-right across each row then iterating rows according to `roworder`. Pattern LayoutGridPattern `json:"pattern,omitempty"` // Roworder + // arrayOK: false // default: top to bottom // type: enumerated // Is the first row the top or the bottom? Note that columns are always enumerated from left to right. @@ -1452,6 +1486,7 @@ type LayoutGrid struct { Xgap float64 `json:"xgap,omitempty"` // Xside + // arrayOK: false // default: bottom plot // type: enumerated // Sets where the x axis labels and titles go. *bottom* means the very bottom of the grid. *bottom plot* is the lowest plot that each x axis is used in. *top* and *top plot* are similar. @@ -1470,6 +1505,7 @@ type LayoutGrid struct { Ygap float64 `json:"ygap,omitempty"` // Yside + // arrayOK: false // default: left plot // type: enumerated // Sets where the y axis labels and titles go. *left* means the very left edge of the grid. *left plot* is the leftmost plot that each y axis is used in. *right* and *right plot* are similar. @@ -1524,6 +1560,7 @@ type LayoutHoverlabelGrouptitlefont struct { type LayoutHoverlabel struct { // Align + // arrayOK: false // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines @@ -1630,6 +1667,7 @@ type LayoutLegendTitle struct { Font *LayoutLegendTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of legend's title with respect to the legend items. Defaulted to *top* with `orientation` is *h*. Defaulted to *left* with `orientation` is *v*. The *top left* options could be used to expand top center and top right are for horizontal alignment legend area in both x and y sides. @@ -1670,6 +1708,7 @@ type LayoutLegend struct { Entrywidth float64 `json:"entrywidth,omitempty"` // Entrywidthmode + // arrayOK: false // default: pixels // type: enumerated // Determines what entrywidth means. @@ -1680,6 +1719,7 @@ type LayoutLegend struct { Font *LayoutLegendFont `json:"font,omitempty"` // Groupclick + // arrayOK: false // default: togglegroup // type: enumerated // Determines the behavior on legend group item click. *toggleitem* toggles the visibility of the individual item clicked on the graph. *togglegroup* toggles the visibility of all items in the same legendgroup as the item clicked on the graph. @@ -1690,18 +1730,21 @@ type LayoutLegend struct { Grouptitlefont *LayoutLegendGrouptitlefont `json:"grouptitlefont,omitempty"` // Itemclick + // arrayOK: false // default: toggle // type: enumerated // Determines the behavior on legend item click. *toggle* toggles the visibility of the item clicked on the graph. *toggleothers* makes the clicked item the sole visible item on the graph. *false* disables legend item click interactions. Itemclick LayoutLegendItemclick `json:"itemclick,omitempty"` // Itemdoubleclick + // arrayOK: false // default: toggleothers // type: enumerated // Determines the behavior on legend item double-click. *toggle* toggles the visibility of the item clicked on the graph. *toggleothers* makes the clicked item the sole visible item on the graph. *false* disables legend item double-click interactions. Itemdoubleclick LayoutLegendItemdoubleclick `json:"itemdoubleclick,omitempty"` // Itemsizing + // arrayOK: false // default: trace // type: enumerated // Determines if the legend items symbols scale with their corresponding *trace* attributes or remain *constant* independent of the symbol size on the graph. @@ -1714,6 +1757,7 @@ type LayoutLegend struct { Itemwidth float64 `json:"itemwidth,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the legend. @@ -1742,6 +1786,7 @@ type LayoutLegend struct { Uirevision interface{} `json:"uirevision,omitempty"` // Valign + // arrayOK: false // default: middle // type: enumerated // Sets the vertical alignment of the symbols with respect to their associated text. @@ -1760,12 +1805,14 @@ type LayoutLegend struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: left // type: enumerated // Sets the legend's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the legend. Value *auto* anchors legends to the right for `x` values greater than or equal to 2/3, anchors legends to the left for `x` values less than or equal to 1/3 and anchors legends with respect to their center otherwise. Xanchor LayoutLegendXanchor `json:"xanchor,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -1778,12 +1825,14 @@ type LayoutLegend struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets the legend's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the legend. Value *auto* anchors legends at their bottom for `y` values less than or equal to 1/3, anchors legends to at their top for `y` values greater than or equal to 2/3 and anchors legends with respect to their middle otherwise. Yanchor LayoutLegendYanchor `json:"yanchor,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -1994,6 +2043,7 @@ type LayoutModebar struct { Color Color `json:"color,omitempty"` // Orientation + // arrayOK: false // default: h // type: enumerated // Sets the orientation of the modebar. @@ -2048,6 +2098,7 @@ type LayoutNewselection struct { Line *LayoutNewselectionLine `json:"line,omitempty"` // Mode + // arrayOK: false // default: immediate // type: enumerated // Describes how a new selection is created. If `immediate`, a new selection is created after first mouse up. If `gradual`, a new selection is not created after first mouse. By adding to and subtracting from the initial selection, this option allows declaring extra outlines of the selection. @@ -2102,6 +2153,7 @@ type LayoutNewshapeLabel struct { Textangle float64 `json:"textangle,omitempty"` // Textposition + // arrayOK: false // default: %!s() // type: enumerated // Sets the position of the label text relative to the new shape. Supported values for rectangles, circles and paths are *top left*, *top center*, *top right*, *middle left*, *middle center*, *middle right*, *bottom left*, *bottom center*, and *bottom right*. Supported values for lines are *start*, *middle*, and *end*. Default: *middle center* for rectangles, circles, and paths; *middle* for lines. @@ -2114,12 +2166,14 @@ type LayoutNewshapeLabel struct { Texttemplate string `json:"texttemplate,omitempty"` // Xanchor + // arrayOK: false // default: auto // type: enumerated // Sets the label's horizontal position anchor This anchor binds the specified `textposition` to the *left*, *center* or *right* of the label text. For example, if `textposition` is set to *top right* and `xanchor` to *right* then the right-most portion of the label text lines up with the right-most edge of the new shape. Xanchor LayoutNewshapeLabelXanchor `json:"xanchor,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets the label's vertical position anchor This anchor binds the specified `textposition` to the *top*, *middle* or *bottom* of the label text. For example, if `textposition` is set to *top right* and `yanchor` to *top* then the top-most portion of the label text lines up with the top-most edge of the new shape. @@ -2188,6 +2242,7 @@ type LayoutNewshapeLine struct { type LayoutNewshape struct { // Drawdirection + // arrayOK: false // default: diagonal // type: enumerated // When `dragmode` is set to *drawrect*, *drawline* or *drawcircle* this limits the drag to be horizontal, vertical or diagonal. Using *diagonal* there is no limit e.g. in drawing lines in any direction. *ortho* limits the draw to be either horizontal or vertical. *horizontal* allows horizontal extend. *vertical* allows vertical extend. @@ -2200,6 +2255,7 @@ type LayoutNewshape struct { Fillcolor Color `json:"fillcolor,omitempty"` // Fillrule + // arrayOK: false // default: evenodd // type: enumerated // Determines the path's interior. For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule @@ -2210,6 +2266,7 @@ type LayoutNewshape struct { Label *LayoutNewshapeLabel `json:"label,omitempty"` // Layer + // arrayOK: false // default: above // type: enumerated // Specifies whether new shapes are drawn below or above traces. @@ -2266,6 +2323,7 @@ type LayoutNewshape struct { Showlegend Bool `json:"showlegend,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not new shape is visible. If *legendonly*, the shape is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -2298,6 +2356,7 @@ type LayoutPolarAngularaxisTickfont struct { type LayoutPolarAngularaxis struct { // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. @@ -2316,6 +2375,7 @@ type LayoutPolarAngularaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -2328,6 +2388,7 @@ type LayoutPolarAngularaxis struct { Color Color `json:"color,omitempty"` // Direction + // arrayOK: false // default: counterclockwise // type: enumerated // Sets the direction corresponding to positive angles. @@ -2340,6 +2401,7 @@ type LayoutPolarAngularaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -2376,6 +2438,7 @@ type LayoutPolarAngularaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -2424,6 +2487,7 @@ type LayoutPolarAngularaxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -2448,18 +2512,21 @@ type LayoutPolarAngularaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutPolarAngularaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. Showticksuffix LayoutPolarAngularaxisShowticksuffix `json:"showticksuffix,omitempty"` // Thetaunit + // arrayOK: false // default: degrees // type: enumerated // Sets the format unit of the formatted *theta* values. Has an effect only when `angularaxis.type` is *linear*. @@ -2512,6 +2579,7 @@ type LayoutPolarAngularaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -2524,6 +2592,7 @@ type LayoutPolarAngularaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -2566,6 +2635,7 @@ type LayoutPolarAngularaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the angular axis type. If *linear*, set `thetaunit` to determine the unit in which axis value are shown. If *category, use `period` to set the number of integer coordinates around polar axis. @@ -2720,6 +2790,7 @@ type LayoutPolarRadialaxis struct { Angle float64 `json:"angle,omitempty"` // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided and it has a value for both the lower and upper bound, `autorange` is set to *false*. Using *min* applies autorange only to set the minimum. Using *max* applies autorange only to set the maximum. Using *min reversed* applies autorange only to set the minimum on a reversed axis. Using *max reversed* applies autorange only to set the maximum on a reversed axis. Using *reversed* applies autorange on both ends and reverses the axis direction. @@ -2736,12 +2807,14 @@ type LayoutPolarRadialaxis struct { Autotickangles interface{} `json:"autotickangles,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. Autotypenumbers LayoutPolarRadialaxisAutotypenumbers `json:"autotypenumbers,omitempty"` // Calendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar` @@ -2760,6 +2833,7 @@ type LayoutPolarRadialaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -2778,6 +2852,7 @@ type LayoutPolarRadialaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -2814,6 +2889,7 @@ type LayoutPolarRadialaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -2862,6 +2938,7 @@ type LayoutPolarRadialaxis struct { Range interface{} `json:"range,omitempty"` // Rangemode + // arrayOK: false // default: tozero // type: enumerated // If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. If *normal*, the range is computed in relation to the extrema of the input data (same behavior as for cartesian axes). @@ -2874,6 +2951,7 @@ type LayoutPolarRadialaxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -2898,18 +2976,21 @@ type LayoutPolarRadialaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutPolarRadialaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. Showticksuffix LayoutPolarRadialaxisShowticksuffix `json:"showticksuffix,omitempty"` // Side + // arrayOK: false // default: clockwise // type: enumerated // Determines on which side of radial axis line the tick and tick labels appear. @@ -2962,6 +3043,7 @@ type LayoutPolarRadialaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -2974,6 +3056,7 @@ type LayoutPolarRadialaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -3020,6 +3103,7 @@ type LayoutPolarRadialaxis struct { Title *LayoutPolarRadialaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. @@ -3056,6 +3140,7 @@ type LayoutPolar struct { Domain *LayoutPolarDomain `json:"domain,omitempty"` // Gridshape + // arrayOK: false // default: circular // type: enumerated // Determines if the radial axis grid lines and angular axis line are drawn as *circular* sectors or as *linear* (polygon) sectors. Has an effect only when the angular axis has `type` *category*. Note that `radialaxis.angle` is snapped to the angle of the closest vertex when `gridshape` is *circular* (so that radial axis scale is the same as the data scale). @@ -3154,6 +3239,7 @@ type LayoutSceneCameraEye struct { type LayoutSceneCameraProjection struct { // Type + // arrayOK: false // default: perspective // type: enumerated // Sets the projection type. The projection type could be either *perspective* or *orthographic*. The default is *perspective*. @@ -3332,6 +3418,7 @@ type LayoutSceneXaxisTitle struct { type LayoutSceneXaxis struct { // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided and it has a value for both the lower and upper bound, `autorange` is set to *false*. Using *min* applies autorange only to set the minimum. Using *max* applies autorange only to set the maximum. Using *min reversed* applies autorange only to set the minimum on a reversed axis. Using *max reversed* applies autorange only to set the maximum on a reversed axis. Using *reversed* applies autorange on both ends and reverses the axis direction. @@ -3342,6 +3429,7 @@ type LayoutSceneXaxis struct { Autorangeoptions *LayoutSceneXaxisAutorangeoptions `json:"autorangeoptions,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. @@ -3354,6 +3442,7 @@ type LayoutSceneXaxis struct { Backgroundcolor Color `json:"backgroundcolor,omitempty"` // Calendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar` @@ -3372,6 +3461,7 @@ type LayoutSceneXaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -3390,6 +3480,7 @@ type LayoutSceneXaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -3450,6 +3541,7 @@ type LayoutSceneXaxis struct { Minexponent float64 `json:"minexponent,omitempty"` // Mirror + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area. If *true*, the axis lines are mirrored. If *ticks*, the axis lines and ticks are mirrored. If *false*, mirroring is disable. If *all*, axis lines are mirrored on all shared-axes subplots. If *allticks*, axis lines and ticks are mirrored on all shared-axes subplots. @@ -3468,6 +3560,7 @@ type LayoutSceneXaxis struct { Range interface{} `json:"range,omitempty"` // Rangemode + // arrayOK: false // default: normal // type: enumerated // If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. Applies only to linear axes. @@ -3492,6 +3585,7 @@ type LayoutSceneXaxis struct { Showbackground Bool `json:"showbackground,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -3522,12 +3616,14 @@ type LayoutSceneXaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutSceneXaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -3592,6 +3688,7 @@ type LayoutSceneXaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -3604,6 +3701,7 @@ type LayoutSceneXaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -3650,6 +3748,7 @@ type LayoutSceneXaxis struct { Title *LayoutSceneXaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. @@ -3782,6 +3881,7 @@ type LayoutSceneYaxisTitle struct { type LayoutSceneYaxis struct { // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided and it has a value for both the lower and upper bound, `autorange` is set to *false*. Using *min* applies autorange only to set the minimum. Using *max* applies autorange only to set the maximum. Using *min reversed* applies autorange only to set the minimum on a reversed axis. Using *max reversed* applies autorange only to set the maximum on a reversed axis. Using *reversed* applies autorange on both ends and reverses the axis direction. @@ -3792,6 +3892,7 @@ type LayoutSceneYaxis struct { Autorangeoptions *LayoutSceneYaxisAutorangeoptions `json:"autorangeoptions,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. @@ -3804,6 +3905,7 @@ type LayoutSceneYaxis struct { Backgroundcolor Color `json:"backgroundcolor,omitempty"` // Calendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar` @@ -3822,6 +3924,7 @@ type LayoutSceneYaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -3840,6 +3943,7 @@ type LayoutSceneYaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -3900,6 +4004,7 @@ type LayoutSceneYaxis struct { Minexponent float64 `json:"minexponent,omitempty"` // Mirror + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area. If *true*, the axis lines are mirrored. If *ticks*, the axis lines and ticks are mirrored. If *false*, mirroring is disable. If *all*, axis lines are mirrored on all shared-axes subplots. If *allticks*, axis lines and ticks are mirrored on all shared-axes subplots. @@ -3918,6 +4023,7 @@ type LayoutSceneYaxis struct { Range interface{} `json:"range,omitempty"` // Rangemode + // arrayOK: false // default: normal // type: enumerated // If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. Applies only to linear axes. @@ -3942,6 +4048,7 @@ type LayoutSceneYaxis struct { Showbackground Bool `json:"showbackground,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -3972,12 +4079,14 @@ type LayoutSceneYaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutSceneYaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -4042,6 +4151,7 @@ type LayoutSceneYaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -4054,6 +4164,7 @@ type LayoutSceneYaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -4100,6 +4211,7 @@ type LayoutSceneYaxis struct { Title *LayoutSceneYaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. @@ -4232,6 +4344,7 @@ type LayoutSceneZaxisTitle struct { type LayoutSceneZaxis struct { // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided and it has a value for both the lower and upper bound, `autorange` is set to *false*. Using *min* applies autorange only to set the minimum. Using *max* applies autorange only to set the maximum. Using *min reversed* applies autorange only to set the minimum on a reversed axis. Using *max reversed* applies autorange only to set the maximum on a reversed axis. Using *reversed* applies autorange on both ends and reverses the axis direction. @@ -4242,6 +4355,7 @@ type LayoutSceneZaxis struct { Autorangeoptions *LayoutSceneZaxisAutorangeoptions `json:"autorangeoptions,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. @@ -4254,6 +4368,7 @@ type LayoutSceneZaxis struct { Backgroundcolor Color `json:"backgroundcolor,omitempty"` // Calendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar` @@ -4272,6 +4387,7 @@ type LayoutSceneZaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -4290,6 +4406,7 @@ type LayoutSceneZaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -4350,6 +4467,7 @@ type LayoutSceneZaxis struct { Minexponent float64 `json:"minexponent,omitempty"` // Mirror + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area. If *true*, the axis lines are mirrored. If *ticks*, the axis lines and ticks are mirrored. If *false*, mirroring is disable. If *all*, axis lines are mirrored on all shared-axes subplots. If *allticks*, axis lines and ticks are mirrored on all shared-axes subplots. @@ -4368,6 +4486,7 @@ type LayoutSceneZaxis struct { Range interface{} `json:"range,omitempty"` // Rangemode + // arrayOK: false // default: normal // type: enumerated // If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. Applies only to linear axes. @@ -4392,6 +4511,7 @@ type LayoutSceneZaxis struct { Showbackground Bool `json:"showbackground,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -4422,12 +4542,14 @@ type LayoutSceneZaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutSceneZaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -4492,6 +4614,7 @@ type LayoutSceneZaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -4504,6 +4627,7 @@ type LayoutSceneZaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -4550,6 +4674,7 @@ type LayoutSceneZaxis struct { Title *LayoutSceneZaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. @@ -4590,6 +4715,7 @@ type LayoutScene struct { Annotations interface{} `json:"annotations,omitempty"` // Aspectmode + // arrayOK: false // default: auto // type: enumerated // If *cube*, this scene's axes are drawn as a cube, regardless of the axes' ranges. If *data*, this scene's axes are drawn in proportion with the axes' ranges. If *manual*, this scene's axes are drawn in proportion with the input of *aspectratio* (the default behavior if *aspectratio* is provided). If *auto*, this scene's axes are drawn using the results of *data* except when one axis is more than four times the size of the two others, where in that case the results of *cube* are used. @@ -4614,12 +4740,14 @@ type LayoutScene struct { Domain *LayoutSceneDomain `json:"domain,omitempty"` // Dragmode + // arrayOK: false // default: %!s() // type: enumerated // Determines the mode of drag interactions for this scene. Dragmode LayoutSceneDragmode `json:"dragmode,omitempty"` // Hovermode + // arrayOK: false // default: closest // type: enumerated // Determines the mode of hover interactions for this scene. @@ -4734,6 +4862,7 @@ type LayoutSmithImaginaryaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -4770,12 +4899,14 @@ type LayoutSmithImaginaryaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutSmithImaginaryaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -4810,6 +4941,7 @@ type LayoutSmithImaginaryaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -4908,6 +5040,7 @@ type LayoutSmithRealaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -4944,18 +5077,21 @@ type LayoutSmithRealaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutSmithRealaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. Showticksuffix LayoutSmithRealaxisShowticksuffix `json:"showticksuffix,omitempty"` // Side + // arrayOK: false // default: top // type: enumerated // Determines on which side of real axis line the tick and tick labels appear. @@ -4996,6 +5132,7 @@ type LayoutSmithRealaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *top* (*bottom*), this axis' are drawn above (below) the axis line. @@ -5128,6 +5265,7 @@ type LayoutTernaryAaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -5164,6 +5302,7 @@ type LayoutTernaryAaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -5206,6 +5345,7 @@ type LayoutTernaryAaxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -5230,12 +5370,14 @@ type LayoutTernaryAaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutTernaryAaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -5288,6 +5430,7 @@ type LayoutTernaryAaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -5300,6 +5443,7 @@ type LayoutTernaryAaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -5426,6 +5570,7 @@ type LayoutTernaryBaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -5462,6 +5607,7 @@ type LayoutTernaryBaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -5504,6 +5650,7 @@ type LayoutTernaryBaxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -5528,12 +5675,14 @@ type LayoutTernaryBaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutTernaryBaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -5586,6 +5735,7 @@ type LayoutTernaryBaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -5598,6 +5748,7 @@ type LayoutTernaryBaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -5724,6 +5875,7 @@ type LayoutTernaryCaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -5760,6 +5912,7 @@ type LayoutTernaryCaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -5802,6 +5955,7 @@ type LayoutTernaryCaxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -5826,12 +5980,14 @@ type LayoutTernaryCaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutTernaryCaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -5884,6 +6040,7 @@ type LayoutTernaryCaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -5896,6 +6053,7 @@ type LayoutTernaryCaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -6094,12 +6252,14 @@ type LayoutTitle struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: auto // type: enumerated // Sets the title's horizontal alignment with respect to its x position. *left* means that the title starts at x, *right* means that the title ends at x and *center* means that the title's center is at x. *auto* divides `xref` by three and calculates the `xanchor` value automatically based on the value of `x`. Xanchor LayoutTitleXanchor `json:"xanchor,omitempty"` // Xref + // arrayOK: false // default: container // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -6112,12 +6272,14 @@ type LayoutTitle struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: auto // type: enumerated // Sets the title's vertical alignment with respect to its y position. *top* means that the title's cap line is at y, *bottom* means that the title's baseline is at y and *middle* means that the title's midline is at y. *auto* divides `yref` by three and calculates the `yanchor` value automatically based on the value of `y`. Yanchor LayoutTitleYanchor `json:"yanchor,omitempty"` // Yref + // arrayOK: false // default: container // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -6134,12 +6296,14 @@ type LayoutTransition struct { Duration float64 `json:"duration,omitempty"` // Easing + // arrayOK: false // default: cubic-in-out // type: enumerated // The easing function used for the transition Easing LayoutTransitionEasing `json:"easing,omitempty"` // Ordering + // arrayOK: false // default: layout first // type: enumerated // Determines whether the figure's layout or traces smoothly transitions during updates that make both traces and layout change. @@ -6156,6 +6320,7 @@ type LayoutUniformtext struct { Minsize float64 `json:"minsize,omitempty"` // Mode + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Determines how the font size for various text elements are uniformed between each trace type. If the computed text sizes were smaller than the minimum size defined by `uniformtext.minsize` using *hide* option hides the text; and using *show* option shows the text without further downscaling. Please note that if the size defined by `minsize` is greater than the font size defined by trace, then the `minsize` is used. @@ -6260,12 +6425,14 @@ type LayoutXaxisMinor struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). Tickmode LayoutXaxisMinorTickmode `json:"tickmode,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -6362,6 +6529,7 @@ type LayoutXaxisRangeselector struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: left // type: enumerated // Sets the range selector's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the range selector. @@ -6374,6 +6542,7 @@ type LayoutXaxisRangeselector struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: bottom // type: enumerated // Sets the range selector's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the range selector. @@ -6390,6 +6559,7 @@ type LayoutXaxisRangesliderYaxis struct { Range interface{} `json:"range,omitempty"` // Rangemode + // arrayOK: false // default: match // type: enumerated // Determines whether or not the range of this axis in the rangeslider use the same value than in the main plot when zooming in/out. If *auto*, the autorange will be used. If *fixed*, the `range` is used. If *match*, the current range of the corresponding y-axis on the main subplot is used. @@ -6514,6 +6684,7 @@ type LayoutXaxisTitle struct { type LayoutXaxis struct { // Anchor + // arrayOK: false // default: %!s() // type: enumerated // If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to the corresponding opposite-letter axis. If set to *free*, this axis' position is determined by `position`. @@ -6526,6 +6697,7 @@ type LayoutXaxis struct { Automargin LayoutXaxisAutomargin `json:"automargin,omitempty"` // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided and it has a value for both the lower and upper bound, `autorange` is set to *false*. Using *min* applies autorange only to set the minimum. Using *max* applies autorange only to set the maximum. Using *min reversed* applies autorange only to set the minimum on a reversed axis. Using *max reversed* applies autorange only to set the maximum on a reversed axis. Using *reversed* applies autorange on both ends and reverses the axis direction. @@ -6542,12 +6714,14 @@ type LayoutXaxis struct { Autotickangles interface{} `json:"autotickangles,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. Autotypenumbers LayoutXaxisAutotypenumbers `json:"autotypenumbers,omitempty"` // Calendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar` @@ -6566,6 +6740,7 @@ type LayoutXaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -6578,12 +6753,14 @@ type LayoutXaxis struct { Color Color `json:"color,omitempty"` // Constrain + // arrayOK: false // default: %!s() // type: enumerated // If this axis needs to be compressed (either due to its own `scaleanchor` and `scaleratio` or those of the other axis), determines how that happens: by increasing the *range*, or by decreasing the *domain*. Default is *domain* for axes containing image traces, *range* otherwise. Constrain LayoutXaxisConstrain `json:"constrain,omitempty"` // Constraintoward + // arrayOK: false // default: %!s() // type: enumerated // If this axis needs to be compressed (either due to its own `scaleanchor` and `scaleratio` or those of the other axis), determines which direction we push the originally specified plot area. Options are *left*, *center* (default), and *right* for x axes, and *top*, *middle* (default), and *bottom* for y axes. @@ -6614,6 +6791,7 @@ type LayoutXaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -6662,6 +6840,7 @@ type LayoutXaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -6680,6 +6859,7 @@ type LayoutXaxis struct { Linewidth float64 `json:"linewidth,omitempty"` // Matches + // arrayOK: false // default: %!s() // type: enumerated // If set to another axis id (e.g. `x2`, `y`), the range of this axis will match the range of the corresponding axis in data-coordinates space. Moreover, matching axes share auto-range values, category lists and histogram auto-bins. Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint is currently forbidden. Moreover, note that matching axes must have the same `type`. @@ -6708,6 +6888,7 @@ type LayoutXaxis struct { Minor *LayoutXaxisMinor `json:"minor,omitempty"` // Mirror + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area. If *true*, the axis lines are mirrored. If *ticks*, the axis lines and ticks are mirrored. If *false*, mirroring is disable. If *all*, axis lines are mirrored on all shared-axes subplots. If *allticks*, axis lines and ticks are mirrored on all shared-axes subplots. @@ -6720,6 +6901,7 @@ type LayoutXaxis struct { Nticks int64 `json:"nticks,omitempty"` // Overlaying + // arrayOK: false // default: %!s() // type: enumerated // If set a same-letter axis id, this axis is overlaid on top of the corresponding same-letter axis, with traces and axes visible for both axes. If *false*, this axis does not overlay any same-letter axes. In this case, for axes with overlapping domains only the highest-numbered axis will be visible. @@ -6744,6 +6926,7 @@ type LayoutXaxis struct { Rangebreaks interface{} `json:"rangebreaks,omitempty"` // Rangemode + // arrayOK: false // default: normal // type: enumerated // If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. Applies only to linear axes. @@ -6758,6 +6941,7 @@ type LayoutXaxis struct { Rangeslider *LayoutXaxisRangeslider `json:"rangeslider,omitempty"` // Scaleanchor + // arrayOK: false // default: %!s() // type: enumerated // If set to another axis id (e.g. `x2`, `y`), the range of this axis changes together with the range of the corresponding axis such that the scale of pixels per unit is in a constant ratio. Both axes are still zoomable, but when you zoom one, the other will zoom the same amount, keeping a fixed midpoint. `constrain` and `constraintoward` determine how we enforce the constraint. You can chain these, ie `yaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}` but you can only link axes of the same `type`. The linked axis can have the opposite letter (to constrain the aspect ratio) or the same letter (to match scales across subplots). Loops (`yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}` or longer) are redundant and the last constraint encountered will be ignored to avoid possible inconsistent constraints via `scaleratio`. Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint is currently forbidden. Setting `false` allows to remove a default constraint (occasionally, you may need to prevent a default `scaleanchor` constraint from being applied, eg. when having an image trace `yaxis: {scaleanchor: "x"}` is set automatically in order for pixels to be rendered as squares, setting `yaxis: {scaleanchor: false}` allows to remove the constraint). @@ -6782,6 +6966,7 @@ type LayoutXaxis struct { Showdividers Bool `json:"showdividers,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -6812,18 +6997,21 @@ type LayoutXaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutXaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. Showticksuffix LayoutXaxisShowticksuffix `json:"showticksuffix,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines whether a x (y) axis is positioned at the *bottom* (*left*) or *top* (*right*) of the plotting area. @@ -6848,6 +7036,7 @@ type LayoutXaxis struct { Spikemode LayoutXaxisSpikemode `json:"spikemode,omitempty"` // Spikesnap + // arrayOK: false // default: hovered data // type: enumerated // Determines whether spikelines are stuck to the cursor or to the closest datapoints. @@ -6894,18 +7083,21 @@ type LayoutXaxis struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabelmode + // arrayOK: false // default: instant // type: enumerated // Determines where tick labels are drawn with respect to their corresponding ticks and grid lines. Only has an effect for axes of `type` *date* When set to *period*, tick labels are drawn in the middle of the period between ticks. Ticklabelmode LayoutXaxisTicklabelmode `json:"ticklabelmode,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. Otherwise on *category* and *multicategory* axes the default is *allow*. In other cases the default is *hide past div*. Ticklabeloverflow LayoutXaxisTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn with respect to the axis Please note that top or bottom has no effect on x axes or when `ticklabelmode` is set to *period*. Similarly left or right has no effect on y axes or when `ticklabelmode` is set to *period*. Has no effect on *multicategory* axes or when `tickson` is set to *boundaries*. When used on axes linked by `matches` or `scaleanchor`, no extra padding for inside labels would be added by autorange, so that the scales could match. @@ -6924,6 +7116,7 @@ type LayoutXaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). If *sync*, the number of ticks will sync with the overlayed axis set by `overlaying` property. @@ -6936,12 +7129,14 @@ type LayoutXaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. Ticks LayoutXaxisTicks `json:"ticks,omitempty"` // Tickson + // arrayOK: false // default: labels // type: enumerated // Determines where ticks and grid lines are drawn with respect to their corresponding tick labels. Only has an effect for axes of `type` *category* or *multicategory*. When set to *boundaries*, ticks and grid lines are drawn half a category to the left/bottom of labels. @@ -6988,6 +7183,7 @@ type LayoutXaxis struct { Title *LayoutXaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. @@ -7122,12 +7318,14 @@ type LayoutYaxisMinor struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). Tickmode LayoutYaxisMinorTickmode `json:"tickmode,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -7220,6 +7418,7 @@ type LayoutYaxisTitle struct { type LayoutYaxis struct { // Anchor + // arrayOK: false // default: %!s() // type: enumerated // If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to the corresponding opposite-letter axis. If set to *free*, this axis' position is determined by `position`. @@ -7232,6 +7431,7 @@ type LayoutYaxis struct { Automargin LayoutYaxisAutomargin `json:"automargin,omitempty"` // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided and it has a value for both the lower and upper bound, `autorange` is set to *false*. Using *min* applies autorange only to set the minimum. Using *max* applies autorange only to set the maximum. Using *min reversed* applies autorange only to set the minimum on a reversed axis. Using *max reversed* applies autorange only to set the maximum on a reversed axis. Using *reversed* applies autorange on both ends and reverses the axis direction. @@ -7254,12 +7454,14 @@ type LayoutYaxis struct { Autotickangles interface{} `json:"autotickangles,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. Autotypenumbers LayoutYaxisAutotypenumbers `json:"autotypenumbers,omitempty"` // Calendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar` @@ -7278,6 +7480,7 @@ type LayoutYaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -7290,12 +7493,14 @@ type LayoutYaxis struct { Color Color `json:"color,omitempty"` // Constrain + // arrayOK: false // default: %!s() // type: enumerated // If this axis needs to be compressed (either due to its own `scaleanchor` and `scaleratio` or those of the other axis), determines how that happens: by increasing the *range*, or by decreasing the *domain*. Default is *domain* for axes containing image traces, *range* otherwise. Constrain LayoutYaxisConstrain `json:"constrain,omitempty"` // Constraintoward + // arrayOK: false // default: %!s() // type: enumerated // If this axis needs to be compressed (either due to its own `scaleanchor` and `scaleratio` or those of the other axis), determines which direction we push the originally specified plot area. Options are *left*, *center* (default), and *right* for x axes, and *top*, *middle* (default), and *bottom* for y axes. @@ -7326,6 +7531,7 @@ type LayoutYaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -7374,6 +7580,7 @@ type LayoutYaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -7392,6 +7599,7 @@ type LayoutYaxis struct { Linewidth float64 `json:"linewidth,omitempty"` // Matches + // arrayOK: false // default: %!s() // type: enumerated // If set to another axis id (e.g. `x2`, `y`), the range of this axis will match the range of the corresponding axis in data-coordinates space. Moreover, matching axes share auto-range values, category lists and histogram auto-bins. Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint is currently forbidden. Moreover, note that matching axes must have the same `type`. @@ -7420,6 +7628,7 @@ type LayoutYaxis struct { Minor *LayoutYaxisMinor `json:"minor,omitempty"` // Mirror + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area. If *true*, the axis lines are mirrored. If *ticks*, the axis lines and ticks are mirrored. If *false*, mirroring is disable. If *all*, axis lines are mirrored on all shared-axes subplots. If *allticks*, axis lines and ticks are mirrored on all shared-axes subplots. @@ -7432,6 +7641,7 @@ type LayoutYaxis struct { Nticks int64 `json:"nticks,omitempty"` // Overlaying + // arrayOK: false // default: %!s() // type: enumerated // If set a same-letter axis id, this axis is overlaid on top of the corresponding same-letter axis, with traces and axes visible for both axes. If *false*, this axis does not overlay any same-letter axes. In this case, for axes with overlapping domains only the highest-numbered axis will be visible. @@ -7456,12 +7666,14 @@ type LayoutYaxis struct { Rangebreaks interface{} `json:"rangebreaks,omitempty"` // Rangemode + // arrayOK: false // default: normal // type: enumerated // If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. Applies only to linear axes. Rangemode LayoutYaxisRangemode `json:"rangemode,omitempty"` // Scaleanchor + // arrayOK: false // default: %!s() // type: enumerated // If set to another axis id (e.g. `x2`, `y`), the range of this axis changes together with the range of the corresponding axis such that the scale of pixels per unit is in a constant ratio. Both axes are still zoomable, but when you zoom one, the other will zoom the same amount, keeping a fixed midpoint. `constrain` and `constraintoward` determine how we enforce the constraint. You can chain these, ie `yaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}` but you can only link axes of the same `type`. The linked axis can have the opposite letter (to constrain the aspect ratio) or the same letter (to match scales across subplots). Loops (`yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}` or longer) are redundant and the last constraint encountered will be ignored to avoid possible inconsistent constraints via `scaleratio`. Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint is currently forbidden. Setting `false` allows to remove a default constraint (occasionally, you may need to prevent a default `scaleanchor` constraint from being applied, eg. when having an image trace `yaxis: {scaleanchor: "x"}` is set automatically in order for pixels to be rendered as squares, setting `yaxis: {scaleanchor: false}` allows to remove the constraint). @@ -7492,6 +7704,7 @@ type LayoutYaxis struct { Showdividers Bool `json:"showdividers,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -7522,18 +7735,21 @@ type LayoutYaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutYaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. Showticksuffix LayoutYaxisShowticksuffix `json:"showticksuffix,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines whether a x (y) axis is positioned at the *bottom* (*left*) or *top* (*right*) of the plotting area. @@ -7558,6 +7774,7 @@ type LayoutYaxis struct { Spikemode LayoutYaxisSpikemode `json:"spikemode,omitempty"` // Spikesnap + // arrayOK: false // default: hovered data // type: enumerated // Determines whether spikelines are stuck to the cursor or to the closest datapoints. @@ -7604,18 +7821,21 @@ type LayoutYaxis struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabelmode + // arrayOK: false // default: instant // type: enumerated // Determines where tick labels are drawn with respect to their corresponding ticks and grid lines. Only has an effect for axes of `type` *date* When set to *period*, tick labels are drawn in the middle of the period between ticks. Ticklabelmode LayoutYaxisTicklabelmode `json:"ticklabelmode,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. Otherwise on *category* and *multicategory* axes the default is *allow*. In other cases the default is *hide past div*. Ticklabeloverflow LayoutYaxisTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn with respect to the axis Please note that top or bottom has no effect on x axes or when `ticklabelmode` is set to *period*. Similarly left or right has no effect on y axes or when `ticklabelmode` is set to *period*. Has no effect on *multicategory* axes or when `tickson` is set to *boundaries*. When used on axes linked by `matches` or `scaleanchor`, no extra padding for inside labels would be added by autorange, so that the scales could match. @@ -7634,6 +7854,7 @@ type LayoutYaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). If *sync*, the number of ticks will sync with the overlayed axis set by `overlaying` property. @@ -7646,12 +7867,14 @@ type LayoutYaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. Ticks LayoutYaxisTicks `json:"ticks,omitempty"` // Tickson + // arrayOK: false // default: labels // type: enumerated // Determines where ticks and grid lines are drawn with respect to their corresponding tick labels. Only has an effect for axes of `type` *category* or *multicategory*. When set to *boundaries*, ticks and grid lines are drawn half a category to the left/bottom of labels. @@ -7698,6 +7921,7 @@ type LayoutYaxis struct { Title *LayoutYaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. diff --git a/generated/v2.29.1/graph_objects/mesh3d_gen.go b/generated/v2.29.1/graph_objects/mesh3d_gen.go index 066d8ac..b01a6ae 100644 --- a/generated/v2.29.1/graph_objects/mesh3d_gen.go +++ b/generated/v2.29.1/graph_objects/mesh3d_gen.go @@ -90,6 +90,7 @@ type Mesh3d struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Delaunayaxis + // arrayOK: false // default: z // type: enumerated // Sets the Delaunay axis, which is the axis that is perpendicular to the surface of the Delaunay triangulation. It has an effect if `i`, `j`, `k` are not provided and `alphahull` is set to indicate Delaunay triangulation. @@ -117,7 +118,7 @@ type Mesh3d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo Mesh3dHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*Mesh3dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -178,6 +179,7 @@ type Mesh3d struct { Intensity interface{} `json:"intensity,omitempty"` // Intensitymode + // arrayOK: false // default: vertex // type: enumerated // Determines the source of `intensity` values. @@ -344,6 +346,7 @@ type Mesh3d struct { Vertexcolorsrc string `json:"vertexcolorsrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -356,6 +359,7 @@ type Mesh3d struct { X interface{} `json:"x,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -380,6 +384,7 @@ type Mesh3d struct { Y interface{} `json:"y,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -404,6 +409,7 @@ type Mesh3d struct { Z interface{} `json:"z,omitempty"` // Zcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `z` date data. @@ -474,6 +480,7 @@ type Mesh3dColorbarTitle struct { Font *Mesh3dColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -514,6 +521,7 @@ type Mesh3dColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -532,6 +540,7 @@ type Mesh3dColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -550,6 +559,7 @@ type Mesh3dColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -574,6 +584,7 @@ type Mesh3dColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -586,12 +597,14 @@ type Mesh3dColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix Mesh3dColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -604,6 +617,7 @@ type Mesh3dColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -644,12 +658,14 @@ type Mesh3dColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow Mesh3dColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -668,6 +684,7 @@ type Mesh3dColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -680,6 +697,7 @@ type Mesh3dColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -732,6 +750,7 @@ type Mesh3dColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -744,6 +763,7 @@ type Mesh3dColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -756,6 +776,7 @@ type Mesh3dColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -768,6 +789,7 @@ type Mesh3dColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -840,10 +862,11 @@ type Mesh3dHoverlabelFont struct { type Mesh3dHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align Mesh3dHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*Mesh3dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/ohlc_gen.go b/generated/v2.29.1/graph_objects/ohlc_gen.go index 428792d..5359b63 100644 --- a/generated/v2.29.1/graph_objects/ohlc_gen.go +++ b/generated/v2.29.1/graph_objects/ohlc_gen.go @@ -59,7 +59,7 @@ type Ohlc struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo OhlcHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*OhlcHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -232,6 +232,7 @@ type Ohlc struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -250,6 +251,7 @@ type Ohlc struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -274,6 +276,7 @@ type Ohlc struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -372,10 +375,11 @@ type OhlcHoverlabelFont struct { type OhlcHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align OhlcHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*OhlcHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/parcats_gen.go b/generated/v2.29.1/graph_objects/parcats_gen.go index 1da5921..12d3b82 100644 --- a/generated/v2.29.1/graph_objects/parcats_gen.go +++ b/generated/v2.29.1/graph_objects/parcats_gen.go @@ -16,6 +16,7 @@ type Parcats struct { Type TraceType `json:"type,omitempty"` // Arrangement + // arrayOK: false // default: perpendicular // type: enumerated // Sets the drag interaction mode for categories and dimensions. If `perpendicular`, the categories can only move along a line perpendicular to the paths. If `freeform`, the categories can freely move on the plane. If `fixed`, the categories and dimensions are stationary. @@ -56,6 +57,7 @@ type Parcats struct { Hoverinfo ParcatsHoverinfo `json:"hoverinfo,omitempty"` // Hoveron + // arrayOK: false // default: category // type: enumerated // Sets the hover interaction mode for the parcats diagram. If `category`, hover interaction take place per category. If `color`, hover interactions take place per color per category. If `dimension`, hover interactions take place across all categories per dimension. @@ -104,6 +106,7 @@ type Parcats struct { Name string `json:"name,omitempty"` // Sortpaths + // arrayOK: false // default: forward // type: enumerated // Sets the path sorting algorithm. If `forward`, sort paths based on dimension categories from left to right. If `backward`, sort paths based on dimensions categories from right to left. @@ -136,6 +139,7 @@ type Parcats struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -280,6 +284,7 @@ type ParcatsLineColorbarTitle struct { Font *ParcatsLineColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -320,6 +325,7 @@ type ParcatsLineColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -338,6 +344,7 @@ type ParcatsLineColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -356,6 +363,7 @@ type ParcatsLineColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -380,6 +388,7 @@ type ParcatsLineColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -392,12 +401,14 @@ type ParcatsLineColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ParcatsLineColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -410,6 +421,7 @@ type ParcatsLineColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -450,12 +462,14 @@ type ParcatsLineColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ParcatsLineColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -474,6 +488,7 @@ type ParcatsLineColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -486,6 +501,7 @@ type ParcatsLineColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -538,6 +554,7 @@ type ParcatsLineColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -550,6 +567,7 @@ type ParcatsLineColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -562,6 +580,7 @@ type ParcatsLineColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -574,6 +593,7 @@ type ParcatsLineColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -654,6 +674,7 @@ type ParcatsLine struct { Reversescale Bool `json:"reversescale,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Sets the shape of the paths. If `linear`, paths are composed of straight lines. If `hspline`, paths are composed of horizontal curved splines diff --git a/generated/v2.29.1/graph_objects/parcoords_gen.go b/generated/v2.29.1/graph_objects/parcoords_gen.go index 44ce49c..39411ca 100644 --- a/generated/v2.29.1/graph_objects/parcoords_gen.go +++ b/generated/v2.29.1/graph_objects/parcoords_gen.go @@ -60,6 +60,7 @@ type Parcoords struct { Labelfont *ParcoordsLabelfont `json:"labelfont,omitempty"` // Labelside + // arrayOK: false // default: top // type: enumerated // Specifies the location of the `label`. *top* positions labels above, next to the title *bottom* positions labels below the graph Tilted labels with *labelangle* may be positioned better inside margins when `labelposition` is set to *bottom*. @@ -144,6 +145,7 @@ type Parcoords struct { Unselected *ParcoordsUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -288,6 +290,7 @@ type ParcoordsLineColorbarTitle struct { Font *ParcoordsLineColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -328,6 +331,7 @@ type ParcoordsLineColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -346,6 +350,7 @@ type ParcoordsLineColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -364,6 +369,7 @@ type ParcoordsLineColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -388,6 +394,7 @@ type ParcoordsLineColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -400,12 +407,14 @@ type ParcoordsLineColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ParcoordsLineColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -418,6 +427,7 @@ type ParcoordsLineColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -458,12 +468,14 @@ type ParcoordsLineColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ParcoordsLineColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -482,6 +494,7 @@ type ParcoordsLineColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -494,6 +507,7 @@ type ParcoordsLineColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -546,6 +560,7 @@ type ParcoordsLineColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -558,6 +573,7 @@ type ParcoordsLineColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -570,6 +586,7 @@ type ParcoordsLineColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -582,6 +599,7 @@ type ParcoordsLineColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. diff --git a/generated/v2.29.1/graph_objects/pie_gen.go b/generated/v2.29.1/graph_objects/pie_gen.go index 89d0f0a..1167ebe 100644 --- a/generated/v2.29.1/graph_objects/pie_gen.go +++ b/generated/v2.29.1/graph_objects/pie_gen.go @@ -34,6 +34,7 @@ type Pie struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Direction + // arrayOK: false // default: counterclockwise // type: enumerated // Specifies the direction at which succeeding sectors follow one another. @@ -59,7 +60,7 @@ type Pie struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo PieHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*PieHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -112,6 +113,7 @@ type Pie struct { Insidetextfont *PieInsidetextfont `json:"insidetextfont,omitempty"` // Insidetextorientation + // arrayOK: false // default: auto // type: enumerated // Controls the orientation of the text inside chart sectors. When set to *auto*, text may be oriented in any direction in order to be as big as possible in the middle of a sector. The *horizontal* option orients text to be parallel with the bottom of the chart, and may make text smaller in order to achieve that goal. The *radial* option orients text along the radius of the sector. The *tangential* option orients text perpendicular to the radius of the sector. @@ -252,10 +254,11 @@ type Pie struct { Textinfo PieTextinfo `json:"textinfo,omitempty"` // Textposition + // arrayOK: true // default: auto // type: enumerated // Specifies the location of the `textinfo`. - Textposition PieTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*PieTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -316,6 +319,7 @@ type Pie struct { Valuessrc string `json:"valuessrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -394,10 +398,11 @@ type PieHoverlabelFont struct { type PieHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align PieHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*PieHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -584,16 +589,18 @@ type PieMarkerPattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode PieMarkerPatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape PieMarkerPatternShape `json:"shape,omitempty"` + Shape ArrayOK[*PieMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -794,6 +801,7 @@ type PieTitle struct { Font *PieTitleFont `json:"font,omitempty"` // Position + // arrayOK: false // default: %!s() // type: enumerated // Specifies the location of the `title`. Note that the title's position used to be set by the now deprecated `titleposition` attribute. diff --git a/generated/v2.29.1/graph_objects/pointcloud_gen.go b/generated/v2.29.1/graph_objects/pointcloud_gen.go index 415ed7e..bd6d23b 100644 --- a/generated/v2.29.1/graph_objects/pointcloud_gen.go +++ b/generated/v2.29.1/graph_objects/pointcloud_gen.go @@ -31,7 +31,7 @@ type Pointcloud struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo PointcloudHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*PointcloudHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -158,6 +158,7 @@ type Pointcloud struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -280,10 +281,11 @@ type PointcloudHoverlabelFont struct { type PointcloudHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align PointcloudHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*PointcloudHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/sankey_gen.go b/generated/v2.29.1/graph_objects/sankey_gen.go index 96f8abd..c869a9a 100644 --- a/generated/v2.29.1/graph_objects/sankey_gen.go +++ b/generated/v2.29.1/graph_objects/sankey_gen.go @@ -16,6 +16,7 @@ type Sankey struct { Type TraceType `json:"type,omitempty"` // Arrangement + // arrayOK: false // default: snap // type: enumerated // If value is `snap` (the default), the node arrangement is assisted by automatic snapping of elements to preserve space between nodes specified via `nodepad`. If value is `perpendicular`, the nodes can only move along a line perpendicular to the flow. If value is `freeform`, the nodes can freely move on the plane. If value is `fixed`, the nodes are stationary. @@ -108,6 +109,7 @@ type Sankey struct { Node *SankeyNode `json:"node,omitempty"` // Orientation + // arrayOK: false // default: h // type: enumerated // Sets the orientation of the Sankey diagram. @@ -152,6 +154,7 @@ type Sankey struct { Valuesuffix string `json:"valuesuffix,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -230,10 +233,11 @@ type SankeyHoverlabelFont struct { type SankeyHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align SankeyHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*SankeyHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -362,10 +366,11 @@ type SankeyLinkHoverlabelFont struct { type SankeyLinkHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align SankeyLinkHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*SankeyLinkHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -494,6 +499,7 @@ type SankeyLink struct { Hovercolorsrc string `json:"hovercolorsrc,omitempty"` // Hoverinfo + // arrayOK: false // default: all // type: enumerated // Determines which trace information appear when hovering links. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -612,10 +618,11 @@ type SankeyNodeHoverlabelFont struct { type SankeyNodeHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align SankeyNodeHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*SankeyNodeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -696,6 +703,7 @@ type SankeyNodeLine struct { type SankeyNode struct { // Align + // arrayOK: false // default: justify // type: enumerated // Sets the alignment method used to position the nodes along the horizontal axis. @@ -732,6 +740,7 @@ type SankeyNode struct { Groups interface{} `json:"groups,omitempty"` // Hoverinfo + // arrayOK: false // default: all // type: enumerated // Determines which trace information appear when hovering nodes. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. diff --git a/generated/v2.29.1/graph_objects/scatter3d_gen.go b/generated/v2.29.1/graph_objects/scatter3d_gen.go index dd9bb49..ddd44b4 100644 --- a/generated/v2.29.1/graph_objects/scatter3d_gen.go +++ b/generated/v2.29.1/graph_objects/scatter3d_gen.go @@ -49,7 +49,7 @@ type Scatter3d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo Scatter3dHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*Scatter3dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -184,6 +184,7 @@ type Scatter3d struct { Stream *Scatter3dStream `json:"stream,omitempty"` // Surfaceaxis + // arrayOK: false // default: %!s(float64=-1) // type: enumerated // If *-1*, the scatter points are not fill with a surface If *0*, *1*, *2*, the scatter points are filled with a Delaunay surface about the x, y, z respectively. @@ -206,10 +207,11 @@ type Scatter3d struct { Textfont *Scatter3dTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: top center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition Scatter3dTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*Scatter3dTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -254,6 +256,7 @@ type Scatter3d struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -266,6 +269,7 @@ type Scatter3d struct { X interface{} `json:"x,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -290,6 +294,7 @@ type Scatter3d struct { Y interface{} `json:"y,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -314,6 +319,7 @@ type Scatter3d struct { Z interface{} `json:"z,omitempty"` // Zcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `z` date data. @@ -396,6 +402,7 @@ type Scatter3dErrorX struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -490,6 +497,7 @@ type Scatter3dErrorY struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -578,6 +586,7 @@ type Scatter3dErrorZ struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -652,10 +661,11 @@ type Scatter3dHoverlabelFont struct { type Scatter3dHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align Scatter3dHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*Scatter3dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -792,6 +802,7 @@ type Scatter3dLineColorbarTitle struct { Font *Scatter3dLineColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -832,6 +843,7 @@ type Scatter3dLineColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -850,6 +862,7 @@ type Scatter3dLineColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -868,6 +881,7 @@ type Scatter3dLineColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -892,6 +906,7 @@ type Scatter3dLineColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -904,12 +919,14 @@ type Scatter3dLineColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix Scatter3dLineColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -922,6 +939,7 @@ type Scatter3dLineColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -962,12 +980,14 @@ type Scatter3dLineColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow Scatter3dLineColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -986,6 +1006,7 @@ type Scatter3dLineColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -998,6 +1019,7 @@ type Scatter3dLineColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -1050,6 +1072,7 @@ type Scatter3dLineColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -1062,6 +1085,7 @@ type Scatter3dLineColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -1074,6 +1098,7 @@ type Scatter3dLineColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -1086,6 +1111,7 @@ type Scatter3dLineColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -1154,6 +1180,7 @@ type Scatter3dLine struct { Colorsrc string `json:"colorsrc,omitempty"` // Dash + // arrayOK: false // default: solid // type: enumerated // Sets the dash style of the lines. @@ -1230,6 +1257,7 @@ type Scatter3dMarkerColorbarTitle struct { Font *Scatter3dMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -1270,6 +1298,7 @@ type Scatter3dMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -1288,6 +1317,7 @@ type Scatter3dMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -1306,6 +1336,7 @@ type Scatter3dMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -1330,6 +1361,7 @@ type Scatter3dMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -1342,12 +1374,14 @@ type Scatter3dMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix Scatter3dMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -1360,6 +1394,7 @@ type Scatter3dMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -1400,12 +1435,14 @@ type Scatter3dMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow Scatter3dMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -1424,6 +1461,7 @@ type Scatter3dMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -1436,6 +1474,7 @@ type Scatter3dMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -1488,6 +1527,7 @@ type Scatter3dMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -1500,6 +1540,7 @@ type Scatter3dMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -1512,6 +1553,7 @@ type Scatter3dMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -1524,6 +1566,7 @@ type Scatter3dMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -1696,6 +1739,7 @@ type Scatter3dMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1714,10 +1758,11 @@ type Scatter3dMarker struct { Sizesrc string `json:"sizesrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. - Symbol Scatter3dMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*Scatter3dMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scatter_gen.go b/generated/v2.29.1/graph_objects/scatter_gen.go index f6c70d6..f7c9c21 100644 --- a/generated/v2.29.1/graph_objects/scatter_gen.go +++ b/generated/v2.29.1/graph_objects/scatter_gen.go @@ -66,6 +66,7 @@ type Scatter struct { ErrorY *ScatterErrorY `json:"error_y,omitempty"` // Fill + // arrayOK: false // default: %!s() // type: enumerated // Sets the area to fill with a solid color. Defaults to *none* unless this trace is stacked, then it gets *tonexty* (*tonextx*) if `orientation` is *v* (*h*) Use with `fillcolor` if not *none*. *tozerox* and *tozeroy* fill to x=0 and y=0 respectively. *tonextx* and *tonexty* fill between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area graph); if there is no trace before it, they behave like *tozerox* and *tozeroy*. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order. @@ -82,6 +83,7 @@ type Scatter struct { Fillpattern *ScatterFillpattern `json:"fillpattern,omitempty"` // Groupnorm + // arrayOK: false // default: // type: enumerated // Only relevant when `stackgroup` is used, and only the first `groupnorm` found in the `stackgroup` will be used - including if `visible` is *legendonly* but not if it is `false`. Sets the normalization for the sum of this `stackgroup`. With *fraction*, the value of each trace at each location is divided by the sum of all trace values at that location. *percent* is the same but multiplied by 100 to show percentages. If there are multiple subplots, or multiple `stackgroup`s on one subplot, each will be normalized within its own set. @@ -91,7 +93,7 @@ type Scatter struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScatterHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScatterHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -218,6 +220,7 @@ type Scatter struct { Opacity float64 `json:"opacity,omitempty"` // Orientation + // arrayOK: false // default: %!s() // type: enumerated // Only relevant in the following cases: 1. when `scattermode` is set to *group*. 2. when `stackgroup` is used, and only the first `orientation` found in the `stackgroup` will be used - including if `visible` is *legendonly* but not if it is `false`. Sets the stacking direction. With *v* (*h*), the y (x) values of subsequent traces are added. Also affects the default value of `fill`. @@ -240,6 +243,7 @@ type Scatter struct { Showlegend Bool `json:"showlegend,omitempty"` // Stackgaps + // arrayOK: false // default: infer zero // type: enumerated // Only relevant when `stackgroup` is used, and only the first `stackgaps` found in the `stackgroup` will be used - including if `visible` is *legendonly* but not if it is `false`. Determines how we handle locations at which other traces in this group have data but this one does not. With *infer zero* we insert a zero at these locations. With *interpolate* we linearly interpolate between existing values, and extrapolate a constant beyond the existing values. @@ -266,10 +270,11 @@ type Scatter struct { Textfont *ScatterTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScatterTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScatterTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -318,6 +323,7 @@ type Scatter struct { Unselected *ScatterUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -342,6 +348,7 @@ type Scatter struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -366,6 +373,7 @@ type Scatter struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -396,6 +404,7 @@ type Scatter struct { Yaxis String `json:"yaxis,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -420,6 +429,7 @@ type Scatter struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -496,6 +506,7 @@ type ScatterErrorX struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -584,6 +595,7 @@ type ScatterErrorY struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -648,16 +660,18 @@ type ScatterFillpattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode ScatterFillpatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ScatterFillpatternShape `json:"shape,omitempty"` + Shape ArrayOK[*ScatterFillpatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -734,10 +748,11 @@ type ScatterHoverlabelFont struct { type ScatterHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScatterHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScatterHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -850,6 +865,7 @@ type ScatterLine struct { Dash string `json:"dash,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Determines the line shape. With *spline* the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes. @@ -926,6 +942,7 @@ type ScatterMarkerColorbarTitle struct { Font *ScatterMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -966,6 +983,7 @@ type ScatterMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -984,6 +1002,7 @@ type ScatterMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -1002,6 +1021,7 @@ type ScatterMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -1026,6 +1046,7 @@ type ScatterMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -1038,12 +1059,14 @@ type ScatterMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScatterMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -1056,6 +1079,7 @@ type ScatterMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -1096,12 +1120,14 @@ type ScatterMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScatterMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -1120,6 +1146,7 @@ type ScatterMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -1132,6 +1159,7 @@ type ScatterMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -1184,6 +1212,7 @@ type ScatterMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -1196,6 +1225,7 @@ type ScatterMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -1208,6 +1238,7 @@ type ScatterMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -1220,6 +1251,7 @@ type ScatterMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -1242,10 +1274,11 @@ type ScatterMarkerGradient struct { Colorsrc string `json:"colorsrc,omitempty"` // Type + // arrayOK: true // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ScatterMarkerGradientType `json:"type,omitempty"` + Type ArrayOK[*ScatterMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -1340,6 +1373,7 @@ type ScatterMarker struct { Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref + // arrayOK: false // default: up // type: enumerated // Sets the reference for marker angle. With *previous*, angle 0 points along the line from the previous point to this one. With *up*, angle 0 points toward the top of the screen. @@ -1460,6 +1494,7 @@ type ScatterMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1490,10 +1525,11 @@ type ScatterMarker struct { Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScatterMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScatterMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scattercarpet_gen.go b/generated/v2.29.1/graph_objects/scattercarpet_gen.go index 8cb7c5b..c23bee6 100644 --- a/generated/v2.29.1/graph_objects/scattercarpet_gen.go +++ b/generated/v2.29.1/graph_objects/scattercarpet_gen.go @@ -64,6 +64,7 @@ type Scattercarpet struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Use with `fillcolor` if not *none*. scatterternary has a subset of the options available to scatter. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. @@ -79,7 +80,7 @@ type Scattercarpet struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScattercarpetHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScattercarpetHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -230,10 +231,11 @@ type Scattercarpet struct { Textfont *ScattercarpetTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScattercarpetTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScattercarpetTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -282,6 +284,7 @@ type Scattercarpet struct { Unselected *ScattercarpetUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -344,10 +347,11 @@ type ScattercarpetHoverlabelFont struct { type ScattercarpetHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScattercarpetHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScattercarpetHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -460,6 +464,7 @@ type ScattercarpetLine struct { Dash string `json:"dash,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Determines the line shape. With *spline* the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes. @@ -530,6 +535,7 @@ type ScattercarpetMarkerColorbarTitle struct { Font *ScattercarpetMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -570,6 +576,7 @@ type ScattercarpetMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -588,6 +595,7 @@ type ScattercarpetMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -606,6 +614,7 @@ type ScattercarpetMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -630,6 +639,7 @@ type ScattercarpetMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -642,12 +652,14 @@ type ScattercarpetMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScattercarpetMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -660,6 +672,7 @@ type ScattercarpetMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -700,12 +713,14 @@ type ScattercarpetMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScattercarpetMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -724,6 +739,7 @@ type ScattercarpetMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -736,6 +752,7 @@ type ScattercarpetMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -788,6 +805,7 @@ type ScattercarpetMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -800,6 +818,7 @@ type ScattercarpetMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -812,6 +831,7 @@ type ScattercarpetMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -824,6 +844,7 @@ type ScattercarpetMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -846,10 +867,11 @@ type ScattercarpetMarkerGradient struct { Colorsrc string `json:"colorsrc,omitempty"` // Type + // arrayOK: true // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ScattercarpetMarkerGradientType `json:"type,omitempty"` + Type ArrayOK[*ScattercarpetMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -944,6 +966,7 @@ type ScattercarpetMarker struct { Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref + // arrayOK: false // default: up // type: enumerated // Sets the reference for marker angle. With *previous*, angle 0 points along the line from the previous point to this one. With *up*, angle 0 points toward the top of the screen. @@ -1064,6 +1087,7 @@ type ScattercarpetMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1094,10 +1118,11 @@ type ScattercarpetMarker struct { Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScattercarpetMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScattercarpetMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scattergeo_gen.go b/generated/v2.29.1/graph_objects/scattergeo_gen.go index e671cf8..d03b689 100644 --- a/generated/v2.29.1/graph_objects/scattergeo_gen.go +++ b/generated/v2.29.1/graph_objects/scattergeo_gen.go @@ -40,6 +40,7 @@ type Scattergeo struct { Featureidkey string `json:"featureidkey,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Use with `fillcolor` if not *none*. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. @@ -67,7 +68,7 @@ type Scattergeo struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScattergeoHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScattergeoHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -160,6 +161,7 @@ type Scattergeo struct { Line *ScattergeoLine `json:"line,omitempty"` // Locationmode + // arrayOK: false // default: ISO-3 // type: enumerated // Determines the set of locations used to match entries in `locations` to regions on the map. Values *ISO-3*, *USA-states*, *country names* correspond to features on the base map and value *geojson-id* corresponds to features from a custom GeoJSON linked to the `geojson` attribute. @@ -254,10 +256,11 @@ type Scattergeo struct { Textfont *ScattergeoTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScattergeoTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScattergeoTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -306,6 +309,7 @@ type Scattergeo struct { Unselected *ScattergeoUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -356,10 +360,11 @@ type ScattergeoHoverlabelFont struct { type ScattergeoHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScattergeoHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScattergeoHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -518,6 +523,7 @@ type ScattergeoMarkerColorbarTitle struct { Font *ScattergeoMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -558,6 +564,7 @@ type ScattergeoMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -576,6 +583,7 @@ type ScattergeoMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -594,6 +602,7 @@ type ScattergeoMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -618,6 +627,7 @@ type ScattergeoMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -630,12 +640,14 @@ type ScattergeoMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScattergeoMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -648,6 +660,7 @@ type ScattergeoMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -688,12 +701,14 @@ type ScattergeoMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScattergeoMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -712,6 +727,7 @@ type ScattergeoMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -724,6 +740,7 @@ type ScattergeoMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -776,6 +793,7 @@ type ScattergeoMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -788,6 +806,7 @@ type ScattergeoMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -800,6 +819,7 @@ type ScattergeoMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -812,6 +832,7 @@ type ScattergeoMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -834,10 +855,11 @@ type ScattergeoMarkerGradient struct { Colorsrc string `json:"colorsrc,omitempty"` // Type + // arrayOK: true // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ScattergeoMarkerGradientType `json:"type,omitempty"` + Type ArrayOK[*ScattergeoMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -932,6 +954,7 @@ type ScattergeoMarker struct { Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref + // arrayOK: false // default: up // type: enumerated // Sets the reference for marker angle. With *previous*, angle 0 points along the line from the previous point to this one. With *up*, angle 0 points toward the top of the screen. With *north*, angle 0 points north based on the current map projection. @@ -1046,6 +1069,7 @@ type ScattergeoMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1076,10 +1100,11 @@ type ScattergeoMarker struct { Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScattergeoMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScattergeoMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scattergl_gen.go b/generated/v2.29.1/graph_objects/scattergl_gen.go index bbe038b..6b00f27 100644 --- a/generated/v2.29.1/graph_objects/scattergl_gen.go +++ b/generated/v2.29.1/graph_objects/scattergl_gen.go @@ -54,6 +54,7 @@ type Scattergl struct { ErrorY *ScatterglErrorY `json:"error_y,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Defaults to *none* unless this trace is stacked, then it gets *tonexty* (*tonextx*) if `orientation` is *v* (*h*) Use with `fillcolor` if not *none*. *tozerox* and *tozeroy* fill to x=0 and y=0 respectively. *tonextx* and *tonexty* fill between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area graph); if there is no trace before it, they behave like *tozerox* and *tozeroy*. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order. @@ -69,7 +70,7 @@ type Scattergl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScatterglHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScatterglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -214,10 +215,11 @@ type Scattergl struct { Textfont *ScatterglTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScatterglTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScatterglTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -266,6 +268,7 @@ type Scattergl struct { Unselected *ScatterglUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -290,6 +293,7 @@ type Scattergl struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -314,6 +318,7 @@ type Scattergl struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -344,6 +349,7 @@ type Scattergl struct { Yaxis String `json:"yaxis,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -368,6 +374,7 @@ type Scattergl struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -444,6 +451,7 @@ type ScatterglErrorX struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -532,6 +540,7 @@ type ScatterglErrorY struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -606,10 +615,11 @@ type ScatterglHoverlabelFont struct { type ScatterglHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScatterglHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScatterglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -704,12 +714,14 @@ type ScatterglLine struct { Color Color `json:"color,omitempty"` // Dash + // arrayOK: false // default: solid // type: enumerated // Sets the style of the lines. Dash ScatterglLineDash `json:"dash,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Determines the line shape. The values correspond to step-wise line shapes. @@ -774,6 +786,7 @@ type ScatterglMarkerColorbarTitle struct { Font *ScatterglMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -814,6 +827,7 @@ type ScatterglMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -832,6 +846,7 @@ type ScatterglMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -850,6 +865,7 @@ type ScatterglMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -874,6 +890,7 @@ type ScatterglMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -886,12 +903,14 @@ type ScatterglMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScatterglMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -904,6 +923,7 @@ type ScatterglMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -944,12 +964,14 @@ type ScatterglMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScatterglMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -968,6 +990,7 @@ type ScatterglMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -980,6 +1003,7 @@ type ScatterglMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -1032,6 +1056,7 @@ type ScatterglMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -1044,6 +1069,7 @@ type ScatterglMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -1056,6 +1082,7 @@ type ScatterglMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -1068,6 +1095,7 @@ type ScatterglMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -1264,6 +1292,7 @@ type ScatterglMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1282,10 +1311,11 @@ type ScatterglMarker struct { Sizesrc string `json:"sizesrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScatterglMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScatterglMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scattermapbox_gen.go b/generated/v2.29.1/graph_objects/scattermapbox_gen.go index 8576987..7a03b64 100644 --- a/generated/v2.29.1/graph_objects/scattermapbox_gen.go +++ b/generated/v2.29.1/graph_objects/scattermapbox_gen.go @@ -44,6 +44,7 @@ type Scattermapbox struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Use with `fillcolor` if not *none*. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. @@ -59,7 +60,7 @@ type Scattermapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScattermapboxHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScattermapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -234,6 +235,7 @@ type Scattermapbox struct { Textfont *ScattermapboxTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: false // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. @@ -280,6 +282,7 @@ type Scattermapbox struct { Unselected *ScattermapboxUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -394,10 +397,11 @@ type ScattermapboxHoverlabelFont struct { type ScattermapboxHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScattermapboxHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScattermapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -550,6 +554,7 @@ type ScattermapboxMarkerColorbarTitle struct { Font *ScattermapboxMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -590,6 +595,7 @@ type ScattermapboxMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -608,6 +614,7 @@ type ScattermapboxMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -626,6 +633,7 @@ type ScattermapboxMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -650,6 +658,7 @@ type ScattermapboxMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -662,12 +671,14 @@ type ScattermapboxMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScattermapboxMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -680,6 +691,7 @@ type ScattermapboxMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -720,12 +732,14 @@ type ScattermapboxMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScattermapboxMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -744,6 +758,7 @@ type ScattermapboxMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -756,6 +771,7 @@ type ScattermapboxMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -808,6 +824,7 @@ type ScattermapboxMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -820,6 +837,7 @@ type ScattermapboxMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -832,6 +850,7 @@ type ScattermapboxMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -844,6 +863,7 @@ type ScattermapboxMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -966,6 +986,7 @@ type ScattermapboxMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. diff --git a/generated/v2.29.1/graph_objects/scatterpolar_gen.go b/generated/v2.29.1/graph_objects/scatterpolar_gen.go index 38ca335..176c0e8 100644 --- a/generated/v2.29.1/graph_objects/scatterpolar_gen.go +++ b/generated/v2.29.1/graph_objects/scatterpolar_gen.go @@ -52,6 +52,7 @@ type Scatterpolar struct { Dtheta float64 `json:"dtheta,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Use with `fillcolor` if not *none*. scatterpolar has a subset of the options available to scatter. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. @@ -67,7 +68,7 @@ type Scatterpolar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScatterpolarHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScatterpolarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -242,10 +243,11 @@ type Scatterpolar struct { Textfont *ScatterpolarTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScatterpolarTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScatterpolarTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -290,6 +292,7 @@ type Scatterpolar struct { Thetasrc string `json:"thetasrc,omitempty"` // Thetaunit + // arrayOK: false // default: degrees // type: enumerated // Sets the unit of input *theta* values. Has an effect only when on *linear* angular axes. @@ -318,6 +321,7 @@ type Scatterpolar struct { Unselected *ScatterpolarUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -368,10 +372,11 @@ type ScatterpolarHoverlabelFont struct { type ScatterpolarHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScatterpolarHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScatterpolarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -484,6 +489,7 @@ type ScatterpolarLine struct { Dash string `json:"dash,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Determines the line shape. With *spline* the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes. @@ -554,6 +560,7 @@ type ScatterpolarMarkerColorbarTitle struct { Font *ScatterpolarMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -594,6 +601,7 @@ type ScatterpolarMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -612,6 +620,7 @@ type ScatterpolarMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -630,6 +639,7 @@ type ScatterpolarMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -654,6 +664,7 @@ type ScatterpolarMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -666,12 +677,14 @@ type ScatterpolarMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScatterpolarMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -684,6 +697,7 @@ type ScatterpolarMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -724,12 +738,14 @@ type ScatterpolarMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScatterpolarMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -748,6 +764,7 @@ type ScatterpolarMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -760,6 +777,7 @@ type ScatterpolarMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -812,6 +830,7 @@ type ScatterpolarMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -824,6 +843,7 @@ type ScatterpolarMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -836,6 +856,7 @@ type ScatterpolarMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -848,6 +869,7 @@ type ScatterpolarMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -870,10 +892,11 @@ type ScatterpolarMarkerGradient struct { Colorsrc string `json:"colorsrc,omitempty"` // Type + // arrayOK: true // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ScatterpolarMarkerGradientType `json:"type,omitempty"` + Type ArrayOK[*ScatterpolarMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -968,6 +991,7 @@ type ScatterpolarMarker struct { Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref + // arrayOK: false // default: up // type: enumerated // Sets the reference for marker angle. With *previous*, angle 0 points along the line from the previous point to this one. With *up*, angle 0 points toward the top of the screen. @@ -1088,6 +1112,7 @@ type ScatterpolarMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1118,10 +1143,11 @@ type ScatterpolarMarker struct { Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScatterpolarMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScatterpolarMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scatterpolargl_gen.go b/generated/v2.29.1/graph_objects/scatterpolargl_gen.go index dde8a85..8b19ea4 100644 --- a/generated/v2.29.1/graph_objects/scatterpolargl_gen.go +++ b/generated/v2.29.1/graph_objects/scatterpolargl_gen.go @@ -46,6 +46,7 @@ type Scatterpolargl struct { Dtheta float64 `json:"dtheta,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Defaults to *none* unless this trace is stacked, then it gets *tonexty* (*tonextx*) if `orientation` is *v* (*h*) Use with `fillcolor` if not *none*. *tozerox* and *tozeroy* fill to x=0 and y=0 respectively. *tonextx* and *tonexty* fill between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area graph); if there is no trace before it, they behave like *tozerox* and *tozeroy*. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order. @@ -61,7 +62,7 @@ type Scatterpolargl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScatterpolarglHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScatterpolarglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -230,10 +231,11 @@ type Scatterpolargl struct { Textfont *ScatterpolarglTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScatterpolarglTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScatterpolarglTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -278,6 +280,7 @@ type Scatterpolargl struct { Thetasrc string `json:"thetasrc,omitempty"` // Thetaunit + // arrayOK: false // default: degrees // type: enumerated // Sets the unit of input *theta* values. Has an effect only when on *linear* angular axes. @@ -306,6 +309,7 @@ type Scatterpolargl struct { Unselected *ScatterpolarglUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -356,10 +360,11 @@ type ScatterpolarglHoverlabelFont struct { type ScatterpolarglHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScatterpolarglHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScatterpolarglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -454,6 +459,7 @@ type ScatterpolarglLine struct { Color Color `json:"color,omitempty"` // Dash + // arrayOK: false // default: solid // type: enumerated // Sets the style of the lines. @@ -518,6 +524,7 @@ type ScatterpolarglMarkerColorbarTitle struct { Font *ScatterpolarglMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -558,6 +565,7 @@ type ScatterpolarglMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -576,6 +584,7 @@ type ScatterpolarglMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -594,6 +603,7 @@ type ScatterpolarglMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -618,6 +628,7 @@ type ScatterpolarglMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -630,12 +641,14 @@ type ScatterpolarglMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScatterpolarglMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -648,6 +661,7 @@ type ScatterpolarglMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -688,12 +702,14 @@ type ScatterpolarglMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScatterpolarglMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -712,6 +728,7 @@ type ScatterpolarglMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -724,6 +741,7 @@ type ScatterpolarglMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -776,6 +794,7 @@ type ScatterpolarglMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -788,6 +807,7 @@ type ScatterpolarglMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -800,6 +820,7 @@ type ScatterpolarglMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -812,6 +833,7 @@ type ScatterpolarglMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -1008,6 +1030,7 @@ type ScatterpolarglMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1026,10 +1049,11 @@ type ScatterpolarglMarker struct { Sizesrc string `json:"sizesrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScatterpolarglMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScatterpolarglMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scattersmith_gen.go b/generated/v2.29.1/graph_objects/scattersmith_gen.go index 94c4698..505945e 100644 --- a/generated/v2.29.1/graph_objects/scattersmith_gen.go +++ b/generated/v2.29.1/graph_objects/scattersmith_gen.go @@ -40,6 +40,7 @@ type Scattersmith struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Use with `fillcolor` if not *none*. scattersmith has a subset of the options available to scatter. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. @@ -55,7 +56,7 @@ type Scattersmith struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScattersmithHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScattersmithHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -236,10 +237,11 @@ type Scattersmith struct { Textfont *ScattersmithTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScattersmithTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScattersmithTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -288,6 +290,7 @@ type Scattersmith struct { Unselected *ScattersmithUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -338,10 +341,11 @@ type ScattersmithHoverlabelFont struct { type ScattersmithHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScattersmithHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScattersmithHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -454,6 +458,7 @@ type ScattersmithLine struct { Dash string `json:"dash,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Determines the line shape. With *spline* the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes. @@ -524,6 +529,7 @@ type ScattersmithMarkerColorbarTitle struct { Font *ScattersmithMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -564,6 +570,7 @@ type ScattersmithMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -582,6 +589,7 @@ type ScattersmithMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -600,6 +608,7 @@ type ScattersmithMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -624,6 +633,7 @@ type ScattersmithMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -636,12 +646,14 @@ type ScattersmithMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScattersmithMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -654,6 +666,7 @@ type ScattersmithMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -694,12 +707,14 @@ type ScattersmithMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScattersmithMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -718,6 +733,7 @@ type ScattersmithMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -730,6 +746,7 @@ type ScattersmithMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -782,6 +799,7 @@ type ScattersmithMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -794,6 +812,7 @@ type ScattersmithMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -806,6 +825,7 @@ type ScattersmithMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -818,6 +838,7 @@ type ScattersmithMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -840,10 +861,11 @@ type ScattersmithMarkerGradient struct { Colorsrc string `json:"colorsrc,omitempty"` // Type + // arrayOK: true // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ScattersmithMarkerGradientType `json:"type,omitempty"` + Type ArrayOK[*ScattersmithMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -938,6 +960,7 @@ type ScattersmithMarker struct { Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref + // arrayOK: false // default: up // type: enumerated // Sets the reference for marker angle. With *previous*, angle 0 points along the line from the previous point to this one. With *up*, angle 0 points toward the top of the screen. @@ -1058,6 +1081,7 @@ type ScattersmithMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1088,10 +1112,11 @@ type ScattersmithMarker struct { Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScattersmithMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScattersmithMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scatterternary_gen.go b/generated/v2.29.1/graph_objects/scatterternary_gen.go index ff03e3f..d971e11 100644 --- a/generated/v2.29.1/graph_objects/scatterternary_gen.go +++ b/generated/v2.29.1/graph_objects/scatterternary_gen.go @@ -76,6 +76,7 @@ type Scatterternary struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Use with `fillcolor` if not *none*. scatterternary has a subset of the options available to scatter. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. @@ -91,7 +92,7 @@ type Scatterternary struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScatterternaryHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScatterternaryHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -254,10 +255,11 @@ type Scatterternary struct { Textfont *ScatterternaryTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScatterternaryTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScatterternaryTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -306,6 +308,7 @@ type Scatterternary struct { Unselected *ScatterternaryUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -356,10 +359,11 @@ type ScatterternaryHoverlabelFont struct { type ScatterternaryHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScatterternaryHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScatterternaryHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -472,6 +476,7 @@ type ScatterternaryLine struct { Dash string `json:"dash,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Determines the line shape. With *spline* the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes. @@ -542,6 +547,7 @@ type ScatterternaryMarkerColorbarTitle struct { Font *ScatterternaryMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -582,6 +588,7 @@ type ScatterternaryMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -600,6 +607,7 @@ type ScatterternaryMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -618,6 +626,7 @@ type ScatterternaryMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -642,6 +651,7 @@ type ScatterternaryMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -654,12 +664,14 @@ type ScatterternaryMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScatterternaryMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -672,6 +684,7 @@ type ScatterternaryMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -712,12 +725,14 @@ type ScatterternaryMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScatterternaryMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -736,6 +751,7 @@ type ScatterternaryMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -748,6 +764,7 @@ type ScatterternaryMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -800,6 +817,7 @@ type ScatterternaryMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -812,6 +830,7 @@ type ScatterternaryMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -824,6 +843,7 @@ type ScatterternaryMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -836,6 +856,7 @@ type ScatterternaryMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -858,10 +879,11 @@ type ScatterternaryMarkerGradient struct { Colorsrc string `json:"colorsrc,omitempty"` // Type + // arrayOK: true // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ScatterternaryMarkerGradientType `json:"type,omitempty"` + Type ArrayOK[*ScatterternaryMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -956,6 +978,7 @@ type ScatterternaryMarker struct { Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref + // arrayOK: false // default: up // type: enumerated // Sets the reference for marker angle. With *previous*, angle 0 points along the line from the previous point to this one. With *up*, angle 0 points toward the top of the screen. @@ -1076,6 +1099,7 @@ type ScatterternaryMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1106,10 +1130,11 @@ type ScatterternaryMarker struct { Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScatterternaryMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScatterternaryMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/splom_gen.go b/generated/v2.29.1/graph_objects/splom_gen.go index 89c37bb..f4ad4e3 100644 --- a/generated/v2.29.1/graph_objects/splom_gen.go +++ b/generated/v2.29.1/graph_objects/splom_gen.go @@ -41,7 +41,7 @@ type Splom struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo SplomHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*SplomHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -212,6 +212,7 @@ type Splom struct { Unselected *SplomUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -296,10 +297,11 @@ type SplomHoverlabelFont struct { type SplomHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align SplomHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*SplomHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -436,6 +438,7 @@ type SplomMarkerColorbarTitle struct { Font *SplomMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -476,6 +479,7 @@ type SplomMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -494,6 +498,7 @@ type SplomMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -512,6 +517,7 @@ type SplomMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -536,6 +542,7 @@ type SplomMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -548,12 +555,14 @@ type SplomMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix SplomMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -566,6 +575,7 @@ type SplomMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -606,12 +616,14 @@ type SplomMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow SplomMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -630,6 +642,7 @@ type SplomMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -642,6 +655,7 @@ type SplomMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -694,6 +708,7 @@ type SplomMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -706,6 +721,7 @@ type SplomMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -718,6 +734,7 @@ type SplomMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -730,6 +747,7 @@ type SplomMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -926,6 +944,7 @@ type SplomMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -944,10 +963,11 @@ type SplomMarker struct { Sizesrc string `json:"sizesrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol SplomMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*SplomMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/streamtube_gen.go b/generated/v2.29.1/graph_objects/streamtube_gen.go index 3968863..13ed0b0 100644 --- a/generated/v2.29.1/graph_objects/streamtube_gen.go +++ b/generated/v2.29.1/graph_objects/streamtube_gen.go @@ -77,7 +77,7 @@ type Streamtube struct { // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo StreamtubeHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*StreamtubeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -272,6 +272,7 @@ type Streamtube struct { Vhoverformat string `json:"vhoverformat,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -408,6 +409,7 @@ type StreamtubeColorbarTitle struct { Font *StreamtubeColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -448,6 +450,7 @@ type StreamtubeColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -466,6 +469,7 @@ type StreamtubeColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -484,6 +488,7 @@ type StreamtubeColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -508,6 +513,7 @@ type StreamtubeColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -520,12 +526,14 @@ type StreamtubeColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix StreamtubeColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -538,6 +546,7 @@ type StreamtubeColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -578,12 +587,14 @@ type StreamtubeColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow StreamtubeColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -602,6 +613,7 @@ type StreamtubeColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -614,6 +626,7 @@ type StreamtubeColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -666,6 +679,7 @@ type StreamtubeColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -678,6 +692,7 @@ type StreamtubeColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -690,6 +705,7 @@ type StreamtubeColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -702,6 +718,7 @@ type StreamtubeColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -752,10 +769,11 @@ type StreamtubeHoverlabelFont struct { type StreamtubeHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align StreamtubeHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*StreamtubeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/sunburst_gen.go b/generated/v2.29.1/graph_objects/sunburst_gen.go index 9cc12aa..b95afd7 100644 --- a/generated/v2.29.1/graph_objects/sunburst_gen.go +++ b/generated/v2.29.1/graph_objects/sunburst_gen.go @@ -16,6 +16,7 @@ type Sunburst struct { Type TraceType `json:"type,omitempty"` // Branchvalues + // arrayOK: false // default: remainder // type: enumerated // Determines how the items in `values` are summed. When set to *total*, items in `values` are taken to be value of all its descendants. When set to *remainder*, items in `values` corresponding to the root and the branches sectors are taken to be the extra part not part of the sum of the values at their leaves. @@ -47,7 +48,7 @@ type Sunburst struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo SunburstHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*SunburstHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -100,6 +101,7 @@ type Sunburst struct { Insidetextfont *SunburstInsidetextfont `json:"insidetextfont,omitempty"` // Insidetextorientation + // arrayOK: false // default: auto // type: enumerated // Controls the orientation of the text inside chart sectors. When set to *auto*, text may be oriented in any direction in order to be as big as possible in the middle of a sector. The *horizontal* option orients text to be parallel with the bottom of the chart, and may make text smaller in order to achieve that goal. The *radial* option orients text along the radius of the sector. The *tangential* option orients text perpendicular to the radius of the sector. @@ -284,6 +286,7 @@ type Sunburst struct { Valuessrc string `json:"valuessrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -362,10 +365,11 @@ type SunburstHoverlabelFont struct { type SunburstHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align SunburstHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*SunburstHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -552,6 +556,7 @@ type SunburstMarkerColorbarTitle struct { Font *SunburstMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -592,6 +597,7 @@ type SunburstMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -610,6 +616,7 @@ type SunburstMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -628,6 +635,7 @@ type SunburstMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -652,6 +660,7 @@ type SunburstMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -664,12 +673,14 @@ type SunburstMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix SunburstMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -682,6 +693,7 @@ type SunburstMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -722,12 +734,14 @@ type SunburstMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow SunburstMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -746,6 +760,7 @@ type SunburstMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -758,6 +773,7 @@ type SunburstMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -810,6 +826,7 @@ type SunburstMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -822,6 +839,7 @@ type SunburstMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -834,6 +852,7 @@ type SunburstMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -846,6 +865,7 @@ type SunburstMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -914,16 +934,18 @@ type SunburstMarkerPattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode SunburstMarkerPatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape SunburstMarkerPatternShape `json:"shape,omitempty"` + Shape ArrayOK[*SunburstMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/surface_gen.go b/generated/v2.29.1/graph_objects/surface_gen.go index 42c4e29..6e1298a 100644 --- a/generated/v2.29.1/graph_objects/surface_gen.go +++ b/generated/v2.29.1/graph_objects/surface_gen.go @@ -93,7 +93,7 @@ type Surface struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo SurfaceHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*SurfaceHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -272,6 +272,7 @@ type Surface struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -284,6 +285,7 @@ type Surface struct { X interface{} `json:"x,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -308,6 +310,7 @@ type Surface struct { Y interface{} `json:"y,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -332,6 +335,7 @@ type Surface struct { Z interface{} `json:"z,omitempty"` // Zcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `z` date data. @@ -402,6 +406,7 @@ type SurfaceColorbarTitle struct { Font *SurfaceColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -442,6 +447,7 @@ type SurfaceColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -460,6 +466,7 @@ type SurfaceColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -478,6 +485,7 @@ type SurfaceColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -502,6 +510,7 @@ type SurfaceColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -514,12 +523,14 @@ type SurfaceColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix SurfaceColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -532,6 +543,7 @@ type SurfaceColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -572,12 +584,14 @@ type SurfaceColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow SurfaceColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -596,6 +610,7 @@ type SurfaceColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -608,6 +623,7 @@ type SurfaceColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -660,6 +676,7 @@ type SurfaceColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -672,6 +689,7 @@ type SurfaceColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -684,6 +702,7 @@ type SurfaceColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -696,6 +715,7 @@ type SurfaceColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -1032,10 +1052,11 @@ type SurfaceHoverlabelFont struct { type SurfaceHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align SurfaceHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*SurfaceHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/table_gen.go b/generated/v2.29.1/graph_objects/table_gen.go index 1475b6b..fe75516 100644 --- a/generated/v2.29.1/graph_objects/table_gen.go +++ b/generated/v2.29.1/graph_objects/table_gen.go @@ -67,7 +67,7 @@ type Table struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo TableHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*TableHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -148,6 +148,7 @@ type Table struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -242,10 +243,11 @@ type TableCellsLine struct { type TableCells struct { // Align + // arrayOK: true // default: center // type: enumerated // Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more
HTML tags) or if an explicit width is set to override the text width. - Align TableCellsAlign `json:"align,omitempty"` + Align ArrayOK[*TableCellsAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -436,10 +438,11 @@ type TableHeaderLine struct { type TableHeader struct { // Align + // arrayOK: true // default: center // type: enumerated // Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more
HTML tags) or if an explicit width is set to override the text width. - Align TableHeaderAlign `json:"align,omitempty"` + Align ArrayOK[*TableHeaderAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -558,10 +561,11 @@ type TableHoverlabelFont struct { type TableHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align TableHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*TableHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/treemap_gen.go b/generated/v2.29.1/graph_objects/treemap_gen.go index 51a2f05..bfe6f4e 100644 --- a/generated/v2.29.1/graph_objects/treemap_gen.go +++ b/generated/v2.29.1/graph_objects/treemap_gen.go @@ -16,6 +16,7 @@ type Treemap struct { Type TraceType `json:"type,omitempty"` // Branchvalues + // arrayOK: false // default: remainder // type: enumerated // Determines how the items in `values` are summed. When set to *total*, items in `values` are taken to be value of all its descendants. When set to *remainder*, items in `values` corresponding to the root and the branches sectors are taken to be the extra part not part of the sum of the values at their leaves. @@ -47,7 +48,7 @@ type Treemap struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo TreemapHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*TreemapHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -224,6 +225,7 @@ type Treemap struct { Textinfo TreemapTextinfo `json:"textinfo,omitempty"` // Textposition + // arrayOK: false // default: top left // type: enumerated // Sets the positions of the `text` elements. @@ -282,6 +284,7 @@ type Treemap struct { Valuessrc string `json:"valuessrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -360,10 +363,11 @@ type TreemapHoverlabelFont struct { type TreemapHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align TreemapHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*TreemapHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -540,6 +544,7 @@ type TreemapMarkerColorbarTitle struct { Font *TreemapMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -580,6 +585,7 @@ type TreemapMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -598,6 +604,7 @@ type TreemapMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -616,6 +623,7 @@ type TreemapMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -640,6 +648,7 @@ type TreemapMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -652,12 +661,14 @@ type TreemapMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix TreemapMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -670,6 +681,7 @@ type TreemapMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -710,12 +722,14 @@ type TreemapMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow TreemapMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -734,6 +748,7 @@ type TreemapMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -746,6 +761,7 @@ type TreemapMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -798,6 +814,7 @@ type TreemapMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -810,6 +827,7 @@ type TreemapMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -822,6 +840,7 @@ type TreemapMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -834,6 +853,7 @@ type TreemapMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -930,16 +950,18 @@ type TreemapMarkerPattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode TreemapMarkerPatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape TreemapMarkerPatternShape `json:"shape,omitempty"` + Shape ArrayOK[*TreemapMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -1040,6 +1062,7 @@ type TreemapMarker struct { Cornerradius float64 `json:"cornerradius,omitempty"` // Depthfade + // arrayOK: false // default: %!s() // type: enumerated // Determines if the sector colors are faded towards the background from the leaves up to the headers. This option is unavailable when a `colorscale` is present, defaults to false when `marker.colors` is set, but otherwise defaults to true. When set to *reversed*, the fading direction is inverted, that is the top elements within hierarchy are drawn with fully saturated colors while the leaves are faded towards the background color. @@ -1154,12 +1177,14 @@ type TreemapPathbarTextfont struct { type TreemapPathbar struct { // Edgeshape + // arrayOK: false // default: > // type: enumerated // Determines which shape is used for edges between `barpath` labels. Edgeshape TreemapPathbarEdgeshape `json:"edgeshape,omitempty"` // Side + // arrayOK: false // default: top // type: enumerated // Determines on which side of the the treemap the `pathbar` should be presented. @@ -1258,6 +1283,7 @@ type TreemapTiling struct { Flip TreemapTilingFlip `json:"flip,omitempty"` // Packing + // arrayOK: false // default: squarify // type: enumerated // Determines d3 treemap solver. For more info please refer to https://github.com/d3/d3-hierarchy#treemap-tiling diff --git a/generated/v2.29.1/graph_objects/violin_gen.go b/generated/v2.29.1/graph_objects/violin_gen.go index ab05fa0..7662bdc 100644 --- a/generated/v2.29.1/graph_objects/violin_gen.go +++ b/generated/v2.29.1/graph_objects/violin_gen.go @@ -53,7 +53,7 @@ type Violin struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ViolinHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ViolinHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -184,6 +184,7 @@ type Violin struct { Opacity float64 `json:"opacity,omitempty"` // Orientation + // arrayOK: false // default: %!s() // type: enumerated // Sets the orientation of the violin(s). If *v* (*h*), the distribution is visualized along the vertical (horizontal). @@ -196,12 +197,14 @@ type Violin struct { Pointpos float64 `json:"pointpos,omitempty"` // Points + // arrayOK: false // default: %!s() // type: enumerated // If *outliers*, only the sample points lying outside the whiskers are shown If *suspectedoutliers*, the outlier points are shown and points either less than 4*Q1-3*Q3 or greater than 4*Q3-3*Q1 are highlighted (see `outliercolor`) If *all*, all sample points are shown If *false*, only the violins are shown with no sample points. Defaults to *suspectedoutliers* when `marker.outliercolor` or `marker.line.outliercolor` is set, otherwise defaults to *outliers*. Points ViolinPoints `json:"points,omitempty"` // Quartilemethod + // arrayOK: false // default: linear // type: enumerated // Sets the method used to compute the sample's Q1 and Q3 quartiles. The *linear* method uses the 25th percentile for Q1 and 75th percentile for Q3 as computed using method #10 (listed on http://jse.amstat.org/v14n3/langford.html). The *exclusive* method uses the median to divide the ordered dataset into two halves if the sample is odd, it does not include the median in either half - Q1 is then the median of the lower half and Q3 the median of the upper half. The *inclusive* method also uses the median to divide the ordered dataset into two halves but if the sample is odd, it includes the median in both halves - Q1 is then the median of the lower half and Q3 the median of the upper half. @@ -214,6 +217,7 @@ type Violin struct { Scalegroup string `json:"scalegroup,omitempty"` // Scalemode + // arrayOK: false // default: width // type: enumerated // Sets the metric by which the width of each violin is determined. *width* means each violin has the same (max) width *count* means the violins are scaled by the number of sample points making up each violin. @@ -236,6 +240,7 @@ type Violin struct { Showlegend Bool `json:"showlegend,omitempty"` // Side + // arrayOK: false // default: both // type: enumerated // Determines on which side of the position value the density function making up one half of a violin is plotted. Useful when comparing two violin traces under *overlay* mode, where one trace has `side` set to *positive* and the other to *negative*. @@ -248,6 +253,7 @@ type Violin struct { Span interface{} `json:"span,omitempty"` // Spanmode + // arrayOK: false // default: soft // type: enumerated // Sets the method by which the span in data space where the density function will be computed. *soft* means the span goes from the sample's minimum value minus two bandwidths to the sample's maximum value plus two bandwidths. *hard* means the span goes from the sample's minimum to its maximum value. For custom span settings, use mode *manual* and fill in the `span` attribute. @@ -292,6 +298,7 @@ type Violin struct { Unselected *ViolinUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -450,10 +457,11 @@ type ViolinHoverlabelFont struct { type ViolinHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ViolinHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ViolinHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -620,6 +628,7 @@ type ViolinMarker struct { Size float64 `json:"size,omitempty"` // Symbol + // arrayOK: false // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. diff --git a/generated/v2.29.1/graph_objects/volume_gen.go b/generated/v2.29.1/graph_objects/volume_gen.go index 2e026a3..fc58df2 100644 --- a/generated/v2.29.1/graph_objects/volume_gen.go +++ b/generated/v2.29.1/graph_objects/volume_gen.go @@ -91,7 +91,7 @@ type Volume struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo VolumeHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*VolumeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -300,6 +300,7 @@ type Volume struct { Valuesrc string `json:"valuesrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -476,6 +477,7 @@ type VolumeColorbarTitle struct { Font *VolumeColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -516,6 +518,7 @@ type VolumeColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -534,6 +537,7 @@ type VolumeColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -552,6 +556,7 @@ type VolumeColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -576,6 +581,7 @@ type VolumeColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -588,12 +594,14 @@ type VolumeColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix VolumeColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -606,6 +614,7 @@ type VolumeColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -646,12 +655,14 @@ type VolumeColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow VolumeColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -670,6 +681,7 @@ type VolumeColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -682,6 +694,7 @@ type VolumeColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -734,6 +747,7 @@ type VolumeColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -746,6 +760,7 @@ type VolumeColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -758,6 +773,7 @@ type VolumeColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -770,6 +786,7 @@ type VolumeColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -842,10 +859,11 @@ type VolumeHoverlabelFont struct { type VolumeHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align VolumeHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*VolumeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/waterfall_gen.go b/generated/v2.29.1/graph_objects/waterfall_gen.go index 5b51f15..91aad4f 100644 --- a/generated/v2.29.1/graph_objects/waterfall_gen.go +++ b/generated/v2.29.1/graph_objects/waterfall_gen.go @@ -38,6 +38,7 @@ type Waterfall struct { Connector *WaterfallConnector `json:"connector,omitempty"` // Constraintext + // arrayOK: false // default: both // type: enumerated // Constrain the size of text inside or outside a bar to be no larger than the bar itself. @@ -75,7 +76,7 @@ type Waterfall struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo WaterfallHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*WaterfallHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -128,6 +129,7 @@ type Waterfall struct { Increasing *WaterfallIncreasing `json:"increasing,omitempty"` // Insidetextanchor + // arrayOK: false // default: end // type: enumerated // Determines if texts are kept at center or start/end points in `textposition` *inside* mode. @@ -220,6 +222,7 @@ type Waterfall struct { Opacity float64 `json:"opacity,omitempty"` // Orientation + // arrayOK: false // default: %!s() // type: enumerated // Sets the orientation of the bars. With *v* (*h*), the value of the each bar spans along the vertical (horizontal). @@ -268,10 +271,11 @@ type Waterfall struct { Textinfo WaterfallTextinfo `json:"textinfo,omitempty"` // Textposition + // arrayOK: true // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition WaterfallTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*WaterfallTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -320,6 +324,7 @@ type Waterfall struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -374,6 +379,7 @@ type Waterfall struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -422,6 +428,7 @@ type Waterfall struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -464,6 +471,7 @@ type WaterfallConnector struct { Line *WaterfallConnectorLine `json:"line,omitempty"` // Mode + // arrayOK: false // default: between // type: enumerated // Sets the shape of connector lines. @@ -558,10 +566,11 @@ type WaterfallHoverlabelFont struct { type WaterfallHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align WaterfallHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*WaterfallHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/bar_gen.go b/generated/v2.31.1/graph_objects/bar_gen.go index 1239ce3..ca5dfdd 100644 --- a/generated/v2.31.1/graph_objects/bar_gen.go +++ b/generated/v2.31.1/graph_objects/bar_gen.go @@ -40,6 +40,7 @@ type Bar struct { Cliponaxis Bool `json:"cliponaxis,omitempty"` // Constraintext + // arrayOK: false // default: both // type: enumerated // Constrain the size of text inside or outside a bar to be no larger than the bar itself. @@ -81,7 +82,7 @@ type Bar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo BarHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*BarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -130,6 +131,7 @@ type Bar struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextanchor + // arrayOK: false // default: end // type: enumerated // Determines if texts are kept at center or start/end points in `textposition` *inside* mode. @@ -214,6 +216,7 @@ type Bar struct { Opacity float64 `json:"opacity,omitempty"` // Orientation + // arrayOK: false // default: %!s() // type: enumerated // Sets the orientation of the bars. With *v* (*h*), the value of the each bar spans along the vertical (horizontal). @@ -260,10 +263,11 @@ type Bar struct { Textfont *BarTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition BarTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*BarTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -312,6 +316,7 @@ type Bar struct { Unselected *BarUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -348,6 +353,7 @@ type Bar struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -372,6 +378,7 @@ type Bar struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -402,6 +409,7 @@ type Bar struct { Yaxis String `json:"yaxis,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -426,6 +434,7 @@ type Bar struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -508,6 +517,7 @@ type BarErrorX struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -596,6 +606,7 @@ type BarErrorY struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -670,10 +681,11 @@ type BarHoverlabelFont struct { type BarHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align BarHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*BarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -850,6 +862,7 @@ type BarMarkerColorbarTitle struct { Font *BarMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -890,6 +903,7 @@ type BarMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -908,6 +922,7 @@ type BarMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -926,6 +941,7 @@ type BarMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -950,6 +966,7 @@ type BarMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -962,12 +979,14 @@ type BarMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix BarMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -980,6 +999,7 @@ type BarMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -1020,12 +1040,14 @@ type BarMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow BarMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -1044,6 +1066,7 @@ type BarMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -1056,6 +1079,7 @@ type BarMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -1108,6 +1132,7 @@ type BarMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -1120,6 +1145,7 @@ type BarMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -1132,6 +1158,7 @@ type BarMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -1144,6 +1171,7 @@ type BarMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -1260,16 +1288,18 @@ type BarMarkerPattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode BarMarkerPatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape BarMarkerPatternShape `json:"shape,omitempty"` + Shape ArrayOK[*BarMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/barpolar_gen.go b/generated/v2.31.1/graph_objects/barpolar_gen.go index 06a0eb9..0522253 100644 --- a/generated/v2.31.1/graph_objects/barpolar_gen.go +++ b/generated/v2.31.1/graph_objects/barpolar_gen.go @@ -55,7 +55,7 @@ type Barpolar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo BarpolarHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*BarpolarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -246,6 +246,7 @@ type Barpolar struct { Thetasrc string `json:"thetasrc,omitempty"` // Thetaunit + // arrayOK: false // default: degrees // type: enumerated // Sets the unit of input *theta* values. Has an effect only when on *linear* angular axes. @@ -274,6 +275,7 @@ type Barpolar struct { Unselected *BarpolarUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -336,10 +338,11 @@ type BarpolarHoverlabelFont struct { type BarpolarHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align BarpolarHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*BarpolarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -476,6 +479,7 @@ type BarpolarMarkerColorbarTitle struct { Font *BarpolarMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -516,6 +520,7 @@ type BarpolarMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -534,6 +539,7 @@ type BarpolarMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -552,6 +558,7 @@ type BarpolarMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -576,6 +583,7 @@ type BarpolarMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -588,12 +596,14 @@ type BarpolarMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix BarpolarMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -606,6 +616,7 @@ type BarpolarMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -646,12 +657,14 @@ type BarpolarMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow BarpolarMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -670,6 +683,7 @@ type BarpolarMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -682,6 +696,7 @@ type BarpolarMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -734,6 +749,7 @@ type BarpolarMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -746,6 +762,7 @@ type BarpolarMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -758,6 +775,7 @@ type BarpolarMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -770,6 +788,7 @@ type BarpolarMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -886,16 +905,18 @@ type BarpolarMarkerPattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode BarpolarMarkerPatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape BarpolarMarkerPatternShape `json:"shape,omitempty"` + Shape ArrayOK[*BarpolarMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/box_gen.go b/generated/v2.31.1/graph_objects/box_gen.go index c7e2cc9..5e7c2ee 100644 --- a/generated/v2.31.1/graph_objects/box_gen.go +++ b/generated/v2.31.1/graph_objects/box_gen.go @@ -22,12 +22,14 @@ type Box struct { Alignmentgroup string `json:"alignmentgroup,omitempty"` // Boxmean + // arrayOK: false // default: %!s() // type: enumerated // If *true*, the mean of the box(es)' underlying distribution is drawn as a dashed line inside the box(es). If *sd* the standard deviation is also drawn. Defaults to *true* when `mean` is set. Defaults to *sd* when `sd` is set Otherwise defaults to *false*. Boxmean BoxBoxmean `json:"boxmean,omitempty"` // Boxpoints + // arrayOK: false // default: %!s() // type: enumerated // If *outliers*, only the sample points lying outside the whiskers are shown If *suspectedoutliers*, the outlier points are shown and points either less than 4*Q1-3*Q3 or greater than 4*Q3-3*Q1 are highlighted (see `outliercolor`) If *all*, all sample points are shown If *false*, only the box(es) are shown with no sample points Defaults to *suspectedoutliers* when `marker.outliercolor` or `marker.line.outliercolor` is set. Defaults to *all* under the q1/median/q3 signature. Otherwise defaults to *outliers*. @@ -67,7 +69,7 @@ type Box struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo BoxHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*BoxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -254,6 +256,7 @@ type Box struct { Opacity float64 `json:"opacity,omitempty"` // Orientation + // arrayOK: false // default: %!s() // type: enumerated // Sets the orientation of the box(es). If *v* (*h*), the distribution is visualized along the vertical (horizontal). @@ -290,6 +293,7 @@ type Box struct { Q3src string `json:"q3src,omitempty"` // Quartilemethod + // arrayOK: false // default: linear // type: enumerated // Sets the method used to compute the sample's Q1 and Q3 quartiles. The *linear* method uses the 25th percentile for Q1 and 75th percentile for Q3 as computed using method #10 (listed on http://jse.amstat.org/v14n3/langford.html). The *exclusive* method uses the median to divide the ordered dataset into two halves if the sample is odd, it does not include the median in either half - Q1 is then the median of the lower half and Q3 the median of the upper half. The *inclusive* method also uses the median to divide the ordered dataset into two halves but if the sample is odd, it includes the median in both halves - Q1 is then the median of the lower half and Q3 the median of the upper half. @@ -336,6 +340,7 @@ type Box struct { Showwhiskers Bool `json:"showwhiskers,omitempty"` // Sizemode + // arrayOK: false // default: quartiles // type: enumerated // Sets the upper and lower bound for the boxes quartiles means box is drawn between Q1 and Q3 SD means the box is drawn between Mean +- Standard Deviation Argument sdmultiple (default 1) to scale the box size So it could be drawn 1-stddev, 3-stddev etc @@ -392,6 +397,7 @@ type Box struct { Upperfencesrc string `json:"upperfencesrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -428,6 +434,7 @@ type Box struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -452,6 +459,7 @@ type Box struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -482,6 +490,7 @@ type Box struct { Yaxis String `json:"yaxis,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -506,6 +515,7 @@ type Box struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -568,10 +578,11 @@ type BoxHoverlabelFont struct { type BoxHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align BoxHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*BoxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -738,6 +749,7 @@ type BoxMarker struct { Size float64 `json:"size,omitempty"` // Symbol + // arrayOK: false // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. diff --git a/generated/v2.31.1/graph_objects/candlestick_gen.go b/generated/v2.31.1/graph_objects/candlestick_gen.go index 913e4cf..dad13ca 100644 --- a/generated/v2.31.1/graph_objects/candlestick_gen.go +++ b/generated/v2.31.1/graph_objects/candlestick_gen.go @@ -59,7 +59,7 @@ type Candlestick struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo CandlestickHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*CandlestickHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -226,6 +226,7 @@ type Candlestick struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -250,6 +251,7 @@ type Candlestick struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -274,6 +276,7 @@ type Candlestick struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -378,10 +381,11 @@ type CandlestickHoverlabelFont struct { type CandlestickHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align CandlestickHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*CandlestickHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/carpet_gen.go b/generated/v2.31.1/graph_objects/carpet_gen.go index 35d4531..1786849 100644 --- a/generated/v2.31.1/graph_objects/carpet_gen.go +++ b/generated/v2.31.1/graph_objects/carpet_gen.go @@ -180,6 +180,7 @@ type Carpet struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -308,12 +309,14 @@ type CarpetAaxis struct { Arraytick0 int64 `json:"arraytick0,omitempty"` // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided, then `autorange` is set to *false*. Autorange CarpetAaxisAutorange `json:"autorange,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. @@ -332,12 +335,14 @@ type CarpetAaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Categoryorder CarpetAaxisCategoryorder `json:"categoryorder,omitempty"` // Cheatertype + // arrayOK: false // default: value // type: enumerated // @@ -374,6 +379,7 @@ type CarpetAaxis struct { Endlinewidth float64 `json:"endlinewidth,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -482,6 +488,7 @@ type CarpetAaxis struct { Range interface{} `json:"range,omitempty"` // Rangemode + // arrayOK: false // default: normal // type: enumerated // If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. @@ -494,6 +501,7 @@ type CarpetAaxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -512,18 +520,21 @@ type CarpetAaxis struct { Showline Bool `json:"showline,omitempty"` // Showticklabels + // arrayOK: false // default: start // type: enumerated // Determines whether axis labels are drawn on the low side, the high side, both, or neither side of the axis. Showticklabels CarpetAaxisShowticklabels `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix CarpetAaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -582,6 +593,7 @@ type CarpetAaxis struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Tickmode + // arrayOK: false // default: array // type: enumerated // @@ -628,6 +640,7 @@ type CarpetAaxis struct { Title *CarpetAaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. @@ -714,12 +727,14 @@ type CarpetBaxis struct { Arraytick0 int64 `json:"arraytick0,omitempty"` // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided, then `autorange` is set to *false*. Autorange CarpetBaxisAutorange `json:"autorange,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. @@ -738,12 +753,14 @@ type CarpetBaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Categoryorder CarpetBaxisCategoryorder `json:"categoryorder,omitempty"` // Cheatertype + // arrayOK: false // default: value // type: enumerated // @@ -780,6 +797,7 @@ type CarpetBaxis struct { Endlinewidth float64 `json:"endlinewidth,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -888,6 +906,7 @@ type CarpetBaxis struct { Range interface{} `json:"range,omitempty"` // Rangemode + // arrayOK: false // default: normal // type: enumerated // If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. @@ -900,6 +919,7 @@ type CarpetBaxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -918,18 +938,21 @@ type CarpetBaxis struct { Showline Bool `json:"showline,omitempty"` // Showticklabels + // arrayOK: false // default: start // type: enumerated // Determines whether axis labels are drawn on the low side, the high side, both, or neither side of the axis. Showticklabels CarpetBaxisShowticklabels `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix CarpetBaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -988,6 +1011,7 @@ type CarpetBaxis struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Tickmode + // arrayOK: false // default: array // type: enumerated // @@ -1034,6 +1058,7 @@ type CarpetBaxis struct { Title *CarpetBaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. diff --git a/generated/v2.31.1/graph_objects/choropleth_gen.go b/generated/v2.31.1/graph_objects/choropleth_gen.go index 75ee700..bdc1b79 100644 --- a/generated/v2.31.1/graph_objects/choropleth_gen.go +++ b/generated/v2.31.1/graph_objects/choropleth_gen.go @@ -71,7 +71,7 @@ type Choropleth struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ChoroplethHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ChoroplethHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -148,6 +148,7 @@ type Choropleth struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Locationmode + // arrayOK: false // default: ISO-3 // type: enumerated // Determines the set of locations used to match entries in `locations` to regions on the map. Values *ISO-3*, *USA-states*, *country names* correspond to features on the base map and value *geojson-id* corresponds to features from a custom GeoJSON linked to the `geojson` attribute. @@ -254,6 +255,7 @@ type Choropleth struct { Unselected *ChoroplethUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -348,6 +350,7 @@ type ChoroplethColorbarTitle struct { Font *ChoroplethColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -388,6 +391,7 @@ type ChoroplethColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -406,6 +410,7 @@ type ChoroplethColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -424,6 +429,7 @@ type ChoroplethColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -448,6 +454,7 @@ type ChoroplethColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -460,12 +467,14 @@ type ChoroplethColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ChoroplethColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -478,6 +487,7 @@ type ChoroplethColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -518,12 +528,14 @@ type ChoroplethColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ChoroplethColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -542,6 +554,7 @@ type ChoroplethColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -554,6 +567,7 @@ type ChoroplethColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -606,6 +620,7 @@ type ChoroplethColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -618,6 +633,7 @@ type ChoroplethColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -630,6 +646,7 @@ type ChoroplethColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -642,6 +659,7 @@ type ChoroplethColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -692,10 +710,11 @@ type ChoroplethHoverlabelFont struct { type ChoroplethHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ChoroplethHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ChoroplethHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/choroplethmapbox_gen.go b/generated/v2.31.1/graph_objects/choroplethmapbox_gen.go index 1d2e9f7..32cc04d 100644 --- a/generated/v2.31.1/graph_objects/choroplethmapbox_gen.go +++ b/generated/v2.31.1/graph_objects/choroplethmapbox_gen.go @@ -71,7 +71,7 @@ type Choroplethmapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ChoroplethmapboxHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ChoroplethmapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -254,6 +254,7 @@ type Choroplethmapbox struct { Unselected *ChoroplethmapboxUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -348,6 +349,7 @@ type ChoroplethmapboxColorbarTitle struct { Font *ChoroplethmapboxColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -388,6 +390,7 @@ type ChoroplethmapboxColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -406,6 +409,7 @@ type ChoroplethmapboxColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -424,6 +428,7 @@ type ChoroplethmapboxColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -448,6 +453,7 @@ type ChoroplethmapboxColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -460,12 +466,14 @@ type ChoroplethmapboxColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ChoroplethmapboxColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -478,6 +486,7 @@ type ChoroplethmapboxColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -518,12 +527,14 @@ type ChoroplethmapboxColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ChoroplethmapboxColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -542,6 +553,7 @@ type ChoroplethmapboxColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -554,6 +566,7 @@ type ChoroplethmapboxColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -606,6 +619,7 @@ type ChoroplethmapboxColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -618,6 +632,7 @@ type ChoroplethmapboxColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -630,6 +645,7 @@ type ChoroplethmapboxColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -642,6 +658,7 @@ type ChoroplethmapboxColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -692,10 +709,11 @@ type ChoroplethmapboxHoverlabelFont struct { type ChoroplethmapboxHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ChoroplethmapboxHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ChoroplethmapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/cone_gen.go b/generated/v2.31.1/graph_objects/cone_gen.go index 4d89fe7..afd6189 100644 --- a/generated/v2.31.1/graph_objects/cone_gen.go +++ b/generated/v2.31.1/graph_objects/cone_gen.go @@ -16,6 +16,7 @@ type Cone struct { Type TraceType `json:"type,omitempty"` // Anchor + // arrayOK: false // default: cm // type: enumerated // Sets the cones' anchor with respect to their x/y/z positions. Note that *cm* denote the cone's center of mass which corresponds to 1/4 from the tail to tip. @@ -83,7 +84,7 @@ type Cone struct { // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ConeHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ConeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -216,6 +217,7 @@ type Cone struct { Showscale Bool `json:"showscale,omitempty"` // Sizemode + // arrayOK: false // default: scaled // type: enumerated // Determines whether `sizeref` is set as a *scaled* (i.e unitless) scalar (normalized by the max u/v/w norm in the vector field) or as *absolute* value (in the same units as the vector field). To display sizes in actual vector length use *raw*. @@ -286,6 +288,7 @@ type Cone struct { Vhoverformat string `json:"vhoverformat,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -422,6 +425,7 @@ type ConeColorbarTitle struct { Font *ConeColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -462,6 +466,7 @@ type ConeColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -480,6 +485,7 @@ type ConeColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -498,6 +504,7 @@ type ConeColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -522,6 +529,7 @@ type ConeColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -534,12 +542,14 @@ type ConeColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ConeColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -552,6 +562,7 @@ type ConeColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -592,12 +603,14 @@ type ConeColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ConeColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -616,6 +629,7 @@ type ConeColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -628,6 +642,7 @@ type ConeColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -680,6 +695,7 @@ type ConeColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -692,6 +708,7 @@ type ConeColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -704,6 +721,7 @@ type ConeColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -716,6 +734,7 @@ type ConeColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -766,10 +785,11 @@ type ConeHoverlabelFont struct { type ConeHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ConeHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ConeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/config_gen.go b/generated/v2.31.1/graph_objects/config_gen.go index 2b9e074..d6486c9 100644 --- a/generated/v2.31.1/graph_objects/config_gen.go +++ b/generated/v2.31.1/graph_objects/config_gen.go @@ -10,6 +10,7 @@ type Config struct { Autosizable Bool `json:"autosizable,omitempty"` // DisplayModeBar + // arrayOK: false // default: hover // type: enumerated // Determines the mode bar display mode. If *true*, the mode bar is always visible. If *false*, the mode bar is always hidden. If *hover*, the mode bar is visible while the mouse cursor is on the graph container. @@ -22,6 +23,7 @@ type Config struct { Displaylogo Bool `json:"displaylogo,omitempty"` // DoubleClick + // arrayOK: false // default: reset+autosize // type: enumerated // Sets the double click interaction mode. Has an effect only in cartesian plots. If *false*, double click is disable. If *reset*, double click resets the axis ranges to their initial values. If *autosize*, double click set the axis ranges to their autorange values. If *reset+autosize*, the odd double clicks resets the axis ranges to their initial values and even double clicks set the axis ranges to their autorange values. diff --git a/generated/v2.31.1/graph_objects/contour_gen.go b/generated/v2.31.1/graph_objects/contour_gen.go index 79e46ed..794b2f2 100644 --- a/generated/v2.31.1/graph_objects/contour_gen.go +++ b/generated/v2.31.1/graph_objects/contour_gen.go @@ -87,7 +87,7 @@ type Contour struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ContourHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ContourHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -272,6 +272,7 @@ type Contour struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -296,6 +297,7 @@ type Contour struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -320,6 +322,7 @@ type Contour struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -332,6 +335,7 @@ type Contour struct { Xsrc string `json:"xsrc,omitempty"` // Xtype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's x coordinates are given by *x* (the default behavior when `x` is provided). If *scaled*, the heatmap's x coordinates are given by *x0* and *dx* (the default behavior when `x` is not provided). @@ -356,6 +360,7 @@ type Contour struct { Yaxis String `json:"yaxis,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -380,6 +385,7 @@ type Contour struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -392,6 +398,7 @@ type Contour struct { Ysrc string `json:"ysrc,omitempty"` // Ytype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's y coordinates are given by *y* (the default behavior when `y` is provided) If *scaled*, the heatmap's y coordinates are given by *y0* and *dy* (the default behavior when `y` is not provided) @@ -498,6 +505,7 @@ type ContourColorbarTitle struct { Font *ContourColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -538,6 +546,7 @@ type ContourColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -556,6 +565,7 @@ type ContourColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -574,6 +584,7 @@ type ContourColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -598,6 +609,7 @@ type ContourColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -610,12 +622,14 @@ type ContourColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ContourColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -628,6 +642,7 @@ type ContourColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -668,12 +683,14 @@ type ContourColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ContourColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -692,6 +709,7 @@ type ContourColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -704,6 +722,7 @@ type ContourColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -756,6 +775,7 @@ type ContourColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -768,6 +788,7 @@ type ContourColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -780,6 +801,7 @@ type ContourColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -792,6 +814,7 @@ type ContourColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -824,6 +847,7 @@ type ContourContoursLabelfont struct { type ContourContours struct { // Coloring + // arrayOK: false // default: fill // type: enumerated // Determines the coloring method showing the contour values. If *fill*, coloring is done evenly between each contour level If *heatmap*, a heatmap gradient coloring is applied between each contour level. If *lines*, coloring is done on the contour lines. If *none*, no coloring is applied on this trace. @@ -846,6 +870,7 @@ type ContourContours struct { Labelformat string `json:"labelformat,omitempty"` // Operation + // arrayOK: false // default: = // type: enumerated // Sets the constraint operation. *=* keeps regions equal to `value` *<* and *<=* keep regions less than `value` *>* and *>=* keep regions greater than `value` *[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]` *][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. @@ -876,6 +901,7 @@ type ContourContours struct { Start float64 `json:"start,omitempty"` // Type + // arrayOK: false // default: levels // type: enumerated // If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. @@ -932,10 +958,11 @@ type ContourHoverlabelFont struct { type ContourHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ContourHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ContourHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/contourcarpet_gen.go b/generated/v2.31.1/graph_objects/contourcarpet_gen.go index 84365f6..4d40c11 100644 --- a/generated/v2.31.1/graph_objects/contourcarpet_gen.go +++ b/generated/v2.31.1/graph_objects/contourcarpet_gen.go @@ -34,6 +34,7 @@ type Contourcarpet struct { Asrc string `json:"asrc,omitempty"` // Atype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's x coordinates are given by *x* (the default behavior when `x` is provided). If *scaled*, the heatmap's x coordinates are given by *x0* and *dx* (the default behavior when `x` is not provided). @@ -70,6 +71,7 @@ type Contourcarpet struct { Bsrc string `json:"bsrc,omitempty"` // Btype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's y coordinates are given by *y* (the default behavior when `y` is provided) If *scaled*, the heatmap's y coordinates are given by *y0* and *dy* (the default behavior when `y` is not provided) @@ -270,6 +272,7 @@ type Contourcarpet struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -382,6 +385,7 @@ type ContourcarpetColorbarTitle struct { Font *ContourcarpetColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -422,6 +426,7 @@ type ContourcarpetColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -440,6 +445,7 @@ type ContourcarpetColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -458,6 +464,7 @@ type ContourcarpetColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -482,6 +489,7 @@ type ContourcarpetColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -494,12 +502,14 @@ type ContourcarpetColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ContourcarpetColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -512,6 +522,7 @@ type ContourcarpetColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -552,12 +563,14 @@ type ContourcarpetColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ContourcarpetColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -576,6 +589,7 @@ type ContourcarpetColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -588,6 +602,7 @@ type ContourcarpetColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -640,6 +655,7 @@ type ContourcarpetColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -652,6 +668,7 @@ type ContourcarpetColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -664,6 +681,7 @@ type ContourcarpetColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -676,6 +694,7 @@ type ContourcarpetColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -708,6 +727,7 @@ type ContourcarpetContoursLabelfont struct { type ContourcarpetContours struct { // Coloring + // arrayOK: false // default: fill // type: enumerated // Determines the coloring method showing the contour values. If *fill*, coloring is done evenly between each contour level If *lines*, coloring is done on the contour lines. If *none*, no coloring is applied on this trace. @@ -730,6 +750,7 @@ type ContourcarpetContours struct { Labelformat string `json:"labelformat,omitempty"` // Operation + // arrayOK: false // default: = // type: enumerated // Sets the constraint operation. *=* keeps regions equal to `value` *<* and *<=* keep regions less than `value` *>* and *>=* keep regions greater than `value` *[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]` *][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. @@ -760,6 +781,7 @@ type ContourcarpetContours struct { Start float64 `json:"start,omitempty"` // Type + // arrayOK: false // default: levels // type: enumerated // If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. diff --git a/generated/v2.31.1/graph_objects/densitymapbox_gen.go b/generated/v2.31.1/graph_objects/densitymapbox_gen.go index 43cdb3c..f0fd283 100644 --- a/generated/v2.31.1/graph_objects/densitymapbox_gen.go +++ b/generated/v2.31.1/graph_objects/densitymapbox_gen.go @@ -59,7 +59,7 @@ type Densitymapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo DensitymapboxHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*DensitymapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -254,6 +254,7 @@ type Densitymapbox struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -348,6 +349,7 @@ type DensitymapboxColorbarTitle struct { Font *DensitymapboxColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -388,6 +390,7 @@ type DensitymapboxColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -406,6 +409,7 @@ type DensitymapboxColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -424,6 +428,7 @@ type DensitymapboxColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -448,6 +453,7 @@ type DensitymapboxColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -460,12 +466,14 @@ type DensitymapboxColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix DensitymapboxColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -478,6 +486,7 @@ type DensitymapboxColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -518,12 +527,14 @@ type DensitymapboxColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow DensitymapboxColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -542,6 +553,7 @@ type DensitymapboxColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -554,6 +566,7 @@ type DensitymapboxColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -606,6 +619,7 @@ type DensitymapboxColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -618,6 +632,7 @@ type DensitymapboxColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -630,6 +645,7 @@ type DensitymapboxColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -642,6 +658,7 @@ type DensitymapboxColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -692,10 +709,11 @@ type DensitymapboxHoverlabelFont struct { type DensitymapboxHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align DensitymapboxHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*DensitymapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/funnel_gen.go b/generated/v2.31.1/graph_objects/funnel_gen.go index 3361ba8..b1f2976 100644 --- a/generated/v2.31.1/graph_objects/funnel_gen.go +++ b/generated/v2.31.1/graph_objects/funnel_gen.go @@ -32,6 +32,7 @@ type Funnel struct { Connector *FunnelConnector `json:"connector,omitempty"` // Constraintext + // arrayOK: false // default: both // type: enumerated // Constrain the size of text inside or outside a bar to be no larger than the bar itself. @@ -65,7 +66,7 @@ type Funnel struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo FunnelHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*FunnelHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -114,6 +115,7 @@ type Funnel struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextanchor + // arrayOK: false // default: middle // type: enumerated // Determines if texts are kept at center or start/end points in `textposition` *inside* mode. @@ -192,6 +194,7 @@ type Funnel struct { Opacity float64 `json:"opacity,omitempty"` // Orientation + // arrayOK: false // default: %!s() // type: enumerated // Sets the orientation of the funnels. With *v* (*h*), the value of the each bar spans along the vertical (horizontal). By default funnels are tend to be oriented horizontally; unless only *y* array is presented or orientation is set to *v*. Also regarding graphs including only 'horizontal' funnels, *autorange* on the *y-axis* are set to *reversed*. @@ -240,10 +243,11 @@ type Funnel struct { Textinfo FunnelTextinfo `json:"textinfo,omitempty"` // Textposition + // arrayOK: true // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition FunnelTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*FunnelTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -288,6 +292,7 @@ type Funnel struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -336,6 +341,7 @@ type Funnel struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -384,6 +390,7 @@ type Funnel struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -488,10 +495,11 @@ type FunnelHoverlabelFont struct { type FunnelHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align FunnelHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*FunnelHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -668,6 +676,7 @@ type FunnelMarkerColorbarTitle struct { Font *FunnelMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -708,6 +717,7 @@ type FunnelMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -726,6 +736,7 @@ type FunnelMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -744,6 +755,7 @@ type FunnelMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -768,6 +780,7 @@ type FunnelMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -780,12 +793,14 @@ type FunnelMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix FunnelMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -798,6 +813,7 @@ type FunnelMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -838,12 +854,14 @@ type FunnelMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow FunnelMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -862,6 +880,7 @@ type FunnelMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -874,6 +893,7 @@ type FunnelMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -926,6 +946,7 @@ type FunnelMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -938,6 +959,7 @@ type FunnelMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -950,6 +972,7 @@ type FunnelMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -962,6 +985,7 @@ type FunnelMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. diff --git a/generated/v2.31.1/graph_objects/funnelarea_gen.go b/generated/v2.31.1/graph_objects/funnelarea_gen.go index dc81295..00b4758 100644 --- a/generated/v2.31.1/graph_objects/funnelarea_gen.go +++ b/generated/v2.31.1/graph_objects/funnelarea_gen.go @@ -53,7 +53,7 @@ type Funnelarea struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo FunnelareaHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*FunnelareaHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -212,10 +212,11 @@ type Funnelarea struct { Textinfo FunnelareaTextinfo `json:"textinfo,omitempty"` // Textposition + // arrayOK: true // default: inside // type: enumerated // Specifies the location of the `textinfo`. - Textposition FunnelareaTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*FunnelareaTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -276,6 +277,7 @@ type Funnelarea struct { Valuessrc string `json:"valuessrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -354,10 +356,11 @@ type FunnelareaHoverlabelFont struct { type FunnelareaHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align FunnelareaHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*FunnelareaHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -544,16 +547,18 @@ type FunnelareaMarkerPattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode FunnelareaMarkerPatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape FunnelareaMarkerPatternShape `json:"shape,omitempty"` + Shape ArrayOK[*FunnelareaMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -714,6 +719,7 @@ type FunnelareaTitle struct { Font *FunnelareaTitleFont `json:"font,omitempty"` // Position + // arrayOK: false // default: top center // type: enumerated // Specifies the location of the `title`. Note that the title's position used to be set by the now deprecated `titleposition` attribute. diff --git a/generated/v2.31.1/graph_objects/heatmap_gen.go b/generated/v2.31.1/graph_objects/heatmap_gen.go index 9029f02..aa381b4 100644 --- a/generated/v2.31.1/graph_objects/heatmap_gen.go +++ b/generated/v2.31.1/graph_objects/heatmap_gen.go @@ -71,7 +71,7 @@ type Heatmap struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo HeatmapHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*HeatmapHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -246,6 +246,7 @@ type Heatmap struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -270,6 +271,7 @@ type Heatmap struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -300,6 +302,7 @@ type Heatmap struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -312,6 +315,7 @@ type Heatmap struct { Xsrc string `json:"xsrc,omitempty"` // Xtype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's x coordinates are given by *x* (the default behavior when `x` is provided). If *scaled*, the heatmap's x coordinates are given by *x0* and *dx* (the default behavior when `x` is not provided). @@ -336,6 +340,7 @@ type Heatmap struct { Yaxis String `json:"yaxis,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -366,6 +371,7 @@ type Heatmap struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -378,6 +384,7 @@ type Heatmap struct { Ysrc string `json:"ysrc,omitempty"` // Ytype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's y coordinates are given by *y* (the default behavior when `y` is provided) If *scaled*, the heatmap's y coordinates are given by *y0* and *dy* (the default behavior when `y` is not provided) @@ -426,6 +433,7 @@ type Heatmap struct { Zorder int64 `json:"zorder,omitempty"` // Zsmooth + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Picks a smoothing algorithm use to smooth `z` data. @@ -490,6 +498,7 @@ type HeatmapColorbarTitle struct { Font *HeatmapColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -530,6 +539,7 @@ type HeatmapColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -548,6 +558,7 @@ type HeatmapColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -566,6 +577,7 @@ type HeatmapColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -590,6 +602,7 @@ type HeatmapColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -602,12 +615,14 @@ type HeatmapColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix HeatmapColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -620,6 +635,7 @@ type HeatmapColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -660,12 +676,14 @@ type HeatmapColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow HeatmapColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -684,6 +702,7 @@ type HeatmapColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -696,6 +715,7 @@ type HeatmapColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -748,6 +768,7 @@ type HeatmapColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -760,6 +781,7 @@ type HeatmapColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -772,6 +794,7 @@ type HeatmapColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -784,6 +807,7 @@ type HeatmapColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -834,10 +858,11 @@ type HeatmapHoverlabelFont struct { type HeatmapHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align HeatmapHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*HeatmapHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/heatmapgl_gen.go b/generated/v2.31.1/graph_objects/heatmapgl_gen.go index 0575e81..35c9187 100644 --- a/generated/v2.31.1/graph_objects/heatmapgl_gen.go +++ b/generated/v2.31.1/graph_objects/heatmapgl_gen.go @@ -65,7 +65,7 @@ type Heatmapgl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo HeatmapglHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*HeatmapglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -188,6 +188,7 @@ type Heatmapgl struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -218,6 +219,7 @@ type Heatmapgl struct { Xsrc string `json:"xsrc,omitempty"` // Xtype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's x coordinates are given by *x* (the default behavior when `x` is provided). If *scaled*, the heatmap's x coordinates are given by *x0* and *dx* (the default behavior when `x` is not provided). @@ -248,6 +250,7 @@ type Heatmapgl struct { Ysrc string `json:"ysrc,omitempty"` // Ytype + // arrayOK: false // default: %!s() // type: enumerated // If *array*, the heatmap's y coordinates are given by *y* (the default behavior when `y` is provided) If *scaled*, the heatmap's y coordinates are given by *y0* and *dy* (the default behavior when `y` is not provided) @@ -284,6 +287,7 @@ type Heatmapgl struct { Zmin float64 `json:"zmin,omitempty"` // Zsmooth + // arrayOK: false // default: fast // type: enumerated // Picks a smoothing algorithm use to smooth `z` data. @@ -348,6 +352,7 @@ type HeatmapglColorbarTitle struct { Font *HeatmapglColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -388,6 +393,7 @@ type HeatmapglColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -406,6 +412,7 @@ type HeatmapglColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -424,6 +431,7 @@ type HeatmapglColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -448,6 +456,7 @@ type HeatmapglColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -460,12 +469,14 @@ type HeatmapglColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix HeatmapglColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -478,6 +489,7 @@ type HeatmapglColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -518,12 +530,14 @@ type HeatmapglColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow HeatmapglColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -542,6 +556,7 @@ type HeatmapglColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -554,6 +569,7 @@ type HeatmapglColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -606,6 +622,7 @@ type HeatmapglColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -618,6 +635,7 @@ type HeatmapglColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -630,6 +648,7 @@ type HeatmapglColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -642,6 +661,7 @@ type HeatmapglColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -692,10 +712,11 @@ type HeatmapglHoverlabelFont struct { type HeatmapglHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align HeatmapglHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*HeatmapglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/histogram2d_gen.go b/generated/v2.31.1/graph_objects/histogram2d_gen.go index 94ac8aa..e8cfad6 100644 --- a/generated/v2.31.1/graph_objects/histogram2d_gen.go +++ b/generated/v2.31.1/graph_objects/histogram2d_gen.go @@ -68,12 +68,14 @@ type Histogram2d struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Histfunc + // arrayOK: false // default: count // type: enumerated // Specifies the binning function used for this histogram trace. If *count*, the histogram values are computed by counting the number of values lying inside each bin. If *sum*, *avg*, *min*, *max*, the histogram values are computed using the sum, the average, the minimum or the maximum of the values lying inside each bin respectively. Histfunc Histogram2dHistfunc `json:"histfunc,omitempty"` // Histnorm + // arrayOK: false // default: // type: enumerated // Specifies the type of normalization used for this histogram trace. If **, the span of each bar corresponds to the number of occurrences (i.e. the number of data points lying inside the bins). If *percent* / *probability*, the span of each bar corresponds to the percentage / fraction of occurrences with respect to the total number of sample points (here, the sum of all bin HEIGHTS equals 100% / 1). If *density*, the span of each bar corresponds to the number of occurrences in a bin divided by the size of the bin interval (here, the sum of all bin AREAS equals the total number of sample points). If *probability density*, the area of each bar corresponds to the probability that an event will fall into the corresponding bin (here, the sum of all bin AREAS equals 1). @@ -83,7 +85,7 @@ type Histogram2d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo Histogram2dHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*Histogram2dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -238,6 +240,7 @@ type Histogram2d struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -266,6 +269,7 @@ type Histogram2d struct { Xbins *Histogram2dXbins `json:"xbins,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -312,6 +316,7 @@ type Histogram2d struct { Ybins *Histogram2dYbins `json:"ybins,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -372,6 +377,7 @@ type Histogram2d struct { Zmin float64 `json:"zmin,omitempty"` // Zsmooth + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Picks a smoothing algorithm use to smooth `z` data. @@ -436,6 +442,7 @@ type Histogram2dColorbarTitle struct { Font *Histogram2dColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -476,6 +483,7 @@ type Histogram2dColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -494,6 +502,7 @@ type Histogram2dColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -512,6 +521,7 @@ type Histogram2dColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -536,6 +546,7 @@ type Histogram2dColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -548,12 +559,14 @@ type Histogram2dColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix Histogram2dColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -566,6 +579,7 @@ type Histogram2dColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -606,12 +620,14 @@ type Histogram2dColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow Histogram2dColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -630,6 +646,7 @@ type Histogram2dColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -642,6 +659,7 @@ type Histogram2dColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -694,6 +712,7 @@ type Histogram2dColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -706,6 +725,7 @@ type Histogram2dColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -718,6 +738,7 @@ type Histogram2dColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -730,6 +751,7 @@ type Histogram2dColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -780,10 +802,11 @@ type Histogram2dHoverlabelFont struct { type Histogram2dHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align Histogram2dHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*Histogram2dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/histogram2dcontour_gen.go b/generated/v2.31.1/graph_objects/histogram2dcontour_gen.go index 8c74f2d..9e9e6d6 100644 --- a/generated/v2.31.1/graph_objects/histogram2dcontour_gen.go +++ b/generated/v2.31.1/graph_objects/histogram2dcontour_gen.go @@ -78,12 +78,14 @@ type Histogram2dcontour struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Histfunc + // arrayOK: false // default: count // type: enumerated // Specifies the binning function used for this histogram trace. If *count*, the histogram values are computed by counting the number of values lying inside each bin. If *sum*, *avg*, *min*, *max*, the histogram values are computed using the sum, the average, the minimum or the maximum of the values lying inside each bin respectively. Histfunc Histogram2dcontourHistfunc `json:"histfunc,omitempty"` // Histnorm + // arrayOK: false // default: // type: enumerated // Specifies the type of normalization used for this histogram trace. If **, the span of each bar corresponds to the number of occurrences (i.e. the number of data points lying inside the bins). If *percent* / *probability*, the span of each bar corresponds to the percentage / fraction of occurrences with respect to the total number of sample points (here, the sum of all bin HEIGHTS equals 100% / 1). If *density*, the span of each bar corresponds to the number of occurrences in a bin divided by the size of the bin interval (here, the sum of all bin AREAS equals the total number of sample points). If *probability density*, the area of each bar corresponds to the probability that an event will fall into the corresponding bin (here, the sum of all bin AREAS equals 1). @@ -93,7 +95,7 @@ type Histogram2dcontour struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo Histogram2dcontourHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*Histogram2dcontourHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -258,6 +260,7 @@ type Histogram2dcontour struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -286,6 +289,7 @@ type Histogram2dcontour struct { Xbins *Histogram2dcontourXbins `json:"xbins,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -326,6 +330,7 @@ type Histogram2dcontour struct { Ybins *Histogram2dcontourYbins `json:"ybins,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -438,6 +443,7 @@ type Histogram2dcontourColorbarTitle struct { Font *Histogram2dcontourColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -478,6 +484,7 @@ type Histogram2dcontourColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -496,6 +503,7 @@ type Histogram2dcontourColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -514,6 +522,7 @@ type Histogram2dcontourColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -538,6 +547,7 @@ type Histogram2dcontourColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -550,12 +560,14 @@ type Histogram2dcontourColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix Histogram2dcontourColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -568,6 +580,7 @@ type Histogram2dcontourColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -608,12 +621,14 @@ type Histogram2dcontourColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow Histogram2dcontourColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -632,6 +647,7 @@ type Histogram2dcontourColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -644,6 +660,7 @@ type Histogram2dcontourColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -696,6 +713,7 @@ type Histogram2dcontourColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -708,6 +726,7 @@ type Histogram2dcontourColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -720,6 +739,7 @@ type Histogram2dcontourColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -732,6 +752,7 @@ type Histogram2dcontourColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -764,6 +785,7 @@ type Histogram2dcontourContoursLabelfont struct { type Histogram2dcontourContours struct { // Coloring + // arrayOK: false // default: fill // type: enumerated // Determines the coloring method showing the contour values. If *fill*, coloring is done evenly between each contour level If *heatmap*, a heatmap gradient coloring is applied between each contour level. If *lines*, coloring is done on the contour lines. If *none*, no coloring is applied on this trace. @@ -786,6 +808,7 @@ type Histogram2dcontourContours struct { Labelformat string `json:"labelformat,omitempty"` // Operation + // arrayOK: false // default: = // type: enumerated // Sets the constraint operation. *=* keeps regions equal to `value` *<* and *<=* keep regions less than `value` *>* and *>=* keep regions greater than `value` *[]*, *()*, *[)*, and *(]* keep regions inside `value[0]` to `value[1]` *][*, *)(*, *](*, *)[* keep regions outside `value[0]` to value[1]` Open vs. closed intervals make no difference to constraint display, but all versions are allowed for consistency with filter transforms. @@ -816,6 +839,7 @@ type Histogram2dcontourContours struct { Start float64 `json:"start,omitempty"` // Type + // arrayOK: false // default: levels // type: enumerated // If `levels`, the data is represented as a contour plot with multiple levels displayed. If `constraint`, the data is represented as constraints with the invalid region shaded as specified by the `operation` and `value` parameters. @@ -872,10 +896,11 @@ type Histogram2dcontourHoverlabelFont struct { type Histogram2dcontourHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align Histogram2dcontourHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*Histogram2dcontourHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/histogram_gen.go b/generated/v2.31.1/graph_objects/histogram_gen.go index 735f821..5388be2 100644 --- a/generated/v2.31.1/graph_objects/histogram_gen.go +++ b/generated/v2.31.1/graph_objects/histogram_gen.go @@ -46,6 +46,7 @@ type Histogram struct { Cliponaxis Bool `json:"cliponaxis,omitempty"` // Constraintext + // arrayOK: false // default: both // type: enumerated // Constrain the size of text inside or outside a bar to be no larger than the bar itself. @@ -76,12 +77,14 @@ type Histogram struct { ErrorY *HistogramErrorY `json:"error_y,omitempty"` // Histfunc + // arrayOK: false // default: count // type: enumerated // Specifies the binning function used for this histogram trace. If *count*, the histogram values are computed by counting the number of values lying inside each bin. If *sum*, *avg*, *min*, *max*, the histogram values are computed using the sum, the average, the minimum or the maximum of the values lying inside each bin respectively. Histfunc HistogramHistfunc `json:"histfunc,omitempty"` // Histnorm + // arrayOK: false // default: // type: enumerated // Specifies the type of normalization used for this histogram trace. If **, the span of each bar corresponds to the number of occurrences (i.e. the number of data points lying inside the bins). If *percent* / *probability*, the span of each bar corresponds to the percentage / fraction of occurrences with respect to the total number of sample points (here, the sum of all bin HEIGHTS equals 100% / 1). If *density*, the span of each bar corresponds to the number of occurrences in a bin divided by the size of the bin interval (here, the sum of all bin AREAS equals the total number of sample points). If *probability density*, the area of each bar corresponds to the probability that an event will fall into the corresponding bin (here, the sum of all bin AREAS equals 1). @@ -91,7 +94,7 @@ type Histogram struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo HistogramHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*HistogramHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -140,6 +143,7 @@ type Histogram struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextanchor + // arrayOK: false // default: end // type: enumerated // Determines if texts are kept at center or start/end points in `textposition` *inside* mode. @@ -224,6 +228,7 @@ type Histogram struct { Opacity float64 `json:"opacity,omitempty"` // Orientation + // arrayOK: false // default: %!s() // type: enumerated // Sets the orientation of the bars. With *v* (*h*), the value of the each bar spans along the vertical (horizontal). @@ -270,6 +275,7 @@ type Histogram struct { Textfont *HistogramTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: false // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. @@ -310,6 +316,7 @@ type Histogram struct { Unselected *HistogramUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -332,6 +339,7 @@ type Histogram struct { Xbins *HistogramXbins `json:"xbins,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -366,6 +374,7 @@ type Histogram struct { Ybins *HistogramYbins `json:"ybins,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -394,12 +403,14 @@ type Histogram struct { type HistogramCumulative struct { // Currentbin + // arrayOK: false // default: include // type: enumerated // Only applies if cumulative is enabled. Sets whether the current bin is included, excluded, or has half of its value included in the current cumulative value. *include* is the default for compatibility with various other tools, however it introduces a half-bin bias to the results. *exclude* makes the opposite half-bin bias, and *half* removes it. Currentbin HistogramCumulativeCurrentbin `json:"currentbin,omitempty"` // Direction + // arrayOK: false // default: increasing // type: enumerated // Only applies if cumulative is enabled. If *increasing* (default) we sum all prior bins, so the result increases from left to right. If *decreasing* we sum later bins so the result decreases from left to right. @@ -476,6 +487,7 @@ type HistogramErrorX struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -564,6 +576,7 @@ type HistogramErrorY struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -638,10 +651,11 @@ type HistogramHoverlabelFont struct { type HistogramHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align HistogramHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*HistogramHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -800,6 +814,7 @@ type HistogramMarkerColorbarTitle struct { Font *HistogramMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -840,6 +855,7 @@ type HistogramMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -858,6 +874,7 @@ type HistogramMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -876,6 +893,7 @@ type HistogramMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -900,6 +918,7 @@ type HistogramMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -912,12 +931,14 @@ type HistogramMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix HistogramMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -930,6 +951,7 @@ type HistogramMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -970,12 +992,14 @@ type HistogramMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow HistogramMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -994,6 +1018,7 @@ type HistogramMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -1006,6 +1031,7 @@ type HistogramMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -1058,6 +1084,7 @@ type HistogramMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -1070,6 +1097,7 @@ type HistogramMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -1082,6 +1110,7 @@ type HistogramMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -1094,6 +1123,7 @@ type HistogramMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -1210,16 +1240,18 @@ type HistogramMarkerPattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode HistogramMarkerPatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape HistogramMarkerPatternShape `json:"shape,omitempty"` + Shape ArrayOK[*HistogramMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/icicle_gen.go b/generated/v2.31.1/graph_objects/icicle_gen.go index 9ffff73..c57205c 100644 --- a/generated/v2.31.1/graph_objects/icicle_gen.go +++ b/generated/v2.31.1/graph_objects/icicle_gen.go @@ -16,6 +16,7 @@ type Icicle struct { Type TraceType `json:"type,omitempty"` // Branchvalues + // arrayOK: false // default: remainder // type: enumerated // Determines how the items in `values` are summed. When set to *total*, items in `values` are taken to be value of all its descendants. When set to *remainder*, items in `values` corresponding to the root and the branches sectors are taken to be the extra part not part of the sum of the values at their leaves. @@ -47,7 +48,7 @@ type Icicle struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo IcicleHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*IcicleHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -228,6 +229,7 @@ type Icicle struct { Textinfo IcicleTextinfo `json:"textinfo,omitempty"` // Textposition + // arrayOK: false // default: top left // type: enumerated // Sets the positions of the `text` elements. @@ -286,6 +288,7 @@ type Icicle struct { Valuessrc string `json:"valuessrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -364,10 +367,11 @@ type IcicleHoverlabelFont struct { type IcicleHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align IcicleHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*IcicleHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -554,6 +558,7 @@ type IcicleMarkerColorbarTitle struct { Font *IcicleMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -594,6 +599,7 @@ type IcicleMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -612,6 +618,7 @@ type IcicleMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -630,6 +637,7 @@ type IcicleMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -654,6 +662,7 @@ type IcicleMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -666,12 +675,14 @@ type IcicleMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix IcicleMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -684,6 +695,7 @@ type IcicleMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -724,12 +736,14 @@ type IcicleMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow IcicleMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -748,6 +762,7 @@ type IcicleMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -760,6 +775,7 @@ type IcicleMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -812,6 +828,7 @@ type IcicleMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -824,6 +841,7 @@ type IcicleMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -836,6 +854,7 @@ type IcicleMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -848,6 +867,7 @@ type IcicleMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -916,16 +936,18 @@ type IcicleMarkerPattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode IcicleMarkerPatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape IcicleMarkerPatternShape `json:"shape,omitempty"` + Shape ArrayOK[*IcicleMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -1124,12 +1146,14 @@ type IciclePathbarTextfont struct { type IciclePathbar struct { // Edgeshape + // arrayOK: false // default: > // type: enumerated // Determines which shape is used for edges between `barpath` labels. Edgeshape IciclePathbarEdgeshape `json:"edgeshape,omitempty"` // Side + // arrayOK: false // default: top // type: enumerated // Determines on which side of the the treemap the `pathbar` should be presented. @@ -1228,6 +1252,7 @@ type IcicleTiling struct { Flip IcicleTilingFlip `json:"flip,omitempty"` // Orientation + // arrayOK: false // default: h // type: enumerated // When set in conjunction with `tiling.flip`, determines on which side the root nodes are drawn in the chart. If `tiling.orientation` is *v* and `tiling.flip` is **, the root nodes appear at the top. If `tiling.orientation` is *v* and `tiling.flip` is *y*, the root nodes appear at the bottom. If `tiling.orientation` is *h* and `tiling.flip` is **, the root nodes appear at the left. If `tiling.orientation` is *h* and `tiling.flip` is *x*, the root nodes appear at the right. diff --git a/generated/v2.31.1/graph_objects/image_gen.go b/generated/v2.31.1/graph_objects/image_gen.go index ab9f6a1..2735199 100644 --- a/generated/v2.31.1/graph_objects/image_gen.go +++ b/generated/v2.31.1/graph_objects/image_gen.go @@ -16,6 +16,7 @@ type Image struct { Type TraceType `json:"type,omitempty"` // Colormodel + // arrayOK: false // default: %!s() // type: enumerated // Color model used to map the numerical color components described in `z` into colors. If `source` is specified, this attribute will be set to `rgba256` otherwise it defaults to `rgb`. @@ -49,7 +50,7 @@ type Image struct { // default: x+y+z+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ImageHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ImageHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -178,6 +179,7 @@ type Image struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -232,6 +234,7 @@ type Image struct { Zorder int64 `json:"zorder,omitempty"` // Zsmooth + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Picks a smoothing algorithm used to smooth `z` data. This only applies for image traces that use the `source` attribute. @@ -288,10 +291,11 @@ type ImageHoverlabelFont struct { type ImageHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ImageHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ImageHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/indicator_gen.go b/generated/v2.31.1/graph_objects/indicator_gen.go index f32859e..bfe6873 100644 --- a/generated/v2.31.1/graph_objects/indicator_gen.go +++ b/generated/v2.31.1/graph_objects/indicator_gen.go @@ -16,6 +16,7 @@ type Indicator struct { Type TraceType `json:"type,omitempty"` // Align + // arrayOK: false // default: %!s() // type: enumerated // Sets the horizontal alignment of the `text` within the box. Note that this attribute has no effect if an angular gauge is displayed: in this case, it is always centered @@ -140,6 +141,7 @@ type Indicator struct { Value float64 `json:"value,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -216,6 +218,7 @@ type IndicatorDelta struct { Increasing *IndicatorDeltaIncreasing `json:"increasing,omitempty"` // Position + // arrayOK: false // default: bottom // type: enumerated // Sets the position of delta with respect to the number. @@ -312,6 +315,7 @@ type IndicatorGaugeAxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -348,6 +352,7 @@ type IndicatorGaugeAxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -360,12 +365,14 @@ type IndicatorGaugeAxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix IndicatorGaugeAxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -418,6 +425,7 @@ type IndicatorGaugeAxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -430,6 +438,7 @@ type IndicatorGaugeAxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: outside // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -580,6 +589,7 @@ type IndicatorGauge struct { Borderwidth float64 `json:"borderwidth,omitempty"` // Shape + // arrayOK: false // default: angular // type: enumerated // Set the shape of the gauge @@ -722,6 +732,7 @@ type IndicatorTitleFont struct { type IndicatorTitle struct { // Align + // arrayOK: false // default: %!s() // type: enumerated // Sets the horizontal alignment of the title. It defaults to `center` except for bullet charts for which it defaults to right. diff --git a/generated/v2.31.1/graph_objects/isosurface_gen.go b/generated/v2.31.1/graph_objects/isosurface_gen.go index 0fe5b65..502dcba 100644 --- a/generated/v2.31.1/graph_objects/isosurface_gen.go +++ b/generated/v2.31.1/graph_objects/isosurface_gen.go @@ -91,7 +91,7 @@ type Isosurface struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo IsosurfaceHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*IsosurfaceHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -294,6 +294,7 @@ type Isosurface struct { Valuesrc string `json:"valuesrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -470,6 +471,7 @@ type IsosurfaceColorbarTitle struct { Font *IsosurfaceColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -510,6 +512,7 @@ type IsosurfaceColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -528,6 +531,7 @@ type IsosurfaceColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -546,6 +550,7 @@ type IsosurfaceColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -570,6 +575,7 @@ type IsosurfaceColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -582,12 +588,14 @@ type IsosurfaceColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix IsosurfaceColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -600,6 +608,7 @@ type IsosurfaceColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -640,12 +649,14 @@ type IsosurfaceColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow IsosurfaceColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -664,6 +675,7 @@ type IsosurfaceColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -676,6 +688,7 @@ type IsosurfaceColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -728,6 +741,7 @@ type IsosurfaceColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -740,6 +754,7 @@ type IsosurfaceColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -752,6 +767,7 @@ type IsosurfaceColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -764,6 +780,7 @@ type IsosurfaceColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -836,10 +853,11 @@ type IsosurfaceHoverlabelFont struct { type IsosurfaceHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align IsosurfaceHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*IsosurfaceHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/layout_gen.go b/generated/v2.31.1/graph_objects/layout_gen.go index 4f68da3..952e3f6 100644 --- a/generated/v2.31.1/graph_objects/layout_gen.go +++ b/generated/v2.31.1/graph_objects/layout_gen.go @@ -24,6 +24,7 @@ type Layout struct { Autosize Bool `json:"autosize,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. This is the default value; however it could be overridden for individual axes. @@ -48,12 +49,14 @@ type Layout struct { Bargroupgap float64 `json:"bargroupgap,omitempty"` // Barmode + // arrayOK: false // default: group // type: enumerated // Determines how bars at the same location coordinate are displayed on the graph. With *stack*, the bars are stacked on top of one another With *relative*, the bars are stacked on top of one another, with negative values below the axis, positive values above With *group*, the bars are plotted next to one another centered around the shared location. With *overlay*, the bars are plotted over one another, you might need to reduce *opacity* to see multiple bars. Barmode LayoutBarmode `json:"barmode,omitempty"` // Barnorm + // arrayOK: false // default: // type: enumerated // Sets the normalization for bar traces on the graph. With *fraction*, the value of each bar is divided by the sum of all values at that location coordinate. *percent* is the same but multiplied by 100 to show percentages. @@ -72,12 +75,14 @@ type Layout struct { Boxgroupgap float64 `json:"boxgroupgap,omitempty"` // Boxmode + // arrayOK: false // default: overlay // type: enumerated // Determines how boxes at the same location coordinate are displayed on the graph. If *group*, the boxes are plotted next to one another centered around the shared location. If *overlay*, the boxes are plotted over one another, you might need to set *opacity* to see them multiple boxes. Has no effect on traces that have *width* set. Boxmode LayoutBoxmode `json:"boxmode,omitempty"` // Calendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the default calendar system to use for interpreting and displaying dates throughout the plot. @@ -116,6 +121,7 @@ type Layout struct { Datarevision interface{} `json:"datarevision,omitempty"` // Dragmode + // arrayOK: false // default: zoom // type: enumerated // Determines the mode of drag interactions. *select* and *lasso* apply only to scatter traces with markers or text. *orbit* and *turntable* apply only to 3D scenes. @@ -180,6 +186,7 @@ type Layout struct { Funnelgroupgap float64 `json:"funnelgroupgap,omitempty"` // Funnelmode + // arrayOK: false // default: stack // type: enumerated // Determines how bars at the same location coordinate are displayed on the graph. With *stack*, the bars are stacked on top of one another With *group*, the bars are plotted next to one another centered around the shared location. With *overlay*, the bars are plotted over one another, you might need to reduce *opacity* to see multiple bars. @@ -228,12 +235,14 @@ type Layout struct { Hoverlabel *LayoutHoverlabel `json:"hoverlabel,omitempty"` // Hovermode + // arrayOK: false // default: closest // type: enumerated // Determines the mode of hover interactions. If *closest*, a single hoverlabel will appear for the *closest* point within the `hoverdistance`. If *x* (or *y*), multiple hoverlabels will appear for multiple points at the *closest* x- (or y-) coordinate within the `hoverdistance`, with the caveat that no more than one hoverlabel will appear per trace. If *x unified* (or *y unified*), a single hoverlabel will appear multiple points at the closest x- (or y-) coordinate within the `hoverdistance` with the caveat that no more than one hoverlabel will appear per trace. In this mode, spikelines are enabled by default perpendicular to the specified axis. If false, hover interactions are disabled. Hovermode LayoutHovermode `json:"hovermode,omitempty"` // Hoversubplots + // arrayOK: false // default: overlaying // type: enumerated // Determines expansion of hover effects to other subplots If *single* just the axis pair of the primary point is included without overlaying subplots. If *overlaying* all subplots using the main axis and occupying the same space are included. If *axis*, also include stacked subplots using the same axis when `hovermode` is set to *x*, *x unified*, *y* or *y unified*. @@ -328,6 +337,7 @@ type Layout struct { Scattergap float64 `json:"scattergap,omitempty"` // Scattermode + // arrayOK: false // default: overlay // type: enumerated // Determines how scatter points at the same location coordinate are displayed on the graph. With *group*, the scatter points are plotted next to one another centered around the shared location. With *overlay*, the scatter points are plotted over one another, you might need to reduce *opacity* to see multiple scatter points. @@ -338,6 +348,7 @@ type Layout struct { Scene *LayoutScene `json:"scene,omitempty"` // Selectdirection + // arrayOK: false // default: any // type: enumerated // When `dragmode` is set to *select*, this limits the selection of the drag to horizontal, vertical or diagonal. *h* only allows horizontal selection, *v* only vertical, *d* only diagonal and *any* sets no limit. @@ -448,6 +459,7 @@ type Layout struct { Violingroupgap float64 `json:"violingroupgap,omitempty"` // Violinmode + // arrayOK: false // default: overlay // type: enumerated // Determines how violins at the same location coordinate are displayed on the graph. If *group*, the violins are plotted next to one another centered around the shared location. If *overlay*, the violins are plotted over one another, you might need to set *opacity* to see them multiple violins. Has no effect on traces that have *width* set. @@ -466,6 +478,7 @@ type Layout struct { Waterfallgroupgap float64 `json:"waterfallgroupgap,omitempty"` // Waterfallmode + // arrayOK: false // default: group // type: enumerated // Determines how bars at the same location coordinate are displayed on the graph. With *group*, the bars are plotted next to one another centered around the shared location. With *overlay*, the bars are plotted over one another, you might need to reduce *opacity* to see multiple bars. @@ -610,6 +623,7 @@ type LayoutColoraxisColorbarTitle struct { Font *LayoutColoraxisColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -650,6 +664,7 @@ type LayoutColoraxisColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -668,6 +683,7 @@ type LayoutColoraxisColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -686,6 +702,7 @@ type LayoutColoraxisColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -710,6 +727,7 @@ type LayoutColoraxisColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -722,12 +740,14 @@ type LayoutColoraxisColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutColoraxisColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -740,6 +760,7 @@ type LayoutColoraxisColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -780,12 +801,14 @@ type LayoutColoraxisColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow LayoutColoraxisColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -804,6 +827,7 @@ type LayoutColoraxisColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -816,6 +840,7 @@ type LayoutColoraxisColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -868,6 +893,7 @@ type LayoutColoraxisColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -880,6 +906,7 @@ type LayoutColoraxisColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -892,6 +919,7 @@ type LayoutColoraxisColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -904,6 +932,7 @@ type LayoutColoraxisColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -1200,6 +1229,7 @@ type LayoutGeoProjection struct { Tilt float64 `json:"tilt,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Sets the projection type. @@ -1248,6 +1278,7 @@ type LayoutGeo struct { Domain *LayoutGeoDomain `json:"domain,omitempty"` // Fitbounds + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Determines if this subplot's view settings are auto-computed to fit trace data. On scoped maps, setting `fitbounds` leads to `center.lon` and `center.lat` getting auto-filled. On maps with a non-clipped projection, setting `fitbounds` leads to `center.lon`, `center.lat`, and `projection.rotation.lon` getting auto-filled. On maps with a clipped projection, setting `fitbounds` leads to `center.lon`, `center.lat`, `projection.rotation.lon`, `projection.rotation.lat`, `lonaxis.range` and `lonaxis.range` getting auto-filled. If *locations*, only the trace's visible locations are considered in the `fitbounds` computations. If *geojson*, the entire trace input `geojson` (if provided) is considered in the `fitbounds` computations, Defaults to *false*. @@ -1296,6 +1327,7 @@ type LayoutGeo struct { Projection *LayoutGeoProjection `json:"projection,omitempty"` // Resolution + // arrayOK: false // default: %!s(float64=110) // type: enumerated // Sets the resolution of the base layers. The values have units of km/mm e.g. 110 corresponds to a scale ratio of 1:110,000,000. @@ -1314,6 +1346,7 @@ type LayoutGeo struct { Riverwidth float64 `json:"riverwidth,omitempty"` // Scope + // arrayOK: false // default: world // type: enumerated // Set the scope of the map. @@ -1422,12 +1455,14 @@ type LayoutGrid struct { Domain *LayoutGridDomain `json:"domain,omitempty"` // Pattern + // arrayOK: false // default: coupled // type: enumerated // If no `subplots`, `xaxes`, or `yaxes` are given but we do have `rows` and `columns`, we can generate defaults using consecutive axis IDs, in two ways: *coupled* gives one x axis per column and one y axis per row. *independent* uses a new xy pair for each cell, left-to-right across each row then iterating rows according to `roworder`. Pattern LayoutGridPattern `json:"pattern,omitempty"` // Roworder + // arrayOK: false // default: top to bottom // type: enumerated // Is the first row the top or the bottom? Note that columns are always enumerated from left to right. @@ -1458,6 +1493,7 @@ type LayoutGrid struct { Xgap float64 `json:"xgap,omitempty"` // Xside + // arrayOK: false // default: bottom plot // type: enumerated // Sets where the x axis labels and titles go. *bottom* means the very bottom of the grid. *bottom plot* is the lowest plot that each x axis is used in. *top* and *top plot* are similar. @@ -1476,6 +1512,7 @@ type LayoutGrid struct { Ygap float64 `json:"ygap,omitempty"` // Yside + // arrayOK: false // default: left plot // type: enumerated // Sets where the y axis labels and titles go. *left* means the very left edge of the grid. *left plot* is the leftmost plot that each y axis is used in. *right* and *right plot* are similar. @@ -1530,6 +1567,7 @@ type LayoutHoverlabelGrouptitlefont struct { type LayoutHoverlabel struct { // Align + // arrayOK: false // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines @@ -1636,6 +1674,7 @@ type LayoutLegendTitle struct { Font *LayoutLegendTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of legend's title with respect to the legend items. Defaulted to *top* with `orientation` is *h*. Defaulted to *left* with `orientation` is *v*. The *top left* options could be used to expand top center and top right are for horizontal alignment legend area in both x and y sides. @@ -1676,6 +1715,7 @@ type LayoutLegend struct { Entrywidth float64 `json:"entrywidth,omitempty"` // Entrywidthmode + // arrayOK: false // default: pixels // type: enumerated // Determines what entrywidth means. @@ -1686,6 +1726,7 @@ type LayoutLegend struct { Font *LayoutLegendFont `json:"font,omitempty"` // Groupclick + // arrayOK: false // default: togglegroup // type: enumerated // Determines the behavior on legend group item click. *toggleitem* toggles the visibility of the individual item clicked on the graph. *togglegroup* toggles the visibility of all items in the same legendgroup as the item clicked on the graph. @@ -1702,18 +1743,21 @@ type LayoutLegend struct { Indentation float64 `json:"indentation,omitempty"` // Itemclick + // arrayOK: false // default: toggle // type: enumerated // Determines the behavior on legend item click. *toggle* toggles the visibility of the item clicked on the graph. *toggleothers* makes the clicked item the sole visible item on the graph. *false* disables legend item click interactions. Itemclick LayoutLegendItemclick `json:"itemclick,omitempty"` // Itemdoubleclick + // arrayOK: false // default: toggleothers // type: enumerated // Determines the behavior on legend item double-click. *toggle* toggles the visibility of the item clicked on the graph. *toggleothers* makes the clicked item the sole visible item on the graph. *false* disables legend item double-click interactions. Itemdoubleclick LayoutLegendItemdoubleclick `json:"itemdoubleclick,omitempty"` // Itemsizing + // arrayOK: false // default: trace // type: enumerated // Determines if the legend items symbols scale with their corresponding *trace* attributes or remain *constant* independent of the symbol size on the graph. @@ -1726,6 +1770,7 @@ type LayoutLegend struct { Itemwidth float64 `json:"itemwidth,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the legend. @@ -1754,6 +1799,7 @@ type LayoutLegend struct { Uirevision interface{} `json:"uirevision,omitempty"` // Valign + // arrayOK: false // default: middle // type: enumerated // Sets the vertical alignment of the symbols with respect to their associated text. @@ -1772,12 +1818,14 @@ type LayoutLegend struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: left // type: enumerated // Sets the legend's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the legend. Value *auto* anchors legends to the right for `x` values greater than or equal to 2/3, anchors legends to the left for `x` values less than or equal to 1/3 and anchors legends with respect to their center otherwise. Xanchor LayoutLegendXanchor `json:"xanchor,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -1790,12 +1838,14 @@ type LayoutLegend struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets the legend's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the legend. Value *auto* anchors legends at their bottom for `y` values less than or equal to 1/3, anchors legends to at their top for `y` values greater than or equal to 2/3 and anchors legends with respect to their middle otherwise. Yanchor LayoutLegendYanchor `json:"yanchor,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -2006,6 +2056,7 @@ type LayoutModebar struct { Color Color `json:"color,omitempty"` // Orientation + // arrayOK: false // default: h // type: enumerated // Sets the orientation of the modebar. @@ -2060,6 +2111,7 @@ type LayoutNewselection struct { Line *LayoutNewselectionLine `json:"line,omitempty"` // Mode + // arrayOK: false // default: immediate // type: enumerated // Describes how a new selection is created. If `immediate`, a new selection is created after first mouse up. If `gradual`, a new selection is not created after first mouse. By adding to and subtracting from the initial selection, this option allows declaring extra outlines of the selection. @@ -2114,6 +2166,7 @@ type LayoutNewshapeLabel struct { Textangle float64 `json:"textangle,omitempty"` // Textposition + // arrayOK: false // default: %!s() // type: enumerated // Sets the position of the label text relative to the new shape. Supported values for rectangles, circles and paths are *top left*, *top center*, *top right*, *middle left*, *middle center*, *middle right*, *bottom left*, *bottom center*, and *bottom right*. Supported values for lines are *start*, *middle*, and *end*. Default: *middle center* for rectangles, circles, and paths; *middle* for lines. @@ -2126,12 +2179,14 @@ type LayoutNewshapeLabel struct { Texttemplate string `json:"texttemplate,omitempty"` // Xanchor + // arrayOK: false // default: auto // type: enumerated // Sets the label's horizontal position anchor This anchor binds the specified `textposition` to the *left*, *center* or *right* of the label text. For example, if `textposition` is set to *top right* and `xanchor` to *right* then the right-most portion of the label text lines up with the right-most edge of the new shape. Xanchor LayoutNewshapeLabelXanchor `json:"xanchor,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets the label's vertical position anchor This anchor binds the specified `textposition` to the *top*, *middle* or *bottom* of the label text. For example, if `textposition` is set to *top right* and `yanchor` to *top* then the top-most portion of the label text lines up with the top-most edge of the new shape. @@ -2200,6 +2255,7 @@ type LayoutNewshapeLine struct { type LayoutNewshape struct { // Drawdirection + // arrayOK: false // default: diagonal // type: enumerated // When `dragmode` is set to *drawrect*, *drawline* or *drawcircle* this limits the drag to be horizontal, vertical or diagonal. Using *diagonal* there is no limit e.g. in drawing lines in any direction. *ortho* limits the draw to be either horizontal or vertical. *horizontal* allows horizontal extend. *vertical* allows vertical extend. @@ -2212,6 +2268,7 @@ type LayoutNewshape struct { Fillcolor Color `json:"fillcolor,omitempty"` // Fillrule + // arrayOK: false // default: evenodd // type: enumerated // Determines the path's interior. For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule @@ -2222,6 +2279,7 @@ type LayoutNewshape struct { Label *LayoutNewshapeLabel `json:"label,omitempty"` // Layer + // arrayOK: false // default: above // type: enumerated // Specifies whether new shapes are drawn below gridlines (*below*), between gridlines and traces (*between*) or above traces (*above*). @@ -2278,6 +2336,7 @@ type LayoutNewshape struct { Showlegend Bool `json:"showlegend,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not new shape is visible. If *legendonly*, the shape is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -2310,6 +2369,7 @@ type LayoutPolarAngularaxisTickfont struct { type LayoutPolarAngularaxis struct { // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. @@ -2328,6 +2388,7 @@ type LayoutPolarAngularaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -2340,6 +2401,7 @@ type LayoutPolarAngularaxis struct { Color Color `json:"color,omitempty"` // Direction + // arrayOK: false // default: counterclockwise // type: enumerated // Sets the direction corresponding to positive angles. @@ -2352,6 +2414,7 @@ type LayoutPolarAngularaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -2388,6 +2451,7 @@ type LayoutPolarAngularaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -2436,6 +2500,7 @@ type LayoutPolarAngularaxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -2460,18 +2525,21 @@ type LayoutPolarAngularaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutPolarAngularaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. Showticksuffix LayoutPolarAngularaxisShowticksuffix `json:"showticksuffix,omitempty"` // Thetaunit + // arrayOK: false // default: degrees // type: enumerated // Sets the format unit of the formatted *theta* values. Has an effect only when `angularaxis.type` is *linear*. @@ -2524,6 +2592,7 @@ type LayoutPolarAngularaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -2536,6 +2605,7 @@ type LayoutPolarAngularaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -2578,6 +2648,7 @@ type LayoutPolarAngularaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the angular axis type. If *linear*, set `thetaunit` to determine the unit in which axis value are shown. If *category, use `period` to set the number of integer coordinates around polar axis. @@ -2732,6 +2803,7 @@ type LayoutPolarRadialaxis struct { Angle float64 `json:"angle,omitempty"` // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided and it has a value for both the lower and upper bound, `autorange` is set to *false*. Using *min* applies autorange only to set the minimum. Using *max* applies autorange only to set the maximum. Using *min reversed* applies autorange only to set the minimum on a reversed axis. Using *max reversed* applies autorange only to set the maximum on a reversed axis. Using *reversed* applies autorange on both ends and reverses the axis direction. @@ -2748,12 +2820,14 @@ type LayoutPolarRadialaxis struct { Autotickangles interface{} `json:"autotickangles,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. Autotypenumbers LayoutPolarRadialaxisAutotypenumbers `json:"autotypenumbers,omitempty"` // Calendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar` @@ -2772,6 +2846,7 @@ type LayoutPolarRadialaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -2790,6 +2865,7 @@ type LayoutPolarRadialaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -2826,6 +2902,7 @@ type LayoutPolarRadialaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -2874,6 +2951,7 @@ type LayoutPolarRadialaxis struct { Range interface{} `json:"range,omitempty"` // Rangemode + // arrayOK: false // default: tozero // type: enumerated // If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. If *normal*, the range is computed in relation to the extrema of the input data (same behavior as for cartesian axes). @@ -2886,6 +2964,7 @@ type LayoutPolarRadialaxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -2910,18 +2989,21 @@ type LayoutPolarRadialaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutPolarRadialaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. Showticksuffix LayoutPolarRadialaxisShowticksuffix `json:"showticksuffix,omitempty"` // Side + // arrayOK: false // default: clockwise // type: enumerated // Determines on which side of radial axis line the tick and tick labels appear. @@ -2974,6 +3056,7 @@ type LayoutPolarRadialaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -2986,6 +3069,7 @@ type LayoutPolarRadialaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -3032,6 +3116,7 @@ type LayoutPolarRadialaxis struct { Title *LayoutPolarRadialaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. @@ -3068,6 +3153,7 @@ type LayoutPolar struct { Domain *LayoutPolarDomain `json:"domain,omitempty"` // Gridshape + // arrayOK: false // default: circular // type: enumerated // Determines if the radial axis grid lines and angular axis line are drawn as *circular* sectors or as *linear* (polygon) sectors. Has an effect only when the angular axis has `type` *category*. Note that `radialaxis.angle` is snapped to the angle of the closest vertex when `gridshape` is *circular* (so that radial axis scale is the same as the data scale). @@ -3166,6 +3252,7 @@ type LayoutSceneCameraEye struct { type LayoutSceneCameraProjection struct { // Type + // arrayOK: false // default: perspective // type: enumerated // Sets the projection type. The projection type could be either *perspective* or *orthographic*. The default is *perspective*. @@ -3344,6 +3431,7 @@ type LayoutSceneXaxisTitle struct { type LayoutSceneXaxis struct { // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided and it has a value for both the lower and upper bound, `autorange` is set to *false*. Using *min* applies autorange only to set the minimum. Using *max* applies autorange only to set the maximum. Using *min reversed* applies autorange only to set the minimum on a reversed axis. Using *max reversed* applies autorange only to set the maximum on a reversed axis. Using *reversed* applies autorange on both ends and reverses the axis direction. @@ -3354,6 +3442,7 @@ type LayoutSceneXaxis struct { Autorangeoptions *LayoutSceneXaxisAutorangeoptions `json:"autorangeoptions,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. @@ -3366,6 +3455,7 @@ type LayoutSceneXaxis struct { Backgroundcolor Color `json:"backgroundcolor,omitempty"` // Calendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar` @@ -3384,6 +3474,7 @@ type LayoutSceneXaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -3402,6 +3493,7 @@ type LayoutSceneXaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -3462,6 +3554,7 @@ type LayoutSceneXaxis struct { Minexponent float64 `json:"minexponent,omitempty"` // Mirror + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area. If *true*, the axis lines are mirrored. If *ticks*, the axis lines and ticks are mirrored. If *false*, mirroring is disable. If *all*, axis lines are mirrored on all shared-axes subplots. If *allticks*, axis lines and ticks are mirrored on all shared-axes subplots. @@ -3480,6 +3573,7 @@ type LayoutSceneXaxis struct { Range interface{} `json:"range,omitempty"` // Rangemode + // arrayOK: false // default: normal // type: enumerated // If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. Applies only to linear axes. @@ -3504,6 +3598,7 @@ type LayoutSceneXaxis struct { Showbackground Bool `json:"showbackground,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -3534,12 +3629,14 @@ type LayoutSceneXaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutSceneXaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -3604,6 +3701,7 @@ type LayoutSceneXaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -3616,6 +3714,7 @@ type LayoutSceneXaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -3662,6 +3761,7 @@ type LayoutSceneXaxis struct { Title *LayoutSceneXaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. @@ -3794,6 +3894,7 @@ type LayoutSceneYaxisTitle struct { type LayoutSceneYaxis struct { // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided and it has a value for both the lower and upper bound, `autorange` is set to *false*. Using *min* applies autorange only to set the minimum. Using *max* applies autorange only to set the maximum. Using *min reversed* applies autorange only to set the minimum on a reversed axis. Using *max reversed* applies autorange only to set the maximum on a reversed axis. Using *reversed* applies autorange on both ends and reverses the axis direction. @@ -3804,6 +3905,7 @@ type LayoutSceneYaxis struct { Autorangeoptions *LayoutSceneYaxisAutorangeoptions `json:"autorangeoptions,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. @@ -3816,6 +3918,7 @@ type LayoutSceneYaxis struct { Backgroundcolor Color `json:"backgroundcolor,omitempty"` // Calendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar` @@ -3834,6 +3937,7 @@ type LayoutSceneYaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -3852,6 +3956,7 @@ type LayoutSceneYaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -3912,6 +4017,7 @@ type LayoutSceneYaxis struct { Minexponent float64 `json:"minexponent,omitempty"` // Mirror + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area. If *true*, the axis lines are mirrored. If *ticks*, the axis lines and ticks are mirrored. If *false*, mirroring is disable. If *all*, axis lines are mirrored on all shared-axes subplots. If *allticks*, axis lines and ticks are mirrored on all shared-axes subplots. @@ -3930,6 +4036,7 @@ type LayoutSceneYaxis struct { Range interface{} `json:"range,omitempty"` // Rangemode + // arrayOK: false // default: normal // type: enumerated // If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. Applies only to linear axes. @@ -3954,6 +4061,7 @@ type LayoutSceneYaxis struct { Showbackground Bool `json:"showbackground,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -3984,12 +4092,14 @@ type LayoutSceneYaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutSceneYaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -4054,6 +4164,7 @@ type LayoutSceneYaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -4066,6 +4177,7 @@ type LayoutSceneYaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -4112,6 +4224,7 @@ type LayoutSceneYaxis struct { Title *LayoutSceneYaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. @@ -4244,6 +4357,7 @@ type LayoutSceneZaxisTitle struct { type LayoutSceneZaxis struct { // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided and it has a value for both the lower and upper bound, `autorange` is set to *false*. Using *min* applies autorange only to set the minimum. Using *max* applies autorange only to set the maximum. Using *min reversed* applies autorange only to set the minimum on a reversed axis. Using *max reversed* applies autorange only to set the maximum on a reversed axis. Using *reversed* applies autorange on both ends and reverses the axis direction. @@ -4254,6 +4368,7 @@ type LayoutSceneZaxis struct { Autorangeoptions *LayoutSceneZaxisAutorangeoptions `json:"autorangeoptions,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. @@ -4266,6 +4381,7 @@ type LayoutSceneZaxis struct { Backgroundcolor Color `json:"backgroundcolor,omitempty"` // Calendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar` @@ -4284,6 +4400,7 @@ type LayoutSceneZaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -4302,6 +4419,7 @@ type LayoutSceneZaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -4362,6 +4480,7 @@ type LayoutSceneZaxis struct { Minexponent float64 `json:"minexponent,omitempty"` // Mirror + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area. If *true*, the axis lines are mirrored. If *ticks*, the axis lines and ticks are mirrored. If *false*, mirroring is disable. If *all*, axis lines are mirrored on all shared-axes subplots. If *allticks*, axis lines and ticks are mirrored on all shared-axes subplots. @@ -4380,6 +4499,7 @@ type LayoutSceneZaxis struct { Range interface{} `json:"range,omitempty"` // Rangemode + // arrayOK: false // default: normal // type: enumerated // If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. Applies only to linear axes. @@ -4404,6 +4524,7 @@ type LayoutSceneZaxis struct { Showbackground Bool `json:"showbackground,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -4434,12 +4555,14 @@ type LayoutSceneZaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutSceneZaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -4504,6 +4627,7 @@ type LayoutSceneZaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -4516,6 +4640,7 @@ type LayoutSceneZaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -4562,6 +4687,7 @@ type LayoutSceneZaxis struct { Title *LayoutSceneZaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. @@ -4602,6 +4728,7 @@ type LayoutScene struct { Annotations interface{} `json:"annotations,omitempty"` // Aspectmode + // arrayOK: false // default: auto // type: enumerated // If *cube*, this scene's axes are drawn as a cube, regardless of the axes' ranges. If *data*, this scene's axes are drawn in proportion with the axes' ranges. If *manual*, this scene's axes are drawn in proportion with the input of *aspectratio* (the default behavior if *aspectratio* is provided). If *auto*, this scene's axes are drawn using the results of *data* except when one axis is more than four times the size of the two others, where in that case the results of *cube* are used. @@ -4626,12 +4753,14 @@ type LayoutScene struct { Domain *LayoutSceneDomain `json:"domain,omitempty"` // Dragmode + // arrayOK: false // default: %!s() // type: enumerated // Determines the mode of drag interactions for this scene. Dragmode LayoutSceneDragmode `json:"dragmode,omitempty"` // Hovermode + // arrayOK: false // default: closest // type: enumerated // Determines the mode of hover interactions for this scene. @@ -4746,6 +4875,7 @@ type LayoutSmithImaginaryaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -4782,12 +4912,14 @@ type LayoutSmithImaginaryaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutSmithImaginaryaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -4822,6 +4954,7 @@ type LayoutSmithImaginaryaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -4920,6 +5053,7 @@ type LayoutSmithRealaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -4956,18 +5090,21 @@ type LayoutSmithRealaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutSmithRealaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. Showticksuffix LayoutSmithRealaxisShowticksuffix `json:"showticksuffix,omitempty"` // Side + // arrayOK: false // default: top // type: enumerated // Determines on which side of real axis line the tick and tick labels appear. @@ -5008,6 +5145,7 @@ type LayoutSmithRealaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *top* (*bottom*), this axis' are drawn above (below) the axis line. @@ -5140,6 +5278,7 @@ type LayoutTernaryAaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -5176,6 +5315,7 @@ type LayoutTernaryAaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -5218,6 +5358,7 @@ type LayoutTernaryAaxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -5242,12 +5383,14 @@ type LayoutTernaryAaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutTernaryAaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -5300,6 +5443,7 @@ type LayoutTernaryAaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -5312,6 +5456,7 @@ type LayoutTernaryAaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -5438,6 +5583,7 @@ type LayoutTernaryBaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -5474,6 +5620,7 @@ type LayoutTernaryBaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -5516,6 +5663,7 @@ type LayoutTernaryBaxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -5540,12 +5688,14 @@ type LayoutTernaryBaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutTernaryBaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -5598,6 +5748,7 @@ type LayoutTernaryBaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -5610,6 +5761,7 @@ type LayoutTernaryBaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -5736,6 +5888,7 @@ type LayoutTernaryCaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -5772,6 +5925,7 @@ type LayoutTernaryCaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -5814,6 +5968,7 @@ type LayoutTernaryCaxis struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -5838,12 +5993,14 @@ type LayoutTernaryCaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutTernaryCaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -5896,6 +6053,7 @@ type LayoutTernaryCaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -5908,6 +6066,7 @@ type LayoutTernaryCaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -6106,12 +6265,14 @@ type LayoutTitle struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: auto // type: enumerated // Sets the title's horizontal alignment with respect to its x position. *left* means that the title starts at x, *right* means that the title ends at x and *center* means that the title's center is at x. *auto* divides `xref` by three and calculates the `xanchor` value automatically based on the value of `x`. Xanchor LayoutTitleXanchor `json:"xanchor,omitempty"` // Xref + // arrayOK: false // default: container // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -6124,12 +6285,14 @@ type LayoutTitle struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: auto // type: enumerated // Sets the title's vertical alignment with respect to its y position. *top* means that the title's cap line is at y, *bottom* means that the title's baseline is at y and *middle* means that the title's midline is at y. *auto* divides `yref` by three and calculates the `yanchor` value automatically based on the value of `y`. Yanchor LayoutTitleYanchor `json:"yanchor,omitempty"` // Yref + // arrayOK: false // default: container // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -6146,12 +6309,14 @@ type LayoutTransition struct { Duration float64 `json:"duration,omitempty"` // Easing + // arrayOK: false // default: cubic-in-out // type: enumerated // The easing function used for the transition Easing LayoutTransitionEasing `json:"easing,omitempty"` // Ordering + // arrayOK: false // default: layout first // type: enumerated // Determines whether the figure's layout or traces smoothly transitions during updates that make both traces and layout change. @@ -6168,6 +6333,7 @@ type LayoutUniformtext struct { Minsize float64 `json:"minsize,omitempty"` // Mode + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Determines how the font size for various text elements are uniformed between each trace type. If the computed text sizes were smaller than the minimum size defined by `uniformtext.minsize` using *hide* option hides the text; and using *show* option shows the text without further downscaling. Please note that if the size defined by `minsize` is greater than the font size defined by trace, then the `minsize` is used. @@ -6272,12 +6438,14 @@ type LayoutXaxisMinor struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). Tickmode LayoutXaxisMinorTickmode `json:"tickmode,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -6374,6 +6542,7 @@ type LayoutXaxisRangeselector struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: left // type: enumerated // Sets the range selector's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the range selector. @@ -6386,6 +6555,7 @@ type LayoutXaxisRangeselector struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: bottom // type: enumerated // Sets the range selector's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the range selector. @@ -6402,6 +6572,7 @@ type LayoutXaxisRangesliderYaxis struct { Range interface{} `json:"range,omitempty"` // Rangemode + // arrayOK: false // default: match // type: enumerated // Determines whether or not the range of this axis in the rangeslider use the same value than in the main plot when zooming in/out. If *auto*, the autorange will be used. If *fixed*, the `range` is used. If *match*, the current range of the corresponding y-axis on the main subplot is used. @@ -6526,6 +6697,7 @@ type LayoutXaxisTitle struct { type LayoutXaxis struct { // Anchor + // arrayOK: false // default: %!s() // type: enumerated // If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to the corresponding opposite-letter axis. If set to *free*, this axis' position is determined by `position`. @@ -6538,6 +6710,7 @@ type LayoutXaxis struct { Automargin LayoutXaxisAutomargin `json:"automargin,omitempty"` // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided and it has a value for both the lower and upper bound, `autorange` is set to *false*. Using *min* applies autorange only to set the minimum. Using *max* applies autorange only to set the maximum. Using *min reversed* applies autorange only to set the minimum on a reversed axis. Using *max reversed* applies autorange only to set the maximum on a reversed axis. Using *reversed* applies autorange on both ends and reverses the axis direction. @@ -6554,12 +6727,14 @@ type LayoutXaxis struct { Autotickangles interface{} `json:"autotickangles,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. Autotypenumbers LayoutXaxisAutotypenumbers `json:"autotypenumbers,omitempty"` // Calendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar` @@ -6578,6 +6753,7 @@ type LayoutXaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -6590,12 +6766,14 @@ type LayoutXaxis struct { Color Color `json:"color,omitempty"` // Constrain + // arrayOK: false // default: %!s() // type: enumerated // If this axis needs to be compressed (either due to its own `scaleanchor` and `scaleratio` or those of the other axis), determines how that happens: by increasing the *range*, or by decreasing the *domain*. Default is *domain* for axes containing image traces, *range* otherwise. Constrain LayoutXaxisConstrain `json:"constrain,omitempty"` // Constraintoward + // arrayOK: false // default: %!s() // type: enumerated // If this axis needs to be compressed (either due to its own `scaleanchor` and `scaleratio` or those of the other axis), determines which direction we push the originally specified plot area. Options are *left*, *center* (default), and *right* for x axes, and *top*, *middle* (default), and *bottom* for y axes. @@ -6626,6 +6804,7 @@ type LayoutXaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -6674,6 +6853,7 @@ type LayoutXaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -6692,6 +6872,7 @@ type LayoutXaxis struct { Linewidth float64 `json:"linewidth,omitempty"` // Matches + // arrayOK: false // default: %!s() // type: enumerated // If set to another axis id (e.g. `x2`, `y`), the range of this axis will match the range of the corresponding axis in data-coordinates space. Moreover, matching axes share auto-range values, category lists and histogram auto-bins. Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint is currently forbidden. Moreover, note that matching axes must have the same `type`. @@ -6720,6 +6901,7 @@ type LayoutXaxis struct { Minor *LayoutXaxisMinor `json:"minor,omitempty"` // Mirror + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area. If *true*, the axis lines are mirrored. If *ticks*, the axis lines and ticks are mirrored. If *false*, mirroring is disable. If *all*, axis lines are mirrored on all shared-axes subplots. If *allticks*, axis lines and ticks are mirrored on all shared-axes subplots. @@ -6732,6 +6914,7 @@ type LayoutXaxis struct { Nticks int64 `json:"nticks,omitempty"` // Overlaying + // arrayOK: false // default: %!s() // type: enumerated // If set a same-letter axis id, this axis is overlaid on top of the corresponding same-letter axis, with traces and axes visible for both axes. If *false*, this axis does not overlay any same-letter axes. In this case, for axes with overlapping domains only the highest-numbered axis will be visible. @@ -6756,6 +6939,7 @@ type LayoutXaxis struct { Rangebreaks interface{} `json:"rangebreaks,omitempty"` // Rangemode + // arrayOK: false // default: normal // type: enumerated // If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. Applies only to linear axes. @@ -6770,6 +6954,7 @@ type LayoutXaxis struct { Rangeslider *LayoutXaxisRangeslider `json:"rangeslider,omitempty"` // Scaleanchor + // arrayOK: false // default: %!s() // type: enumerated // If set to another axis id (e.g. `x2`, `y`), the range of this axis changes together with the range of the corresponding axis such that the scale of pixels per unit is in a constant ratio. Both axes are still zoomable, but when you zoom one, the other will zoom the same amount, keeping a fixed midpoint. `constrain` and `constraintoward` determine how we enforce the constraint. You can chain these, ie `yaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}` but you can only link axes of the same `type`. The linked axis can have the opposite letter (to constrain the aspect ratio) or the same letter (to match scales across subplots). Loops (`yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}` or longer) are redundant and the last constraint encountered will be ignored to avoid possible inconsistent constraints via `scaleratio`. Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint is currently forbidden. Setting `false` allows to remove a default constraint (occasionally, you may need to prevent a default `scaleanchor` constraint from being applied, eg. when having an image trace `yaxis: {scaleanchor: "x"}` is set automatically in order for pixels to be rendered as squares, setting `yaxis: {scaleanchor: false}` allows to remove the constraint). @@ -6794,6 +6979,7 @@ type LayoutXaxis struct { Showdividers Bool `json:"showdividers,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -6824,18 +7010,21 @@ type LayoutXaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutXaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. Showticksuffix LayoutXaxisShowticksuffix `json:"showticksuffix,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines whether a x (y) axis is positioned at the *bottom* (*left*) or *top* (*right*) of the plotting area. @@ -6860,6 +7049,7 @@ type LayoutXaxis struct { Spikemode LayoutXaxisSpikemode `json:"spikemode,omitempty"` // Spikesnap + // arrayOK: false // default: hovered data // type: enumerated // Determines whether spikelines are stuck to the cursor or to the closest datapoints. @@ -6906,18 +7096,21 @@ type LayoutXaxis struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabelmode + // arrayOK: false // default: instant // type: enumerated // Determines where tick labels are drawn with respect to their corresponding ticks and grid lines. Only has an effect for axes of `type` *date* When set to *period*, tick labels are drawn in the middle of the period between ticks. Ticklabelmode LayoutXaxisTicklabelmode `json:"ticklabelmode,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. Otherwise on *category* and *multicategory* axes the default is *allow*. In other cases the default is *hide past div*. Ticklabeloverflow LayoutXaxisTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn with respect to the axis Please note that top or bottom has no effect on x axes or when `ticklabelmode` is set to *period*. Similarly left or right has no effect on y axes or when `ticklabelmode` is set to *period*. Has no effect on *multicategory* axes or when `tickson` is set to *boundaries*. When used on axes linked by `matches` or `scaleanchor`, no extra padding for inside labels would be added by autorange, so that the scales could match. @@ -6936,6 +7129,7 @@ type LayoutXaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). If *sync*, the number of ticks will sync with the overlayed axis set by `overlaying` property. @@ -6948,12 +7142,14 @@ type LayoutXaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. Ticks LayoutXaxisTicks `json:"ticks,omitempty"` // Tickson + // arrayOK: false // default: labels // type: enumerated // Determines where ticks and grid lines are drawn with respect to their corresponding tick labels. Only has an effect for axes of `type` *category* or *multicategory*. When set to *boundaries*, ticks and grid lines are drawn half a category to the left/bottom of labels. @@ -7000,6 +7196,7 @@ type LayoutXaxis struct { Title *LayoutXaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. @@ -7134,12 +7331,14 @@ type LayoutYaxisMinor struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). Tickmode LayoutYaxisMinorTickmode `json:"tickmode,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -7232,6 +7431,7 @@ type LayoutYaxisTitle struct { type LayoutYaxis struct { // Anchor + // arrayOK: false // default: %!s() // type: enumerated // If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to the corresponding opposite-letter axis. If set to *free*, this axis' position is determined by `position`. @@ -7244,6 +7444,7 @@ type LayoutYaxis struct { Automargin LayoutYaxisAutomargin `json:"automargin,omitempty"` // Autorange + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not the range of this axis is computed in relation to the input data. See `rangemode` for more info. If `range` is provided and it has a value for both the lower and upper bound, `autorange` is set to *false*. Using *min* applies autorange only to set the minimum. Using *max* applies autorange only to set the maximum. Using *min reversed* applies autorange only to set the minimum on a reversed axis. Using *max reversed* applies autorange only to set the maximum on a reversed axis. Using *reversed* applies autorange on both ends and reverses the axis direction. @@ -7266,12 +7467,14 @@ type LayoutYaxis struct { Autotickangles interface{} `json:"autotickangles,omitempty"` // Autotypenumbers + // arrayOK: false // default: convert types // type: enumerated // Using *strict* a numeric string in trace data is not converted to a number. Using *convert types* a numeric string in trace data may be treated as a number during automatic axis `type` detection. Defaults to layout.autotypenumbers. Autotypenumbers LayoutYaxisAutotypenumbers `json:"autotypenumbers,omitempty"` // Calendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use for `range` and `tick0` if this is a date axis. This does not set the calendar for interpreting data on this axis, that's specified in the trace or via the global `layout.calendar` @@ -7290,6 +7493,7 @@ type LayoutYaxis struct { Categoryarraysrc string `json:"categoryarraysrc,omitempty"` // Categoryorder + // arrayOK: false // default: trace // type: enumerated // Specifies the ordering logic for the case of categorical variables. By default, plotly uses *trace*, which specifies the order that is present in the data supplied. Set `categoryorder` to *category ascending* or *category descending* if order should be determined by the alphanumerical order of the category names. Set `categoryorder` to *array* to derive the ordering from the attribute `categoryarray`. If a category is not found in the `categoryarray` array, the sorting behavior for that attribute will be identical to the *trace* mode. The unspecified categories will follow the categories in `categoryarray`. Set `categoryorder` to *total ascending* or *total descending* if order should be determined by the numerical order of the values. Similarly, the order can be determined by the min, max, sum, mean or median of all the values. @@ -7302,12 +7506,14 @@ type LayoutYaxis struct { Color Color `json:"color,omitempty"` // Constrain + // arrayOK: false // default: %!s() // type: enumerated // If this axis needs to be compressed (either due to its own `scaleanchor` and `scaleratio` or those of the other axis), determines how that happens: by increasing the *range*, or by decreasing the *domain*. Default is *domain* for axes containing image traces, *range* otherwise. Constrain LayoutYaxisConstrain `json:"constrain,omitempty"` // Constraintoward + // arrayOK: false // default: %!s() // type: enumerated // If this axis needs to be compressed (either due to its own `scaleanchor` and `scaleratio` or those of the other axis), determines which direction we push the originally specified plot area. Options are *left*, *center* (default), and *right* for x axes, and *top*, *middle* (default), and *bottom* for y axes. @@ -7338,6 +7544,7 @@ type LayoutYaxis struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -7386,6 +7593,7 @@ type LayoutYaxis struct { Labelalias interface{} `json:"labelalias,omitempty"` // Layer + // arrayOK: false // default: above traces // type: enumerated // Sets the layer on which this axis is displayed. If *above traces*, this axis is displayed above all the subplot's traces If *below traces*, this axis is displayed below all the subplot's traces, but above the grid lines. Useful when used together with scatter-like traces with `cliponaxis` set to *false* to show markers and/or text nodes above this axis. @@ -7404,6 +7612,7 @@ type LayoutYaxis struct { Linewidth float64 `json:"linewidth,omitempty"` // Matches + // arrayOK: false // default: %!s() // type: enumerated // If set to another axis id (e.g. `x2`, `y`), the range of this axis will match the range of the corresponding axis in data-coordinates space. Moreover, matching axes share auto-range values, category lists and histogram auto-bins. Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint is currently forbidden. Moreover, note that matching axes must have the same `type`. @@ -7432,6 +7641,7 @@ type LayoutYaxis struct { Minor *LayoutYaxisMinor `json:"minor,omitempty"` // Mirror + // arrayOK: false // default: %!s(bool=false) // type: enumerated // Determines if the axis lines or/and ticks are mirrored to the opposite side of the plotting area. If *true*, the axis lines are mirrored. If *ticks*, the axis lines and ticks are mirrored. If *false*, mirroring is disable. If *all*, axis lines are mirrored on all shared-axes subplots. If *allticks*, axis lines and ticks are mirrored on all shared-axes subplots. @@ -7444,6 +7654,7 @@ type LayoutYaxis struct { Nticks int64 `json:"nticks,omitempty"` // Overlaying + // arrayOK: false // default: %!s() // type: enumerated // If set a same-letter axis id, this axis is overlaid on top of the corresponding same-letter axis, with traces and axes visible for both axes. If *false*, this axis does not overlay any same-letter axes. In this case, for axes with overlapping domains only the highest-numbered axis will be visible. @@ -7468,12 +7679,14 @@ type LayoutYaxis struct { Rangebreaks interface{} `json:"rangebreaks,omitempty"` // Rangemode + // arrayOK: false // default: normal // type: enumerated // If *normal*, the range is computed in relation to the extrema of the input data. If *tozero*`, the range extends to 0, regardless of the input data If *nonnegative*, the range is non-negative, regardless of the input data. Applies only to linear axes. Rangemode LayoutYaxisRangemode `json:"rangemode,omitempty"` // Scaleanchor + // arrayOK: false // default: %!s() // type: enumerated // If set to another axis id (e.g. `x2`, `y`), the range of this axis changes together with the range of the corresponding axis such that the scale of pixels per unit is in a constant ratio. Both axes are still zoomable, but when you zoom one, the other will zoom the same amount, keeping a fixed midpoint. `constrain` and `constraintoward` determine how we enforce the constraint. You can chain these, ie `yaxis: {scaleanchor: *x*}, xaxis2: {scaleanchor: *y*}` but you can only link axes of the same `type`. The linked axis can have the opposite letter (to constrain the aspect ratio) or the same letter (to match scales across subplots). Loops (`yaxis: {scaleanchor: *x*}, xaxis: {scaleanchor: *y*}` or longer) are redundant and the last constraint encountered will be ignored to avoid possible inconsistent constraints via `scaleratio`. Note that setting axes simultaneously in both a `scaleanchor` and a `matches` constraint is currently forbidden. Setting `false` allows to remove a default constraint (occasionally, you may need to prevent a default `scaleanchor` constraint from being applied, eg. when having an image trace `yaxis: {scaleanchor: "x"}` is set automatically in order for pixels to be rendered as squares, setting `yaxis: {scaleanchor: false}` allows to remove the constraint). @@ -7504,6 +7717,7 @@ type LayoutYaxis struct { Showdividers Bool `json:"showdividers,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -7534,18 +7748,21 @@ type LayoutYaxis struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix LayoutYaxisShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. Showticksuffix LayoutYaxisShowticksuffix `json:"showticksuffix,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines whether a x (y) axis is positioned at the *bottom* (*left*) or *top* (*right*) of the plotting area. @@ -7570,6 +7787,7 @@ type LayoutYaxis struct { Spikemode LayoutYaxisSpikemode `json:"spikemode,omitempty"` // Spikesnap + // arrayOK: false // default: hovered data // type: enumerated // Determines whether spikelines are stuck to the cursor or to the closest datapoints. @@ -7616,18 +7834,21 @@ type LayoutYaxis struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabelmode + // arrayOK: false // default: instant // type: enumerated // Determines where tick labels are drawn with respect to their corresponding ticks and grid lines. Only has an effect for axes of `type` *date* When set to *period*, tick labels are drawn in the middle of the period between ticks. Ticklabelmode LayoutYaxisTicklabelmode `json:"ticklabelmode,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. Otherwise on *category* and *multicategory* axes the default is *allow*. In other cases the default is *hide past div*. Ticklabeloverflow LayoutYaxisTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn with respect to the axis Please note that top or bottom has no effect on x axes or when `ticklabelmode` is set to *period*. Similarly left or right has no effect on y axes or when `ticklabelmode` is set to *period*. Has no effect on *multicategory* axes or when `tickson` is set to *boundaries*. When used on axes linked by `matches` or `scaleanchor`, no extra padding for inside labels would be added by autorange, so that the scales could match. @@ -7646,6 +7867,7 @@ type LayoutYaxis struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). If *sync*, the number of ticks will sync with the overlayed axis set by `overlaying` property. @@ -7658,12 +7880,14 @@ type LayoutYaxis struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: %!s() // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. Ticks LayoutYaxisTicks `json:"ticks,omitempty"` // Tickson + // arrayOK: false // default: labels // type: enumerated // Determines where ticks and grid lines are drawn with respect to their corresponding tick labels. Only has an effect for axes of `type` *category* or *multicategory*. When set to *boundaries*, ticks and grid lines are drawn half a category to the left/bottom of labels. @@ -7710,6 +7934,7 @@ type LayoutYaxis struct { Title *LayoutYaxisTitle `json:"title,omitempty"` // Type + // arrayOK: false // default: - // type: enumerated // Sets the axis type. By default, plotly attempts to determined the axis type by looking into the data of the traces that referenced the axis in question. diff --git a/generated/v2.31.1/graph_objects/mesh3d_gen.go b/generated/v2.31.1/graph_objects/mesh3d_gen.go index 066d8ac..b01a6ae 100644 --- a/generated/v2.31.1/graph_objects/mesh3d_gen.go +++ b/generated/v2.31.1/graph_objects/mesh3d_gen.go @@ -90,6 +90,7 @@ type Mesh3d struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Delaunayaxis + // arrayOK: false // default: z // type: enumerated // Sets the Delaunay axis, which is the axis that is perpendicular to the surface of the Delaunay triangulation. It has an effect if `i`, `j`, `k` are not provided and `alphahull` is set to indicate Delaunay triangulation. @@ -117,7 +118,7 @@ type Mesh3d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo Mesh3dHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*Mesh3dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -178,6 +179,7 @@ type Mesh3d struct { Intensity interface{} `json:"intensity,omitempty"` // Intensitymode + // arrayOK: false // default: vertex // type: enumerated // Determines the source of `intensity` values. @@ -344,6 +346,7 @@ type Mesh3d struct { Vertexcolorsrc string `json:"vertexcolorsrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -356,6 +359,7 @@ type Mesh3d struct { X interface{} `json:"x,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -380,6 +384,7 @@ type Mesh3d struct { Y interface{} `json:"y,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -404,6 +409,7 @@ type Mesh3d struct { Z interface{} `json:"z,omitempty"` // Zcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `z` date data. @@ -474,6 +480,7 @@ type Mesh3dColorbarTitle struct { Font *Mesh3dColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -514,6 +521,7 @@ type Mesh3dColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -532,6 +540,7 @@ type Mesh3dColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -550,6 +559,7 @@ type Mesh3dColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -574,6 +584,7 @@ type Mesh3dColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -586,12 +597,14 @@ type Mesh3dColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix Mesh3dColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -604,6 +617,7 @@ type Mesh3dColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -644,12 +658,14 @@ type Mesh3dColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow Mesh3dColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -668,6 +684,7 @@ type Mesh3dColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -680,6 +697,7 @@ type Mesh3dColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -732,6 +750,7 @@ type Mesh3dColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -744,6 +763,7 @@ type Mesh3dColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -756,6 +776,7 @@ type Mesh3dColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -768,6 +789,7 @@ type Mesh3dColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -840,10 +862,11 @@ type Mesh3dHoverlabelFont struct { type Mesh3dHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align Mesh3dHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*Mesh3dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/ohlc_gen.go b/generated/v2.31.1/graph_objects/ohlc_gen.go index c6fcdeb..5e62e95 100644 --- a/generated/v2.31.1/graph_objects/ohlc_gen.go +++ b/generated/v2.31.1/graph_objects/ohlc_gen.go @@ -59,7 +59,7 @@ type Ohlc struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo OhlcHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*OhlcHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -232,6 +232,7 @@ type Ohlc struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -250,6 +251,7 @@ type Ohlc struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -274,6 +276,7 @@ type Ohlc struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -378,10 +381,11 @@ type OhlcHoverlabelFont struct { type OhlcHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align OhlcHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*OhlcHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/parcats_gen.go b/generated/v2.31.1/graph_objects/parcats_gen.go index 1da5921..12d3b82 100644 --- a/generated/v2.31.1/graph_objects/parcats_gen.go +++ b/generated/v2.31.1/graph_objects/parcats_gen.go @@ -16,6 +16,7 @@ type Parcats struct { Type TraceType `json:"type,omitempty"` // Arrangement + // arrayOK: false // default: perpendicular // type: enumerated // Sets the drag interaction mode for categories and dimensions. If `perpendicular`, the categories can only move along a line perpendicular to the paths. If `freeform`, the categories can freely move on the plane. If `fixed`, the categories and dimensions are stationary. @@ -56,6 +57,7 @@ type Parcats struct { Hoverinfo ParcatsHoverinfo `json:"hoverinfo,omitempty"` // Hoveron + // arrayOK: false // default: category // type: enumerated // Sets the hover interaction mode for the parcats diagram. If `category`, hover interaction take place per category. If `color`, hover interactions take place per color per category. If `dimension`, hover interactions take place across all categories per dimension. @@ -104,6 +106,7 @@ type Parcats struct { Name string `json:"name,omitempty"` // Sortpaths + // arrayOK: false // default: forward // type: enumerated // Sets the path sorting algorithm. If `forward`, sort paths based on dimension categories from left to right. If `backward`, sort paths based on dimensions categories from right to left. @@ -136,6 +139,7 @@ type Parcats struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -280,6 +284,7 @@ type ParcatsLineColorbarTitle struct { Font *ParcatsLineColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -320,6 +325,7 @@ type ParcatsLineColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -338,6 +344,7 @@ type ParcatsLineColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -356,6 +363,7 @@ type ParcatsLineColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -380,6 +388,7 @@ type ParcatsLineColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -392,12 +401,14 @@ type ParcatsLineColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ParcatsLineColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -410,6 +421,7 @@ type ParcatsLineColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -450,12 +462,14 @@ type ParcatsLineColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ParcatsLineColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -474,6 +488,7 @@ type ParcatsLineColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -486,6 +501,7 @@ type ParcatsLineColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -538,6 +554,7 @@ type ParcatsLineColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -550,6 +567,7 @@ type ParcatsLineColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -562,6 +580,7 @@ type ParcatsLineColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -574,6 +593,7 @@ type ParcatsLineColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -654,6 +674,7 @@ type ParcatsLine struct { Reversescale Bool `json:"reversescale,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Sets the shape of the paths. If `linear`, paths are composed of straight lines. If `hspline`, paths are composed of horizontal curved splines diff --git a/generated/v2.31.1/graph_objects/parcoords_gen.go b/generated/v2.31.1/graph_objects/parcoords_gen.go index 44ce49c..39411ca 100644 --- a/generated/v2.31.1/graph_objects/parcoords_gen.go +++ b/generated/v2.31.1/graph_objects/parcoords_gen.go @@ -60,6 +60,7 @@ type Parcoords struct { Labelfont *ParcoordsLabelfont `json:"labelfont,omitempty"` // Labelside + // arrayOK: false // default: top // type: enumerated // Specifies the location of the `label`. *top* positions labels above, next to the title *bottom* positions labels below the graph Tilted labels with *labelangle* may be positioned better inside margins when `labelposition` is set to *bottom*. @@ -144,6 +145,7 @@ type Parcoords struct { Unselected *ParcoordsUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -288,6 +290,7 @@ type ParcoordsLineColorbarTitle struct { Font *ParcoordsLineColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -328,6 +331,7 @@ type ParcoordsLineColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -346,6 +350,7 @@ type ParcoordsLineColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -364,6 +369,7 @@ type ParcoordsLineColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -388,6 +394,7 @@ type ParcoordsLineColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -400,12 +407,14 @@ type ParcoordsLineColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ParcoordsLineColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -418,6 +427,7 @@ type ParcoordsLineColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -458,12 +468,14 @@ type ParcoordsLineColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ParcoordsLineColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -482,6 +494,7 @@ type ParcoordsLineColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -494,6 +507,7 @@ type ParcoordsLineColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -546,6 +560,7 @@ type ParcoordsLineColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -558,6 +573,7 @@ type ParcoordsLineColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -570,6 +586,7 @@ type ParcoordsLineColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -582,6 +599,7 @@ type ParcoordsLineColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. diff --git a/generated/v2.31.1/graph_objects/pie_gen.go b/generated/v2.31.1/graph_objects/pie_gen.go index 89d0f0a..1167ebe 100644 --- a/generated/v2.31.1/graph_objects/pie_gen.go +++ b/generated/v2.31.1/graph_objects/pie_gen.go @@ -34,6 +34,7 @@ type Pie struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Direction + // arrayOK: false // default: counterclockwise // type: enumerated // Specifies the direction at which succeeding sectors follow one another. @@ -59,7 +60,7 @@ type Pie struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo PieHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*PieHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -112,6 +113,7 @@ type Pie struct { Insidetextfont *PieInsidetextfont `json:"insidetextfont,omitempty"` // Insidetextorientation + // arrayOK: false // default: auto // type: enumerated // Controls the orientation of the text inside chart sectors. When set to *auto*, text may be oriented in any direction in order to be as big as possible in the middle of a sector. The *horizontal* option orients text to be parallel with the bottom of the chart, and may make text smaller in order to achieve that goal. The *radial* option orients text along the radius of the sector. The *tangential* option orients text perpendicular to the radius of the sector. @@ -252,10 +254,11 @@ type Pie struct { Textinfo PieTextinfo `json:"textinfo,omitempty"` // Textposition + // arrayOK: true // default: auto // type: enumerated // Specifies the location of the `textinfo`. - Textposition PieTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*PieTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -316,6 +319,7 @@ type Pie struct { Valuessrc string `json:"valuessrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -394,10 +398,11 @@ type PieHoverlabelFont struct { type PieHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align PieHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*PieHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -584,16 +589,18 @@ type PieMarkerPattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode PieMarkerPatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape PieMarkerPatternShape `json:"shape,omitempty"` + Shape ArrayOK[*PieMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -794,6 +801,7 @@ type PieTitle struct { Font *PieTitleFont `json:"font,omitempty"` // Position + // arrayOK: false // default: %!s() // type: enumerated // Specifies the location of the `title`. Note that the title's position used to be set by the now deprecated `titleposition` attribute. diff --git a/generated/v2.31.1/graph_objects/pointcloud_gen.go b/generated/v2.31.1/graph_objects/pointcloud_gen.go index 415ed7e..bd6d23b 100644 --- a/generated/v2.31.1/graph_objects/pointcloud_gen.go +++ b/generated/v2.31.1/graph_objects/pointcloud_gen.go @@ -31,7 +31,7 @@ type Pointcloud struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo PointcloudHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*PointcloudHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -158,6 +158,7 @@ type Pointcloud struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -280,10 +281,11 @@ type PointcloudHoverlabelFont struct { type PointcloudHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align PointcloudHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*PointcloudHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/sankey_gen.go b/generated/v2.31.1/graph_objects/sankey_gen.go index 96f8abd..c869a9a 100644 --- a/generated/v2.31.1/graph_objects/sankey_gen.go +++ b/generated/v2.31.1/graph_objects/sankey_gen.go @@ -16,6 +16,7 @@ type Sankey struct { Type TraceType `json:"type,omitempty"` // Arrangement + // arrayOK: false // default: snap // type: enumerated // If value is `snap` (the default), the node arrangement is assisted by automatic snapping of elements to preserve space between nodes specified via `nodepad`. If value is `perpendicular`, the nodes can only move along a line perpendicular to the flow. If value is `freeform`, the nodes can freely move on the plane. If value is `fixed`, the nodes are stationary. @@ -108,6 +109,7 @@ type Sankey struct { Node *SankeyNode `json:"node,omitempty"` // Orientation + // arrayOK: false // default: h // type: enumerated // Sets the orientation of the Sankey diagram. @@ -152,6 +154,7 @@ type Sankey struct { Valuesuffix string `json:"valuesuffix,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -230,10 +233,11 @@ type SankeyHoverlabelFont struct { type SankeyHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align SankeyHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*SankeyHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -362,10 +366,11 @@ type SankeyLinkHoverlabelFont struct { type SankeyLinkHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align SankeyLinkHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*SankeyLinkHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -494,6 +499,7 @@ type SankeyLink struct { Hovercolorsrc string `json:"hovercolorsrc,omitempty"` // Hoverinfo + // arrayOK: false // default: all // type: enumerated // Determines which trace information appear when hovering links. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -612,10 +618,11 @@ type SankeyNodeHoverlabelFont struct { type SankeyNodeHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align SankeyNodeHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*SankeyNodeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -696,6 +703,7 @@ type SankeyNodeLine struct { type SankeyNode struct { // Align + // arrayOK: false // default: justify // type: enumerated // Sets the alignment method used to position the nodes along the horizontal axis. @@ -732,6 +740,7 @@ type SankeyNode struct { Groups interface{} `json:"groups,omitempty"` // Hoverinfo + // arrayOK: false // default: all // type: enumerated // Determines which trace information appear when hovering nodes. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. diff --git a/generated/v2.31.1/graph_objects/scatter3d_gen.go b/generated/v2.31.1/graph_objects/scatter3d_gen.go index dd9bb49..ddd44b4 100644 --- a/generated/v2.31.1/graph_objects/scatter3d_gen.go +++ b/generated/v2.31.1/graph_objects/scatter3d_gen.go @@ -49,7 +49,7 @@ type Scatter3d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo Scatter3dHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*Scatter3dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -184,6 +184,7 @@ type Scatter3d struct { Stream *Scatter3dStream `json:"stream,omitempty"` // Surfaceaxis + // arrayOK: false // default: %!s(float64=-1) // type: enumerated // If *-1*, the scatter points are not fill with a surface If *0*, *1*, *2*, the scatter points are filled with a Delaunay surface about the x, y, z respectively. @@ -206,10 +207,11 @@ type Scatter3d struct { Textfont *Scatter3dTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: top center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition Scatter3dTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*Scatter3dTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -254,6 +256,7 @@ type Scatter3d struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -266,6 +269,7 @@ type Scatter3d struct { X interface{} `json:"x,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -290,6 +294,7 @@ type Scatter3d struct { Y interface{} `json:"y,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -314,6 +319,7 @@ type Scatter3d struct { Z interface{} `json:"z,omitempty"` // Zcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `z` date data. @@ -396,6 +402,7 @@ type Scatter3dErrorX struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -490,6 +497,7 @@ type Scatter3dErrorY struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -578,6 +586,7 @@ type Scatter3dErrorZ struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -652,10 +661,11 @@ type Scatter3dHoverlabelFont struct { type Scatter3dHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align Scatter3dHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*Scatter3dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -792,6 +802,7 @@ type Scatter3dLineColorbarTitle struct { Font *Scatter3dLineColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -832,6 +843,7 @@ type Scatter3dLineColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -850,6 +862,7 @@ type Scatter3dLineColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -868,6 +881,7 @@ type Scatter3dLineColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -892,6 +906,7 @@ type Scatter3dLineColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -904,12 +919,14 @@ type Scatter3dLineColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix Scatter3dLineColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -922,6 +939,7 @@ type Scatter3dLineColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -962,12 +980,14 @@ type Scatter3dLineColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow Scatter3dLineColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -986,6 +1006,7 @@ type Scatter3dLineColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -998,6 +1019,7 @@ type Scatter3dLineColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -1050,6 +1072,7 @@ type Scatter3dLineColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -1062,6 +1085,7 @@ type Scatter3dLineColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -1074,6 +1098,7 @@ type Scatter3dLineColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -1086,6 +1111,7 @@ type Scatter3dLineColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -1154,6 +1180,7 @@ type Scatter3dLine struct { Colorsrc string `json:"colorsrc,omitempty"` // Dash + // arrayOK: false // default: solid // type: enumerated // Sets the dash style of the lines. @@ -1230,6 +1257,7 @@ type Scatter3dMarkerColorbarTitle struct { Font *Scatter3dMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -1270,6 +1298,7 @@ type Scatter3dMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -1288,6 +1317,7 @@ type Scatter3dMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -1306,6 +1336,7 @@ type Scatter3dMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -1330,6 +1361,7 @@ type Scatter3dMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -1342,12 +1374,14 @@ type Scatter3dMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix Scatter3dMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -1360,6 +1394,7 @@ type Scatter3dMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -1400,12 +1435,14 @@ type Scatter3dMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow Scatter3dMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -1424,6 +1461,7 @@ type Scatter3dMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -1436,6 +1474,7 @@ type Scatter3dMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -1488,6 +1527,7 @@ type Scatter3dMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -1500,6 +1540,7 @@ type Scatter3dMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -1512,6 +1553,7 @@ type Scatter3dMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -1524,6 +1566,7 @@ type Scatter3dMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -1696,6 +1739,7 @@ type Scatter3dMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1714,10 +1758,11 @@ type Scatter3dMarker struct { Sizesrc string `json:"sizesrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. - Symbol Scatter3dMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*Scatter3dMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scatter_gen.go b/generated/v2.31.1/graph_objects/scatter_gen.go index 7c9367f..c52df90 100644 --- a/generated/v2.31.1/graph_objects/scatter_gen.go +++ b/generated/v2.31.1/graph_objects/scatter_gen.go @@ -66,6 +66,7 @@ type Scatter struct { ErrorY *ScatterErrorY `json:"error_y,omitempty"` // Fill + // arrayOK: false // default: %!s() // type: enumerated // Sets the area to fill with a solid color. Defaults to *none* unless this trace is stacked, then it gets *tonexty* (*tonextx*) if `orientation` is *v* (*h*) Use with `fillcolor` if not *none*. *tozerox* and *tozeroy* fill to x=0 and y=0 respectively. *tonextx* and *tonexty* fill between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area graph); if there is no trace before it, they behave like *tozerox* and *tozeroy*. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order. @@ -86,6 +87,7 @@ type Scatter struct { Fillpattern *ScatterFillpattern `json:"fillpattern,omitempty"` // Groupnorm + // arrayOK: false // default: // type: enumerated // Only relevant when `stackgroup` is used, and only the first `groupnorm` found in the `stackgroup` will be used - including if `visible` is *legendonly* but not if it is `false`. Sets the normalization for the sum of this `stackgroup`. With *fraction*, the value of each trace at each location is divided by the sum of all trace values at that location. *percent* is the same but multiplied by 100 to show percentages. If there are multiple subplots, or multiple `stackgroup`s on one subplot, each will be normalized within its own set. @@ -95,7 +97,7 @@ type Scatter struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScatterHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScatterHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -222,6 +224,7 @@ type Scatter struct { Opacity float64 `json:"opacity,omitempty"` // Orientation + // arrayOK: false // default: %!s() // type: enumerated // Only relevant in the following cases: 1. when `scattermode` is set to *group*. 2. when `stackgroup` is used, and only the first `orientation` found in the `stackgroup` will be used - including if `visible` is *legendonly* but not if it is `false`. Sets the stacking direction. With *v* (*h*), the y (x) values of subsequent traces are added. Also affects the default value of `fill`. @@ -244,6 +247,7 @@ type Scatter struct { Showlegend Bool `json:"showlegend,omitempty"` // Stackgaps + // arrayOK: false // default: infer zero // type: enumerated // Only relevant when `stackgroup` is used, and only the first `stackgaps` found in the `stackgroup` will be used - including if `visible` is *legendonly* but not if it is `false`. Determines how we handle locations at which other traces in this group have data but this one does not. With *infer zero* we insert a zero at these locations. With *interpolate* we linearly interpolate between existing values, and extrapolate a constant beyond the existing values. @@ -270,10 +274,11 @@ type Scatter struct { Textfont *ScatterTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScatterTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScatterTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -322,6 +327,7 @@ type Scatter struct { Unselected *ScatterUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -346,6 +352,7 @@ type Scatter struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -370,6 +377,7 @@ type Scatter struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -400,6 +408,7 @@ type Scatter struct { Yaxis String `json:"yaxis,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -424,6 +433,7 @@ type Scatter struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -506,6 +516,7 @@ type ScatterErrorX struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -594,6 +605,7 @@ type ScatterErrorY struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -646,6 +658,7 @@ type ScatterFillgradient struct { Stop float64 `json:"stop,omitempty"` // Type + // arrayOK: false // default: none // type: enumerated // Sets the type/orientation of the color gradient for the fill. Defaults to *none*. @@ -686,16 +699,18 @@ type ScatterFillpattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode ScatterFillpatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ScatterFillpatternShape `json:"shape,omitempty"` + Shape ArrayOK[*ScatterFillpatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -772,10 +787,11 @@ type ScatterHoverlabelFont struct { type ScatterHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScatterHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScatterHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -888,6 +904,7 @@ type ScatterLine struct { Dash string `json:"dash,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Determines the line shape. With *spline* the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes. @@ -964,6 +981,7 @@ type ScatterMarkerColorbarTitle struct { Font *ScatterMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -1004,6 +1022,7 @@ type ScatterMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -1022,6 +1041,7 @@ type ScatterMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -1040,6 +1060,7 @@ type ScatterMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -1064,6 +1085,7 @@ type ScatterMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -1076,12 +1098,14 @@ type ScatterMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScatterMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -1094,6 +1118,7 @@ type ScatterMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -1134,12 +1159,14 @@ type ScatterMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScatterMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -1158,6 +1185,7 @@ type ScatterMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -1170,6 +1198,7 @@ type ScatterMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -1222,6 +1251,7 @@ type ScatterMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -1234,6 +1264,7 @@ type ScatterMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -1246,6 +1277,7 @@ type ScatterMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -1258,6 +1290,7 @@ type ScatterMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -1280,10 +1313,11 @@ type ScatterMarkerGradient struct { Colorsrc string `json:"colorsrc,omitempty"` // Type + // arrayOK: true // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ScatterMarkerGradientType `json:"type,omitempty"` + Type ArrayOK[*ScatterMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -1378,6 +1412,7 @@ type ScatterMarker struct { Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref + // arrayOK: false // default: up // type: enumerated // Sets the reference for marker angle. With *previous*, angle 0 points along the line from the previous point to this one. With *up*, angle 0 points toward the top of the screen. @@ -1498,6 +1533,7 @@ type ScatterMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1528,10 +1564,11 @@ type ScatterMarker struct { Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScatterMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScatterMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scattercarpet_gen.go b/generated/v2.31.1/graph_objects/scattercarpet_gen.go index 2831030..3f14d37 100644 --- a/generated/v2.31.1/graph_objects/scattercarpet_gen.go +++ b/generated/v2.31.1/graph_objects/scattercarpet_gen.go @@ -64,6 +64,7 @@ type Scattercarpet struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Use with `fillcolor` if not *none*. scatterternary has a subset of the options available to scatter. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. @@ -79,7 +80,7 @@ type Scattercarpet struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScattercarpetHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScattercarpetHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -230,10 +231,11 @@ type Scattercarpet struct { Textfont *ScattercarpetTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScattercarpetTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScattercarpetTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -282,6 +284,7 @@ type Scattercarpet struct { Unselected *ScattercarpetUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -350,10 +353,11 @@ type ScattercarpetHoverlabelFont struct { type ScattercarpetHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScattercarpetHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScattercarpetHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -466,6 +470,7 @@ type ScattercarpetLine struct { Dash string `json:"dash,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Determines the line shape. With *spline* the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes. @@ -536,6 +541,7 @@ type ScattercarpetMarkerColorbarTitle struct { Font *ScattercarpetMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -576,6 +582,7 @@ type ScattercarpetMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -594,6 +601,7 @@ type ScattercarpetMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -612,6 +620,7 @@ type ScattercarpetMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -636,6 +645,7 @@ type ScattercarpetMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -648,12 +658,14 @@ type ScattercarpetMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScattercarpetMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -666,6 +678,7 @@ type ScattercarpetMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -706,12 +719,14 @@ type ScattercarpetMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScattercarpetMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -730,6 +745,7 @@ type ScattercarpetMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -742,6 +758,7 @@ type ScattercarpetMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -794,6 +811,7 @@ type ScattercarpetMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -806,6 +824,7 @@ type ScattercarpetMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -818,6 +837,7 @@ type ScattercarpetMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -830,6 +850,7 @@ type ScattercarpetMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -852,10 +873,11 @@ type ScattercarpetMarkerGradient struct { Colorsrc string `json:"colorsrc,omitempty"` // Type + // arrayOK: true // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ScattercarpetMarkerGradientType `json:"type,omitempty"` + Type ArrayOK[*ScattercarpetMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -950,6 +972,7 @@ type ScattercarpetMarker struct { Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref + // arrayOK: false // default: up // type: enumerated // Sets the reference for marker angle. With *previous*, angle 0 points along the line from the previous point to this one. With *up*, angle 0 points toward the top of the screen. @@ -1070,6 +1093,7 @@ type ScattercarpetMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1100,10 +1124,11 @@ type ScattercarpetMarker struct { Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScattercarpetMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScattercarpetMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scattergeo_gen.go b/generated/v2.31.1/graph_objects/scattergeo_gen.go index e671cf8..d03b689 100644 --- a/generated/v2.31.1/graph_objects/scattergeo_gen.go +++ b/generated/v2.31.1/graph_objects/scattergeo_gen.go @@ -40,6 +40,7 @@ type Scattergeo struct { Featureidkey string `json:"featureidkey,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Use with `fillcolor` if not *none*. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. @@ -67,7 +68,7 @@ type Scattergeo struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScattergeoHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScattergeoHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -160,6 +161,7 @@ type Scattergeo struct { Line *ScattergeoLine `json:"line,omitempty"` // Locationmode + // arrayOK: false // default: ISO-3 // type: enumerated // Determines the set of locations used to match entries in `locations` to regions on the map. Values *ISO-3*, *USA-states*, *country names* correspond to features on the base map and value *geojson-id* corresponds to features from a custom GeoJSON linked to the `geojson` attribute. @@ -254,10 +256,11 @@ type Scattergeo struct { Textfont *ScattergeoTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScattergeoTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScattergeoTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -306,6 +309,7 @@ type Scattergeo struct { Unselected *ScattergeoUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -356,10 +360,11 @@ type ScattergeoHoverlabelFont struct { type ScattergeoHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScattergeoHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScattergeoHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -518,6 +523,7 @@ type ScattergeoMarkerColorbarTitle struct { Font *ScattergeoMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -558,6 +564,7 @@ type ScattergeoMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -576,6 +583,7 @@ type ScattergeoMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -594,6 +602,7 @@ type ScattergeoMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -618,6 +627,7 @@ type ScattergeoMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -630,12 +640,14 @@ type ScattergeoMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScattergeoMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -648,6 +660,7 @@ type ScattergeoMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -688,12 +701,14 @@ type ScattergeoMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScattergeoMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -712,6 +727,7 @@ type ScattergeoMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -724,6 +740,7 @@ type ScattergeoMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -776,6 +793,7 @@ type ScattergeoMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -788,6 +806,7 @@ type ScattergeoMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -800,6 +819,7 @@ type ScattergeoMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -812,6 +832,7 @@ type ScattergeoMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -834,10 +855,11 @@ type ScattergeoMarkerGradient struct { Colorsrc string `json:"colorsrc,omitempty"` // Type + // arrayOK: true // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ScattergeoMarkerGradientType `json:"type,omitempty"` + Type ArrayOK[*ScattergeoMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -932,6 +954,7 @@ type ScattergeoMarker struct { Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref + // arrayOK: false // default: up // type: enumerated // Sets the reference for marker angle. With *previous*, angle 0 points along the line from the previous point to this one. With *up*, angle 0 points toward the top of the screen. With *north*, angle 0 points north based on the current map projection. @@ -1046,6 +1069,7 @@ type ScattergeoMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1076,10 +1100,11 @@ type ScattergeoMarker struct { Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScattergeoMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScattergeoMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scattergl_gen.go b/generated/v2.31.1/graph_objects/scattergl_gen.go index bbe038b..6b00f27 100644 --- a/generated/v2.31.1/graph_objects/scattergl_gen.go +++ b/generated/v2.31.1/graph_objects/scattergl_gen.go @@ -54,6 +54,7 @@ type Scattergl struct { ErrorY *ScatterglErrorY `json:"error_y,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Defaults to *none* unless this trace is stacked, then it gets *tonexty* (*tonextx*) if `orientation` is *v* (*h*) Use with `fillcolor` if not *none*. *tozerox* and *tozeroy* fill to x=0 and y=0 respectively. *tonextx* and *tonexty* fill between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area graph); if there is no trace before it, they behave like *tozerox* and *tozeroy*. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order. @@ -69,7 +70,7 @@ type Scattergl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScatterglHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScatterglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -214,10 +215,11 @@ type Scattergl struct { Textfont *ScatterglTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScatterglTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScatterglTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -266,6 +268,7 @@ type Scattergl struct { Unselected *ScatterglUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -290,6 +293,7 @@ type Scattergl struct { Xaxis String `json:"xaxis,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -314,6 +318,7 @@ type Scattergl struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -344,6 +349,7 @@ type Scattergl struct { Yaxis String `json:"yaxis,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -368,6 +374,7 @@ type Scattergl struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -444,6 +451,7 @@ type ScatterglErrorX struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -532,6 +540,7 @@ type ScatterglErrorY struct { Tracerefminus int64 `json:"tracerefminus,omitempty"` // Type + // arrayOK: false // default: %!s() // type: enumerated // Determines the rule used to generate the error bars. If *constant`, the bar lengths are of a constant value. Set this constant in `value`. If *percent*, the bar lengths correspond to a percentage of underlying data. Set this percentage in `value`. If *sqrt*, the bar lengths correspond to the square of the underlying data. If *data*, the bar lengths are set with data set `array`. @@ -606,10 +615,11 @@ type ScatterglHoverlabelFont struct { type ScatterglHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScatterglHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScatterglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -704,12 +714,14 @@ type ScatterglLine struct { Color Color `json:"color,omitempty"` // Dash + // arrayOK: false // default: solid // type: enumerated // Sets the style of the lines. Dash ScatterglLineDash `json:"dash,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Determines the line shape. The values correspond to step-wise line shapes. @@ -774,6 +786,7 @@ type ScatterglMarkerColorbarTitle struct { Font *ScatterglMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -814,6 +827,7 @@ type ScatterglMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -832,6 +846,7 @@ type ScatterglMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -850,6 +865,7 @@ type ScatterglMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -874,6 +890,7 @@ type ScatterglMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -886,12 +903,14 @@ type ScatterglMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScatterglMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -904,6 +923,7 @@ type ScatterglMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -944,12 +964,14 @@ type ScatterglMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScatterglMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -968,6 +990,7 @@ type ScatterglMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -980,6 +1003,7 @@ type ScatterglMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -1032,6 +1056,7 @@ type ScatterglMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -1044,6 +1069,7 @@ type ScatterglMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -1056,6 +1082,7 @@ type ScatterglMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -1068,6 +1095,7 @@ type ScatterglMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -1264,6 +1292,7 @@ type ScatterglMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1282,10 +1311,11 @@ type ScatterglMarker struct { Sizesrc string `json:"sizesrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScatterglMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScatterglMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scattermapbox_gen.go b/generated/v2.31.1/graph_objects/scattermapbox_gen.go index 8576987..7a03b64 100644 --- a/generated/v2.31.1/graph_objects/scattermapbox_gen.go +++ b/generated/v2.31.1/graph_objects/scattermapbox_gen.go @@ -44,6 +44,7 @@ type Scattermapbox struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Use with `fillcolor` if not *none*. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. @@ -59,7 +60,7 @@ type Scattermapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScattermapboxHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScattermapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -234,6 +235,7 @@ type Scattermapbox struct { Textfont *ScattermapboxTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: false // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. @@ -280,6 +282,7 @@ type Scattermapbox struct { Unselected *ScattermapboxUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -394,10 +397,11 @@ type ScattermapboxHoverlabelFont struct { type ScattermapboxHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScattermapboxHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScattermapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -550,6 +554,7 @@ type ScattermapboxMarkerColorbarTitle struct { Font *ScattermapboxMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -590,6 +595,7 @@ type ScattermapboxMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -608,6 +614,7 @@ type ScattermapboxMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -626,6 +633,7 @@ type ScattermapboxMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -650,6 +658,7 @@ type ScattermapboxMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -662,12 +671,14 @@ type ScattermapboxMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScattermapboxMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -680,6 +691,7 @@ type ScattermapboxMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -720,12 +732,14 @@ type ScattermapboxMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScattermapboxMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -744,6 +758,7 @@ type ScattermapboxMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -756,6 +771,7 @@ type ScattermapboxMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -808,6 +824,7 @@ type ScattermapboxMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -820,6 +837,7 @@ type ScattermapboxMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -832,6 +850,7 @@ type ScattermapboxMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -844,6 +863,7 @@ type ScattermapboxMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -966,6 +986,7 @@ type ScattermapboxMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. diff --git a/generated/v2.31.1/graph_objects/scatterpolar_gen.go b/generated/v2.31.1/graph_objects/scatterpolar_gen.go index 38ca335..176c0e8 100644 --- a/generated/v2.31.1/graph_objects/scatterpolar_gen.go +++ b/generated/v2.31.1/graph_objects/scatterpolar_gen.go @@ -52,6 +52,7 @@ type Scatterpolar struct { Dtheta float64 `json:"dtheta,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Use with `fillcolor` if not *none*. scatterpolar has a subset of the options available to scatter. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. @@ -67,7 +68,7 @@ type Scatterpolar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScatterpolarHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScatterpolarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -242,10 +243,11 @@ type Scatterpolar struct { Textfont *ScatterpolarTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScatterpolarTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScatterpolarTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -290,6 +292,7 @@ type Scatterpolar struct { Thetasrc string `json:"thetasrc,omitempty"` // Thetaunit + // arrayOK: false // default: degrees // type: enumerated // Sets the unit of input *theta* values. Has an effect only when on *linear* angular axes. @@ -318,6 +321,7 @@ type Scatterpolar struct { Unselected *ScatterpolarUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -368,10 +372,11 @@ type ScatterpolarHoverlabelFont struct { type ScatterpolarHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScatterpolarHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScatterpolarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -484,6 +489,7 @@ type ScatterpolarLine struct { Dash string `json:"dash,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Determines the line shape. With *spline* the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes. @@ -554,6 +560,7 @@ type ScatterpolarMarkerColorbarTitle struct { Font *ScatterpolarMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -594,6 +601,7 @@ type ScatterpolarMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -612,6 +620,7 @@ type ScatterpolarMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -630,6 +639,7 @@ type ScatterpolarMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -654,6 +664,7 @@ type ScatterpolarMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -666,12 +677,14 @@ type ScatterpolarMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScatterpolarMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -684,6 +697,7 @@ type ScatterpolarMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -724,12 +738,14 @@ type ScatterpolarMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScatterpolarMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -748,6 +764,7 @@ type ScatterpolarMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -760,6 +777,7 @@ type ScatterpolarMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -812,6 +830,7 @@ type ScatterpolarMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -824,6 +843,7 @@ type ScatterpolarMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -836,6 +856,7 @@ type ScatterpolarMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -848,6 +869,7 @@ type ScatterpolarMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -870,10 +892,11 @@ type ScatterpolarMarkerGradient struct { Colorsrc string `json:"colorsrc,omitempty"` // Type + // arrayOK: true // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ScatterpolarMarkerGradientType `json:"type,omitempty"` + Type ArrayOK[*ScatterpolarMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -968,6 +991,7 @@ type ScatterpolarMarker struct { Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref + // arrayOK: false // default: up // type: enumerated // Sets the reference for marker angle. With *previous*, angle 0 points along the line from the previous point to this one. With *up*, angle 0 points toward the top of the screen. @@ -1088,6 +1112,7 @@ type ScatterpolarMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1118,10 +1143,11 @@ type ScatterpolarMarker struct { Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScatterpolarMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScatterpolarMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scatterpolargl_gen.go b/generated/v2.31.1/graph_objects/scatterpolargl_gen.go index dde8a85..8b19ea4 100644 --- a/generated/v2.31.1/graph_objects/scatterpolargl_gen.go +++ b/generated/v2.31.1/graph_objects/scatterpolargl_gen.go @@ -46,6 +46,7 @@ type Scatterpolargl struct { Dtheta float64 `json:"dtheta,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Defaults to *none* unless this trace is stacked, then it gets *tonexty* (*tonextx*) if `orientation` is *v* (*h*) Use with `fillcolor` if not *none*. *tozerox* and *tozeroy* fill to x=0 and y=0 respectively. *tonextx* and *tonexty* fill between the endpoints of this trace and the endpoints of the trace before it, connecting those endpoints with straight lines (to make a stacked area graph); if there is no trace before it, they behave like *tozerox* and *tozeroy*. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. Traces in a `stackgroup` will only fill to (or be filled to) other traces in the same group. With multiple `stackgroup`s or some traces stacked and some not, if fill-linked traces are not already consecutive, the later ones will be pushed down in the drawing order. @@ -61,7 +62,7 @@ type Scatterpolargl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScatterpolarglHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScatterpolarglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -230,10 +231,11 @@ type Scatterpolargl struct { Textfont *ScatterpolarglTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScatterpolarglTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScatterpolarglTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -278,6 +280,7 @@ type Scatterpolargl struct { Thetasrc string `json:"thetasrc,omitempty"` // Thetaunit + // arrayOK: false // default: degrees // type: enumerated // Sets the unit of input *theta* values. Has an effect only when on *linear* angular axes. @@ -306,6 +309,7 @@ type Scatterpolargl struct { Unselected *ScatterpolarglUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -356,10 +360,11 @@ type ScatterpolarglHoverlabelFont struct { type ScatterpolarglHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScatterpolarglHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScatterpolarglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -454,6 +459,7 @@ type ScatterpolarglLine struct { Color Color `json:"color,omitempty"` // Dash + // arrayOK: false // default: solid // type: enumerated // Sets the style of the lines. @@ -518,6 +524,7 @@ type ScatterpolarglMarkerColorbarTitle struct { Font *ScatterpolarglMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -558,6 +565,7 @@ type ScatterpolarglMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -576,6 +584,7 @@ type ScatterpolarglMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -594,6 +603,7 @@ type ScatterpolarglMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -618,6 +628,7 @@ type ScatterpolarglMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -630,12 +641,14 @@ type ScatterpolarglMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScatterpolarglMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -648,6 +661,7 @@ type ScatterpolarglMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -688,12 +702,14 @@ type ScatterpolarglMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScatterpolarglMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -712,6 +728,7 @@ type ScatterpolarglMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -724,6 +741,7 @@ type ScatterpolarglMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -776,6 +794,7 @@ type ScatterpolarglMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -788,6 +807,7 @@ type ScatterpolarglMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -800,6 +820,7 @@ type ScatterpolarglMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -812,6 +833,7 @@ type ScatterpolarglMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -1008,6 +1030,7 @@ type ScatterpolarglMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1026,10 +1049,11 @@ type ScatterpolarglMarker struct { Sizesrc string `json:"sizesrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScatterpolarglMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScatterpolarglMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scattersmith_gen.go b/generated/v2.31.1/graph_objects/scattersmith_gen.go index 94c4698..505945e 100644 --- a/generated/v2.31.1/graph_objects/scattersmith_gen.go +++ b/generated/v2.31.1/graph_objects/scattersmith_gen.go @@ -40,6 +40,7 @@ type Scattersmith struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Use with `fillcolor` if not *none*. scattersmith has a subset of the options available to scatter. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. @@ -55,7 +56,7 @@ type Scattersmith struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScattersmithHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScattersmithHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -236,10 +237,11 @@ type Scattersmith struct { Textfont *ScattersmithTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScattersmithTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScattersmithTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -288,6 +290,7 @@ type Scattersmith struct { Unselected *ScattersmithUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -338,10 +341,11 @@ type ScattersmithHoverlabelFont struct { type ScattersmithHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScattersmithHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScattersmithHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -454,6 +458,7 @@ type ScattersmithLine struct { Dash string `json:"dash,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Determines the line shape. With *spline* the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes. @@ -524,6 +529,7 @@ type ScattersmithMarkerColorbarTitle struct { Font *ScattersmithMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -564,6 +570,7 @@ type ScattersmithMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -582,6 +589,7 @@ type ScattersmithMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -600,6 +608,7 @@ type ScattersmithMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -624,6 +633,7 @@ type ScattersmithMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -636,12 +646,14 @@ type ScattersmithMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScattersmithMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -654,6 +666,7 @@ type ScattersmithMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -694,12 +707,14 @@ type ScattersmithMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScattersmithMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -718,6 +733,7 @@ type ScattersmithMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -730,6 +746,7 @@ type ScattersmithMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -782,6 +799,7 @@ type ScattersmithMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -794,6 +812,7 @@ type ScattersmithMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -806,6 +825,7 @@ type ScattersmithMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -818,6 +838,7 @@ type ScattersmithMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -840,10 +861,11 @@ type ScattersmithMarkerGradient struct { Colorsrc string `json:"colorsrc,omitempty"` // Type + // arrayOK: true // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ScattersmithMarkerGradientType `json:"type,omitempty"` + Type ArrayOK[*ScattersmithMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -938,6 +960,7 @@ type ScattersmithMarker struct { Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref + // arrayOK: false // default: up // type: enumerated // Sets the reference for marker angle. With *previous*, angle 0 points along the line from the previous point to this one. With *up*, angle 0 points toward the top of the screen. @@ -1058,6 +1081,7 @@ type ScattersmithMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1088,10 +1112,11 @@ type ScattersmithMarker struct { Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScattersmithMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScattersmithMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scatterternary_gen.go b/generated/v2.31.1/graph_objects/scatterternary_gen.go index ff03e3f..d971e11 100644 --- a/generated/v2.31.1/graph_objects/scatterternary_gen.go +++ b/generated/v2.31.1/graph_objects/scatterternary_gen.go @@ -76,6 +76,7 @@ type Scatterternary struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Fill + // arrayOK: false // default: none // type: enumerated // Sets the area to fill with a solid color. Use with `fillcolor` if not *none*. scatterternary has a subset of the options available to scatter. *toself* connects the endpoints of the trace (or each segment of the trace if it has gaps) into a closed shape. *tonext* fills the space between two traces if one completely encloses the other (eg consecutive contour lines), and behaves like *toself* if there is no trace before it. *tonext* should not be used if one trace does not enclose the other. @@ -91,7 +92,7 @@ type Scatterternary struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ScatterternaryHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ScatterternaryHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -254,10 +255,11 @@ type Scatterternary struct { Textfont *ScatterternaryTextfont `json:"textfont,omitempty"` // Textposition + // arrayOK: true // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ScatterternaryTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*ScatterternaryTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -306,6 +308,7 @@ type Scatterternary struct { Unselected *ScatterternaryUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -356,10 +359,11 @@ type ScatterternaryHoverlabelFont struct { type ScatterternaryHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ScatterternaryHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ScatterternaryHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -472,6 +476,7 @@ type ScatterternaryLine struct { Dash string `json:"dash,omitempty"` // Shape + // arrayOK: false // default: linear // type: enumerated // Determines the line shape. With *spline* the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes. @@ -542,6 +547,7 @@ type ScatterternaryMarkerColorbarTitle struct { Font *ScatterternaryMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -582,6 +588,7 @@ type ScatterternaryMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -600,6 +607,7 @@ type ScatterternaryMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -618,6 +626,7 @@ type ScatterternaryMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -642,6 +651,7 @@ type ScatterternaryMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -654,12 +664,14 @@ type ScatterternaryMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix ScatterternaryMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -672,6 +684,7 @@ type ScatterternaryMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -712,12 +725,14 @@ type ScatterternaryMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow ScatterternaryMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -736,6 +751,7 @@ type ScatterternaryMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -748,6 +764,7 @@ type ScatterternaryMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -800,6 +817,7 @@ type ScatterternaryMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -812,6 +830,7 @@ type ScatterternaryMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -824,6 +843,7 @@ type ScatterternaryMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -836,6 +856,7 @@ type ScatterternaryMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -858,10 +879,11 @@ type ScatterternaryMarkerGradient struct { Colorsrc string `json:"colorsrc,omitempty"` // Type + // arrayOK: true // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ScatterternaryMarkerGradientType `json:"type,omitempty"` + Type ArrayOK[*ScatterternaryMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -956,6 +978,7 @@ type ScatterternaryMarker struct { Angle ArrayOK[*float64] `json:"angle,omitempty"` // Angleref + // arrayOK: false // default: up // type: enumerated // Sets the reference for marker angle. With *previous*, angle 0 points along the line from the previous point to this one. With *up*, angle 0 points toward the top of the screen. @@ -1076,6 +1099,7 @@ type ScatterternaryMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -1106,10 +1130,11 @@ type ScatterternaryMarker struct { Standoffsrc string `json:"standoffsrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ScatterternaryMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*ScatterternaryMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/splom_gen.go b/generated/v2.31.1/graph_objects/splom_gen.go index 89c37bb..f4ad4e3 100644 --- a/generated/v2.31.1/graph_objects/splom_gen.go +++ b/generated/v2.31.1/graph_objects/splom_gen.go @@ -41,7 +41,7 @@ type Splom struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo SplomHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*SplomHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -212,6 +212,7 @@ type Splom struct { Unselected *SplomUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -296,10 +297,11 @@ type SplomHoverlabelFont struct { type SplomHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align SplomHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*SplomHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -436,6 +438,7 @@ type SplomMarkerColorbarTitle struct { Font *SplomMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -476,6 +479,7 @@ type SplomMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -494,6 +498,7 @@ type SplomMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -512,6 +517,7 @@ type SplomMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -536,6 +542,7 @@ type SplomMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -548,12 +555,14 @@ type SplomMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix SplomMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -566,6 +575,7 @@ type SplomMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -606,12 +616,14 @@ type SplomMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow SplomMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -630,6 +642,7 @@ type SplomMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -642,6 +655,7 @@ type SplomMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -694,6 +708,7 @@ type SplomMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -706,6 +721,7 @@ type SplomMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -718,6 +734,7 @@ type SplomMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -730,6 +747,7 @@ type SplomMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -926,6 +944,7 @@ type SplomMarker struct { Sizemin float64 `json:"sizemin,omitempty"` // Sizemode + // arrayOK: false // default: diameter // type: enumerated // Has an effect only if `marker.size` is set to a numerical array. Sets the rule for which the data in `size` is converted to pixels. @@ -944,10 +963,11 @@ type SplomMarker struct { Sizesrc string `json:"sizesrc,omitempty"` // Symbol + // arrayOK: true // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol SplomMarkerSymbol `json:"symbol,omitempty"` + Symbol ArrayOK[*SplomMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/streamtube_gen.go b/generated/v2.31.1/graph_objects/streamtube_gen.go index 3968863..13ed0b0 100644 --- a/generated/v2.31.1/graph_objects/streamtube_gen.go +++ b/generated/v2.31.1/graph_objects/streamtube_gen.go @@ -77,7 +77,7 @@ type Streamtube struct { // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo StreamtubeHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*StreamtubeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -272,6 +272,7 @@ type Streamtube struct { Vhoverformat string `json:"vhoverformat,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -408,6 +409,7 @@ type StreamtubeColorbarTitle struct { Font *StreamtubeColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -448,6 +450,7 @@ type StreamtubeColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -466,6 +469,7 @@ type StreamtubeColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -484,6 +488,7 @@ type StreamtubeColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -508,6 +513,7 @@ type StreamtubeColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -520,12 +526,14 @@ type StreamtubeColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix StreamtubeColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -538,6 +546,7 @@ type StreamtubeColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -578,12 +587,14 @@ type StreamtubeColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow StreamtubeColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -602,6 +613,7 @@ type StreamtubeColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -614,6 +626,7 @@ type StreamtubeColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -666,6 +679,7 @@ type StreamtubeColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -678,6 +692,7 @@ type StreamtubeColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -690,6 +705,7 @@ type StreamtubeColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -702,6 +718,7 @@ type StreamtubeColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -752,10 +769,11 @@ type StreamtubeHoverlabelFont struct { type StreamtubeHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align StreamtubeHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*StreamtubeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/sunburst_gen.go b/generated/v2.31.1/graph_objects/sunburst_gen.go index 9cc12aa..b95afd7 100644 --- a/generated/v2.31.1/graph_objects/sunburst_gen.go +++ b/generated/v2.31.1/graph_objects/sunburst_gen.go @@ -16,6 +16,7 @@ type Sunburst struct { Type TraceType `json:"type,omitempty"` // Branchvalues + // arrayOK: false // default: remainder // type: enumerated // Determines how the items in `values` are summed. When set to *total*, items in `values` are taken to be value of all its descendants. When set to *remainder*, items in `values` corresponding to the root and the branches sectors are taken to be the extra part not part of the sum of the values at their leaves. @@ -47,7 +48,7 @@ type Sunburst struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo SunburstHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*SunburstHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -100,6 +101,7 @@ type Sunburst struct { Insidetextfont *SunburstInsidetextfont `json:"insidetextfont,omitempty"` // Insidetextorientation + // arrayOK: false // default: auto // type: enumerated // Controls the orientation of the text inside chart sectors. When set to *auto*, text may be oriented in any direction in order to be as big as possible in the middle of a sector. The *horizontal* option orients text to be parallel with the bottom of the chart, and may make text smaller in order to achieve that goal. The *radial* option orients text along the radius of the sector. The *tangential* option orients text perpendicular to the radius of the sector. @@ -284,6 +286,7 @@ type Sunburst struct { Valuessrc string `json:"valuessrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -362,10 +365,11 @@ type SunburstHoverlabelFont struct { type SunburstHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align SunburstHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*SunburstHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -552,6 +556,7 @@ type SunburstMarkerColorbarTitle struct { Font *SunburstMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -592,6 +597,7 @@ type SunburstMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -610,6 +616,7 @@ type SunburstMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -628,6 +635,7 @@ type SunburstMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -652,6 +660,7 @@ type SunburstMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -664,12 +673,14 @@ type SunburstMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix SunburstMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -682,6 +693,7 @@ type SunburstMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -722,12 +734,14 @@ type SunburstMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow SunburstMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -746,6 +760,7 @@ type SunburstMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -758,6 +773,7 @@ type SunburstMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -810,6 +826,7 @@ type SunburstMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -822,6 +839,7 @@ type SunburstMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -834,6 +852,7 @@ type SunburstMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -846,6 +865,7 @@ type SunburstMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -914,16 +934,18 @@ type SunburstMarkerPattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode SunburstMarkerPatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape SunburstMarkerPatternShape `json:"shape,omitempty"` + Shape ArrayOK[*SunburstMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/surface_gen.go b/generated/v2.31.1/graph_objects/surface_gen.go index 42c4e29..6e1298a 100644 --- a/generated/v2.31.1/graph_objects/surface_gen.go +++ b/generated/v2.31.1/graph_objects/surface_gen.go @@ -93,7 +93,7 @@ type Surface struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo SurfaceHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*SurfaceHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -272,6 +272,7 @@ type Surface struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -284,6 +285,7 @@ type Surface struct { X interface{} `json:"x,omitempty"` // Xcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `x` date data. @@ -308,6 +310,7 @@ type Surface struct { Y interface{} `json:"y,omitempty"` // Ycalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `y` date data. @@ -332,6 +335,7 @@ type Surface struct { Z interface{} `json:"z,omitempty"` // Zcalendar + // arrayOK: false // default: gregorian // type: enumerated // Sets the calendar system to use with `z` date data. @@ -402,6 +406,7 @@ type SurfaceColorbarTitle struct { Font *SurfaceColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -442,6 +447,7 @@ type SurfaceColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -460,6 +466,7 @@ type SurfaceColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -478,6 +485,7 @@ type SurfaceColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -502,6 +510,7 @@ type SurfaceColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -514,12 +523,14 @@ type SurfaceColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix SurfaceColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -532,6 +543,7 @@ type SurfaceColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -572,12 +584,14 @@ type SurfaceColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow SurfaceColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -596,6 +610,7 @@ type SurfaceColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -608,6 +623,7 @@ type SurfaceColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -660,6 +676,7 @@ type SurfaceColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -672,6 +689,7 @@ type SurfaceColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -684,6 +702,7 @@ type SurfaceColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -696,6 +715,7 @@ type SurfaceColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -1032,10 +1052,11 @@ type SurfaceHoverlabelFont struct { type SurfaceHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align SurfaceHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*SurfaceHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/table_gen.go b/generated/v2.31.1/graph_objects/table_gen.go index 1475b6b..fe75516 100644 --- a/generated/v2.31.1/graph_objects/table_gen.go +++ b/generated/v2.31.1/graph_objects/table_gen.go @@ -67,7 +67,7 @@ type Table struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo TableHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*TableHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -148,6 +148,7 @@ type Table struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -242,10 +243,11 @@ type TableCellsLine struct { type TableCells struct { // Align + // arrayOK: true // default: center // type: enumerated // Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more
HTML tags) or if an explicit width is set to override the text width. - Align TableCellsAlign `json:"align,omitempty"` + Align ArrayOK[*TableCellsAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -436,10 +438,11 @@ type TableHeaderLine struct { type TableHeader struct { // Align + // arrayOK: true // default: center // type: enumerated // Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more
HTML tags) or if an explicit width is set to override the text width. - Align TableHeaderAlign `json:"align,omitempty"` + Align ArrayOK[*TableHeaderAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -558,10 +561,11 @@ type TableHoverlabelFont struct { type TableHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align TableHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*TableHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/treemap_gen.go b/generated/v2.31.1/graph_objects/treemap_gen.go index 51a2f05..bfe6f4e 100644 --- a/generated/v2.31.1/graph_objects/treemap_gen.go +++ b/generated/v2.31.1/graph_objects/treemap_gen.go @@ -16,6 +16,7 @@ type Treemap struct { Type TraceType `json:"type,omitempty"` // Branchvalues + // arrayOK: false // default: remainder // type: enumerated // Determines how the items in `values` are summed. When set to *total*, items in `values` are taken to be value of all its descendants. When set to *remainder*, items in `values` corresponding to the root and the branches sectors are taken to be the extra part not part of the sum of the values at their leaves. @@ -47,7 +48,7 @@ type Treemap struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo TreemapHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*TreemapHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -224,6 +225,7 @@ type Treemap struct { Textinfo TreemapTextinfo `json:"textinfo,omitempty"` // Textposition + // arrayOK: false // default: top left // type: enumerated // Sets the positions of the `text` elements. @@ -282,6 +284,7 @@ type Treemap struct { Valuessrc string `json:"valuessrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -360,10 +363,11 @@ type TreemapHoverlabelFont struct { type TreemapHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align TreemapHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*TreemapHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -540,6 +544,7 @@ type TreemapMarkerColorbarTitle struct { Font *TreemapMarkerColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -580,6 +585,7 @@ type TreemapMarkerColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -598,6 +604,7 @@ type TreemapMarkerColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -616,6 +623,7 @@ type TreemapMarkerColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -640,6 +648,7 @@ type TreemapMarkerColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -652,12 +661,14 @@ type TreemapMarkerColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix TreemapMarkerColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -670,6 +681,7 @@ type TreemapMarkerColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -710,12 +722,14 @@ type TreemapMarkerColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow TreemapMarkerColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -734,6 +748,7 @@ type TreemapMarkerColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -746,6 +761,7 @@ type TreemapMarkerColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -798,6 +814,7 @@ type TreemapMarkerColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -810,6 +827,7 @@ type TreemapMarkerColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -822,6 +840,7 @@ type TreemapMarkerColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -834,6 +853,7 @@ type TreemapMarkerColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -930,16 +950,18 @@ type TreemapMarkerPattern struct { Fgopacity float64 `json:"fgopacity,omitempty"` // Fillmode + // arrayOK: false // default: replace // type: enumerated // Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`. Fillmode TreemapMarkerPatternFillmode `json:"fillmode,omitempty"` // Shape + // arrayOK: true // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape TreemapMarkerPatternShape `json:"shape,omitempty"` + Shape ArrayOK[*TreemapMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -1040,6 +1062,7 @@ type TreemapMarker struct { Cornerradius float64 `json:"cornerradius,omitempty"` // Depthfade + // arrayOK: false // default: %!s() // type: enumerated // Determines if the sector colors are faded towards the background from the leaves up to the headers. This option is unavailable when a `colorscale` is present, defaults to false when `marker.colors` is set, but otherwise defaults to true. When set to *reversed*, the fading direction is inverted, that is the top elements within hierarchy are drawn with fully saturated colors while the leaves are faded towards the background color. @@ -1154,12 +1177,14 @@ type TreemapPathbarTextfont struct { type TreemapPathbar struct { // Edgeshape + // arrayOK: false // default: > // type: enumerated // Determines which shape is used for edges between `barpath` labels. Edgeshape TreemapPathbarEdgeshape `json:"edgeshape,omitempty"` // Side + // arrayOK: false // default: top // type: enumerated // Determines on which side of the the treemap the `pathbar` should be presented. @@ -1258,6 +1283,7 @@ type TreemapTiling struct { Flip TreemapTilingFlip `json:"flip,omitempty"` // Packing + // arrayOK: false // default: squarify // type: enumerated // Determines d3 treemap solver. For more info please refer to https://github.com/d3/d3-hierarchy#treemap-tiling diff --git a/generated/v2.31.1/graph_objects/violin_gen.go b/generated/v2.31.1/graph_objects/violin_gen.go index 5a5ad89..a3607f2 100644 --- a/generated/v2.31.1/graph_objects/violin_gen.go +++ b/generated/v2.31.1/graph_objects/violin_gen.go @@ -53,7 +53,7 @@ type Violin struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ViolinHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*ViolinHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -184,6 +184,7 @@ type Violin struct { Opacity float64 `json:"opacity,omitempty"` // Orientation + // arrayOK: false // default: %!s() // type: enumerated // Sets the orientation of the violin(s). If *v* (*h*), the distribution is visualized along the vertical (horizontal). @@ -196,12 +197,14 @@ type Violin struct { Pointpos float64 `json:"pointpos,omitempty"` // Points + // arrayOK: false // default: %!s() // type: enumerated // If *outliers*, only the sample points lying outside the whiskers are shown If *suspectedoutliers*, the outlier points are shown and points either less than 4*Q1-3*Q3 or greater than 4*Q3-3*Q1 are highlighted (see `outliercolor`) If *all*, all sample points are shown If *false*, only the violins are shown with no sample points. Defaults to *suspectedoutliers* when `marker.outliercolor` or `marker.line.outliercolor` is set, otherwise defaults to *outliers*. Points ViolinPoints `json:"points,omitempty"` // Quartilemethod + // arrayOK: false // default: linear // type: enumerated // Sets the method used to compute the sample's Q1 and Q3 quartiles. The *linear* method uses the 25th percentile for Q1 and 75th percentile for Q3 as computed using method #10 (listed on http://jse.amstat.org/v14n3/langford.html). The *exclusive* method uses the median to divide the ordered dataset into two halves if the sample is odd, it does not include the median in either half - Q1 is then the median of the lower half and Q3 the median of the upper half. The *inclusive* method also uses the median to divide the ordered dataset into two halves but if the sample is odd, it includes the median in both halves - Q1 is then the median of the lower half and Q3 the median of the upper half. @@ -214,6 +217,7 @@ type Violin struct { Scalegroup string `json:"scalegroup,omitempty"` // Scalemode + // arrayOK: false // default: width // type: enumerated // Sets the metric by which the width of each violin is determined. *width* means each violin has the same (max) width *count* means the violins are scaled by the number of sample points making up each violin. @@ -236,6 +240,7 @@ type Violin struct { Showlegend Bool `json:"showlegend,omitempty"` // Side + // arrayOK: false // default: both // type: enumerated // Determines on which side of the position value the density function making up one half of a violin is plotted. Useful when comparing two violin traces under *overlay* mode, where one trace has `side` set to *positive* and the other to *negative*. @@ -248,6 +253,7 @@ type Violin struct { Span interface{} `json:"span,omitempty"` // Spanmode + // arrayOK: false // default: soft // type: enumerated // Sets the method by which the span in data space where the density function will be computed. *soft* means the span goes from the sample's minimum value minus two bandwidths to the sample's maximum value plus two bandwidths. *hard* means the span goes from the sample's minimum to its maximum value. For custom span settings, use mode *manual* and fill in the `span` attribute. @@ -292,6 +298,7 @@ type Violin struct { Unselected *ViolinUnselected `json:"unselected,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -456,10 +463,11 @@ type ViolinHoverlabelFont struct { type ViolinHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ViolinHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*ViolinHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -626,6 +634,7 @@ type ViolinMarker struct { Size float64 `json:"size,omitempty"` // Symbol + // arrayOK: false // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. diff --git a/generated/v2.31.1/graph_objects/volume_gen.go b/generated/v2.31.1/graph_objects/volume_gen.go index 2e026a3..fc58df2 100644 --- a/generated/v2.31.1/graph_objects/volume_gen.go +++ b/generated/v2.31.1/graph_objects/volume_gen.go @@ -91,7 +91,7 @@ type Volume struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo VolumeHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*VolumeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -300,6 +300,7 @@ type Volume struct { Valuesrc string `json:"valuesrc,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -476,6 +477,7 @@ type VolumeColorbarTitle struct { Font *VolumeColorbarTitleFont `json:"font,omitempty"` // Side + // arrayOK: false // default: %!s() // type: enumerated // Determines the location of color bar's title with respect to the color bar. Defaults to *top* when `orientation` if *v* and defaults to *right* when `orientation` if *h*. Note that the title's location used to be set by the now deprecated `titleside` attribute. @@ -516,6 +518,7 @@ type VolumeColorbar struct { Dtick interface{} `json:"dtick,omitempty"` // Exponentformat + // arrayOK: false // default: B // type: enumerated // Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If *none*, it appears as 1,000,000,000. If *e*, 1e+9. If *E*, 1E+9. If *power*, 1x10^9 (with 9 in a super script). If *SI*, 1G. If *B*, 1B. @@ -534,6 +537,7 @@ type VolumeColorbar struct { Len float64 `json:"len,omitempty"` // Lenmode + // arrayOK: false // default: fraction // type: enumerated // Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot *fraction* or in *pixels. Use `len` to set the value. @@ -552,6 +556,7 @@ type VolumeColorbar struct { Nticks int64 `json:"nticks,omitempty"` // Orientation + // arrayOK: false // default: v // type: enumerated // Sets the orientation of the colorbar. @@ -576,6 +581,7 @@ type VolumeColorbar struct { Separatethousands Bool `json:"separatethousands,omitempty"` // Showexponent + // arrayOK: false // default: all // type: enumerated // If *all*, all exponents are shown besides their significands. If *first*, only the exponent of the first tick is shown. If *last*, only the exponent of the last tick is shown. If *none*, no exponents appear. @@ -588,12 +594,14 @@ type VolumeColorbar struct { Showticklabels Bool `json:"showticklabels,omitempty"` // Showtickprefix + // arrayOK: false // default: all // type: enumerated // If *all*, all tick labels are displayed with a prefix. If *first*, only the first tick is displayed with a prefix. If *last*, only the last tick is displayed with a suffix. If *none*, tick prefixes are hidden. Showtickprefix VolumeColorbarShowtickprefix `json:"showtickprefix,omitempty"` // Showticksuffix + // arrayOK: false // default: all // type: enumerated // Same as `showtickprefix` but for tick suffixes. @@ -606,6 +614,7 @@ type VolumeColorbar struct { Thickness float64 `json:"thickness,omitempty"` // Thicknessmode + // arrayOK: false // default: pixels // type: enumerated // Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot *fraction* or in *pixels*. Use `thickness` to set the value. @@ -646,12 +655,14 @@ type VolumeColorbar struct { Tickformatstops interface{} `json:"tickformatstops,omitempty"` // Ticklabeloverflow + // arrayOK: false // default: %!s() // type: enumerated // Determines how we handle tick labels that would overflow either the graph div or the domain of the axis. The default value for inside tick labels is *hide past domain*. In other cases the default is *hide past div*. Ticklabeloverflow VolumeColorbarTicklabeloverflow `json:"ticklabeloverflow,omitempty"` // Ticklabelposition + // arrayOK: false // default: outside // type: enumerated // Determines where tick labels are drawn relative to the ticks. Left and right options are used when `orientation` is *h*, top and bottom when `orientation` is *v*. @@ -670,6 +681,7 @@ type VolumeColorbar struct { Ticklen float64 `json:"ticklen,omitempty"` // Tickmode + // arrayOK: false // default: %!s() // type: enumerated // Sets the tick mode for this axis. If *auto*, the number of ticks is set via `nticks`. If *linear*, the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` (*linear* is the default value if `tick0` and `dtick` are provided). If *array*, the placement of the ticks is set via `tickvals` and the tick text is `ticktext`. (*array* is the default value if `tickvals` is provided). @@ -682,6 +694,7 @@ type VolumeColorbar struct { Tickprefix string `json:"tickprefix,omitempty"` // Ticks + // arrayOK: false // default: // type: enumerated // Determines whether ticks are drawn or not. If **, this axis' ticks are not drawn. If *outside* (*inside*), this axis' are drawn outside (inside) the axis lines. @@ -734,6 +747,7 @@ type VolumeColorbar struct { X float64 `json:"x,omitempty"` // Xanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar. Defaults to *left* when `orientation` is *v* and *center* when `orientation` is *h*. @@ -746,6 +760,7 @@ type VolumeColorbar struct { Xpad float64 `json:"xpad,omitempty"` // Xref + // arrayOK: false // default: paper // type: enumerated // Sets the container `x` refers to. *container* spans the entire `width` of the plot. *paper* refers to the width of the plotting area only. @@ -758,6 +773,7 @@ type VolumeColorbar struct { Y float64 `json:"y,omitempty"` // Yanchor + // arrayOK: false // default: %!s() // type: enumerated // Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar. Defaults to *middle* when `orientation` is *v* and *bottom* when `orientation` is *h*. @@ -770,6 +786,7 @@ type VolumeColorbar struct { Ypad float64 `json:"ypad,omitempty"` // Yref + // arrayOK: false // default: paper // type: enumerated // Sets the container `y` refers to. *container* spans the entire `height` of the plot. *paper* refers to the height of the plotting area only. @@ -842,10 +859,11 @@ type VolumeHoverlabelFont struct { type VolumeHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align VolumeHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*VolumeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/waterfall_gen.go b/generated/v2.31.1/graph_objects/waterfall_gen.go index f683c40..c76178a 100644 --- a/generated/v2.31.1/graph_objects/waterfall_gen.go +++ b/generated/v2.31.1/graph_objects/waterfall_gen.go @@ -38,6 +38,7 @@ type Waterfall struct { Connector *WaterfallConnector `json:"connector,omitempty"` // Constraintext + // arrayOK: false // default: both // type: enumerated // Constrain the size of text inside or outside a bar to be no larger than the bar itself. @@ -75,7 +76,7 @@ type Waterfall struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo WaterfallHoverinfo `json:"hoverinfo,omitempty"` + Hoverinfo ArrayOK[*WaterfallHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -128,6 +129,7 @@ type Waterfall struct { Increasing *WaterfallIncreasing `json:"increasing,omitempty"` // Insidetextanchor + // arrayOK: false // default: end // type: enumerated // Determines if texts are kept at center or start/end points in `textposition` *inside* mode. @@ -220,6 +222,7 @@ type Waterfall struct { Opacity float64 `json:"opacity,omitempty"` // Orientation + // arrayOK: false // default: %!s() // type: enumerated // Sets the orientation of the bars. With *v* (*h*), the value of the each bar spans along the vertical (horizontal). @@ -268,10 +271,11 @@ type Waterfall struct { Textinfo WaterfallTextinfo `json:"textinfo,omitempty"` // Textposition + // arrayOK: true // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition WaterfallTextposition `json:"textposition,omitempty"` + Textposition ArrayOK[*WaterfallTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -320,6 +324,7 @@ type Waterfall struct { Uirevision interface{} `json:"uirevision,omitempty"` // Visible + // arrayOK: false // default: %!s(bool=true) // type: enumerated // Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). @@ -374,6 +379,7 @@ type Waterfall struct { Xperiod0 interface{} `json:"xperiod0,omitempty"` // Xperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the x axis. @@ -422,6 +428,7 @@ type Waterfall struct { Yperiod0 interface{} `json:"yperiod0,omitempty"` // Yperiodalignment + // arrayOK: false // default: middle // type: enumerated // Only relevant when the axis `type` is *date*. Sets the alignment of data points on the y axis. @@ -470,6 +477,7 @@ type WaterfallConnector struct { Line *WaterfallConnectorLine `json:"line,omitempty"` // Mode + // arrayOK: false // default: between // type: enumerated // Sets the shape of connector lines. @@ -564,10 +572,11 @@ type WaterfallHoverlabelFont struct { type WaterfallHoverlabel struct { // Align + // arrayOK: true // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align WaterfallHoverlabelAlign `json:"align,omitempty"` + Align ArrayOK[*WaterfallHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false diff --git a/generator/typefile.go b/generator/typefile.go index 37ed28d..662529e 100644 --- a/generator/typefile.go +++ b/generator/typefile.go @@ -121,11 +121,16 @@ func (file *typeFile) parseAttributes(namePrefix string, typePrefix string, attr if err != nil { return nil, fmt.Errorf("cannot parse flaglist %s, %w", name, err) } + typeName := typePrefix + xstrings.ToCamelCase(attr.Name) + if attr.ArrayOK { + typeName = fmt.Sprintf("ArrayOK[*%s]", typeName) + } fields = append(fields, structField{ Name: xstrings.ToCamelCase(attr.Name), JSONName: attr.Name, - Type: typePrefix + xstrings.ToCamelCase(attr.Name), + Type: typeName, Description: []string{ + fmt.Sprintf("arrayOK: %t", attr.ArrayOK), fmt.Sprintf("default: %s", attr.Dflt), fmt.Sprintf("type: %s", attr.ValType), attr.Description, @@ -139,11 +144,15 @@ func (file *typeFile) parseAttributes(namePrefix string, typePrefix string, attr if err != nil { return nil, fmt.Errorf("cannot parse enum %s, %w", typeName, err) } + if attr.ArrayOK { + typeName = fmt.Sprintf("ArrayOK[*%s]", typeName) + } fields = append(fields, structField{ Name: xstrings.ToCamelCase(attr.Name), JSONName: attr.Name, Type: typeName, Description: []string{ + fmt.Sprintf("arrayOK: %t", attr.ArrayOK), fmt.Sprintf("default: %s", attr.Dflt), fmt.Sprintf("type: %s", attr.ValType), attr.Description, From 242cbd84c89ebd65723d66fcd9c87c6652a0aa34 Mon Sep 17 00:00:00 2001 From: metalblueberry Date: Wed, 14 Aug 2024 14:09:38 +0200 Subject: [PATCH 14/17] And objects --- generated/v2.19.0/graph_objects/bar_gen.go | 24 ++++ .../v2.19.0/graph_objects/barpolar_gen.go | 19 +++ generated/v2.19.0/graph_objects/box_gen.go | 14 +++ .../v2.19.0/graph_objects/candlestick_gen.go | 11 ++ generated/v2.19.0/graph_objects/carpet_gen.go | 12 ++ .../v2.19.0/graph_objects/choropleth_gen.go | 16 +++ .../graph_objects/choroplethmapbox_gen.go | 16 +++ generated/v2.19.0/graph_objects/cone_gen.go | 12 ++ generated/v2.19.0/graph_objects/config_gen.go | 2 + .../v2.19.0/graph_objects/contour_gen.go | 14 +++ .../graph_objects/contourcarpet_gen.go | 10 ++ .../graph_objects/densitymapbox_gen.go | 10 ++ generated/v2.19.0/graph_objects/funnel_gen.go | 18 +++ .../v2.19.0/graph_objects/funnelarea_gen.go | 14 +++ .../v2.19.0/graph_objects/heatmap_gen.go | 11 ++ .../v2.19.0/graph_objects/heatmapgl_gen.go | 10 ++ .../v2.19.0/graph_objects/histogram2d_gen.go | 14 +++ .../graph_objects/histogram2dcontour_gen.go | 17 +++ .../v2.19.0/graph_objects/histogram_gen.go | 27 ++++ generated/v2.19.0/graph_objects/icicle_gen.go | 24 ++++ generated/v2.19.0/graph_objects/image_gen.go | 6 + .../v2.19.0/graph_objects/indicator_gen.go | 20 +++ .../v2.19.0/graph_objects/isosurface_gen.go | 24 ++++ generated/v2.19.0/graph_objects/layout_gen.go | 111 ++++++++++++++++ generated/v2.19.0/graph_objects/mesh3d_gen.go | 13 ++ generated/v2.19.0/graph_objects/ohlc_gen.go | 11 ++ .../v2.19.0/graph_objects/parcats_gen.go | 12 ++ .../v2.19.0/graph_objects/parcoords_gen.go | 14 +++ generated/v2.19.0/graph_objects/pie_gen.go | 15 +++ .../v2.19.0/graph_objects/pointcloud_gen.go | 8 ++ generated/v2.19.0/graph_objects/sankey_gen.go | 16 +++ .../v2.19.0/graph_objects/scatter3d_gen.go | 26 ++++ .../v2.19.0/graph_objects/scatter_gen.go | 26 ++++ .../graph_objects/scattercarpet_gen.go | 23 ++++ .../v2.19.0/graph_objects/scattergeo_gen.go | 22 ++++ .../v2.19.0/graph_objects/scattergl_gen.go | 23 ++++ .../graph_objects/scattermapbox_gen.go | 19 +++ .../v2.19.0/graph_objects/scatterpolar_gen.go | 23 ++++ .../graph_objects/scatterpolargl_gen.go | 21 ++++ .../v2.19.0/graph_objects/scattersmith_gen.go | 23 ++++ .../graph_objects/scatterternary_gen.go | 23 ++++ generated/v2.19.0/graph_objects/splom_gen.go | 17 +++ .../v2.19.0/graph_objects/streamtube_gen.go | 13 ++ .../v2.19.0/graph_objects/sunburst_gen.go | 20 +++ .../v2.19.0/graph_objects/surface_gen.go | 19 +++ generated/v2.19.0/graph_objects/table_gen.go | 15 +++ .../v2.19.0/graph_objects/treemap_gen.go | 24 ++++ generated/v2.19.0/graph_objects/violin_gen.go | 17 +++ generated/v2.19.0/graph_objects/volume_gen.go | 24 ++++ .../v2.19.0/graph_objects/waterfall_gen.go | 21 ++++ generated/v2.29.1/graph_objects/bar_gen.go | 24 ++++ .../v2.29.1/graph_objects/barpolar_gen.go | 19 +++ generated/v2.29.1/graph_objects/box_gen.go | 14 +++ .../v2.29.1/graph_objects/candlestick_gen.go | 11 ++ generated/v2.29.1/graph_objects/carpet_gen.go | 12 ++ .../v2.29.1/graph_objects/choropleth_gen.go | 16 +++ .../graph_objects/choroplethmapbox_gen.go | 16 +++ generated/v2.29.1/graph_objects/cone_gen.go | 12 ++ generated/v2.29.1/graph_objects/config_gen.go | 2 + .../v2.29.1/graph_objects/contour_gen.go | 14 +++ .../graph_objects/contourcarpet_gen.go | 10 ++ .../graph_objects/densitymapbox_gen.go | 10 ++ generated/v2.29.1/graph_objects/funnel_gen.go | 18 +++ .../v2.29.1/graph_objects/funnelarea_gen.go | 15 +++ .../v2.29.1/graph_objects/heatmap_gen.go | 11 ++ .../v2.29.1/graph_objects/heatmapgl_gen.go | 10 ++ .../v2.29.1/graph_objects/histogram2d_gen.go | 14 +++ .../graph_objects/histogram2dcontour_gen.go | 17 +++ .../v2.29.1/graph_objects/histogram_gen.go | 27 ++++ generated/v2.29.1/graph_objects/icicle_gen.go | 25 ++++ generated/v2.29.1/graph_objects/image_gen.go | 6 + .../v2.29.1/graph_objects/indicator_gen.go | 20 +++ .../v2.29.1/graph_objects/isosurface_gen.go | 24 ++++ generated/v2.29.1/graph_objects/layout_gen.go | 119 ++++++++++++++++++ generated/v2.29.1/graph_objects/mesh3d_gen.go | 13 ++ generated/v2.29.1/graph_objects/ohlc_gen.go | 11 ++ .../v2.29.1/graph_objects/parcats_gen.go | 12 ++ .../v2.29.1/graph_objects/parcoords_gen.go | 14 +++ generated/v2.29.1/graph_objects/pie_gen.go | 16 +++ .../v2.29.1/graph_objects/pointcloud_gen.go | 8 ++ generated/v2.29.1/graph_objects/sankey_gen.go | 16 +++ .../v2.29.1/graph_objects/scatter3d_gen.go | 26 ++++ .../v2.29.1/graph_objects/scatter_gen.go | 26 ++++ .../graph_objects/scattercarpet_gen.go | 23 ++++ .../v2.29.1/graph_objects/scattergeo_gen.go | 22 ++++ .../v2.29.1/graph_objects/scattergl_gen.go | 23 ++++ .../graph_objects/scattermapbox_gen.go | 19 +++ .../v2.29.1/graph_objects/scatterpolar_gen.go | 23 ++++ .../graph_objects/scatterpolargl_gen.go | 21 ++++ .../v2.29.1/graph_objects/scattersmith_gen.go | 23 ++++ .../graph_objects/scatterternary_gen.go | 23 ++++ generated/v2.29.1/graph_objects/splom_gen.go | 17 +++ .../v2.29.1/graph_objects/streamtube_gen.go | 13 ++ .../v2.29.1/graph_objects/sunburst_gen.go | 21 ++++ .../v2.29.1/graph_objects/surface_gen.go | 19 +++ generated/v2.29.1/graph_objects/table_gen.go | 15 +++ .../v2.29.1/graph_objects/treemap_gen.go | 25 ++++ generated/v2.29.1/graph_objects/violin_gen.go | 17 +++ generated/v2.29.1/graph_objects/volume_gen.go | 24 ++++ .../v2.29.1/graph_objects/waterfall_gen.go | 21 ++++ generated/v2.31.1/graph_objects/bar_gen.go | 24 ++++ .../v2.31.1/graph_objects/barpolar_gen.go | 19 +++ generated/v2.31.1/graph_objects/box_gen.go | 14 +++ .../v2.31.1/graph_objects/candlestick_gen.go | 11 ++ generated/v2.31.1/graph_objects/carpet_gen.go | 12 ++ .../v2.31.1/graph_objects/choropleth_gen.go | 16 +++ .../graph_objects/choroplethmapbox_gen.go | 16 +++ generated/v2.31.1/graph_objects/cone_gen.go | 12 ++ generated/v2.31.1/graph_objects/config_gen.go | 2 + .../v2.31.1/graph_objects/contour_gen.go | 14 +++ .../graph_objects/contourcarpet_gen.go | 10 ++ .../graph_objects/densitymapbox_gen.go | 10 ++ generated/v2.31.1/graph_objects/funnel_gen.go | 18 +++ .../v2.31.1/graph_objects/funnelarea_gen.go | 15 +++ .../v2.31.1/graph_objects/heatmap_gen.go | 11 ++ .../v2.31.1/graph_objects/heatmapgl_gen.go | 10 ++ .../v2.31.1/graph_objects/histogram2d_gen.go | 14 +++ .../graph_objects/histogram2dcontour_gen.go | 17 +++ .../v2.31.1/graph_objects/histogram_gen.go | 27 ++++ generated/v2.31.1/graph_objects/icicle_gen.go | 25 ++++ generated/v2.31.1/graph_objects/image_gen.go | 6 + .../v2.31.1/graph_objects/indicator_gen.go | 20 +++ .../v2.31.1/graph_objects/isosurface_gen.go | 24 ++++ generated/v2.31.1/graph_objects/layout_gen.go | 119 ++++++++++++++++++ generated/v2.31.1/graph_objects/mesh3d_gen.go | 13 ++ generated/v2.31.1/graph_objects/ohlc_gen.go | 11 ++ .../v2.31.1/graph_objects/parcats_gen.go | 12 ++ .../v2.31.1/graph_objects/parcoords_gen.go | 14 +++ generated/v2.31.1/graph_objects/pie_gen.go | 16 +++ .../v2.31.1/graph_objects/pointcloud_gen.go | 8 ++ generated/v2.31.1/graph_objects/sankey_gen.go | 16 +++ .../v2.31.1/graph_objects/scatter3d_gen.go | 26 ++++ .../v2.31.1/graph_objects/scatter_gen.go | 27 ++++ .../graph_objects/scattercarpet_gen.go | 23 ++++ .../v2.31.1/graph_objects/scattergeo_gen.go | 22 ++++ .../v2.31.1/graph_objects/scattergl_gen.go | 23 ++++ .../graph_objects/scattermapbox_gen.go | 19 +++ .../v2.31.1/graph_objects/scatterpolar_gen.go | 23 ++++ .../graph_objects/scatterpolargl_gen.go | 21 ++++ .../v2.31.1/graph_objects/scattersmith_gen.go | 23 ++++ .../graph_objects/scatterternary_gen.go | 23 ++++ generated/v2.31.1/graph_objects/splom_gen.go | 17 +++ .../v2.31.1/graph_objects/streamtube_gen.go | 13 ++ .../v2.31.1/graph_objects/sunburst_gen.go | 21 ++++ .../v2.31.1/graph_objects/surface_gen.go | 19 +++ generated/v2.31.1/graph_objects/table_gen.go | 15 +++ .../v2.31.1/graph_objects/treemap_gen.go | 25 ++++ generated/v2.31.1/graph_objects/violin_gen.go | 17 +++ generated/v2.31.1/graph_objects/volume_gen.go | 24 ++++ .../v2.31.1/graph_objects/waterfall_gen.go | 21 ++++ generator/typefile.go | 7 +- 151 files changed, 2865 insertions(+), 1 deletion(-) diff --git a/generated/v2.19.0/graph_objects/bar_gen.go b/generated/v2.19.0/graph_objects/bar_gen.go index 2c18b68..d5ef901 100644 --- a/generated/v2.19.0/graph_objects/bar_gen.go +++ b/generated/v2.19.0/graph_objects/bar_gen.go @@ -71,14 +71,17 @@ type Bar struct { Dy float64 `json:"dy,omitempty"` // ErrorX + // arrayOK: false // role: Object ErrorX *BarErrorX `json:"error_x,omitempty"` // ErrorY + // arrayOK: false // role: Object ErrorY *BarErrorY `json:"error_y,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -91,6 +94,7 @@ type Bar struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *BarHoverlabel `json:"hoverlabel,omitempty"` @@ -138,6 +142,7 @@ type Bar struct { Insidetextanchor BarInsidetextanchor `json:"insidetextanchor,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *BarInsidetextfont `json:"insidetextfont,omitempty"` @@ -148,6 +153,7 @@ type Bar struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *BarLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -164,6 +170,7 @@ type Bar struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *BarMarker `json:"marker,omitempty"` @@ -217,10 +224,12 @@ type Bar struct { Orientation BarOrientation `json:"orientation,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *BarOutsidetextfont `json:"outsidetextfont,omitempty"` // Selected + // arrayOK: false // role: Object Selected *BarSelected `json:"selected,omitempty"` @@ -237,6 +246,7 @@ type Bar struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *BarStream `json:"stream,omitempty"` @@ -253,6 +263,7 @@ type Bar struct { Textangle float64 `json:"textangle,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *BarTextfont `json:"textfont,omitempty"` @@ -306,6 +317,7 @@ type Bar struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *BarUnselected `json:"unselected,omitempty"` @@ -706,6 +718,7 @@ type BarHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *BarHoverlabelFont `json:"font,omitempty"` @@ -788,6 +801,7 @@ type BarLegendgrouptitleFont struct { type BarLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *BarLegendgrouptitleFont `json:"font,omitempty"` @@ -846,6 +860,7 @@ type BarMarkerColorbarTitleFont struct { type BarMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *BarMarkerColorbarTitleFont `json:"font,omitempty"` @@ -1012,6 +1027,7 @@ type BarMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *BarMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -1110,6 +1126,7 @@ type BarMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *BarMarkerColorbarTitle `json:"title,omitempty"` @@ -1352,6 +1369,7 @@ type BarMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *BarMarkerColorbar `json:"colorbar,omitempty"` @@ -1368,6 +1386,7 @@ type BarMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *BarMarkerLine `json:"line,omitempty"` @@ -1384,6 +1403,7 @@ type BarMarker struct { Opacitysrc string `json:"opacitysrc,omitempty"` // Pattern + // arrayOK: false // role: Object Pattern *BarMarkerPattern `json:"pattern,omitempty"` @@ -1470,10 +1490,12 @@ type BarSelectedTextfont struct { type BarSelected struct { // Marker + // arrayOK: false // role: Object Marker *BarSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *BarSelectedTextfont `json:"textfont,omitempty"` } @@ -1564,10 +1586,12 @@ type BarUnselectedTextfont struct { type BarUnselected struct { // Marker + // arrayOK: false // role: Object Marker *BarUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *BarUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.19.0/graph_objects/barpolar_gen.go b/generated/v2.19.0/graph_objects/barpolar_gen.go index 6345d64..5f51ce5 100644 --- a/generated/v2.19.0/graph_objects/barpolar_gen.go +++ b/generated/v2.19.0/graph_objects/barpolar_gen.go @@ -52,6 +52,7 @@ type Barpolar struct { Dtheta float64 `json:"dtheta,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -64,6 +65,7 @@ type Barpolar struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *BarpolarHoverlabel `json:"hoverlabel,omitempty"` @@ -110,6 +112,7 @@ type Barpolar struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *BarpolarLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -126,6 +129,7 @@ type Barpolar struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *BarpolarMarker `json:"marker,omitempty"` @@ -184,6 +188,7 @@ type Barpolar struct { Rsrc string `json:"rsrc,omitempty"` // Selected + // arrayOK: false // role: Object Selected *BarpolarSelected `json:"selected,omitempty"` @@ -200,6 +205,7 @@ type Barpolar struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *BarpolarStream `json:"stream,omitempty"` @@ -265,6 +271,7 @@ type Barpolar struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *BarpolarUnselected `json:"unselected,omitempty"` @@ -369,6 +376,7 @@ type BarpolarHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *BarpolarHoverlabelFont `json:"font,omitempty"` @@ -411,6 +419,7 @@ type BarpolarLegendgrouptitleFont struct { type BarpolarLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *BarpolarLegendgrouptitleFont `json:"font,omitempty"` @@ -469,6 +478,7 @@ type BarpolarMarkerColorbarTitleFont struct { type BarpolarMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *BarpolarMarkerColorbarTitleFont `json:"font,omitempty"` @@ -635,6 +645,7 @@ type BarpolarMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *BarpolarMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -733,6 +744,7 @@ type BarpolarMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *BarpolarMarkerColorbarTitle `json:"title,omitempty"` @@ -975,6 +987,7 @@ type BarpolarMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *BarpolarMarkerColorbar `json:"colorbar,omitempty"` @@ -991,6 +1004,7 @@ type BarpolarMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *BarpolarMarkerLine `json:"line,omitempty"` @@ -1007,6 +1021,7 @@ type BarpolarMarker struct { Opacitysrc string `json:"opacitysrc,omitempty"` // Pattern + // arrayOK: false // role: Object Pattern *BarpolarMarkerPattern `json:"pattern,omitempty"` @@ -1053,10 +1068,12 @@ type BarpolarSelectedTextfont struct { type BarpolarSelected struct { // Marker + // arrayOK: false // role: Object Marker *BarpolarSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *BarpolarSelectedTextfont `json:"textfont,omitempty"` } @@ -1107,10 +1124,12 @@ type BarpolarUnselectedTextfont struct { type BarpolarUnselected struct { // Marker + // arrayOK: false // role: Object Marker *BarpolarUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *BarpolarUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.19.0/graph_objects/box_gen.go b/generated/v2.19.0/graph_objects/box_gen.go index 11af937..2fb7be0 100644 --- a/generated/v2.19.0/graph_objects/box_gen.go +++ b/generated/v2.19.0/graph_objects/box_gen.go @@ -66,6 +66,7 @@ type Box struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -78,10 +79,12 @@ type Box struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *BoxHoverlabel `json:"hoverlabel,omitempty"` // Hoveron + // arrayOK: false // default: boxes+points // type: flaglist // Do the hover effects highlight individual boxes or sample points or both? @@ -136,6 +139,7 @@ type Box struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *BoxLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -152,6 +156,7 @@ type Box struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *BoxLine `json:"line,omitempty"` @@ -168,6 +173,7 @@ type Box struct { Lowerfencesrc string `json:"lowerfencesrc,omitempty"` // Marker + // arrayOK: false // role: Object Marker *BoxMarker `json:"marker,omitempty"` @@ -306,6 +312,7 @@ type Box struct { Sdsrc string `json:"sdsrc,omitempty"` // Selected + // arrayOK: false // role: Object Selected *BoxSelected `json:"selected,omitempty"` @@ -322,6 +329,7 @@ type Box struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *BoxStream `json:"stream,omitempty"` @@ -356,6 +364,7 @@ type Box struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *BoxUnselected `json:"unselected,omitempty"` @@ -584,6 +593,7 @@ type BoxHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *BoxHoverlabelFont `json:"font,omitempty"` @@ -626,6 +636,7 @@ type BoxLegendgrouptitleFont struct { type BoxLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *BoxLegendgrouptitleFont `json:"font,omitempty"` @@ -696,6 +707,7 @@ type BoxMarker struct { Color Color `json:"color,omitempty"` // Line + // arrayOK: false // role: Object Line *BoxMarkerLine `json:"line,omitempty"` @@ -751,6 +763,7 @@ type BoxSelectedMarker struct { type BoxSelected struct { // Marker + // arrayOK: false // role: Object Marker *BoxSelectedMarker `json:"marker,omitempty"` } @@ -797,6 +810,7 @@ type BoxUnselectedMarker struct { type BoxUnselected struct { // Marker + // arrayOK: false // role: Object Marker *BoxUnselectedMarker `json:"marker,omitempty"` } diff --git a/generated/v2.19.0/graph_objects/candlestick_gen.go b/generated/v2.19.0/graph_objects/candlestick_gen.go index 6c67b26..41a65f6 100644 --- a/generated/v2.19.0/graph_objects/candlestick_gen.go +++ b/generated/v2.19.0/graph_objects/candlestick_gen.go @@ -40,6 +40,7 @@ type Candlestick struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Decreasing + // arrayOK: false // role: Object Decreasing *CandlestickDecreasing `json:"decreasing,omitempty"` @@ -56,6 +57,7 @@ type Candlestick struct { Highsrc string `json:"highsrc,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -68,6 +70,7 @@ type Candlestick struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *CandlestickHoverlabel `json:"hoverlabel,omitempty"` @@ -96,6 +99,7 @@ type Candlestick struct { Idssrc string `json:"idssrc,omitempty"` // Increasing + // arrayOK: false // role: Object Increasing *CandlestickIncreasing `json:"increasing,omitempty"` @@ -106,6 +110,7 @@ type Candlestick struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *CandlestickLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -122,6 +127,7 @@ type Candlestick struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *CandlestickLine `json:"line,omitempty"` @@ -186,6 +192,7 @@ type Candlestick struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *CandlestickStream `json:"stream,omitempty"` @@ -321,6 +328,7 @@ type CandlestickDecreasing struct { Fillcolor Color `json:"fillcolor,omitempty"` // Line + // arrayOK: false // role: Object Line *CandlestickDecreasingLine `json:"line,omitempty"` } @@ -406,6 +414,7 @@ type CandlestickHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *CandlestickHoverlabelFont `json:"font,omitempty"` @@ -454,6 +463,7 @@ type CandlestickIncreasing struct { Fillcolor Color `json:"fillcolor,omitempty"` // Line + // arrayOK: false // role: Object Line *CandlestickIncreasingLine `json:"line,omitempty"` } @@ -484,6 +494,7 @@ type CandlestickLegendgrouptitleFont struct { type CandlestickLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *CandlestickLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.19.0/graph_objects/carpet_gen.go b/generated/v2.19.0/graph_objects/carpet_gen.go index 8c1e3b2..5c3f5a4 100644 --- a/generated/v2.19.0/graph_objects/carpet_gen.go +++ b/generated/v2.19.0/graph_objects/carpet_gen.go @@ -28,6 +28,7 @@ type Carpet struct { A0 float64 `json:"a0,omitempty"` // Aaxis + // arrayOK: false // role: Object Aaxis *CarpetAaxis `json:"aaxis,omitempty"` @@ -50,6 +51,7 @@ type Carpet struct { B0 float64 `json:"b0,omitempty"` // Baxis + // arrayOK: false // role: Object Baxis *CarpetBaxis `json:"baxis,omitempty"` @@ -102,6 +104,7 @@ type Carpet struct { Db float64 `json:"db,omitempty"` // Font + // arrayOK: false // role: Object Font *CarpetFont `json:"font,omitempty"` @@ -118,6 +121,7 @@ type Carpet struct { Idssrc string `json:"idssrc,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *CarpetLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -158,6 +162,7 @@ type Carpet struct { Opacity float64 `json:"opacity,omitempty"` // Stream + // arrayOK: false // role: Object Stream *CarpetStream `json:"stream,omitempty"` @@ -265,6 +270,7 @@ type CarpetAaxisTitleFont struct { type CarpetAaxisTitle struct { // Font + // arrayOK: false // role: Object Font *CarpetAaxisTitleFont `json:"font,omitempty"` @@ -565,6 +571,7 @@ type CarpetAaxis struct { Tickangle float64 `json:"tickangle,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *CarpetAaxisTickfont `json:"tickfont,omitempty"` @@ -624,6 +631,7 @@ type CarpetAaxis struct { Tickvalssrc string `json:"tickvalssrc,omitempty"` // Title + // arrayOK: false // role: Object Title *CarpetAaxisTitle `json:"title,omitempty"` @@ -683,6 +691,7 @@ type CarpetBaxisTitleFont struct { type CarpetBaxisTitle struct { // Font + // arrayOK: false // role: Object Font *CarpetBaxisTitleFont `json:"font,omitempty"` @@ -983,6 +992,7 @@ type CarpetBaxis struct { Tickangle float64 `json:"tickangle,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *CarpetBaxisTickfont `json:"tickfont,omitempty"` @@ -1042,6 +1052,7 @@ type CarpetBaxis struct { Tickvalssrc string `json:"tickvalssrc,omitempty"` // Title + // arrayOK: false // role: Object Title *CarpetBaxisTitle `json:"title,omitempty"` @@ -1101,6 +1112,7 @@ type CarpetLegendgrouptitleFont struct { type CarpetLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *CarpetLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.19.0/graph_objects/choropleth_gen.go b/generated/v2.19.0/graph_objects/choropleth_gen.go index ff1bc00..f6b15d5 100644 --- a/generated/v2.19.0/graph_objects/choropleth_gen.go +++ b/generated/v2.19.0/graph_objects/choropleth_gen.go @@ -28,6 +28,7 @@ type Choropleth struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ChoroplethColorbar `json:"colorbar,omitempty"` @@ -68,6 +69,7 @@ type Choropleth struct { Geojson interface{} `json:"geojson,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -80,6 +82,7 @@ type Choropleth struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ChoroplethHoverlabel `json:"hoverlabel,omitempty"` @@ -126,6 +129,7 @@ type Choropleth struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ChoroplethLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -161,6 +165,7 @@ type Choropleth struct { Locationssrc string `json:"locationssrc,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ChoroplethMarker `json:"marker,omitempty"` @@ -189,6 +194,7 @@ type Choropleth struct { Reversescale Bool `json:"reversescale,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ChoroplethSelected `json:"selected,omitempty"` @@ -211,6 +217,7 @@ type Choropleth struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ChoroplethStream `json:"stream,omitempty"` @@ -245,6 +252,7 @@ type Choropleth struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ChoroplethUnselected `json:"unselected,omitempty"` @@ -340,6 +348,7 @@ type ChoroplethColorbarTitleFont struct { type ChoroplethColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ChoroplethColorbarTitleFont `json:"font,omitempty"` @@ -506,6 +515,7 @@ type ChoroplethColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ChoroplethColorbarTickfont `json:"tickfont,omitempty"` @@ -604,6 +614,7 @@ type ChoroplethColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ChoroplethColorbarTitle `json:"title,omitempty"` @@ -727,6 +738,7 @@ type ChoroplethHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ChoroplethHoverlabelFont `json:"font,omitempty"` @@ -769,6 +781,7 @@ type ChoroplethLegendgrouptitleFont struct { type ChoroplethLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ChoroplethLegendgrouptitleFont `json:"font,omitempty"` @@ -811,6 +824,7 @@ type ChoroplethMarkerLine struct { type ChoroplethMarker struct { // Line + // arrayOK: false // role: Object Line *ChoroplethMarkerLine `json:"line,omitempty"` @@ -841,6 +855,7 @@ type ChoroplethSelectedMarker struct { type ChoroplethSelected struct { // Marker + // arrayOK: false // role: Object Marker *ChoroplethSelectedMarker `json:"marker,omitempty"` } @@ -875,6 +890,7 @@ type ChoroplethUnselectedMarker struct { type ChoroplethUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ChoroplethUnselectedMarker `json:"marker,omitempty"` } diff --git a/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go b/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go index 51f7c77..b835c13 100644 --- a/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go +++ b/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go @@ -34,6 +34,7 @@ type Choroplethmapbox struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ChoroplethmapboxColorbar `json:"colorbar,omitempty"` @@ -68,6 +69,7 @@ type Choroplethmapbox struct { Geojson interface{} `json:"geojson,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -80,6 +82,7 @@ type Choroplethmapbox struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ChoroplethmapboxHoverlabel `json:"hoverlabel,omitempty"` @@ -126,6 +129,7 @@ type Choroplethmapbox struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ChoroplethmapboxLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -154,6 +158,7 @@ type Choroplethmapbox struct { Locationssrc string `json:"locationssrc,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ChoroplethmapboxMarker `json:"marker,omitempty"` @@ -182,6 +187,7 @@ type Choroplethmapbox struct { Reversescale Bool `json:"reversescale,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ChoroplethmapboxSelected `json:"selected,omitempty"` @@ -204,6 +210,7 @@ type Choroplethmapbox struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ChoroplethmapboxStream `json:"stream,omitempty"` @@ -244,6 +251,7 @@ type Choroplethmapbox struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ChoroplethmapboxUnselected `json:"unselected,omitempty"` @@ -339,6 +347,7 @@ type ChoroplethmapboxColorbarTitleFont struct { type ChoroplethmapboxColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ChoroplethmapboxColorbarTitleFont `json:"font,omitempty"` @@ -505,6 +514,7 @@ type ChoroplethmapboxColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ChoroplethmapboxColorbarTickfont `json:"tickfont,omitempty"` @@ -603,6 +613,7 @@ type ChoroplethmapboxColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ChoroplethmapboxColorbarTitle `json:"title,omitempty"` @@ -726,6 +737,7 @@ type ChoroplethmapboxHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ChoroplethmapboxHoverlabelFont `json:"font,omitempty"` @@ -768,6 +780,7 @@ type ChoroplethmapboxLegendgrouptitleFont struct { type ChoroplethmapboxLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ChoroplethmapboxLegendgrouptitleFont `json:"font,omitempty"` @@ -810,6 +823,7 @@ type ChoroplethmapboxMarkerLine struct { type ChoroplethmapboxMarker struct { // Line + // arrayOK: false // role: Object Line *ChoroplethmapboxMarkerLine `json:"line,omitempty"` @@ -840,6 +854,7 @@ type ChoroplethmapboxSelectedMarker struct { type ChoroplethmapboxSelected struct { // Marker + // arrayOK: false // role: Object Marker *ChoroplethmapboxSelectedMarker `json:"marker,omitempty"` } @@ -874,6 +889,7 @@ type ChoroplethmapboxUnselectedMarker struct { type ChoroplethmapboxUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ChoroplethmapboxUnselectedMarker `json:"marker,omitempty"` } diff --git a/generated/v2.19.0/graph_objects/cone_gen.go b/generated/v2.19.0/graph_objects/cone_gen.go index acec5b0..260e508 100644 --- a/generated/v2.19.0/graph_objects/cone_gen.go +++ b/generated/v2.19.0/graph_objects/cone_gen.go @@ -59,6 +59,7 @@ type Cone struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ConeColorbar `json:"colorbar,omitempty"` @@ -81,6 +82,7 @@ type Cone struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo + // arrayOK: true // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -93,6 +95,7 @@ type Cone struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ConeHoverlabel `json:"hoverlabel,omitempty"` @@ -139,6 +142,7 @@ type Cone struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ConeLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -155,10 +159,12 @@ type Cone struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Lighting + // arrayOK: false // role: Object Lighting *ConeLighting `json:"lighting,omitempty"` // Lightposition + // arrayOK: false // role: Object Lightposition *ConeLightposition `json:"lightposition,omitempty"` @@ -224,6 +230,7 @@ type Cone struct { Sizeref float64 `json:"sizeref,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ConeStream `json:"stream,omitempty"` @@ -415,6 +422,7 @@ type ConeColorbarTitleFont struct { type ConeColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ConeColorbarTitleFont `json:"font,omitempty"` @@ -581,6 +589,7 @@ type ConeColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ConeColorbarTickfont `json:"tickfont,omitempty"` @@ -679,6 +688,7 @@ type ConeColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ConeColorbarTitle `json:"title,omitempty"` @@ -802,6 +812,7 @@ type ConeHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ConeHoverlabelFont `json:"font,omitempty"` @@ -844,6 +855,7 @@ type ConeLegendgrouptitleFont struct { type ConeLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ConeLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.19.0/graph_objects/config_gen.go b/generated/v2.19.0/graph_objects/config_gen.go index d6486c9..b9e0cf8 100644 --- a/generated/v2.19.0/graph_objects/config_gen.go +++ b/generated/v2.19.0/graph_objects/config_gen.go @@ -48,6 +48,7 @@ type Config struct { Editable Bool `json:"editable,omitempty"` // Edits + // arrayOK: false // role: Object Edits *ConfigEdits `json:"edits,omitempty"` @@ -148,6 +149,7 @@ type Config struct { Responsive Bool `json:"responsive,omitempty"` // ScrollZoom + // arrayOK: false // default: gl3d+geo+mapbox // type: flaglist // Determines whether mouse wheel or two-finger scroll zooms is enable. Turned on by default for gl3d, geo and mapbox subplots (as these subplot types do not have zoombox via pan), but turned off by default for cartesian subplots. Set `scrollZoom` to *false* to disable scrolling for all subplots. diff --git a/generated/v2.19.0/graph_objects/contour_gen.go b/generated/v2.19.0/graph_objects/contour_gen.go index cd624a4..2d41cbc 100644 --- a/generated/v2.19.0/graph_objects/contour_gen.go +++ b/generated/v2.19.0/graph_objects/contour_gen.go @@ -34,6 +34,7 @@ type Contour struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ContourColorbar `json:"colorbar,omitempty"` @@ -50,6 +51,7 @@ type Contour struct { Connectgaps Bool `json:"connectgaps,omitempty"` // Contours + // arrayOK: false // role: Object Contours *ContourContours `json:"contours,omitempty"` @@ -84,6 +86,7 @@ type Contour struct { Fillcolor ColorWithColorScale `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -96,6 +99,7 @@ type Contour struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ContourHoverlabel `json:"hoverlabel,omitempty"` @@ -148,6 +152,7 @@ type Contour struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ContourLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -164,6 +169,7 @@ type Contour struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ContourLine `json:"line,omitempty"` @@ -216,6 +222,7 @@ type Contour struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ContourStream `json:"stream,omitempty"` @@ -226,6 +233,7 @@ type Contour struct { Text interface{} `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ContourTextfont `json:"textfont,omitempty"` @@ -489,6 +497,7 @@ type ContourColorbarTitleFont struct { type ContourColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ContourColorbarTitleFont `json:"font,omitempty"` @@ -655,6 +664,7 @@ type ContourColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ContourColorbarTickfont `json:"tickfont,omitempty"` @@ -753,6 +763,7 @@ type ContourColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ContourColorbarTitle `json:"title,omitempty"` @@ -834,6 +845,7 @@ type ContourContours struct { End float64 `json:"end,omitempty"` // Labelfont + // arrayOK: false // role: Object Labelfont *ContourContoursLabelfont `json:"labelfont,omitempty"` @@ -969,6 +981,7 @@ type ContourHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ContourHoverlabelFont `json:"font,omitempty"` @@ -1011,6 +1024,7 @@ type ContourLegendgrouptitleFont struct { type ContourLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ContourLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.19.0/graph_objects/contourcarpet_gen.go b/generated/v2.19.0/graph_objects/contourcarpet_gen.go index d933e86..649802d 100644 --- a/generated/v2.19.0/graph_objects/contourcarpet_gen.go +++ b/generated/v2.19.0/graph_objects/contourcarpet_gen.go @@ -90,6 +90,7 @@ type Contourcarpet struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ContourcarpetColorbar `json:"colorbar,omitempty"` @@ -100,6 +101,7 @@ type Contourcarpet struct { Colorscale ColorScale `json:"colorscale,omitempty"` // Contours + // arrayOK: false // role: Object Contours *ContourcarpetContours `json:"contours,omitempty"` @@ -164,6 +166,7 @@ type Contourcarpet struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ContourcarpetLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -180,6 +183,7 @@ type Contourcarpet struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ContourcarpetLine `json:"line,omitempty"` @@ -232,6 +236,7 @@ type Contourcarpet struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ContourcarpetStream `json:"stream,omitempty"` @@ -369,6 +374,7 @@ type ContourcarpetColorbarTitleFont struct { type ContourcarpetColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ContourcarpetColorbarTitleFont `json:"font,omitempty"` @@ -535,6 +541,7 @@ type ContourcarpetColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ContourcarpetColorbarTickfont `json:"tickfont,omitempty"` @@ -633,6 +640,7 @@ type ContourcarpetColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ContourcarpetColorbarTitle `json:"title,omitempty"` @@ -714,6 +722,7 @@ type ContourcarpetContours struct { End float64 `json:"end,omitempty"` // Labelfont + // arrayOK: false // role: Object Labelfont *ContourcarpetContoursLabelfont `json:"labelfont,omitempty"` @@ -794,6 +803,7 @@ type ContourcarpetLegendgrouptitleFont struct { type ContourcarpetLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ContourcarpetLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.19.0/graph_objects/densitymapbox_gen.go b/generated/v2.19.0/graph_objects/densitymapbox_gen.go index c33b124..a2200af 100644 --- a/generated/v2.19.0/graph_objects/densitymapbox_gen.go +++ b/generated/v2.19.0/graph_objects/densitymapbox_gen.go @@ -34,6 +34,7 @@ type Densitymapbox struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *DensitymapboxColorbar `json:"colorbar,omitempty"` @@ -56,6 +57,7 @@ type Densitymapbox struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -68,6 +70,7 @@ type Densitymapbox struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *DensitymapboxHoverlabel `json:"hoverlabel,omitempty"` @@ -126,6 +129,7 @@ type Densitymapbox struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *DensitymapboxLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -208,6 +212,7 @@ type Densitymapbox struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *DensitymapboxStream `json:"stream,omitempty"` @@ -339,6 +344,7 @@ type DensitymapboxColorbarTitleFont struct { type DensitymapboxColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *DensitymapboxColorbarTitleFont `json:"font,omitempty"` @@ -505,6 +511,7 @@ type DensitymapboxColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *DensitymapboxColorbarTickfont `json:"tickfont,omitempty"` @@ -603,6 +610,7 @@ type DensitymapboxColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *DensitymapboxColorbarTitle `json:"title,omitempty"` @@ -726,6 +734,7 @@ type DensitymapboxHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *DensitymapboxHoverlabelFont `json:"font,omitempty"` @@ -768,6 +777,7 @@ type DensitymapboxLegendgrouptitleFont struct { type DensitymapboxLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *DensitymapboxLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.19.0/graph_objects/funnel_gen.go b/generated/v2.19.0/graph_objects/funnel_gen.go index 9c6d704..cee492b 100644 --- a/generated/v2.19.0/graph_objects/funnel_gen.go +++ b/generated/v2.19.0/graph_objects/funnel_gen.go @@ -28,6 +28,7 @@ type Funnel struct { Cliponaxis Bool `json:"cliponaxis,omitempty"` // Connector + // arrayOK: false // role: Object Connector *FunnelConnector `json:"connector,omitempty"` @@ -63,6 +64,7 @@ type Funnel struct { Dy float64 `json:"dy,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -75,6 +77,7 @@ type Funnel struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *FunnelHoverlabel `json:"hoverlabel,omitempty"` @@ -122,6 +125,7 @@ type Funnel struct { Insidetextanchor FunnelInsidetextanchor `json:"insidetextanchor,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *FunnelInsidetextfont `json:"insidetextfont,omitempty"` @@ -132,6 +136,7 @@ type Funnel struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *FunnelLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -148,6 +153,7 @@ type Funnel struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *FunnelMarker `json:"marker,omitempty"` @@ -195,6 +201,7 @@ type Funnel struct { Orientation FunnelOrientation `json:"orientation,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *FunnelOutsidetextfont `json:"outsidetextfont,omitempty"` @@ -211,6 +218,7 @@ type Funnel struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *FunnelStream `json:"stream,omitempty"` @@ -227,10 +235,12 @@ type Funnel struct { Textangle float64 `json:"textangle,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *FunnelTextfont `json:"textfont,omitempty"` // Textinfo + // arrayOK: false // default: %!s() // type: flaglist // Determines which trace information appear on the graph. In the case of having multiple funnels, percentages & totals are computed separately (per trace). @@ -429,6 +439,7 @@ type FunnelConnector struct { Fillcolor Color `json:"fillcolor,omitempty"` // Line + // arrayOK: false // role: Object Line *FunnelConnectorLine `json:"line,omitempty"` @@ -520,6 +531,7 @@ type FunnelHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *FunnelHoverlabelFont `json:"font,omitempty"` @@ -602,6 +614,7 @@ type FunnelLegendgrouptitleFont struct { type FunnelLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *FunnelLegendgrouptitleFont `json:"font,omitempty"` @@ -660,6 +673,7 @@ type FunnelMarkerColorbarTitleFont struct { type FunnelMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *FunnelMarkerColorbarTitleFont `json:"font,omitempty"` @@ -826,6 +840,7 @@ type FunnelMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *FunnelMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -924,6 +939,7 @@ type FunnelMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *FunnelMarkerColorbarTitle `json:"title,omitempty"` @@ -1088,6 +1104,7 @@ type FunnelMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *FunnelMarkerColorbar `json:"colorbar,omitempty"` @@ -1104,6 +1121,7 @@ type FunnelMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *FunnelMarkerLine `json:"line,omitempty"` diff --git a/generated/v2.19.0/graph_objects/funnelarea_gen.go b/generated/v2.19.0/graph_objects/funnelarea_gen.go index 7657f7f..3618adc 100644 --- a/generated/v2.19.0/graph_objects/funnelarea_gen.go +++ b/generated/v2.19.0/graph_objects/funnelarea_gen.go @@ -46,10 +46,12 @@ type Funnelarea struct { Dlabel float64 `json:"dlabel,omitempty"` // Domain + // arrayOK: false // role: Object Domain *FunnelareaDomain `json:"domain,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -62,6 +64,7 @@ type Funnelarea struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *FunnelareaHoverlabel `json:"hoverlabel,omitempty"` @@ -102,6 +105,7 @@ type Funnelarea struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *FunnelareaInsidetextfont `json:"insidetextfont,omitempty"` @@ -130,6 +134,7 @@ type Funnelarea struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *FunnelareaLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -146,6 +151,7 @@ type Funnelarea struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *FunnelareaMarker `json:"marker,omitempty"` @@ -186,6 +192,7 @@ type Funnelarea struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *FunnelareaStream `json:"stream,omitempty"` @@ -196,10 +203,12 @@ type Funnelarea struct { Text interface{} `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *FunnelareaTextfont `json:"textfont,omitempty"` // Textinfo + // arrayOK: false // default: %!s() // type: flaglist // Determines which trace information appear on the graph. @@ -237,6 +246,7 @@ type Funnelarea struct { Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Title + // arrayOK: false // role: Object Title *FunnelareaTitle `json:"title,omitempty"` @@ -387,6 +397,7 @@ type FunnelareaHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *FunnelareaHoverlabelFont `json:"font,omitempty"` @@ -469,6 +480,7 @@ type FunnelareaLegendgrouptitleFont struct { type FunnelareaLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *FunnelareaLegendgrouptitleFont `json:"font,omitempty"` @@ -523,6 +535,7 @@ type FunnelareaMarker struct { Colorssrc string `json:"colorssrc,omitempty"` // Line + // arrayOK: false // role: Object Line *FunnelareaMarkerLine `json:"line,omitempty"` } @@ -627,6 +640,7 @@ type FunnelareaTitleFont struct { type FunnelareaTitle struct { // Font + // arrayOK: false // role: Object Font *FunnelareaTitleFont `json:"font,omitempty"` diff --git a/generated/v2.19.0/graph_objects/heatmap_gen.go b/generated/v2.19.0/graph_objects/heatmap_gen.go index 8567054..67f2f5a 100644 --- a/generated/v2.19.0/graph_objects/heatmap_gen.go +++ b/generated/v2.19.0/graph_objects/heatmap_gen.go @@ -28,6 +28,7 @@ type Heatmap struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *HeatmapColorbar `json:"colorbar,omitempty"` @@ -68,6 +69,7 @@ type Heatmap struct { Dy float64 `json:"dy,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -80,6 +82,7 @@ type Heatmap struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *HeatmapHoverlabel `json:"hoverlabel,omitempty"` @@ -132,6 +135,7 @@ type Heatmap struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *HeatmapLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -190,6 +194,7 @@ type Heatmap struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *HeatmapStream `json:"stream,omitempty"` @@ -200,6 +205,7 @@ type Heatmap struct { Text interface{} `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *HeatmapTextfont `json:"textfont,omitempty"` @@ -482,6 +488,7 @@ type HeatmapColorbarTitleFont struct { type HeatmapColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *HeatmapColorbarTitleFont `json:"font,omitempty"` @@ -648,6 +655,7 @@ type HeatmapColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *HeatmapColorbarTickfont `json:"tickfont,omitempty"` @@ -746,6 +754,7 @@ type HeatmapColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *HeatmapColorbarTitle `json:"title,omitempty"` @@ -869,6 +878,7 @@ type HeatmapHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *HeatmapHoverlabelFont `json:"font,omitempty"` @@ -911,6 +921,7 @@ type HeatmapLegendgrouptitleFont struct { type HeatmapLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *HeatmapLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.19.0/graph_objects/heatmapgl_gen.go b/generated/v2.19.0/graph_objects/heatmapgl_gen.go index 9708de8..4e98a62 100644 --- a/generated/v2.19.0/graph_objects/heatmapgl_gen.go +++ b/generated/v2.19.0/graph_objects/heatmapgl_gen.go @@ -28,6 +28,7 @@ type Heatmapgl struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *HeatmapglColorbar `json:"colorbar,omitempty"` @@ -62,6 +63,7 @@ type Heatmapgl struct { Dy float64 `json:"dy,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -74,6 +76,7 @@ type Heatmapgl struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *HeatmapglHoverlabel `json:"hoverlabel,omitempty"` @@ -90,6 +93,7 @@ type Heatmapgl struct { Idssrc string `json:"idssrc,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *HeatmapglLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -142,6 +146,7 @@ type Heatmapgl struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *HeatmapglStream `json:"stream,omitempty"` @@ -342,6 +347,7 @@ type HeatmapglColorbarTitleFont struct { type HeatmapglColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *HeatmapglColorbarTitleFont `json:"font,omitempty"` @@ -508,6 +514,7 @@ type HeatmapglColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *HeatmapglColorbarTickfont `json:"tickfont,omitempty"` @@ -606,6 +613,7 @@ type HeatmapglColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *HeatmapglColorbarTitle `json:"title,omitempty"` @@ -729,6 +737,7 @@ type HeatmapglHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *HeatmapglHoverlabelFont `json:"font,omitempty"` @@ -771,6 +780,7 @@ type HeatmapglLegendgrouptitleFont struct { type HeatmapglLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *HeatmapglLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.19.0/graph_objects/histogram2d_gen.go b/generated/v2.19.0/graph_objects/histogram2d_gen.go index 34ca79a..70a7e89 100644 --- a/generated/v2.19.0/graph_objects/histogram2d_gen.go +++ b/generated/v2.19.0/graph_objects/histogram2d_gen.go @@ -46,6 +46,7 @@ type Histogram2d struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *Histogram2dColorbar `json:"colorbar,omitempty"` @@ -82,6 +83,7 @@ type Histogram2d struct { Histnorm Histogram2dHistnorm `json:"histnorm,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -94,6 +96,7 @@ type Histogram2d struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *Histogram2dHoverlabel `json:"hoverlabel,omitempty"` @@ -128,6 +131,7 @@ type Histogram2d struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *Histogram2dLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -144,6 +148,7 @@ type Histogram2d struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *Histogram2dMarker `json:"marker,omitempty"` @@ -202,10 +207,12 @@ type Histogram2d struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *Histogram2dStream `json:"stream,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *Histogram2dTextfont `json:"textfont,omitempty"` @@ -259,6 +266,7 @@ type Histogram2d struct { Xbingroup string `json:"xbingroup,omitempty"` // Xbins + // arrayOK: false // role: Object Xbins *Histogram2dXbins `json:"xbins,omitempty"` @@ -306,6 +314,7 @@ type Histogram2d struct { Ybingroup string `json:"ybingroup,omitempty"` // Ybins + // arrayOK: false // role: Object Ybins *Histogram2dYbins `json:"ybins,omitempty"` @@ -432,6 +441,7 @@ type Histogram2dColorbarTitleFont struct { type Histogram2dColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *Histogram2dColorbarTitleFont `json:"font,omitempty"` @@ -598,6 +608,7 @@ type Histogram2dColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *Histogram2dColorbarTickfont `json:"tickfont,omitempty"` @@ -696,6 +707,7 @@ type Histogram2dColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *Histogram2dColorbarTitle `json:"title,omitempty"` @@ -819,6 +831,7 @@ type Histogram2dHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *Histogram2dHoverlabelFont `json:"font,omitempty"` @@ -861,6 +874,7 @@ type Histogram2dLegendgrouptitleFont struct { type Histogram2dLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *Histogram2dLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go b/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go index fcbf633..4dc1d98 100644 --- a/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go +++ b/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go @@ -52,6 +52,7 @@ type Histogram2dcontour struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *Histogram2dcontourColorbar `json:"colorbar,omitempty"` @@ -62,6 +63,7 @@ type Histogram2dcontour struct { Colorscale ColorScale `json:"colorscale,omitempty"` // Contours + // arrayOK: false // role: Object Contours *Histogram2dcontourContours `json:"contours,omitempty"` @@ -92,6 +94,7 @@ type Histogram2dcontour struct { Histnorm Histogram2dcontourHistnorm `json:"histnorm,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -104,6 +107,7 @@ type Histogram2dcontour struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *Histogram2dcontourHoverlabel `json:"hoverlabel,omitempty"` @@ -138,6 +142,7 @@ type Histogram2dcontour struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *Histogram2dcontourLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -154,10 +159,12 @@ type Histogram2dcontour struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *Histogram2dcontourLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *Histogram2dcontourMarker `json:"marker,omitempty"` @@ -222,10 +229,12 @@ type Histogram2dcontour struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *Histogram2dcontourStream `json:"stream,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *Histogram2dcontourTextfont `json:"textfont,omitempty"` @@ -279,6 +288,7 @@ type Histogram2dcontour struct { Xbingroup string `json:"xbingroup,omitempty"` // Xbins + // arrayOK: false // role: Object Xbins *Histogram2dcontourXbins `json:"xbins,omitempty"` @@ -320,6 +330,7 @@ type Histogram2dcontour struct { Ybingroup string `json:"ybingroup,omitempty"` // Ybins + // arrayOK: false // role: Object Ybins *Histogram2dcontourYbins `json:"ybins,omitempty"` @@ -433,6 +444,7 @@ type Histogram2dcontourColorbarTitleFont struct { type Histogram2dcontourColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *Histogram2dcontourColorbarTitleFont `json:"font,omitempty"` @@ -599,6 +611,7 @@ type Histogram2dcontourColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *Histogram2dcontourColorbarTickfont `json:"tickfont,omitempty"` @@ -697,6 +710,7 @@ type Histogram2dcontourColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *Histogram2dcontourColorbarTitle `json:"title,omitempty"` @@ -778,6 +792,7 @@ type Histogram2dcontourContours struct { End float64 `json:"end,omitempty"` // Labelfont + // arrayOK: false // role: Object Labelfont *Histogram2dcontourContoursLabelfont `json:"labelfont,omitempty"` @@ -913,6 +928,7 @@ type Histogram2dcontourHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *Histogram2dcontourHoverlabelFont `json:"font,omitempty"` @@ -955,6 +971,7 @@ type Histogram2dcontourLegendgrouptitleFont struct { type Histogram2dcontourLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *Histogram2dcontourLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.19.0/graph_objects/histogram_gen.go b/generated/v2.19.0/graph_objects/histogram_gen.go index 312d88a..dd0fbb9 100644 --- a/generated/v2.19.0/graph_objects/histogram_gen.go +++ b/generated/v2.19.0/graph_objects/histogram_gen.go @@ -53,6 +53,7 @@ type Histogram struct { Constraintext HistogramConstraintext `json:"constraintext,omitempty"` // Cumulative + // arrayOK: false // role: Object Cumulative *HistogramCumulative `json:"cumulative,omitempty"` @@ -69,10 +70,12 @@ type Histogram struct { Customdatasrc string `json:"customdatasrc,omitempty"` // ErrorX + // arrayOK: false // role: Object ErrorX *HistogramErrorX `json:"error_x,omitempty"` // ErrorY + // arrayOK: false // role: Object ErrorY *HistogramErrorY `json:"error_y,omitempty"` @@ -91,6 +94,7 @@ type Histogram struct { Histnorm HistogramHistnorm `json:"histnorm,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -103,6 +107,7 @@ type Histogram struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *HistogramHoverlabel `json:"hoverlabel,omitempty"` @@ -150,6 +155,7 @@ type Histogram struct { Insidetextanchor HistogramInsidetextanchor `json:"insidetextanchor,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *HistogramInsidetextfont `json:"insidetextfont,omitempty"` @@ -160,6 +166,7 @@ type Histogram struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *HistogramLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -176,6 +183,7 @@ type Histogram struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *HistogramMarker `json:"marker,omitempty"` @@ -229,10 +237,12 @@ type Histogram struct { Orientation HistogramOrientation `json:"orientation,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *HistogramOutsidetextfont `json:"outsidetextfont,omitempty"` // Selected + // arrayOK: false // role: Object Selected *HistogramSelected `json:"selected,omitempty"` @@ -249,6 +259,7 @@ type Histogram struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *HistogramStream `json:"stream,omitempty"` @@ -265,6 +276,7 @@ type Histogram struct { Textangle float64 `json:"textangle,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *HistogramTextfont `json:"textfont,omitempty"` @@ -306,6 +318,7 @@ type Histogram struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *HistogramUnselected `json:"unselected,omitempty"` @@ -329,6 +342,7 @@ type Histogram struct { Xaxis String `json:"xaxis,omitempty"` // Xbins + // arrayOK: false // role: Object Xbins *HistogramXbins `json:"xbins,omitempty"` @@ -364,6 +378,7 @@ type Histogram struct { Yaxis String `json:"yaxis,omitempty"` // Ybins + // arrayOK: false // role: Object Ybins *HistogramYbins `json:"ybins,omitempty"` @@ -676,6 +691,7 @@ type HistogramHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *HistogramHoverlabelFont `json:"font,omitempty"` @@ -740,6 +756,7 @@ type HistogramLegendgrouptitleFont struct { type HistogramLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *HistogramLegendgrouptitleFont `json:"font,omitempty"` @@ -798,6 +815,7 @@ type HistogramMarkerColorbarTitleFont struct { type HistogramMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *HistogramMarkerColorbarTitleFont `json:"font,omitempty"` @@ -964,6 +982,7 @@ type HistogramMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *HistogramMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -1062,6 +1081,7 @@ type HistogramMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *HistogramMarkerColorbarTitle `json:"title,omitempty"` @@ -1304,6 +1324,7 @@ type HistogramMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *HistogramMarkerColorbar `json:"colorbar,omitempty"` @@ -1320,6 +1341,7 @@ type HistogramMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *HistogramMarkerLine `json:"line,omitempty"` @@ -1336,6 +1358,7 @@ type HistogramMarker struct { Opacitysrc string `json:"opacitysrc,omitempty"` // Pattern + // arrayOK: false // role: Object Pattern *HistogramMarkerPattern `json:"pattern,omitempty"` @@ -1404,10 +1427,12 @@ type HistogramSelectedTextfont struct { type HistogramSelected struct { // Marker + // arrayOK: false // role: Object Marker *HistogramSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *HistogramSelectedTextfont `json:"textfont,omitempty"` } @@ -1480,10 +1505,12 @@ type HistogramUnselectedTextfont struct { type HistogramUnselected struct { // Marker + // arrayOK: false // role: Object Marker *HistogramUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *HistogramUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.19.0/graph_objects/icicle_gen.go b/generated/v2.19.0/graph_objects/icicle_gen.go index 58ca23d..c10e79d 100644 --- a/generated/v2.19.0/graph_objects/icicle_gen.go +++ b/generated/v2.19.0/graph_objects/icicle_gen.go @@ -23,6 +23,7 @@ type Icicle struct { Branchvalues IcicleBranchvalues `json:"branchvalues,omitempty"` // Count + // arrayOK: false // default: leaves // type: flaglist // Determines default for `values` when it is not provided, by inferring a 1 for each of the *leaves* and/or *branches*, otherwise 0. @@ -41,10 +42,12 @@ type Icicle struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Domain + // arrayOK: false // role: Object Domain *IcicleDomain `json:"domain,omitempty"` // Hoverinfo + // arrayOK: true // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -57,6 +60,7 @@ type Icicle struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *IcicleHoverlabel `json:"hoverlabel,omitempty"` @@ -97,6 +101,7 @@ type Icicle struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *IcicleInsidetextfont `json:"insidetextfont,omitempty"` @@ -113,10 +118,12 @@ type Icicle struct { Labelssrc string `json:"labelssrc,omitempty"` // Leaf + // arrayOK: false // role: Object Leaf *IcicleLeaf `json:"leaf,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *IcicleLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -139,6 +146,7 @@ type Icicle struct { Level interface{} `json:"level,omitempty"` // Marker + // arrayOK: false // role: Object Marker *IcicleMarker `json:"marker,omitempty"` @@ -173,6 +181,7 @@ type Icicle struct { Opacity float64 `json:"opacity,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *IcicleOutsidetextfont `json:"outsidetextfont,omitempty"` @@ -189,10 +198,12 @@ type Icicle struct { Parentssrc string `json:"parentssrc,omitempty"` // Pathbar + // arrayOK: false // role: Object Pathbar *IciclePathbar `json:"pathbar,omitempty"` // Root + // arrayOK: false // role: Object Root *IcicleRoot `json:"root,omitempty"` @@ -203,6 +214,7 @@ type Icicle struct { Sort Bool `json:"sort,omitempty"` // Stream + // arrayOK: false // role: Object Stream *IcicleStream `json:"stream,omitempty"` @@ -213,10 +225,12 @@ type Icicle struct { Text interface{} `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *IcicleTextfont `json:"textfont,omitempty"` // Textinfo + // arrayOK: false // default: %!s() // type: flaglist // Determines which trace information appear on the graph. @@ -248,6 +262,7 @@ type Icicle struct { Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Tiling + // arrayOK: false // role: Object Tiling *IcicleTiling `json:"tiling,omitempty"` @@ -398,6 +413,7 @@ type IcicleHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *IcicleHoverlabelFont `json:"font,omitempty"` @@ -490,6 +506,7 @@ type IcicleLegendgrouptitleFont struct { type IcicleLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *IcicleLegendgrouptitleFont `json:"font,omitempty"` @@ -548,6 +565,7 @@ type IcicleMarkerColorbarTitleFont struct { type IcicleMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *IcicleMarkerColorbarTitleFont `json:"font,omitempty"` @@ -714,6 +732,7 @@ type IcicleMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *IcicleMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -812,6 +831,7 @@ type IcicleMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *IcicleMarkerColorbarTitle `json:"title,omitempty"` @@ -922,6 +942,7 @@ type IcicleMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *IcicleMarkerColorbar `json:"colorbar,omitempty"` @@ -944,6 +965,7 @@ type IcicleMarker struct { Colorssrc string `json:"colorssrc,omitempty"` // Line + // arrayOK: false // role: Object Line *IcicleMarkerLine `json:"line,omitempty"` @@ -1058,6 +1080,7 @@ type IciclePathbar struct { Side IciclePathbarSide `json:"side,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *IciclePathbarTextfont `json:"textfont,omitempty"` @@ -1144,6 +1167,7 @@ type IcicleTextfont struct { type IcicleTiling struct { // Flip + // arrayOK: false // default: // type: flaglist // Determines if the positions obtained from solver are flipped on each axis. diff --git a/generated/v2.19.0/graph_objects/image_gen.go b/generated/v2.19.0/graph_objects/image_gen.go index 42d73f5..3ee3eb1 100644 --- a/generated/v2.19.0/graph_objects/image_gen.go +++ b/generated/v2.19.0/graph_objects/image_gen.go @@ -47,6 +47,7 @@ type Image struct { Dy float64 `json:"dy,omitempty"` // Hoverinfo + // arrayOK: true // default: x+y+z+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -59,6 +60,7 @@ type Image struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ImageHoverlabel `json:"hoverlabel,omitempty"` @@ -99,6 +101,7 @@ type Image struct { Idssrc string `json:"idssrc,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ImageLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -145,6 +148,7 @@ type Image struct { Source string `json:"source,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ImageStream `json:"stream,omitempty"` @@ -316,6 +320,7 @@ type ImageHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ImageHoverlabelFont `json:"font,omitempty"` @@ -358,6 +363,7 @@ type ImageLegendgrouptitleFont struct { type ImageLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ImageLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.19.0/graph_objects/indicator_gen.go b/generated/v2.19.0/graph_objects/indicator_gen.go index 6f55870..35175d8 100644 --- a/generated/v2.19.0/graph_objects/indicator_gen.go +++ b/generated/v2.19.0/graph_objects/indicator_gen.go @@ -35,14 +35,17 @@ type Indicator struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Delta + // arrayOK: false // role: Object Delta *IndicatorDelta `json:"delta,omitempty"` // Domain + // arrayOK: false // role: Object Domain *IndicatorDomain `json:"domain,omitempty"` // Gauge + // arrayOK: false // role: Object Gauge *IndicatorGauge `json:"gauge,omitempty"` @@ -59,6 +62,7 @@ type Indicator struct { Idssrc string `json:"idssrc,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *IndicatorLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -87,6 +91,7 @@ type Indicator struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: number // type: flaglist // Determines how the value is displayed on the graph. `number` displays the value numerically in text. `delta` displays the difference to a reference value in text. Finally, `gauge` displays the value graphically on an axis. @@ -99,14 +104,17 @@ type Indicator struct { Name string `json:"name,omitempty"` // Number + // arrayOK: false // role: Object Number *IndicatorNumber `json:"number,omitempty"` // Stream + // arrayOK: false // role: Object Stream *IndicatorStream `json:"stream,omitempty"` // Title + // arrayOK: false // role: Object Title *IndicatorTitle `json:"title,omitempty"` @@ -200,14 +208,17 @@ type IndicatorDeltaIncreasing struct { type IndicatorDelta struct { // Decreasing + // arrayOK: false // role: Object Decreasing *IndicatorDeltaDecreasing `json:"decreasing,omitempty"` // Font + // arrayOK: false // role: Object Font *IndicatorDeltaFont `json:"font,omitempty"` // Increasing + // arrayOK: false // role: Object Increasing *IndicatorDeltaIncreasing `json:"increasing,omitempty"` @@ -391,6 +402,7 @@ type IndicatorGaugeAxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *IndicatorGaugeAxisTickfont `json:"tickfont,omitempty"` @@ -507,6 +519,7 @@ type IndicatorGaugeBar struct { Color Color `json:"color,omitempty"` // Line + // arrayOK: false // role: Object Line *IndicatorGaugeBarLine `json:"line,omitempty"` @@ -537,6 +550,7 @@ type IndicatorGaugeThresholdLine struct { type IndicatorGaugeThreshold struct { // Line + // arrayOK: false // role: Object Line *IndicatorGaugeThresholdLine `json:"line,omitempty"` @@ -557,10 +571,12 @@ type IndicatorGaugeThreshold struct { type IndicatorGauge struct { // Axis + // arrayOK: false // role: Object Axis *IndicatorGaugeAxis `json:"axis,omitempty"` // Bar + // arrayOK: false // role: Object Bar *IndicatorGaugeBar `json:"bar,omitempty"` @@ -596,6 +612,7 @@ type IndicatorGauge struct { Steps interface{} `json:"steps,omitempty"` // Threshold + // arrayOK: false // role: Object Threshold *IndicatorGaugeThreshold `json:"threshold,omitempty"` } @@ -626,6 +643,7 @@ type IndicatorLegendgrouptitleFont struct { type IndicatorLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *IndicatorLegendgrouptitleFont `json:"font,omitempty"` @@ -662,6 +680,7 @@ type IndicatorNumberFont struct { type IndicatorNumber struct { // Font + // arrayOK: false // role: Object Font *IndicatorNumberFont `json:"font,omitempty"` @@ -733,6 +752,7 @@ type IndicatorTitle struct { Align IndicatorTitleAlign `json:"align,omitempty"` // Font + // arrayOK: false // role: Object Font *IndicatorTitleFont `json:"font,omitempty"` diff --git a/generated/v2.19.0/graph_objects/isosurface_gen.go b/generated/v2.19.0/graph_objects/isosurface_gen.go index 3df0417..ac8c08f 100644 --- a/generated/v2.19.0/graph_objects/isosurface_gen.go +++ b/generated/v2.19.0/graph_objects/isosurface_gen.go @@ -22,6 +22,7 @@ type Isosurface struct { Autocolorscale Bool `json:"autocolorscale,omitempty"` // Caps + // arrayOK: false // role: Object Caps *IsosurfaceCaps `json:"caps,omitempty"` @@ -56,6 +57,7 @@ type Isosurface struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *IsosurfaceColorbar `json:"colorbar,omitempty"` @@ -66,6 +68,7 @@ type Isosurface struct { Colorscale ColorScale `json:"colorscale,omitempty"` // Contour + // arrayOK: false // role: Object Contour *IsosurfaceContour `json:"contour,omitempty"` @@ -88,6 +91,7 @@ type Isosurface struct { Flatshading Bool `json:"flatshading,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -100,6 +104,7 @@ type Isosurface struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *IsosurfaceHoverlabel `json:"hoverlabel,omitempty"` @@ -158,6 +163,7 @@ type Isosurface struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *IsosurfaceLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -174,10 +180,12 @@ type Isosurface struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Lighting + // arrayOK: false // role: Object Lighting *IsosurfaceLighting `json:"lighting,omitempty"` // Lightposition + // arrayOK: false // role: Object Lightposition *IsosurfaceLightposition `json:"lightposition,omitempty"` @@ -230,18 +238,22 @@ type Isosurface struct { Showscale Bool `json:"showscale,omitempty"` // Slices + // arrayOK: false // role: Object Slices *IsosurfaceSlices `json:"slices,omitempty"` // Spaceframe + // arrayOK: false // role: Object Spaceframe *IsosurfaceSpaceframe `json:"spaceframe,omitempty"` // Stream + // arrayOK: false // role: Object Stream *IsosurfaceStream `json:"stream,omitempty"` // Surface + // arrayOK: false // role: Object Surface *IsosurfaceSurface `json:"surface,omitempty"` @@ -401,14 +413,17 @@ type IsosurfaceCapsZ struct { type IsosurfaceCaps struct { // X + // arrayOK: false // role: Object X *IsosurfaceCapsX `json:"x,omitempty"` // Y + // arrayOK: false // role: Object Y *IsosurfaceCapsY `json:"y,omitempty"` // Z + // arrayOK: false // role: Object Z *IsosurfaceCapsZ `json:"z,omitempty"` } @@ -461,6 +476,7 @@ type IsosurfaceColorbarTitleFont struct { type IsosurfaceColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *IsosurfaceColorbarTitleFont `json:"font,omitempty"` @@ -627,6 +643,7 @@ type IsosurfaceColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *IsosurfaceColorbarTickfont `json:"tickfont,omitempty"` @@ -725,6 +742,7 @@ type IsosurfaceColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *IsosurfaceColorbarTitle `json:"title,omitempty"` @@ -870,6 +888,7 @@ type IsosurfaceHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *IsosurfaceHoverlabelFont `json:"font,omitempty"` @@ -912,6 +931,7 @@ type IsosurfaceLegendgrouptitleFont struct { type IsosurfaceLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *IsosurfaceLegendgrouptitleFont `json:"font,omitempty"` @@ -1078,14 +1098,17 @@ type IsosurfaceSlicesZ struct { type IsosurfaceSlices struct { // X + // arrayOK: false // role: Object X *IsosurfaceSlicesX `json:"x,omitempty"` // Y + // arrayOK: false // role: Object Y *IsosurfaceSlicesY `json:"y,omitempty"` // Z + // arrayOK: false // role: Object Z *IsosurfaceSlicesZ `json:"z,omitempty"` } @@ -1138,6 +1161,7 @@ type IsosurfaceSurface struct { Fill float64 `json:"fill,omitempty"` // Pattern + // arrayOK: false // default: all // type: flaglist // Sets the surface pattern of the iso-surface 3-D sections. The default pattern of the surface is `all` meaning that the rest of surface elements would be shaded. The check options (either 1 or 2) could be used to draw half of the squares on the surface. Using various combinations of capital `A`, `B`, `C`, `D` and `E` may also be used to reduce the number of triangles on the iso-surfaces and creating other patterns of interest. diff --git a/generated/v2.19.0/graph_objects/layout_gen.go b/generated/v2.19.0/graph_objects/layout_gen.go index e8fcb52..f2027d9 100644 --- a/generated/v2.19.0/graph_objects/layout_gen.go +++ b/generated/v2.19.0/graph_objects/layout_gen.go @@ -4,10 +4,12 @@ package grob type Layout struct { // Activeselection + // arrayOK: false // role: Object Activeselection *LayoutActiveselection `json:"activeselection,omitempty"` // Activeshape + // arrayOK: false // role: Object Activeshape *LayoutActiveshape `json:"activeshape,omitempty"` @@ -83,16 +85,19 @@ type Layout struct { Calendar LayoutCalendar `json:"calendar,omitempty"` // Clickmode + // arrayOK: false // default: event // type: flaglist // Determines the mode of single click interactions. *event* is the default value and emits the `plotly_click` event. In addition this mode emits the `plotly_selected` event in drag modes *lasso* and *select*, but with no event data attached (kept for compatibility reasons). The *select* flag enables selecting single data points via click. This mode also supports persistent selections, meaning that pressing Shift while clicking, adds to / subtracts from an existing selection. *select* with `hovermode`: *x* can be confusing, consider explicitly setting `hovermode`: *closest* when using this feature. Selection events are sent accordingly as long as *event* flag is set as well. When the *event* flag is missing, `plotly_click` and `plotly_selected` events are not fired. Clickmode LayoutClickmode `json:"clickmode,omitempty"` // Coloraxis + // arrayOK: false // role: Object Coloraxis *LayoutColoraxis `json:"coloraxis,omitempty"` // Colorscale + // arrayOK: false // role: Object Colorscale *LayoutColorscale `json:"colorscale,omitempty"` @@ -158,6 +163,7 @@ type Layout struct { Extendtreemapcolors Bool `json:"extendtreemapcolors,omitempty"` // Font + // arrayOK: false // role: Object Font *LayoutFont `json:"font,omitempty"` @@ -187,10 +193,12 @@ type Layout struct { Funnelmode LayoutFunnelmode `json:"funnelmode,omitempty"` // Geo + // arrayOK: false // role: Object Geo *LayoutGeo `json:"geo,omitempty"` // Grid + // arrayOK: false // role: Object Grid *LayoutGrid `json:"grid,omitempty"` @@ -225,6 +233,7 @@ type Layout struct { Hoverdistance int64 `json:"hoverdistance,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *LayoutHoverlabel `json:"hoverlabel,omitempty"` @@ -248,14 +257,17 @@ type Layout struct { Images interface{} `json:"images,omitempty"` // Legend + // arrayOK: false // role: Object Legend *LayoutLegend `json:"legend,omitempty"` // Mapbox + // arrayOK: false // role: Object Mapbox *LayoutMapbox `json:"mapbox,omitempty"` // Margin + // arrayOK: false // role: Object Margin *LayoutMargin `json:"margin,omitempty"` @@ -284,14 +296,17 @@ type Layout struct { Minreducedwidth float64 `json:"minreducedwidth,omitempty"` // Modebar + // arrayOK: false // role: Object Modebar *LayoutModebar `json:"modebar,omitempty"` // Newselection + // arrayOK: false // role: Object Newselection *LayoutNewselection `json:"newselection,omitempty"` // Newshape + // arrayOK: false // role: Object Newshape *LayoutNewshape `json:"newshape,omitempty"` @@ -314,6 +329,7 @@ type Layout struct { PlotBgcolor ColorWithColorScale `json:"plot_bgcolor,omitempty"` // Polar + // arrayOK: false // role: Object Polar *LayoutPolar `json:"polar,omitempty"` @@ -331,6 +347,7 @@ type Layout struct { Scattermode LayoutScattermode `json:"scattermode,omitempty"` // Scene + // arrayOK: false // role: Object Scene *LayoutScene `json:"scene,omitempty"` @@ -378,6 +395,7 @@ type Layout struct { Sliders interface{} `json:"sliders,omitempty"` // Smith + // arrayOK: false // role: Object Smith *LayoutSmith `json:"smith,omitempty"` @@ -400,14 +418,17 @@ type Layout struct { Template interface{} `json:"template,omitempty"` // Ternary + // arrayOK: false // role: Object Ternary *LayoutTernary `json:"ternary,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutTitle `json:"title,omitempty"` // Transition + // arrayOK: false // role: Object Transition *LayoutTransition `json:"transition,omitempty"` @@ -424,6 +445,7 @@ type Layout struct { Uirevision interface{} `json:"uirevision,omitempty"` // Uniformtext + // arrayOK: false // role: Object Uniformtext *LayoutUniformtext `json:"uniformtext,omitempty"` @@ -478,10 +500,12 @@ type Layout struct { Width float64 `json:"width,omitempty"` // Xaxis + // arrayOK: false // role: Object Xaxis *LayoutXaxis `json:"xaxis,omitempty"` // Yaxis + // arrayOK: false // role: Object Yaxis *LayoutYaxis `json:"yaxis,omitempty"` @@ -606,6 +630,7 @@ type LayoutColoraxisColorbarTitleFont struct { type LayoutColoraxisColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutColoraxisColorbarTitleFont `json:"font,omitempty"` @@ -772,6 +797,7 @@ type LayoutColoraxisColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutColoraxisColorbarTickfont `json:"tickfont,omitempty"` @@ -870,6 +896,7 @@ type LayoutColoraxisColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutColoraxisColorbarTitle `json:"title,omitempty"` @@ -946,6 +973,7 @@ type LayoutColoraxis struct { Cmin float64 `json:"cmin,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *LayoutColoraxisColorbar `json:"colorbar,omitempty"` @@ -1186,6 +1214,7 @@ type LayoutGeoProjection struct { Parallels interface{} `json:"parallels,omitempty"` // Rotation + // arrayOK: false // role: Object Rotation *LayoutGeoProjectionRotation `json:"rotation,omitempty"` @@ -1219,6 +1248,7 @@ type LayoutGeo struct { Bgcolor Color `json:"bgcolor,omitempty"` // Center + // arrayOK: false // role: Object Center *LayoutGeoCenter `json:"center,omitempty"` @@ -1247,6 +1277,7 @@ type LayoutGeo struct { Countrywidth float64 `json:"countrywidth,omitempty"` // Domain + // arrayOK: false // role: Object Domain *LayoutGeoDomain `json:"domain,omitempty"` @@ -1282,10 +1313,12 @@ type LayoutGeo struct { Landcolor Color `json:"landcolor,omitempty"` // Lataxis + // arrayOK: false // role: Object Lataxis *LayoutGeoLataxis `json:"lataxis,omitempty"` // Lonaxis + // arrayOK: false // role: Object Lonaxis *LayoutGeoLonaxis `json:"lonaxis,omitempty"` @@ -1296,6 +1329,7 @@ type LayoutGeo struct { Oceancolor Color `json:"oceancolor,omitempty"` // Projection + // arrayOK: false // role: Object Projection *LayoutGeoProjection `json:"projection,omitempty"` @@ -1424,6 +1458,7 @@ type LayoutGrid struct { Columns int64 `json:"columns,omitempty"` // Domain + // arrayOK: false // role: Object Domain *LayoutGridDomain `json:"domain,omitempty"` @@ -1559,10 +1594,12 @@ type LayoutHoverlabel struct { Bordercolor Color `json:"bordercolor,omitempty"` // Font + // arrayOK: false // role: Object Font *LayoutHoverlabelFont `json:"font,omitempty"` // Grouptitlefont + // arrayOK: false // role: Object Grouptitlefont *LayoutHoverlabelGrouptitlefont `json:"grouptitlefont,omitempty"` @@ -1643,6 +1680,7 @@ type LayoutLegendTitleFont struct { type LayoutLegendTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutLegendTitleFont `json:"font,omitempty"` @@ -1695,6 +1733,7 @@ type LayoutLegend struct { Entrywidthmode LayoutLegendEntrywidthmode `json:"entrywidthmode,omitempty"` // Font + // arrayOK: false // role: Object Font *LayoutLegendFont `json:"font,omitempty"` @@ -1706,6 +1745,7 @@ type LayoutLegend struct { Groupclick LayoutLegendGroupclick `json:"groupclick,omitempty"` // Grouptitlefont + // arrayOK: false // role: Object Grouptitlefont *LayoutLegendGrouptitlefont `json:"grouptitlefont,omitempty"` @@ -1744,6 +1784,7 @@ type LayoutLegend struct { Orientation LayoutLegendOrientation `json:"orientation,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutLegendTitle `json:"title,omitempty"` @@ -1754,6 +1795,7 @@ type LayoutLegend struct { Tracegroupgap float64 `json:"tracegroupgap,omitempty"` // Traceorder + // arrayOK: false // default: %!s() // type: flaglist // Determines the order at which the legend items are displayed. If *normal*, the items are displayed top-to-bottom in the same order as the input data. If *reversed*, the items are displayed in the opposite order as *normal*. If *grouped*, the items are displayed in groups (when a trace `legendgroup` is provided). if *grouped+reversed*, the items are displayed in the opposite order as *grouped*. @@ -1887,14 +1929,17 @@ type LayoutMapbox struct { Bearing float64 `json:"bearing,omitempty"` // Bounds + // arrayOK: false // role: Object Bounds *LayoutMapboxBounds `json:"bounds,omitempty"` // Center + // arrayOK: false // role: Object Center *LayoutMapboxCenter `json:"center,omitempty"` // Domain + // arrayOK: false // role: Object Domain *LayoutMapboxDomain `json:"domain,omitempty"` @@ -2054,6 +2099,7 @@ type LayoutNewselectionLine struct { type LayoutNewselection struct { // Line + // arrayOK: false // role: Object Line *LayoutNewselectionLine `json:"line,omitempty"` @@ -2091,6 +2137,7 @@ type LayoutNewshapeLabelFont struct { type LayoutNewshapeLabel struct { // Font + // arrayOK: false // role: Object Font *LayoutNewshapeLabelFont `json:"font,omitempty"` @@ -2180,6 +2227,7 @@ type LayoutNewshape struct { Fillrule LayoutNewshapeFillrule `json:"fillrule,omitempty"` // Label + // arrayOK: false // role: Object Label *LayoutNewshapeLabel `json:"label,omitempty"` @@ -2191,6 +2239,7 @@ type LayoutNewshape struct { Layer LayoutNewshapeLayer `json:"layer,omitempty"` // Line + // arrayOK: false // role: Object Line *LayoutNewshapeLine `json:"line,omitempty"` @@ -2422,6 +2471,7 @@ type LayoutPolarAngularaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutPolarAngularaxisTickfont `json:"tickfont,omitempty"` @@ -2601,6 +2651,7 @@ type LayoutPolarRadialaxisTitleFont struct { type LayoutPolarRadialaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutPolarRadialaxisTitleFont `json:"font,omitempty"` @@ -2824,6 +2875,7 @@ type LayoutPolarRadialaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutPolarRadialaxisTickfont `json:"tickfont,omitempty"` @@ -2908,6 +2960,7 @@ type LayoutPolarRadialaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutPolarRadialaxisTitle `json:"title,omitempty"` @@ -2935,6 +2988,7 @@ type LayoutPolarRadialaxis struct { type LayoutPolar struct { // Angularaxis + // arrayOK: false // role: Object Angularaxis *LayoutPolarAngularaxis `json:"angularaxis,omitempty"` @@ -2945,6 +2999,7 @@ type LayoutPolar struct { Bgcolor Color `json:"bgcolor,omitempty"` // Domain + // arrayOK: false // role: Object Domain *LayoutPolarDomain `json:"domain,omitempty"` @@ -2962,6 +3017,7 @@ type LayoutPolar struct { Hole float64 `json:"hole,omitempty"` // Radialaxis + // arrayOK: false // role: Object Radialaxis *LayoutPolarRadialaxis `json:"radialaxis,omitempty"` @@ -3081,18 +3137,22 @@ type LayoutSceneCameraUp struct { type LayoutSceneCamera struct { // Center + // arrayOK: false // role: Object Center *LayoutSceneCameraCenter `json:"center,omitempty"` // Eye + // arrayOK: false // role: Object Eye *LayoutSceneCameraEye `json:"eye,omitempty"` // Projection + // arrayOK: false // role: Object Projection *LayoutSceneCameraProjection `json:"projection,omitempty"` // Up + // arrayOK: false // role: Object Up *LayoutSceneCameraUp `json:"up,omitempty"` } @@ -3173,6 +3233,7 @@ type LayoutSceneXaxisTitleFont struct { type LayoutSceneXaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutSceneXaxisTitleFont `json:"font,omitempty"` @@ -3419,6 +3480,7 @@ type LayoutSceneXaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutSceneXaxisTickfont `json:"tickfont,omitempty"` @@ -3497,6 +3559,7 @@ type LayoutSceneXaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutSceneXaxisTitle `json:"title,omitempty"` @@ -3580,6 +3643,7 @@ type LayoutSceneYaxisTitleFont struct { type LayoutSceneYaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutSceneYaxisTitleFont `json:"font,omitempty"` @@ -3826,6 +3890,7 @@ type LayoutSceneYaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutSceneYaxisTickfont `json:"tickfont,omitempty"` @@ -3904,6 +3969,7 @@ type LayoutSceneYaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutSceneYaxisTitle `json:"title,omitempty"` @@ -3987,6 +4053,7 @@ type LayoutSceneZaxisTitleFont struct { type LayoutSceneZaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutSceneZaxisTitleFont `json:"font,omitempty"` @@ -4233,6 +4300,7 @@ type LayoutSceneZaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutSceneZaxisTickfont `json:"tickfont,omitempty"` @@ -4311,6 +4379,7 @@ type LayoutSceneZaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutSceneZaxisTitle `json:"title,omitempty"` @@ -4363,6 +4432,7 @@ type LayoutScene struct { Aspectmode LayoutSceneAspectmode `json:"aspectmode,omitempty"` // Aspectratio + // arrayOK: false // role: Object Aspectratio *LayoutSceneAspectratio `json:"aspectratio,omitempty"` @@ -4373,10 +4443,12 @@ type LayoutScene struct { Bgcolor Color `json:"bgcolor,omitempty"` // Camera + // arrayOK: false // role: Object Camera *LayoutSceneCamera `json:"camera,omitempty"` // Domain + // arrayOK: false // role: Object Domain *LayoutSceneDomain `json:"domain,omitempty"` @@ -4401,14 +4473,17 @@ type LayoutScene struct { Uirevision interface{} `json:"uirevision,omitempty"` // Xaxis + // arrayOK: false // role: Object Xaxis *LayoutSceneXaxis `json:"xaxis,omitempty"` // Yaxis + // arrayOK: false // role: Object Yaxis *LayoutSceneYaxis `json:"yaxis,omitempty"` // Zaxis + // arrayOK: false // role: Object Zaxis *LayoutSceneZaxis `json:"zaxis,omitempty"` } @@ -4560,6 +4635,7 @@ type LayoutSmithImaginaryaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutSmithImaginaryaxisTickfont `json:"tickfont,omitempty"` @@ -4751,6 +4827,7 @@ type LayoutSmithRealaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutSmithRealaxisTickfont `json:"tickfont,omitempty"` @@ -4820,14 +4897,17 @@ type LayoutSmith struct { Bgcolor Color `json:"bgcolor,omitempty"` // Domain + // arrayOK: false // role: Object Domain *LayoutSmithDomain `json:"domain,omitempty"` // Imaginaryaxis + // arrayOK: false // role: Object Imaginaryaxis *LayoutSmithImaginaryaxis `json:"imaginaryaxis,omitempty"` // Realaxis + // arrayOK: false // role: Object Realaxis *LayoutSmithRealaxis `json:"realaxis,omitempty"` } @@ -4880,6 +4960,7 @@ type LayoutTernaryAaxisTitleFont struct { type LayoutTernaryAaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutTernaryAaxisTitleFont `json:"font,omitempty"` @@ -5043,6 +5124,7 @@ type LayoutTernaryAaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutTernaryAaxisTickfont `json:"tickfont,omitempty"` @@ -5127,6 +5209,7 @@ type LayoutTernaryAaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutTernaryAaxisTitle `json:"title,omitempty"` @@ -5185,6 +5268,7 @@ type LayoutTernaryBaxisTitleFont struct { type LayoutTernaryBaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutTernaryBaxisTitleFont `json:"font,omitempty"` @@ -5348,6 +5432,7 @@ type LayoutTernaryBaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutTernaryBaxisTickfont `json:"tickfont,omitempty"` @@ -5432,6 +5517,7 @@ type LayoutTernaryBaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutTernaryBaxisTitle `json:"title,omitempty"` @@ -5490,6 +5576,7 @@ type LayoutTernaryCaxisTitleFont struct { type LayoutTernaryCaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutTernaryCaxisTitleFont `json:"font,omitempty"` @@ -5653,6 +5740,7 @@ type LayoutTernaryCaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutTernaryCaxisTickfont `json:"tickfont,omitempty"` @@ -5737,6 +5825,7 @@ type LayoutTernaryCaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutTernaryCaxisTitle `json:"title,omitempty"` @@ -5779,10 +5868,12 @@ type LayoutTernaryDomain struct { type LayoutTernary struct { // Aaxis + // arrayOK: false // role: Object Aaxis *LayoutTernaryAaxis `json:"aaxis,omitempty"` // Baxis + // arrayOK: false // role: Object Baxis *LayoutTernaryBaxis `json:"baxis,omitempty"` @@ -5793,10 +5884,12 @@ type LayoutTernary struct { Bgcolor Color `json:"bgcolor,omitempty"` // Caxis + // arrayOK: false // role: Object Caxis *LayoutTernaryCaxis `json:"caxis,omitempty"` // Domain + // arrayOK: false // role: Object Domain *LayoutTernaryDomain `json:"domain,omitempty"` @@ -5867,10 +5960,12 @@ type LayoutTitlePad struct { type LayoutTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutTitleFont `json:"font,omitempty"` // Pad + // arrayOK: false // role: Object Pad *LayoutTitlePad `json:"pad,omitempty"` @@ -6108,6 +6203,7 @@ type LayoutXaxisRangeselector struct { Buttons interface{} `json:"buttons,omitempty"` // Font + // arrayOK: false // role: Object Font *LayoutXaxisRangeselectorFont `json:"font,omitempty"` @@ -6207,6 +6303,7 @@ type LayoutXaxisRangeslider struct { Visible Bool `json:"visible,omitempty"` // Yaxis + // arrayOK: false // role: Object Yaxis *LayoutXaxisRangesliderYaxis `json:"yaxis,omitempty"` } @@ -6259,6 +6356,7 @@ type LayoutXaxisTitleFont struct { type LayoutXaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutXaxisTitleFont `json:"font,omitempty"` @@ -6286,6 +6384,7 @@ type LayoutXaxis struct { Anchor LayoutXaxisAnchor `json:"anchor,omitempty"` // Automargin + // arrayOK: false // default: %!s(bool=false) // type: flaglist // Determines whether long tick labels automatically grow the figure margins. @@ -6451,6 +6550,7 @@ type LayoutXaxis struct { Minexponent float64 `json:"minexponent,omitempty"` // Minor + // arrayOK: false // role: Object Minor *LayoutXaxisMinor `json:"minor,omitempty"` @@ -6500,10 +6600,12 @@ type LayoutXaxis struct { Rangemode LayoutXaxisRangemode `json:"rangemode,omitempty"` // Rangeselector + // arrayOK: false // role: Object Rangeselector *LayoutXaxisRangeselector `json:"rangeselector,omitempty"` // Rangeslider + // arrayOK: false // role: Object Rangeslider *LayoutXaxisRangeslider `json:"rangeslider,omitempty"` @@ -6597,6 +6699,7 @@ type LayoutXaxis struct { Spikedash string `json:"spikedash,omitempty"` // Spikemode + // arrayOK: false // default: toaxis // type: flaglist // Determines the drawing mode for the spike line If *toaxis*, the line is drawn from the data point to the axis the series is plotted on. If *across*, the line is drawn across the entire plot area, and supercedes *toaxis*. If *marker*, then a marker dot is drawn on the axis the series is plotted on @@ -6634,6 +6737,7 @@ type LayoutXaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutXaxisTickfont `json:"tickfont,omitempty"` @@ -6746,6 +6850,7 @@ type LayoutXaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutXaxisTitle `json:"title,omitempty"` @@ -6925,6 +7030,7 @@ type LayoutYaxisTitleFont struct { type LayoutYaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutYaxisTitleFont `json:"font,omitempty"` @@ -6952,6 +7058,7 @@ type LayoutYaxis struct { Anchor LayoutYaxisAnchor `json:"anchor,omitempty"` // Automargin + // arrayOK: false // default: %!s(bool=false) // type: flaglist // Determines whether long tick labels automatically grow the figure margins. @@ -7123,6 +7230,7 @@ type LayoutYaxis struct { Minexponent float64 `json:"minexponent,omitempty"` // Minor + // arrayOK: false // role: Object Minor *LayoutYaxisMinor `json:"minor,omitempty"` @@ -7267,6 +7375,7 @@ type LayoutYaxis struct { Spikedash string `json:"spikedash,omitempty"` // Spikemode + // arrayOK: false // default: toaxis // type: flaglist // Determines the drawing mode for the spike line If *toaxis*, the line is drawn from the data point to the axis the series is plotted on. If *across*, the line is drawn across the entire plot area, and supercedes *toaxis*. If *marker*, then a marker dot is drawn on the axis the series is plotted on @@ -7304,6 +7413,7 @@ type LayoutYaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutYaxisTickfont `json:"tickfont,omitempty"` @@ -7416,6 +7526,7 @@ type LayoutYaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutYaxisTitle `json:"title,omitempty"` diff --git a/generated/v2.19.0/graph_objects/mesh3d_gen.go b/generated/v2.19.0/graph_objects/mesh3d_gen.go index 37d9a70..7d5ecb1 100644 --- a/generated/v2.19.0/graph_objects/mesh3d_gen.go +++ b/generated/v2.19.0/graph_objects/mesh3d_gen.go @@ -64,6 +64,7 @@ type Mesh3d struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *Mesh3dColorbar `json:"colorbar,omitempty"` @@ -74,6 +75,7 @@ type Mesh3d struct { Colorscale ColorScale `json:"colorscale,omitempty"` // Contour + // arrayOK: false // role: Object Contour *Mesh3dContour `json:"contour,omitempty"` @@ -115,6 +117,7 @@ type Mesh3d struct { Flatshading Bool `json:"flatshading,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -127,6 +130,7 @@ type Mesh3d struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *Mesh3dHoverlabel `json:"hoverlabel,omitempty"` @@ -228,6 +232,7 @@ type Mesh3d struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *Mesh3dLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -244,10 +249,12 @@ type Mesh3d struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Lighting + // arrayOK: false // role: Object Lighting *Mesh3dLighting `json:"lighting,omitempty"` // Lightposition + // arrayOK: false // role: Object Lightposition *Mesh3dLightposition `json:"lightposition,omitempty"` @@ -300,6 +307,7 @@ type Mesh3d struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *Mesh3dStream `json:"stream,omitempty"` @@ -470,6 +478,7 @@ type Mesh3dColorbarTitleFont struct { type Mesh3dColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *Mesh3dColorbarTitleFont `json:"font,omitempty"` @@ -636,6 +645,7 @@ type Mesh3dColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *Mesh3dColorbarTickfont `json:"tickfont,omitempty"` @@ -734,6 +744,7 @@ type Mesh3dColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *Mesh3dColorbarTitle `json:"title,omitempty"` @@ -879,6 +890,7 @@ type Mesh3dHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *Mesh3dHoverlabelFont `json:"font,omitempty"` @@ -921,6 +933,7 @@ type Mesh3dLegendgrouptitleFont struct { type Mesh3dLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *Mesh3dLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.19.0/graph_objects/ohlc_gen.go b/generated/v2.19.0/graph_objects/ohlc_gen.go index ff38d64..9dfa8ad 100644 --- a/generated/v2.19.0/graph_objects/ohlc_gen.go +++ b/generated/v2.19.0/graph_objects/ohlc_gen.go @@ -40,6 +40,7 @@ type Ohlc struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Decreasing + // arrayOK: false // role: Object Decreasing *OhlcDecreasing `json:"decreasing,omitempty"` @@ -56,6 +57,7 @@ type Ohlc struct { Highsrc string `json:"highsrc,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -68,6 +70,7 @@ type Ohlc struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *OhlcHoverlabel `json:"hoverlabel,omitempty"` @@ -96,6 +99,7 @@ type Ohlc struct { Idssrc string `json:"idssrc,omitempty"` // Increasing + // arrayOK: false // role: Object Increasing *OhlcIncreasing `json:"increasing,omitempty"` @@ -106,6 +110,7 @@ type Ohlc struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *OhlcLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -122,6 +127,7 @@ type Ohlc struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *OhlcLine `json:"line,omitempty"` @@ -186,6 +192,7 @@ type Ohlc struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *OhlcStream `json:"stream,omitempty"` @@ -321,6 +328,7 @@ type OhlcDecreasingLine struct { type OhlcDecreasing struct { // Line + // arrayOK: false // role: Object Line *OhlcDecreasingLine `json:"line,omitempty"` } @@ -406,6 +414,7 @@ type OhlcHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *OhlcHoverlabelFont `json:"font,omitempty"` @@ -454,6 +463,7 @@ type OhlcIncreasingLine struct { type OhlcIncreasing struct { // Line + // arrayOK: false // role: Object Line *OhlcIncreasingLine `json:"line,omitempty"` } @@ -484,6 +494,7 @@ type OhlcLegendgrouptitleFont struct { type OhlcLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *OhlcLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.19.0/graph_objects/parcats_gen.go b/generated/v2.19.0/graph_objects/parcats_gen.go index d246ff5..cd7d6e6 100644 --- a/generated/v2.19.0/graph_objects/parcats_gen.go +++ b/generated/v2.19.0/graph_objects/parcats_gen.go @@ -47,10 +47,12 @@ type Parcats struct { Dimensions interface{} `json:"dimensions,omitempty"` // Domain + // arrayOK: false // role: Object Domain *ParcatsDomain `json:"domain,omitempty"` // Hoverinfo + // arrayOK: false // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -70,10 +72,12 @@ type Parcats struct { Hovertemplate string `json:"hovertemplate,omitempty"` // Labelfont + // arrayOK: false // role: Object Labelfont *ParcatsLabelfont `json:"labelfont,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ParcatsLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -84,6 +88,7 @@ type Parcats struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ParcatsLine `json:"line,omitempty"` @@ -113,10 +118,12 @@ type Parcats struct { Sortpaths ParcatsSortpaths `json:"sortpaths,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ParcatsStream `json:"stream,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ParcatsTickfont `json:"tickfont,omitempty"` @@ -222,6 +229,7 @@ type ParcatsLegendgrouptitleFont struct { type ParcatsLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ParcatsLegendgrouptitleFont `json:"font,omitempty"` @@ -280,6 +288,7 @@ type ParcatsLineColorbarTitleFont struct { type ParcatsLineColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ParcatsLineColorbarTitleFont `json:"font,omitempty"` @@ -446,6 +455,7 @@ type ParcatsLineColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ParcatsLineColorbarTickfont `json:"tickfont,omitempty"` @@ -544,6 +554,7 @@ type ParcatsLineColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ParcatsLineColorbarTitle `json:"title,omitempty"` @@ -632,6 +643,7 @@ type ParcatsLine struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ParcatsLineColorbar `json:"colorbar,omitempty"` diff --git a/generated/v2.19.0/graph_objects/parcoords_gen.go b/generated/v2.19.0/graph_objects/parcoords_gen.go index ab9799a..0f89350 100644 --- a/generated/v2.19.0/graph_objects/parcoords_gen.go +++ b/generated/v2.19.0/graph_objects/parcoords_gen.go @@ -34,6 +34,7 @@ type Parcoords struct { Dimensions interface{} `json:"dimensions,omitempty"` // Domain + // arrayOK: false // role: Object Domain *ParcoordsDomain `json:"domain,omitempty"` @@ -56,6 +57,7 @@ type Parcoords struct { Labelangle float64 `json:"labelangle,omitempty"` // Labelfont + // arrayOK: false // role: Object Labelfont *ParcoordsLabelfont `json:"labelfont,omitempty"` @@ -67,6 +69,7 @@ type Parcoords struct { Labelside ParcoordsLabelside `json:"labelside,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ParcoordsLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -83,6 +86,7 @@ type Parcoords struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ParcoordsLine `json:"line,omitempty"` @@ -105,14 +109,17 @@ type Parcoords struct { Name string `json:"name,omitempty"` // Rangefont + // arrayOK: false // role: Object Rangefont *ParcoordsRangefont `json:"rangefont,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ParcoordsStream `json:"stream,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ParcoordsTickfont `json:"tickfont,omitempty"` @@ -135,6 +142,7 @@ type Parcoords struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ParcoordsUnselected `json:"unselected,omitempty"` @@ -222,6 +230,7 @@ type ParcoordsLegendgrouptitleFont struct { type ParcoordsLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ParcoordsLegendgrouptitleFont `json:"font,omitempty"` @@ -280,6 +289,7 @@ type ParcoordsLineColorbarTitleFont struct { type ParcoordsLineColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ParcoordsLineColorbarTitleFont `json:"font,omitempty"` @@ -446,6 +456,7 @@ type ParcoordsLineColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ParcoordsLineColorbarTickfont `json:"tickfont,omitempty"` @@ -544,6 +555,7 @@ type ParcoordsLineColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ParcoordsLineColorbarTitle `json:"title,omitempty"` @@ -632,6 +644,7 @@ type ParcoordsLine struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ParcoordsLineColorbar `json:"colorbar,omitempty"` @@ -740,6 +753,7 @@ type ParcoordsUnselectedLine struct { type ParcoordsUnselected struct { // Line + // arrayOK: false // role: Object Line *ParcoordsUnselectedLine `json:"line,omitempty"` } diff --git a/generated/v2.19.0/graph_objects/pie_gen.go b/generated/v2.19.0/graph_objects/pie_gen.go index 219acc6..02a4ddf 100644 --- a/generated/v2.19.0/graph_objects/pie_gen.go +++ b/generated/v2.19.0/graph_objects/pie_gen.go @@ -47,6 +47,7 @@ type Pie struct { Dlabel float64 `json:"dlabel,omitempty"` // Domain + // arrayOK: false // role: Object Domain *PieDomain `json:"domain,omitempty"` @@ -57,6 +58,7 @@ type Pie struct { Hole float64 `json:"hole,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -69,6 +71,7 @@ type Pie struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *PieHoverlabel `json:"hoverlabel,omitempty"` @@ -109,6 +112,7 @@ type Pie struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *PieInsidetextfont `json:"insidetextfont,omitempty"` @@ -144,6 +148,7 @@ type Pie struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *PieLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -160,6 +165,7 @@ type Pie struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *PieMarker `json:"marker,omitempty"` @@ -188,6 +194,7 @@ type Pie struct { Opacity float64 `json:"opacity,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *PieOutsidetextfont `json:"outsidetextfont,omitempty"` @@ -228,6 +235,7 @@ type Pie struct { Sort Bool `json:"sort,omitempty"` // Stream + // arrayOK: false // role: Object Stream *PieStream `json:"stream,omitempty"` @@ -238,10 +246,12 @@ type Pie struct { Text interface{} `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *PieTextfont `json:"textfont,omitempty"` // Textinfo + // arrayOK: false // default: %!s() // type: flaglist // Determines which trace information appear on the graph. @@ -279,6 +289,7 @@ type Pie struct { Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Title + // arrayOK: false // role: Object Title *PieTitle `json:"title,omitempty"` @@ -429,6 +440,7 @@ type PieHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *PieHoverlabelFont `json:"font,omitempty"` @@ -511,6 +523,7 @@ type PieLegendgrouptitleFont struct { type PieLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *PieLegendgrouptitleFont `json:"font,omitempty"` @@ -565,6 +578,7 @@ type PieMarker struct { Colorssrc string `json:"colorssrc,omitempty"` // Line + // arrayOK: false // role: Object Line *PieMarkerLine `json:"line,omitempty"` } @@ -709,6 +723,7 @@ type PieTitleFont struct { type PieTitle struct { // Font + // arrayOK: false // role: Object Font *PieTitleFont `json:"font,omitempty"` diff --git a/generated/v2.19.0/graph_objects/pointcloud_gen.go b/generated/v2.19.0/graph_objects/pointcloud_gen.go index 73b0ae8..8bbbad4 100644 --- a/generated/v2.19.0/graph_objects/pointcloud_gen.go +++ b/generated/v2.19.0/graph_objects/pointcloud_gen.go @@ -28,6 +28,7 @@ type Pointcloud struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -40,6 +41,7 @@ type Pointcloud struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *PointcloudHoverlabel `json:"hoverlabel,omitempty"` @@ -74,6 +76,7 @@ type Pointcloud struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *PointcloudLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -90,6 +93,7 @@ type Pointcloud struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *PointcloudMarker `json:"marker,omitempty"` @@ -124,6 +128,7 @@ type Pointcloud struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *PointcloudStream `json:"stream,omitempty"` @@ -312,6 +317,7 @@ type PointcloudHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *PointcloudHoverlabelFont `json:"font,omitempty"` @@ -354,6 +360,7 @@ type PointcloudLegendgrouptitleFont struct { type PointcloudLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *PointcloudLegendgrouptitleFont `json:"font,omitempty"` @@ -390,6 +397,7 @@ type PointcloudMarker struct { Blend Bool `json:"blend,omitempty"` // Border + // arrayOK: false // role: Object Border *PointcloudMarkerBorder `json:"border,omitempty"` diff --git a/generated/v2.19.0/graph_objects/sankey_gen.go b/generated/v2.19.0/graph_objects/sankey_gen.go index 3921dd1..e0c4ba9 100644 --- a/generated/v2.19.0/graph_objects/sankey_gen.go +++ b/generated/v2.19.0/graph_objects/sankey_gen.go @@ -35,16 +35,19 @@ type Sankey struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Domain + // arrayOK: false // role: Object Domain *SankeyDomain `json:"domain,omitempty"` // Hoverinfo + // arrayOK: false // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. Note that this attribute is superseded by `node.hoverinfo` and `node.hoverinfo` for nodes and links respectively. Hoverinfo SankeyHoverinfo `json:"hoverinfo,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *SankeyHoverlabel `json:"hoverlabel,omitempty"` @@ -61,6 +64,7 @@ type Sankey struct { Idssrc string `json:"idssrc,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *SankeyLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -77,6 +81,7 @@ type Sankey struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Link + // arrayOK: false // role: Object Link *SankeyLink `json:"link,omitempty"` @@ -99,6 +104,7 @@ type Sankey struct { Name string `json:"name,omitempty"` // Node + // arrayOK: false // role: Object Node *SankeyNode `json:"node,omitempty"` @@ -116,10 +122,12 @@ type Sankey struct { Selectedpoints interface{} `json:"selectedpoints,omitempty"` // Stream + // arrayOK: false // role: Object Stream *SankeyStream `json:"stream,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *SankeyTextfont `json:"textfont,omitempty"` @@ -264,6 +272,7 @@ type SankeyHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *SankeyHoverlabelFont `json:"font,omitempty"` @@ -306,6 +315,7 @@ type SankeyLegendgrouptitleFont struct { type SankeyLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *SankeyLegendgrouptitleFont `json:"font,omitempty"` @@ -397,6 +407,7 @@ type SankeyLinkHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *SankeyLinkHoverlabelFont `json:"font,omitempty"` @@ -488,6 +499,7 @@ type SankeyLink struct { Hoverinfo SankeyLinkHoverinfo `json:"hoverinfo,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *SankeyLinkHoverlabel `json:"hoverlabel,omitempty"` @@ -516,6 +528,7 @@ type SankeyLink struct { Labelsrc string `json:"labelsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *SankeyLinkLine `json:"line,omitempty"` @@ -637,6 +650,7 @@ type SankeyNodeHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *SankeyNodeHoverlabelFont `json:"font,omitempty"` @@ -722,6 +736,7 @@ type SankeyNode struct { Hoverinfo SankeyNodeHoverinfo `json:"hoverinfo,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *SankeyNodeHoverlabel `json:"hoverlabel,omitempty"` @@ -750,6 +765,7 @@ type SankeyNode struct { Labelsrc string `json:"labelsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *SankeyNodeLine `json:"line,omitempty"` diff --git a/generated/v2.19.0/graph_objects/scatter3d_gen.go b/generated/v2.19.0/graph_objects/scatter3d_gen.go index 77a1b05..fdc671d 100644 --- a/generated/v2.19.0/graph_objects/scatter3d_gen.go +++ b/generated/v2.19.0/graph_objects/scatter3d_gen.go @@ -34,18 +34,22 @@ type Scatter3d struct { Customdatasrc string `json:"customdatasrc,omitempty"` // ErrorX + // arrayOK: false // role: Object ErrorX *Scatter3dErrorX `json:"error_x,omitempty"` // ErrorY + // arrayOK: false // role: Object ErrorY *Scatter3dErrorY `json:"error_y,omitempty"` // ErrorZ + // arrayOK: false // role: Object ErrorZ *Scatter3dErrorZ `json:"error_z,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -58,6 +62,7 @@ type Scatter3d struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *Scatter3dHoverlabel `json:"hoverlabel,omitempty"` @@ -104,6 +109,7 @@ type Scatter3d struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *Scatter3dLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -120,10 +126,12 @@ type Scatter3d struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *Scatter3dLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *Scatter3dMarker `json:"marker,omitempty"` @@ -140,6 +148,7 @@ type Scatter3d struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: lines+markers // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -158,6 +167,7 @@ type Scatter3d struct { Opacity float64 `json:"opacity,omitempty"` // Projection + // arrayOK: false // role: Object Projection *Scatter3dProjection `json:"projection,omitempty"` @@ -174,6 +184,7 @@ type Scatter3d struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *Scatter3dStream `json:"stream,omitempty"` @@ -197,6 +208,7 @@ type Scatter3d struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *Scatter3dTextfont `json:"textfont,omitempty"` @@ -692,6 +704,7 @@ type Scatter3dHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *Scatter3dHoverlabelFont `json:"font,omitempty"` @@ -734,6 +747,7 @@ type Scatter3dLegendgrouptitleFont struct { type Scatter3dLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *Scatter3dLegendgrouptitleFont `json:"font,omitempty"` @@ -792,6 +806,7 @@ type Scatter3dLineColorbarTitleFont struct { type Scatter3dLineColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *Scatter3dLineColorbarTitleFont `json:"font,omitempty"` @@ -958,6 +973,7 @@ type Scatter3dLineColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *Scatter3dLineColorbarTickfont `json:"tickfont,omitempty"` @@ -1056,6 +1072,7 @@ type Scatter3dLineColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *Scatter3dLineColorbarTitle `json:"title,omitempty"` @@ -1144,6 +1161,7 @@ type Scatter3dLine struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *Scatter3dLineColorbar `json:"colorbar,omitempty"` @@ -1233,6 +1251,7 @@ type Scatter3dMarkerColorbarTitleFont struct { type Scatter3dMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *Scatter3dMarkerColorbarTitleFont `json:"font,omitempty"` @@ -1399,6 +1418,7 @@ type Scatter3dMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *Scatter3dMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -1497,6 +1517,7 @@ type Scatter3dMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *Scatter3dMarkerColorbarTitle `json:"title,omitempty"` @@ -1655,6 +1676,7 @@ type Scatter3dMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *Scatter3dMarkerColorbar `json:"colorbar,omitempty"` @@ -1671,6 +1693,7 @@ type Scatter3dMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *Scatter3dMarkerLine `json:"line,omitempty"` @@ -1807,14 +1830,17 @@ type Scatter3dProjectionZ struct { type Scatter3dProjection struct { // X + // arrayOK: false // role: Object X *Scatter3dProjectionX `json:"x,omitempty"` // Y + // arrayOK: false // role: Object Y *Scatter3dProjectionY `json:"y,omitempty"` // Z + // arrayOK: false // role: Object Z *Scatter3dProjectionZ `json:"z,omitempty"` } diff --git a/generated/v2.19.0/graph_objects/scatter_gen.go b/generated/v2.19.0/graph_objects/scatter_gen.go index 78f0134..f498d04 100644 --- a/generated/v2.19.0/graph_objects/scatter_gen.go +++ b/generated/v2.19.0/graph_objects/scatter_gen.go @@ -58,10 +58,12 @@ type Scatter struct { Dy float64 `json:"dy,omitempty"` // ErrorX + // arrayOK: false // role: Object ErrorX *ScatterErrorX `json:"error_x,omitempty"` // ErrorY + // arrayOK: false // role: Object ErrorY *ScatterErrorY `json:"error_y,omitempty"` @@ -79,6 +81,7 @@ type Scatter struct { Fillcolor Color `json:"fillcolor,omitempty"` // Fillpattern + // arrayOK: false // role: Object Fillpattern *ScatterFillpattern `json:"fillpattern,omitempty"` @@ -90,6 +93,7 @@ type Scatter struct { Groupnorm ScatterGroupnorm `json:"groupnorm,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -102,10 +106,12 @@ type Scatter struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScatterHoverlabel `json:"hoverlabel,omitempty"` // Hoveron + // arrayOK: false // default: %!s() // type: flaglist // Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is *toself* or *tonext* and there are no markers or text, then the default is *fills*, otherwise it is *points*. @@ -154,6 +160,7 @@ type Scatter struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScatterLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -170,10 +177,12 @@ type Scatter struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScatterMarker `json:"marker,omitempty"` @@ -190,6 +199,7 @@ type Scatter struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: %!s() // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -221,6 +231,7 @@ type Scatter struct { Orientation ScatterOrientation `json:"orientation,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScatterSelected `json:"selected,omitempty"` @@ -250,6 +261,7 @@ type Scatter struct { Stackgroup string `json:"stackgroup,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScatterStream `json:"stream,omitempty"` @@ -260,6 +272,7 @@ type Scatter struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterTextfont `json:"textfont,omitempty"` @@ -313,6 +326,7 @@ type Scatter struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScatterUnselected `json:"unselected,omitempty"` @@ -779,6 +793,7 @@ type ScatterHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScatterHoverlabelFont `json:"font,omitempty"` @@ -821,6 +836,7 @@ type ScatterLegendgrouptitleFont struct { type ScatterLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScatterLegendgrouptitleFont `json:"font,omitempty"` @@ -932,6 +948,7 @@ type ScatterMarkerColorbarTitleFont struct { type ScatterMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScatterMarkerColorbarTitleFont `json:"font,omitempty"` @@ -1098,6 +1115,7 @@ type ScatterMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScatterMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -1196,6 +1214,7 @@ type ScatterMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScatterMarkerColorbarTitle `json:"title,omitempty"` @@ -1408,6 +1427,7 @@ type ScatterMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScatterMarkerColorbar `json:"colorbar,omitempty"` @@ -1424,10 +1444,12 @@ type ScatterMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Gradient + // arrayOK: false // role: Object Gradient *ScatterMarkerGradient `json:"gradient,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterMarkerLine `json:"line,omitempty"` @@ -1554,10 +1576,12 @@ type ScatterSelectedTextfont struct { type ScatterSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterSelectedTextfont `json:"textfont,omitempty"` } @@ -1654,10 +1678,12 @@ type ScatterUnselectedTextfont struct { type ScatterUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.19.0/graph_objects/scattercarpet_gen.go b/generated/v2.19.0/graph_objects/scattercarpet_gen.go index 725b410..7c445ff 100644 --- a/generated/v2.19.0/graph_objects/scattercarpet_gen.go +++ b/generated/v2.19.0/graph_objects/scattercarpet_gen.go @@ -77,6 +77,7 @@ type Scattercarpet struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -89,10 +90,12 @@ type Scattercarpet struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScattercarpetHoverlabel `json:"hoverlabel,omitempty"` // Hoveron + // arrayOK: false // default: %!s() // type: flaglist // Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is *toself* or *tonext* and there are no markers or text, then the default is *fills*, otherwise it is *points*. @@ -141,6 +144,7 @@ type Scattercarpet struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScattercarpetLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -157,10 +161,12 @@ type Scattercarpet struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScattercarpetLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScattercarpetMarker `json:"marker,omitempty"` @@ -177,6 +183,7 @@ type Scattercarpet struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: markers // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -195,6 +202,7 @@ type Scattercarpet struct { Opacity float64 `json:"opacity,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScattercarpetSelected `json:"selected,omitempty"` @@ -211,6 +219,7 @@ type Scattercarpet struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScattercarpetStream `json:"stream,omitempty"` @@ -221,6 +230,7 @@ type Scattercarpet struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattercarpetTextfont `json:"textfont,omitempty"` @@ -274,6 +284,7 @@ type Scattercarpet struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScattercarpetUnselected `json:"unselected,omitempty"` @@ -378,6 +389,7 @@ type ScattercarpetHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScattercarpetHoverlabelFont `json:"font,omitempty"` @@ -420,6 +432,7 @@ type ScattercarpetLegendgrouptitleFont struct { type ScattercarpetLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScattercarpetLegendgrouptitleFont `json:"font,omitempty"` @@ -525,6 +538,7 @@ type ScattercarpetMarkerColorbarTitleFont struct { type ScattercarpetMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScattercarpetMarkerColorbarTitleFont `json:"font,omitempty"` @@ -691,6 +705,7 @@ type ScattercarpetMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScattercarpetMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -789,6 +804,7 @@ type ScattercarpetMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScattercarpetMarkerColorbarTitle `json:"title,omitempty"` @@ -1001,6 +1017,7 @@ type ScattercarpetMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScattercarpetMarkerColorbar `json:"colorbar,omitempty"` @@ -1017,10 +1034,12 @@ type ScattercarpetMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Gradient + // arrayOK: false // role: Object Gradient *ScattercarpetMarkerGradient `json:"gradient,omitempty"` // Line + // arrayOK: false // role: Object Line *ScattercarpetMarkerLine `json:"line,omitempty"` @@ -1147,10 +1166,12 @@ type ScattercarpetSelectedTextfont struct { type ScattercarpetSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScattercarpetSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattercarpetSelectedTextfont `json:"textfont,omitempty"` } @@ -1247,10 +1268,12 @@ type ScattercarpetUnselectedTextfont struct { type ScattercarpetUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScattercarpetUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattercarpetUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.19.0/graph_objects/scattergeo_gen.go b/generated/v2.19.0/graph_objects/scattergeo_gen.go index 6794ea9..fe5181e 100644 --- a/generated/v2.19.0/graph_objects/scattergeo_gen.go +++ b/generated/v2.19.0/graph_objects/scattergeo_gen.go @@ -65,6 +65,7 @@ type Scattergeo struct { Geojson interface{} `json:"geojson,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -77,6 +78,7 @@ type Scattergeo struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScattergeoHoverlabel `json:"hoverlabel,omitempty"` @@ -135,6 +137,7 @@ type Scattergeo struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScattergeoLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -151,6 +154,7 @@ type Scattergeo struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScattergeoLine `json:"line,omitempty"` @@ -186,6 +190,7 @@ type Scattergeo struct { Lonsrc string `json:"lonsrc,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScattergeoMarker `json:"marker,omitempty"` @@ -202,6 +207,7 @@ type Scattergeo struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: markers // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -220,6 +226,7 @@ type Scattergeo struct { Opacity float64 `json:"opacity,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScattergeoSelected `json:"selected,omitempty"` @@ -236,6 +243,7 @@ type Scattergeo struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScattergeoStream `json:"stream,omitempty"` @@ -246,6 +254,7 @@ type Scattergeo struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattergeoTextfont `json:"textfont,omitempty"` @@ -299,6 +308,7 @@ type Scattergeo struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScattergeoUnselected `json:"unselected,omitempty"` @@ -391,6 +401,7 @@ type ScattergeoHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScattergeoHoverlabelFont `json:"font,omitempty"` @@ -433,6 +444,7 @@ type ScattergeoLegendgrouptitleFont struct { type ScattergeoLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScattergeoLegendgrouptitleFont `json:"font,omitempty"` @@ -513,6 +525,7 @@ type ScattergeoMarkerColorbarTitleFont struct { type ScattergeoMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScattergeoMarkerColorbarTitleFont `json:"font,omitempty"` @@ -679,6 +692,7 @@ type ScattergeoMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScattergeoMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -777,6 +791,7 @@ type ScattergeoMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScattergeoMarkerColorbarTitle `json:"title,omitempty"` @@ -989,6 +1004,7 @@ type ScattergeoMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScattergeoMarkerColorbar `json:"colorbar,omitempty"` @@ -1005,10 +1021,12 @@ type ScattergeoMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Gradient + // arrayOK: false // role: Object Gradient *ScattergeoMarkerGradient `json:"gradient,omitempty"` // Line + // arrayOK: false // role: Object Line *ScattergeoMarkerLine `json:"line,omitempty"` @@ -1129,10 +1147,12 @@ type ScattergeoSelectedTextfont struct { type ScattergeoSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScattergeoSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattergeoSelectedTextfont `json:"textfont,omitempty"` } @@ -1229,10 +1249,12 @@ type ScattergeoUnselectedTextfont struct { type ScattergeoUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScattergeoUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattergeoUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.19.0/graph_objects/scattergl_gen.go b/generated/v2.19.0/graph_objects/scattergl_gen.go index fe9c715..183ad3c 100644 --- a/generated/v2.19.0/graph_objects/scattergl_gen.go +++ b/generated/v2.19.0/graph_objects/scattergl_gen.go @@ -46,10 +46,12 @@ type Scattergl struct { Dy float64 `json:"dy,omitempty"` // ErrorX + // arrayOK: false // role: Object ErrorX *ScatterglErrorX `json:"error_x,omitempty"` // ErrorY + // arrayOK: false // role: Object ErrorY *ScatterglErrorY `json:"error_y,omitempty"` @@ -67,6 +69,7 @@ type Scattergl struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -79,6 +82,7 @@ type Scattergl struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScatterglHoverlabel `json:"hoverlabel,omitempty"` @@ -125,6 +129,7 @@ type Scattergl struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScatterglLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -141,10 +146,12 @@ type Scattergl struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterglLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScatterglMarker `json:"marker,omitempty"` @@ -161,6 +168,7 @@ type Scattergl struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: %!s() // type: flaglist // Determines the drawing mode for this scatter trace. @@ -179,6 +187,7 @@ type Scattergl struct { Opacity float64 `json:"opacity,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScatterglSelected `json:"selected,omitempty"` @@ -195,6 +204,7 @@ type Scattergl struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScatterglStream `json:"stream,omitempty"` @@ -205,6 +215,7 @@ type Scattergl struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterglTextfont `json:"textfont,omitempty"` @@ -258,6 +269,7 @@ type Scattergl struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScatterglUnselected `json:"unselected,omitempty"` @@ -646,6 +658,7 @@ type ScatterglHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScatterglHoverlabelFont `json:"font,omitempty"` @@ -688,6 +701,7 @@ type ScatterglLegendgrouptitleFont struct { type ScatterglLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScatterglLegendgrouptitleFont `json:"font,omitempty"` @@ -776,6 +790,7 @@ type ScatterglMarkerColorbarTitleFont struct { type ScatterglMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScatterglMarkerColorbarTitleFont `json:"font,omitempty"` @@ -942,6 +957,7 @@ type ScatterglMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScatterglMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -1040,6 +1056,7 @@ type ScatterglMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScatterglMarkerColorbarTitle `json:"title,omitempty"` @@ -1216,6 +1233,7 @@ type ScatterglMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScatterglMarkerColorbar `json:"colorbar,omitempty"` @@ -1232,6 +1250,7 @@ type ScatterglMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterglMarkerLine `json:"line,omitempty"` @@ -1340,10 +1359,12 @@ type ScatterglSelectedTextfont struct { type ScatterglSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterglSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterglSelectedTextfont `json:"textfont,omitempty"` } @@ -1440,10 +1461,12 @@ type ScatterglUnselectedTextfont struct { type ScatterglUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterglUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterglUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.19.0/graph_objects/scattermapbox_gen.go b/generated/v2.19.0/graph_objects/scattermapbox_gen.go index 39b1ce0..3fda441 100644 --- a/generated/v2.19.0/graph_objects/scattermapbox_gen.go +++ b/generated/v2.19.0/graph_objects/scattermapbox_gen.go @@ -22,6 +22,7 @@ type Scattermapbox struct { Below string `json:"below,omitempty"` // Cluster + // arrayOK: false // role: Object Cluster *ScattermapboxCluster `json:"cluster,omitempty"` @@ -57,6 +58,7 @@ type Scattermapbox struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -69,6 +71,7 @@ type Scattermapbox struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScattermapboxHoverlabel `json:"hoverlabel,omitempty"` @@ -127,6 +130,7 @@ type Scattermapbox struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScattermapboxLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -143,6 +147,7 @@ type Scattermapbox struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScattermapboxLine `json:"line,omitempty"` @@ -159,6 +164,7 @@ type Scattermapbox struct { Lonsrc string `json:"lonsrc,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScattermapboxMarker `json:"marker,omitempty"` @@ -175,6 +181,7 @@ type Scattermapbox struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: markers // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. @@ -193,6 +200,7 @@ type Scattermapbox struct { Opacity float64 `json:"opacity,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScattermapboxSelected `json:"selected,omitempty"` @@ -209,6 +217,7 @@ type Scattermapbox struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScattermapboxStream `json:"stream,omitempty"` @@ -225,6 +234,7 @@ type Scattermapbox struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattermapboxTextfont `json:"textfont,omitempty"` @@ -272,6 +282,7 @@ type Scattermapbox struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScattermapboxUnselected `json:"unselected,omitempty"` @@ -428,6 +439,7 @@ type ScattermapboxHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScattermapboxHoverlabelFont `json:"font,omitempty"` @@ -470,6 +482,7 @@ type ScattermapboxLegendgrouptitleFont struct { type ScattermapboxLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScattermapboxLegendgrouptitleFont `json:"font,omitempty"` @@ -544,6 +557,7 @@ type ScattermapboxMarkerColorbarTitleFont struct { type ScattermapboxMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScattermapboxMarkerColorbarTitleFont `json:"font,omitempty"` @@ -710,6 +724,7 @@ type ScattermapboxMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScattermapboxMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -808,6 +823,7 @@ type ScattermapboxMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScattermapboxMarkerColorbarTitle `json:"title,omitempty"` @@ -914,6 +930,7 @@ type ScattermapboxMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScattermapboxMarkerColorbar `json:"colorbar,omitempty"` @@ -1023,6 +1040,7 @@ type ScattermapboxSelectedMarker struct { type ScattermapboxSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScattermapboxSelectedMarker `json:"marker,omitempty"` } @@ -1091,6 +1109,7 @@ type ScattermapboxUnselectedMarker struct { type ScattermapboxUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScattermapboxUnselectedMarker `json:"marker,omitempty"` } diff --git a/generated/v2.19.0/graph_objects/scatterpolar_gen.go b/generated/v2.19.0/graph_objects/scatterpolar_gen.go index c65e6ea..f729df6 100644 --- a/generated/v2.19.0/graph_objects/scatterpolar_gen.go +++ b/generated/v2.19.0/graph_objects/scatterpolar_gen.go @@ -65,6 +65,7 @@ type Scatterpolar struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -77,10 +78,12 @@ type Scatterpolar struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScatterpolarHoverlabel `json:"hoverlabel,omitempty"` // Hoveron + // arrayOK: false // default: %!s() // type: flaglist // Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is *toself* or *tonext* and there are no markers or text, then the default is *fills*, otherwise it is *points*. @@ -129,6 +132,7 @@ type Scatterpolar struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScatterpolarLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -145,10 +149,12 @@ type Scatterpolar struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterpolarLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScatterpolarMarker `json:"marker,omitempty"` @@ -165,6 +171,7 @@ type Scatterpolar struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: %!s() // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -201,6 +208,7 @@ type Scatterpolar struct { Rsrc string `json:"rsrc,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScatterpolarSelected `json:"selected,omitempty"` @@ -217,6 +225,7 @@ type Scatterpolar struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScatterpolarStream `json:"stream,omitempty"` @@ -233,6 +242,7 @@ type Scatterpolar struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterpolarTextfont `json:"textfont,omitempty"` @@ -311,6 +321,7 @@ type Scatterpolar struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScatterpolarUnselected `json:"unselected,omitempty"` @@ -403,6 +414,7 @@ type ScatterpolarHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScatterpolarHoverlabelFont `json:"font,omitempty"` @@ -445,6 +457,7 @@ type ScatterpolarLegendgrouptitleFont struct { type ScatterpolarLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScatterpolarLegendgrouptitleFont `json:"font,omitempty"` @@ -550,6 +563,7 @@ type ScatterpolarMarkerColorbarTitleFont struct { type ScatterpolarMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScatterpolarMarkerColorbarTitleFont `json:"font,omitempty"` @@ -716,6 +730,7 @@ type ScatterpolarMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScatterpolarMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -814,6 +829,7 @@ type ScatterpolarMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScatterpolarMarkerColorbarTitle `json:"title,omitempty"` @@ -1026,6 +1042,7 @@ type ScatterpolarMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScatterpolarMarkerColorbar `json:"colorbar,omitempty"` @@ -1042,10 +1059,12 @@ type ScatterpolarMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Gradient + // arrayOK: false // role: Object Gradient *ScatterpolarMarkerGradient `json:"gradient,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterpolarMarkerLine `json:"line,omitempty"` @@ -1172,10 +1191,12 @@ type ScatterpolarSelectedTextfont struct { type ScatterpolarSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterpolarSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterpolarSelectedTextfont `json:"textfont,omitempty"` } @@ -1272,10 +1293,12 @@ type ScatterpolarUnselectedTextfont struct { type ScatterpolarUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterpolarUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterpolarUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.19.0/graph_objects/scatterpolargl_gen.go b/generated/v2.19.0/graph_objects/scatterpolargl_gen.go index b1427a8..33831fa 100644 --- a/generated/v2.19.0/graph_objects/scatterpolargl_gen.go +++ b/generated/v2.19.0/graph_objects/scatterpolargl_gen.go @@ -59,6 +59,7 @@ type Scatterpolargl struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -71,6 +72,7 @@ type Scatterpolargl struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScatterpolarglHoverlabel `json:"hoverlabel,omitempty"` @@ -117,6 +119,7 @@ type Scatterpolargl struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScatterpolarglLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -133,10 +136,12 @@ type Scatterpolargl struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterpolarglLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScatterpolarglMarker `json:"marker,omitempty"` @@ -153,6 +158,7 @@ type Scatterpolargl struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: %!s() // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -189,6 +195,7 @@ type Scatterpolargl struct { Rsrc string `json:"rsrc,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScatterpolarglSelected `json:"selected,omitempty"` @@ -205,6 +212,7 @@ type Scatterpolargl struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScatterpolarglStream `json:"stream,omitempty"` @@ -221,6 +229,7 @@ type Scatterpolargl struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterpolarglTextfont `json:"textfont,omitempty"` @@ -299,6 +308,7 @@ type Scatterpolargl struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScatterpolarglUnselected `json:"unselected,omitempty"` @@ -391,6 +401,7 @@ type ScatterpolarglHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScatterpolarglHoverlabelFont `json:"font,omitempty"` @@ -433,6 +444,7 @@ type ScatterpolarglLegendgrouptitleFont struct { type ScatterpolarglLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScatterpolarglLegendgrouptitleFont `json:"font,omitempty"` @@ -521,6 +533,7 @@ type ScatterpolarglMarkerColorbarTitleFont struct { type ScatterpolarglMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScatterpolarglMarkerColorbarTitleFont `json:"font,omitempty"` @@ -687,6 +700,7 @@ type ScatterpolarglMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScatterpolarglMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -785,6 +799,7 @@ type ScatterpolarglMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScatterpolarglMarkerColorbarTitle `json:"title,omitempty"` @@ -961,6 +976,7 @@ type ScatterpolarglMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScatterpolarglMarkerColorbar `json:"colorbar,omitempty"` @@ -977,6 +993,7 @@ type ScatterpolarglMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterpolarglMarkerLine `json:"line,omitempty"` @@ -1085,10 +1102,12 @@ type ScatterpolarglSelectedTextfont struct { type ScatterpolarglSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterpolarglSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterpolarglSelectedTextfont `json:"textfont,omitempty"` } @@ -1185,10 +1204,12 @@ type ScatterpolarglUnselectedTextfont struct { type ScatterpolarglUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterpolarglUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterpolarglUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.19.0/graph_objects/scattersmith_gen.go b/generated/v2.19.0/graph_objects/scattersmith_gen.go index f7cb554..717ac3f 100644 --- a/generated/v2.19.0/graph_objects/scattersmith_gen.go +++ b/generated/v2.19.0/graph_objects/scattersmith_gen.go @@ -53,6 +53,7 @@ type Scattersmith struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -65,10 +66,12 @@ type Scattersmith struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScattersmithHoverlabel `json:"hoverlabel,omitempty"` // Hoveron + // arrayOK: false // default: %!s() // type: flaglist // Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is *toself* or *tonext* and there are no markers or text, then the default is *fills*, otherwise it is *points*. @@ -129,6 +132,7 @@ type Scattersmith struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScattersmithLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -145,10 +149,12 @@ type Scattersmith struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScattersmithLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScattersmithMarker `json:"marker,omitempty"` @@ -165,6 +171,7 @@ type Scattersmith struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: %!s() // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -195,6 +202,7 @@ type Scattersmith struct { Realsrc string `json:"realsrc,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScattersmithSelected `json:"selected,omitempty"` @@ -211,6 +219,7 @@ type Scattersmith struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScattersmithStream `json:"stream,omitempty"` @@ -227,6 +236,7 @@ type Scattersmith struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattersmithTextfont `json:"textfont,omitempty"` @@ -280,6 +290,7 @@ type Scattersmith struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScattersmithUnselected `json:"unselected,omitempty"` @@ -372,6 +383,7 @@ type ScattersmithHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScattersmithHoverlabelFont `json:"font,omitempty"` @@ -414,6 +426,7 @@ type ScattersmithLegendgrouptitleFont struct { type ScattersmithLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScattersmithLegendgrouptitleFont `json:"font,omitempty"` @@ -519,6 +532,7 @@ type ScattersmithMarkerColorbarTitleFont struct { type ScattersmithMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScattersmithMarkerColorbarTitleFont `json:"font,omitempty"` @@ -685,6 +699,7 @@ type ScattersmithMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScattersmithMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -783,6 +798,7 @@ type ScattersmithMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScattersmithMarkerColorbarTitle `json:"title,omitempty"` @@ -995,6 +1011,7 @@ type ScattersmithMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScattersmithMarkerColorbar `json:"colorbar,omitempty"` @@ -1011,10 +1028,12 @@ type ScattersmithMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Gradient + // arrayOK: false // role: Object Gradient *ScattersmithMarkerGradient `json:"gradient,omitempty"` // Line + // arrayOK: false // role: Object Line *ScattersmithMarkerLine `json:"line,omitempty"` @@ -1141,10 +1160,12 @@ type ScattersmithSelectedTextfont struct { type ScattersmithSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScattersmithSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattersmithSelectedTextfont `json:"textfont,omitempty"` } @@ -1241,10 +1262,12 @@ type ScattersmithUnselectedTextfont struct { type ScattersmithUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScattersmithUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattersmithUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.19.0/graph_objects/scatterternary_gen.go b/generated/v2.19.0/graph_objects/scatterternary_gen.go index c86ce49..5ae44da 100644 --- a/generated/v2.19.0/graph_objects/scatterternary_gen.go +++ b/generated/v2.19.0/graph_objects/scatterternary_gen.go @@ -89,6 +89,7 @@ type Scatterternary struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -101,10 +102,12 @@ type Scatterternary struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScatterternaryHoverlabel `json:"hoverlabel,omitempty"` // Hoveron + // arrayOK: false // default: %!s() // type: flaglist // Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is *toself* or *tonext* and there are no markers or text, then the default is *fills*, otherwise it is *points*. @@ -153,6 +156,7 @@ type Scatterternary struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScatterternaryLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -169,10 +173,12 @@ type Scatterternary struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterternaryLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScatterternaryMarker `json:"marker,omitempty"` @@ -189,6 +195,7 @@ type Scatterternary struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: markers // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -207,6 +214,7 @@ type Scatterternary struct { Opacity float64 `json:"opacity,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScatterternarySelected `json:"selected,omitempty"` @@ -223,6 +231,7 @@ type Scatterternary struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScatterternaryStream `json:"stream,omitempty"` @@ -245,6 +254,7 @@ type Scatterternary struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterternaryTextfont `json:"textfont,omitempty"` @@ -298,6 +308,7 @@ type Scatterternary struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScatterternaryUnselected `json:"unselected,omitempty"` @@ -390,6 +401,7 @@ type ScatterternaryHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScatterternaryHoverlabelFont `json:"font,omitempty"` @@ -432,6 +444,7 @@ type ScatterternaryLegendgrouptitleFont struct { type ScatterternaryLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScatterternaryLegendgrouptitleFont `json:"font,omitempty"` @@ -537,6 +550,7 @@ type ScatterternaryMarkerColorbarTitleFont struct { type ScatterternaryMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScatterternaryMarkerColorbarTitleFont `json:"font,omitempty"` @@ -703,6 +717,7 @@ type ScatterternaryMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScatterternaryMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -801,6 +816,7 @@ type ScatterternaryMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScatterternaryMarkerColorbarTitle `json:"title,omitempty"` @@ -1013,6 +1029,7 @@ type ScatterternaryMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScatterternaryMarkerColorbar `json:"colorbar,omitempty"` @@ -1029,10 +1046,12 @@ type ScatterternaryMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Gradient + // arrayOK: false // role: Object Gradient *ScatterternaryMarkerGradient `json:"gradient,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterternaryMarkerLine `json:"line,omitempty"` @@ -1159,10 +1178,12 @@ type ScatterternarySelectedTextfont struct { type ScatterternarySelected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterternarySelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterternarySelectedTextfont `json:"textfont,omitempty"` } @@ -1259,10 +1280,12 @@ type ScatterternaryUnselectedTextfont struct { type ScatterternaryUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterternaryUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterternaryUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.19.0/graph_objects/splom_gen.go b/generated/v2.19.0/graph_objects/splom_gen.go index bc9c862..c5e0ab9 100644 --- a/generated/v2.19.0/graph_objects/splom_gen.go +++ b/generated/v2.19.0/graph_objects/splom_gen.go @@ -28,6 +28,7 @@ type Splom struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Diagonal + // arrayOK: false // role: Object Diagonal *SplomDiagonal `json:"diagonal,omitempty"` @@ -38,6 +39,7 @@ type Splom struct { Dimensions interface{} `json:"dimensions,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -50,6 +52,7 @@ type Splom struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *SplomHoverlabel `json:"hoverlabel,omitempty"` @@ -96,6 +99,7 @@ type Splom struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *SplomLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -112,6 +116,7 @@ type Splom struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *SplomMarker `json:"marker,omitempty"` @@ -140,6 +145,7 @@ type Splom struct { Opacity float64 `json:"opacity,omitempty"` // Selected + // arrayOK: false // role: Object Selected *SplomSelected `json:"selected,omitempty"` @@ -168,6 +174,7 @@ type Splom struct { Showupperhalf Bool `json:"showupperhalf,omitempty"` // Stream + // arrayOK: false // role: Object Stream *SplomStream `json:"stream,omitempty"` @@ -202,6 +209,7 @@ type Splom struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *SplomUnselected `json:"unselected,omitempty"` @@ -328,6 +336,7 @@ type SplomHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *SplomHoverlabelFont `json:"font,omitempty"` @@ -370,6 +379,7 @@ type SplomLegendgrouptitleFont struct { type SplomLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *SplomLegendgrouptitleFont `json:"font,omitempty"` @@ -428,6 +438,7 @@ type SplomMarkerColorbarTitleFont struct { type SplomMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *SplomMarkerColorbarTitleFont `json:"font,omitempty"` @@ -594,6 +605,7 @@ type SplomMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *SplomMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -692,6 +704,7 @@ type SplomMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *SplomMarkerColorbarTitle `json:"title,omitempty"` @@ -868,6 +881,7 @@ type SplomMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *SplomMarkerColorbar `json:"colorbar,omitempty"` @@ -884,6 +898,7 @@ type SplomMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *SplomMarkerLine `json:"line,omitempty"` @@ -982,6 +997,7 @@ type SplomSelectedMarker struct { type SplomSelected struct { // Marker + // arrayOK: false // role: Object Marker *SplomSelectedMarker `json:"marker,omitempty"` } @@ -1028,6 +1044,7 @@ type SplomUnselectedMarker struct { type SplomUnselected struct { // Marker + // arrayOK: false // role: Object Marker *SplomUnselectedMarker `json:"marker,omitempty"` } diff --git a/generated/v2.19.0/graph_objects/streamtube_gen.go b/generated/v2.19.0/graph_objects/streamtube_gen.go index 8c9b04d..4194a92 100644 --- a/generated/v2.19.0/graph_objects/streamtube_gen.go +++ b/generated/v2.19.0/graph_objects/streamtube_gen.go @@ -52,6 +52,7 @@ type Streamtube struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *StreamtubeColorbar `json:"colorbar,omitempty"` @@ -74,6 +75,7 @@ type Streamtube struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo + // arrayOK: true // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -86,6 +88,7 @@ type Streamtube struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *StreamtubeHoverlabel `json:"hoverlabel,omitempty"` @@ -126,6 +129,7 @@ type Streamtube struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *StreamtubeLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -142,10 +146,12 @@ type Streamtube struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Lighting + // arrayOK: false // role: Object Lighting *StreamtubeLighting `json:"lighting,omitempty"` // Lightposition + // arrayOK: false // role: Object Lightposition *StreamtubeLightposition `json:"lightposition,omitempty"` @@ -210,10 +216,12 @@ type Streamtube struct { Sizeref float64 `json:"sizeref,omitempty"` // Starts + // arrayOK: false // role: Object Starts *StreamtubeStarts `json:"starts,omitempty"` // Stream + // arrayOK: false // role: Object Stream *StreamtubeStream `json:"stream,omitempty"` @@ -399,6 +407,7 @@ type StreamtubeColorbarTitleFont struct { type StreamtubeColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *StreamtubeColorbarTitleFont `json:"font,omitempty"` @@ -565,6 +574,7 @@ type StreamtubeColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *StreamtubeColorbarTickfont `json:"tickfont,omitempty"` @@ -663,6 +673,7 @@ type StreamtubeColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *StreamtubeColorbarTitle `json:"title,omitempty"` @@ -786,6 +797,7 @@ type StreamtubeHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *StreamtubeHoverlabelFont `json:"font,omitempty"` @@ -828,6 +840,7 @@ type StreamtubeLegendgrouptitleFont struct { type StreamtubeLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *StreamtubeLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.19.0/graph_objects/sunburst_gen.go b/generated/v2.19.0/graph_objects/sunburst_gen.go index 1173f76..b396890 100644 --- a/generated/v2.19.0/graph_objects/sunburst_gen.go +++ b/generated/v2.19.0/graph_objects/sunburst_gen.go @@ -23,6 +23,7 @@ type Sunburst struct { Branchvalues SunburstBranchvalues `json:"branchvalues,omitempty"` // Count + // arrayOK: false // default: leaves // type: flaglist // Determines default for `values` when it is not provided, by inferring a 1 for each of the *leaves* and/or *branches*, otherwise 0. @@ -41,10 +42,12 @@ type Sunburst struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Domain + // arrayOK: false // role: Object Domain *SunburstDomain `json:"domain,omitempty"` // Hoverinfo + // arrayOK: true // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -57,6 +60,7 @@ type Sunburst struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *SunburstHoverlabel `json:"hoverlabel,omitempty"` @@ -97,6 +101,7 @@ type Sunburst struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *SunburstInsidetextfont `json:"insidetextfont,omitempty"` @@ -120,10 +125,12 @@ type Sunburst struct { Labelssrc string `json:"labelssrc,omitempty"` // Leaf + // arrayOK: false // role: Object Leaf *SunburstLeaf `json:"leaf,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *SunburstLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -146,6 +153,7 @@ type Sunburst struct { Level interface{} `json:"level,omitempty"` // Marker + // arrayOK: false // role: Object Marker *SunburstMarker `json:"marker,omitempty"` @@ -180,6 +188,7 @@ type Sunburst struct { Opacity float64 `json:"opacity,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *SunburstOutsidetextfont `json:"outsidetextfont,omitempty"` @@ -196,6 +205,7 @@ type Sunburst struct { Parentssrc string `json:"parentssrc,omitempty"` // Root + // arrayOK: false // role: Object Root *SunburstRoot `json:"root,omitempty"` @@ -212,6 +222,7 @@ type Sunburst struct { Sort Bool `json:"sort,omitempty"` // Stream + // arrayOK: false // role: Object Stream *SunburstStream `json:"stream,omitempty"` @@ -222,10 +233,12 @@ type Sunburst struct { Text interface{} `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *SunburstTextfont `json:"textfont,omitempty"` // Textinfo + // arrayOK: false // default: %!s() // type: flaglist // Determines which trace information appear on the graph. @@ -396,6 +409,7 @@ type SunburstHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *SunburstHoverlabelFont `json:"font,omitempty"` @@ -488,6 +502,7 @@ type SunburstLegendgrouptitleFont struct { type SunburstLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *SunburstLegendgrouptitleFont `json:"font,omitempty"` @@ -546,6 +561,7 @@ type SunburstMarkerColorbarTitleFont struct { type SunburstMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *SunburstMarkerColorbarTitleFont `json:"font,omitempty"` @@ -712,6 +728,7 @@ type SunburstMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *SunburstMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -810,6 +827,7 @@ type SunburstMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *SunburstMarkerColorbarTitle `json:"title,omitempty"` @@ -920,6 +938,7 @@ type SunburstMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *SunburstMarkerColorbar `json:"colorbar,omitempty"` @@ -942,6 +961,7 @@ type SunburstMarker struct { Colorssrc string `json:"colorssrc,omitempty"` // Line + // arrayOK: false // role: Object Line *SunburstMarkerLine `json:"line,omitempty"` diff --git a/generated/v2.19.0/graph_objects/surface_gen.go b/generated/v2.19.0/graph_objects/surface_gen.go index 628546b..7ccdb9b 100644 --- a/generated/v2.19.0/graph_objects/surface_gen.go +++ b/generated/v2.19.0/graph_objects/surface_gen.go @@ -52,6 +52,7 @@ type Surface struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *SurfaceColorbar `json:"colorbar,omitempty"` @@ -68,6 +69,7 @@ type Surface struct { Connectgaps Bool `json:"connectgaps,omitempty"` // Contours + // arrayOK: false // role: Object Contours *SurfaceContours `json:"contours,omitempty"` @@ -90,6 +92,7 @@ type Surface struct { Hidesurface Bool `json:"hidesurface,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -102,6 +105,7 @@ type Surface struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *SurfaceHoverlabel `json:"hoverlabel,omitempty"` @@ -148,6 +152,7 @@ type Surface struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *SurfaceLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -164,10 +169,12 @@ type Surface struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Lighting + // arrayOK: false // role: Object Lighting *SurfaceLighting `json:"lighting,omitempty"` // Lightposition + // arrayOK: false // role: Object Lightposition *SurfaceLightposition `json:"lightposition,omitempty"` @@ -226,6 +233,7 @@ type Surface struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *SurfaceStream `json:"stream,omitempty"` @@ -396,6 +404,7 @@ type SurfaceColorbarTitleFont struct { type SurfaceColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *SurfaceColorbarTitleFont `json:"font,omitempty"` @@ -562,6 +571,7 @@ type SurfaceColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *SurfaceColorbarTickfont `json:"tickfont,omitempty"` @@ -660,6 +670,7 @@ type SurfaceColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *SurfaceColorbarTitle `json:"title,omitempty"` @@ -758,6 +769,7 @@ type SurfaceContoursX struct { Highlightwidth float64 `json:"highlightwidth,omitempty"` // Project + // arrayOK: false // role: Object Project *SurfaceContoursXProject `json:"project,omitempty"` @@ -848,6 +860,7 @@ type SurfaceContoursY struct { Highlightwidth float64 `json:"highlightwidth,omitempty"` // Project + // arrayOK: false // role: Object Project *SurfaceContoursYProject `json:"project,omitempty"` @@ -938,6 +951,7 @@ type SurfaceContoursZ struct { Highlightwidth float64 `json:"highlightwidth,omitempty"` // Project + // arrayOK: false // role: Object Project *SurfaceContoursZProject `json:"project,omitempty"` @@ -976,14 +990,17 @@ type SurfaceContoursZ struct { type SurfaceContours struct { // X + // arrayOK: false // role: Object X *SurfaceContoursX `json:"x,omitempty"` // Y + // arrayOK: false // role: Object Y *SurfaceContoursY `json:"y,omitempty"` // Z + // arrayOK: false // role: Object Z *SurfaceContoursZ `json:"z,omitempty"` } @@ -1069,6 +1086,7 @@ type SurfaceHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *SurfaceHoverlabelFont `json:"font,omitempty"` @@ -1111,6 +1129,7 @@ type SurfaceLegendgrouptitleFont struct { type SurfaceLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *SurfaceLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.19.0/graph_objects/table_gen.go b/generated/v2.19.0/graph_objects/table_gen.go index f952e44..71ccdef 100644 --- a/generated/v2.19.0/graph_objects/table_gen.go +++ b/generated/v2.19.0/graph_objects/table_gen.go @@ -16,6 +16,7 @@ type Table struct { Type TraceType `json:"type,omitempty"` // Cells + // arrayOK: false // role: Object Cells *TableCells `json:"cells,omitempty"` @@ -56,14 +57,17 @@ type Table struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Domain + // arrayOK: false // role: Object Domain *TableDomain `json:"domain,omitempty"` // Header + // arrayOK: false // role: Object Header *TableHeader `json:"header,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -76,6 +80,7 @@ type Table struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *TableHoverlabel `json:"hoverlabel,omitempty"` @@ -92,6 +97,7 @@ type Table struct { Idssrc string `json:"idssrc,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *TableLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -126,6 +132,7 @@ type Table struct { Name string `json:"name,omitempty"` // Stream + // arrayOK: false // role: Object Stream *TableStream `json:"stream,omitempty"` @@ -250,10 +257,12 @@ type TableCells struct { Alignsrc string `json:"alignsrc,omitempty"` // Fill + // arrayOK: false // role: Object Fill *TableCellsFill `json:"fill,omitempty"` // Font + // arrayOK: false // role: Object Font *TableCellsFont `json:"font,omitempty"` @@ -276,6 +285,7 @@ type TableCells struct { Height float64 `json:"height,omitempty"` // Line + // arrayOK: false // role: Object Line *TableCellsLine `json:"line,omitempty"` @@ -445,10 +455,12 @@ type TableHeader struct { Alignsrc string `json:"alignsrc,omitempty"` // Fill + // arrayOK: false // role: Object Fill *TableHeaderFill `json:"fill,omitempty"` // Font + // arrayOK: false // role: Object Font *TableHeaderFont `json:"font,omitempty"` @@ -471,6 +483,7 @@ type TableHeader struct { Height float64 `json:"height,omitempty"` // Line + // arrayOK: false // role: Object Line *TableHeaderLine `json:"line,omitempty"` @@ -592,6 +605,7 @@ type TableHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *TableHoverlabelFont `json:"font,omitempty"` @@ -634,6 +648,7 @@ type TableLegendgrouptitleFont struct { type TableLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *TableLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.19.0/graph_objects/treemap_gen.go b/generated/v2.19.0/graph_objects/treemap_gen.go index 6b4e066..474dc6b 100644 --- a/generated/v2.19.0/graph_objects/treemap_gen.go +++ b/generated/v2.19.0/graph_objects/treemap_gen.go @@ -23,6 +23,7 @@ type Treemap struct { Branchvalues TreemapBranchvalues `json:"branchvalues,omitempty"` // Count + // arrayOK: false // default: leaves // type: flaglist // Determines default for `values` when it is not provided, by inferring a 1 for each of the *leaves* and/or *branches*, otherwise 0. @@ -41,10 +42,12 @@ type Treemap struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Domain + // arrayOK: false // role: Object Domain *TreemapDomain `json:"domain,omitempty"` // Hoverinfo + // arrayOK: true // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -57,6 +60,7 @@ type Treemap struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *TreemapHoverlabel `json:"hoverlabel,omitempty"` @@ -97,6 +101,7 @@ type Treemap struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *TreemapInsidetextfont `json:"insidetextfont,omitempty"` @@ -113,6 +118,7 @@ type Treemap struct { Labelssrc string `json:"labelssrc,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *TreemapLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -135,6 +141,7 @@ type Treemap struct { Level interface{} `json:"level,omitempty"` // Marker + // arrayOK: false // role: Object Marker *TreemapMarker `json:"marker,omitempty"` @@ -169,6 +176,7 @@ type Treemap struct { Opacity float64 `json:"opacity,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *TreemapOutsidetextfont `json:"outsidetextfont,omitempty"` @@ -185,10 +193,12 @@ type Treemap struct { Parentssrc string `json:"parentssrc,omitempty"` // Pathbar + // arrayOK: false // role: Object Pathbar *TreemapPathbar `json:"pathbar,omitempty"` // Root + // arrayOK: false // role: Object Root *TreemapRoot `json:"root,omitempty"` @@ -199,6 +209,7 @@ type Treemap struct { Sort Bool `json:"sort,omitempty"` // Stream + // arrayOK: false // role: Object Stream *TreemapStream `json:"stream,omitempty"` @@ -209,10 +220,12 @@ type Treemap struct { Text interface{} `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *TreemapTextfont `json:"textfont,omitempty"` // Textinfo + // arrayOK: false // default: %!s() // type: flaglist // Determines which trace information appear on the graph. @@ -244,6 +257,7 @@ type Treemap struct { Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Tiling + // arrayOK: false // role: Object Tiling *TreemapTiling `json:"tiling,omitempty"` @@ -394,6 +408,7 @@ type TreemapHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *TreemapHoverlabelFont `json:"font,omitempty"` @@ -476,6 +491,7 @@ type TreemapLegendgrouptitleFont struct { type TreemapLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *TreemapLegendgrouptitleFont `json:"font,omitempty"` @@ -534,6 +550,7 @@ type TreemapMarkerColorbarTitleFont struct { type TreemapMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *TreemapMarkerColorbarTitleFont `json:"font,omitempty"` @@ -700,6 +717,7 @@ type TreemapMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *TreemapMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -798,6 +816,7 @@ type TreemapMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *TreemapMarkerColorbarTitle `json:"title,omitempty"` @@ -936,6 +955,7 @@ type TreemapMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *TreemapMarkerColorbar `json:"colorbar,omitempty"` @@ -971,10 +991,12 @@ type TreemapMarker struct { Depthfade TreemapMarkerDepthfade `json:"depthfade,omitempty"` // Line + // arrayOK: false // role: Object Line *TreemapMarkerLine `json:"line,omitempty"` // Pad + // arrayOK: false // role: Object Pad *TreemapMarkerPad `json:"pad,omitempty"` @@ -1089,6 +1111,7 @@ type TreemapPathbar struct { Side TreemapPathbarSide `json:"side,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *TreemapPathbarTextfont `json:"textfont,omitempty"` @@ -1175,6 +1198,7 @@ type TreemapTextfont struct { type TreemapTiling struct { // Flip + // arrayOK: false // default: // type: flaglist // Determines if the positions obtained from solver are flipped on each axis. diff --git a/generated/v2.19.0/graph_objects/violin_gen.go b/generated/v2.19.0/graph_objects/violin_gen.go index 38cc9a7..7ae46af 100644 --- a/generated/v2.19.0/graph_objects/violin_gen.go +++ b/generated/v2.19.0/graph_objects/violin_gen.go @@ -28,6 +28,7 @@ type Violin struct { Bandwidth float64 `json:"bandwidth,omitempty"` // Box + // arrayOK: false // role: Object Box *ViolinBox `json:"box,omitempty"` @@ -50,6 +51,7 @@ type Violin struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -62,10 +64,12 @@ type Violin struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ViolinHoverlabel `json:"hoverlabel,omitempty"` // Hoveron + // arrayOK: false // default: violins+points+kde // type: flaglist // Do the hover effects highlight individual violins or sample points or the kernel density estimate or any combination of them? @@ -120,6 +124,7 @@ type Violin struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ViolinLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -136,14 +141,17 @@ type Violin struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ViolinLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ViolinMarker `json:"marker,omitempty"` // Meanline + // arrayOK: false // role: Object Meanline *ViolinMeanline `json:"meanline,omitempty"` @@ -218,6 +226,7 @@ type Violin struct { Scalemode ViolinScalemode `json:"scalemode,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ViolinSelected `json:"selected,omitempty"` @@ -254,6 +263,7 @@ type Violin struct { Spanmode ViolinSpanmode `json:"spanmode,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ViolinStream `json:"stream,omitempty"` @@ -288,6 +298,7 @@ type Violin struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ViolinUnselected `json:"unselected,omitempty"` @@ -391,6 +402,7 @@ type ViolinBox struct { Fillcolor Color `json:"fillcolor,omitempty"` // Line + // arrayOK: false // role: Object Line *ViolinBoxLine `json:"line,omitempty"` @@ -488,6 +500,7 @@ type ViolinHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ViolinHoverlabelFont `json:"font,omitempty"` @@ -530,6 +543,7 @@ type ViolinLegendgrouptitleFont struct { type ViolinLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ViolinLegendgrouptitleFont `json:"font,omitempty"` @@ -600,6 +614,7 @@ type ViolinMarker struct { Color Color `json:"color,omitempty"` // Line + // arrayOK: false // role: Object Line *ViolinMarkerLine `json:"line,omitempty"` @@ -677,6 +692,7 @@ type ViolinSelectedMarker struct { type ViolinSelected struct { // Marker + // arrayOK: false // role: Object Marker *ViolinSelectedMarker `json:"marker,omitempty"` } @@ -723,6 +739,7 @@ type ViolinUnselectedMarker struct { type ViolinUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ViolinUnselectedMarker `json:"marker,omitempty"` } diff --git a/generated/v2.19.0/graph_objects/volume_gen.go b/generated/v2.19.0/graph_objects/volume_gen.go index b28c194..6d0da5d 100644 --- a/generated/v2.19.0/graph_objects/volume_gen.go +++ b/generated/v2.19.0/graph_objects/volume_gen.go @@ -22,6 +22,7 @@ type Volume struct { Autocolorscale Bool `json:"autocolorscale,omitempty"` // Caps + // arrayOK: false // role: Object Caps *VolumeCaps `json:"caps,omitempty"` @@ -56,6 +57,7 @@ type Volume struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *VolumeColorbar `json:"colorbar,omitempty"` @@ -66,6 +68,7 @@ type Volume struct { Colorscale ColorScale `json:"colorscale,omitempty"` // Contour + // arrayOK: false // role: Object Contour *VolumeContour `json:"contour,omitempty"` @@ -88,6 +91,7 @@ type Volume struct { Flatshading Bool `json:"flatshading,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -100,6 +104,7 @@ type Volume struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *VolumeHoverlabel `json:"hoverlabel,omitempty"` @@ -158,6 +163,7 @@ type Volume struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *VolumeLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -174,10 +180,12 @@ type Volume struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Lighting + // arrayOK: false // role: Object Lighting *VolumeLighting `json:"lighting,omitempty"` // Lightposition + // arrayOK: false // role: Object Lightposition *VolumeLightposition `json:"lightposition,omitempty"` @@ -236,18 +244,22 @@ type Volume struct { Showscale Bool `json:"showscale,omitempty"` // Slices + // arrayOK: false // role: Object Slices *VolumeSlices `json:"slices,omitempty"` // Spaceframe + // arrayOK: false // role: Object Spaceframe *VolumeSpaceframe `json:"spaceframe,omitempty"` // Stream + // arrayOK: false // role: Object Stream *VolumeStream `json:"stream,omitempty"` // Surface + // arrayOK: false // role: Object Surface *VolumeSurface `json:"surface,omitempty"` @@ -407,14 +419,17 @@ type VolumeCapsZ struct { type VolumeCaps struct { // X + // arrayOK: false // role: Object X *VolumeCapsX `json:"x,omitempty"` // Y + // arrayOK: false // role: Object Y *VolumeCapsY `json:"y,omitempty"` // Z + // arrayOK: false // role: Object Z *VolumeCapsZ `json:"z,omitempty"` } @@ -467,6 +482,7 @@ type VolumeColorbarTitleFont struct { type VolumeColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *VolumeColorbarTitleFont `json:"font,omitempty"` @@ -633,6 +649,7 @@ type VolumeColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *VolumeColorbarTickfont `json:"tickfont,omitempty"` @@ -731,6 +748,7 @@ type VolumeColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *VolumeColorbarTitle `json:"title,omitempty"` @@ -876,6 +894,7 @@ type VolumeHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *VolumeHoverlabelFont `json:"font,omitempty"` @@ -918,6 +937,7 @@ type VolumeLegendgrouptitleFont struct { type VolumeLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *VolumeLegendgrouptitleFont `json:"font,omitempty"` @@ -1084,14 +1104,17 @@ type VolumeSlicesZ struct { type VolumeSlices struct { // X + // arrayOK: false // role: Object X *VolumeSlicesX `json:"x,omitempty"` // Y + // arrayOK: false // role: Object Y *VolumeSlicesY `json:"y,omitempty"` // Z + // arrayOK: false // role: Object Z *VolumeSlicesZ `json:"z,omitempty"` } @@ -1144,6 +1167,7 @@ type VolumeSurface struct { Fill float64 `json:"fill,omitempty"` // Pattern + // arrayOK: false // default: all // type: flaglist // Sets the surface pattern of the iso-surface 3-D sections. The default pattern of the surface is `all` meaning that the rest of surface elements would be shaded. The check options (either 1 or 2) could be used to draw half of the squares on the surface. Using various combinations of capital `A`, `B`, `C`, `D` and `E` may also be used to reduce the number of triangles on the iso-surfaces and creating other patterns of interest. diff --git a/generated/v2.19.0/graph_objects/waterfall_gen.go b/generated/v2.19.0/graph_objects/waterfall_gen.go index 6b24d34..db6fbcb 100644 --- a/generated/v2.19.0/graph_objects/waterfall_gen.go +++ b/generated/v2.19.0/graph_objects/waterfall_gen.go @@ -34,6 +34,7 @@ type Waterfall struct { Cliponaxis Bool `json:"cliponaxis,omitempty"` // Connector + // arrayOK: false // role: Object Connector *WaterfallConnector `json:"connector,omitempty"` @@ -57,6 +58,7 @@ type Waterfall struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Decreasing + // arrayOK: false // role: Object Decreasing *WaterfallDecreasing `json:"decreasing,omitempty"` @@ -73,6 +75,7 @@ type Waterfall struct { Dy float64 `json:"dy,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -85,6 +88,7 @@ type Waterfall struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *WaterfallHoverlabel `json:"hoverlabel,omitempty"` @@ -125,6 +129,7 @@ type Waterfall struct { Idssrc string `json:"idssrc,omitempty"` // Increasing + // arrayOK: false // role: Object Increasing *WaterfallIncreasing `json:"increasing,omitempty"` @@ -136,6 +141,7 @@ type Waterfall struct { Insidetextanchor WaterfallInsidetextanchor `json:"insidetextanchor,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *WaterfallInsidetextfont `json:"insidetextfont,omitempty"` @@ -146,6 +152,7 @@ type Waterfall struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *WaterfallLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -223,6 +230,7 @@ type Waterfall struct { Orientation WaterfallOrientation `json:"orientation,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *WaterfallOutsidetextfont `json:"outsidetextfont,omitempty"` @@ -239,6 +247,7 @@ type Waterfall struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *WaterfallStream `json:"stream,omitempty"` @@ -255,10 +264,12 @@ type Waterfall struct { Textangle float64 `json:"textangle,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *WaterfallTextfont `json:"textfont,omitempty"` // Textinfo + // arrayOK: false // default: %!s() // type: flaglist // Determines which trace information appear on the graph. In the case of having multiple waterfalls, totals are computed separately (per trace). @@ -296,6 +307,7 @@ type Waterfall struct { Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Totals + // arrayOK: false // role: Object Totals *WaterfallTotals `json:"totals,omitempty"` @@ -461,6 +473,7 @@ type WaterfallConnectorLine struct { type WaterfallConnector struct { // Line + // arrayOK: false // role: Object Line *WaterfallConnectorLine `json:"line,omitempty"` @@ -504,6 +517,7 @@ type WaterfallDecreasingMarker struct { Color Color `json:"color,omitempty"` // Line + // arrayOK: false // role: Object Line *WaterfallDecreasingMarkerLine `json:"line,omitempty"` } @@ -512,6 +526,7 @@ type WaterfallDecreasingMarker struct { type WaterfallDecreasing struct { // Marker + // arrayOK: false // role: Object Marker *WaterfallDecreasingMarker `json:"marker,omitempty"` } @@ -597,6 +612,7 @@ type WaterfallHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *WaterfallHoverlabelFont `json:"font,omitempty"` @@ -639,6 +655,7 @@ type WaterfallIncreasingMarker struct { Color Color `json:"color,omitempty"` // Line + // arrayOK: false // role: Object Line *WaterfallIncreasingMarkerLine `json:"line,omitempty"` } @@ -647,6 +664,7 @@ type WaterfallIncreasingMarker struct { type WaterfallIncreasing struct { // Marker + // arrayOK: false // role: Object Marker *WaterfallIncreasingMarker `json:"marker,omitempty"` } @@ -717,6 +735,7 @@ type WaterfallLegendgrouptitleFont struct { type WaterfallLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *WaterfallLegendgrouptitleFont `json:"font,omitempty"` @@ -849,6 +868,7 @@ type WaterfallTotalsMarker struct { Color Color `json:"color,omitempty"` // Line + // arrayOK: false // role: Object Line *WaterfallTotalsMarkerLine `json:"line,omitempty"` } @@ -857,6 +877,7 @@ type WaterfallTotalsMarker struct { type WaterfallTotals struct { // Marker + // arrayOK: false // role: Object Marker *WaterfallTotalsMarker `json:"marker,omitempty"` } diff --git a/generated/v2.29.1/graph_objects/bar_gen.go b/generated/v2.29.1/graph_objects/bar_gen.go index 066e25d..969823a 100644 --- a/generated/v2.29.1/graph_objects/bar_gen.go +++ b/generated/v2.29.1/graph_objects/bar_gen.go @@ -71,14 +71,17 @@ type Bar struct { Dy float64 `json:"dy,omitempty"` // ErrorX + // arrayOK: false // role: Object ErrorX *BarErrorX `json:"error_x,omitempty"` // ErrorY + // arrayOK: false // role: Object ErrorY *BarErrorY `json:"error_y,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -91,6 +94,7 @@ type Bar struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *BarHoverlabel `json:"hoverlabel,omitempty"` @@ -138,6 +142,7 @@ type Bar struct { Insidetextanchor BarInsidetextanchor `json:"insidetextanchor,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *BarInsidetextfont `json:"insidetextfont,omitempty"` @@ -154,6 +159,7 @@ type Bar struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *BarLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -170,6 +176,7 @@ type Bar struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *BarMarker `json:"marker,omitempty"` @@ -223,10 +230,12 @@ type Bar struct { Orientation BarOrientation `json:"orientation,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *BarOutsidetextfont `json:"outsidetextfont,omitempty"` // Selected + // arrayOK: false // role: Object Selected *BarSelected `json:"selected,omitempty"` @@ -243,6 +252,7 @@ type Bar struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *BarStream `json:"stream,omitempty"` @@ -259,6 +269,7 @@ type Bar struct { Textangle float64 `json:"textangle,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *BarTextfont `json:"textfont,omitempty"` @@ -312,6 +323,7 @@ type Bar struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *BarUnselected `json:"unselected,omitempty"` @@ -712,6 +724,7 @@ type BarHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *BarHoverlabelFont `json:"font,omitempty"` @@ -794,6 +807,7 @@ type BarLegendgrouptitleFont struct { type BarLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *BarLegendgrouptitleFont `json:"font,omitempty"` @@ -852,6 +866,7 @@ type BarMarkerColorbarTitleFont struct { type BarMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *BarMarkerColorbarTitleFont `json:"font,omitempty"` @@ -1018,6 +1033,7 @@ type BarMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *BarMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -1116,6 +1132,7 @@ type BarMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *BarMarkerColorbarTitle `json:"title,omitempty"` @@ -1372,6 +1389,7 @@ type BarMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *BarMarkerColorbar `json:"colorbar,omitempty"` @@ -1394,6 +1412,7 @@ type BarMarker struct { Cornerradius interface{} `json:"cornerradius,omitempty"` // Line + // arrayOK: false // role: Object Line *BarMarkerLine `json:"line,omitempty"` @@ -1410,6 +1429,7 @@ type BarMarker struct { Opacitysrc string `json:"opacitysrc,omitempty"` // Pattern + // arrayOK: false // role: Object Pattern *BarMarkerPattern `json:"pattern,omitempty"` @@ -1496,10 +1516,12 @@ type BarSelectedTextfont struct { type BarSelected struct { // Marker + // arrayOK: false // role: Object Marker *BarSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *BarSelectedTextfont `json:"textfont,omitempty"` } @@ -1590,10 +1612,12 @@ type BarUnselectedTextfont struct { type BarUnselected struct { // Marker + // arrayOK: false // role: Object Marker *BarUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *BarUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.29.1/graph_objects/barpolar_gen.go b/generated/v2.29.1/graph_objects/barpolar_gen.go index 0522253..602b7d4 100644 --- a/generated/v2.29.1/graph_objects/barpolar_gen.go +++ b/generated/v2.29.1/graph_objects/barpolar_gen.go @@ -52,6 +52,7 @@ type Barpolar struct { Dtheta float64 `json:"dtheta,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -64,6 +65,7 @@ type Barpolar struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *BarpolarHoverlabel `json:"hoverlabel,omitempty"` @@ -116,6 +118,7 @@ type Barpolar struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *BarpolarLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -132,6 +135,7 @@ type Barpolar struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *BarpolarMarker `json:"marker,omitempty"` @@ -190,6 +194,7 @@ type Barpolar struct { Rsrc string `json:"rsrc,omitempty"` // Selected + // arrayOK: false // role: Object Selected *BarpolarSelected `json:"selected,omitempty"` @@ -206,6 +211,7 @@ type Barpolar struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *BarpolarStream `json:"stream,omitempty"` @@ -271,6 +277,7 @@ type Barpolar struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *BarpolarUnselected `json:"unselected,omitempty"` @@ -375,6 +382,7 @@ type BarpolarHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *BarpolarHoverlabelFont `json:"font,omitempty"` @@ -417,6 +425,7 @@ type BarpolarLegendgrouptitleFont struct { type BarpolarLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *BarpolarLegendgrouptitleFont `json:"font,omitempty"` @@ -475,6 +484,7 @@ type BarpolarMarkerColorbarTitleFont struct { type BarpolarMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *BarpolarMarkerColorbarTitleFont `json:"font,omitempty"` @@ -641,6 +651,7 @@ type BarpolarMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *BarpolarMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -739,6 +750,7 @@ type BarpolarMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *BarpolarMarkerColorbarTitle `json:"title,omitempty"` @@ -995,6 +1007,7 @@ type BarpolarMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *BarpolarMarkerColorbar `json:"colorbar,omitempty"` @@ -1011,6 +1024,7 @@ type BarpolarMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *BarpolarMarkerLine `json:"line,omitempty"` @@ -1027,6 +1041,7 @@ type BarpolarMarker struct { Opacitysrc string `json:"opacitysrc,omitempty"` // Pattern + // arrayOK: false // role: Object Pattern *BarpolarMarkerPattern `json:"pattern,omitempty"` @@ -1073,10 +1088,12 @@ type BarpolarSelectedTextfont struct { type BarpolarSelected struct { // Marker + // arrayOK: false // role: Object Marker *BarpolarSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *BarpolarSelectedTextfont `json:"textfont,omitempty"` } @@ -1127,10 +1144,12 @@ type BarpolarUnselectedTextfont struct { type BarpolarUnselected struct { // Marker + // arrayOK: false // role: Object Marker *BarpolarUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *BarpolarUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.29.1/graph_objects/box_gen.go b/generated/v2.29.1/graph_objects/box_gen.go index 2442203..a0563ec 100644 --- a/generated/v2.29.1/graph_objects/box_gen.go +++ b/generated/v2.29.1/graph_objects/box_gen.go @@ -66,6 +66,7 @@ type Box struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -78,10 +79,12 @@ type Box struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *BoxHoverlabel `json:"hoverlabel,omitempty"` // Hoveron + // arrayOK: false // default: boxes+points // type: flaglist // Do the hover effects highlight individual boxes or sample points or both? @@ -142,6 +145,7 @@ type Box struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *BoxLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -158,6 +162,7 @@ type Box struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *BoxLine `json:"line,omitempty"` @@ -174,6 +179,7 @@ type Box struct { Lowerfencesrc string `json:"lowerfencesrc,omitempty"` // Marker + // arrayOK: false // role: Object Marker *BoxMarker `json:"marker,omitempty"` @@ -318,6 +324,7 @@ type Box struct { Sdsrc string `json:"sdsrc,omitempty"` // Selected + // arrayOK: false // role: Object Selected *BoxSelected `json:"selected,omitempty"` @@ -347,6 +354,7 @@ type Box struct { Sizemode BoxSizemode `json:"sizemode,omitempty"` // Stream + // arrayOK: false // role: Object Stream *BoxStream `json:"stream,omitempty"` @@ -381,6 +389,7 @@ type Box struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *BoxUnselected `json:"unselected,omitempty"` @@ -609,6 +618,7 @@ type BoxHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *BoxHoverlabelFont `json:"font,omitempty"` @@ -651,6 +661,7 @@ type BoxLegendgrouptitleFont struct { type BoxLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *BoxLegendgrouptitleFont `json:"font,omitempty"` @@ -721,6 +732,7 @@ type BoxMarker struct { Color Color `json:"color,omitempty"` // Line + // arrayOK: false // role: Object Line *BoxMarkerLine `json:"line,omitempty"` @@ -776,6 +788,7 @@ type BoxSelectedMarker struct { type BoxSelected struct { // Marker + // arrayOK: false // role: Object Marker *BoxSelectedMarker `json:"marker,omitempty"` } @@ -822,6 +835,7 @@ type BoxUnselectedMarker struct { type BoxUnselected struct { // Marker + // arrayOK: false // role: Object Marker *BoxUnselectedMarker `json:"marker,omitempty"` } diff --git a/generated/v2.29.1/graph_objects/candlestick_gen.go b/generated/v2.29.1/graph_objects/candlestick_gen.go index 012b5cd..3898795 100644 --- a/generated/v2.29.1/graph_objects/candlestick_gen.go +++ b/generated/v2.29.1/graph_objects/candlestick_gen.go @@ -40,6 +40,7 @@ type Candlestick struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Decreasing + // arrayOK: false // role: Object Decreasing *CandlestickDecreasing `json:"decreasing,omitempty"` @@ -56,6 +57,7 @@ type Candlestick struct { Highsrc string `json:"highsrc,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -68,6 +70,7 @@ type Candlestick struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *CandlestickHoverlabel `json:"hoverlabel,omitempty"` @@ -96,6 +99,7 @@ type Candlestick struct { Idssrc string `json:"idssrc,omitempty"` // Increasing + // arrayOK: false // role: Object Increasing *CandlestickIncreasing `json:"increasing,omitempty"` @@ -112,6 +116,7 @@ type Candlestick struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *CandlestickLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -128,6 +133,7 @@ type Candlestick struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *CandlestickLine `json:"line,omitempty"` @@ -192,6 +198,7 @@ type Candlestick struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *CandlestickStream `json:"stream,omitempty"` @@ -327,6 +334,7 @@ type CandlestickDecreasing struct { Fillcolor Color `json:"fillcolor,omitempty"` // Line + // arrayOK: false // role: Object Line *CandlestickDecreasingLine `json:"line,omitempty"` } @@ -412,6 +420,7 @@ type CandlestickHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *CandlestickHoverlabelFont `json:"font,omitempty"` @@ -460,6 +469,7 @@ type CandlestickIncreasing struct { Fillcolor Color `json:"fillcolor,omitempty"` // Line + // arrayOK: false // role: Object Line *CandlestickIncreasingLine `json:"line,omitempty"` } @@ -490,6 +500,7 @@ type CandlestickLegendgrouptitleFont struct { type CandlestickLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *CandlestickLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.29.1/graph_objects/carpet_gen.go b/generated/v2.29.1/graph_objects/carpet_gen.go index e0b8e0e..baf4b25 100644 --- a/generated/v2.29.1/graph_objects/carpet_gen.go +++ b/generated/v2.29.1/graph_objects/carpet_gen.go @@ -28,6 +28,7 @@ type Carpet struct { A0 float64 `json:"a0,omitempty"` // Aaxis + // arrayOK: false // role: Object Aaxis *CarpetAaxis `json:"aaxis,omitempty"` @@ -50,6 +51,7 @@ type Carpet struct { B0 float64 `json:"b0,omitempty"` // Baxis + // arrayOK: false // role: Object Baxis *CarpetBaxis `json:"baxis,omitempty"` @@ -102,6 +104,7 @@ type Carpet struct { Db float64 `json:"db,omitempty"` // Font + // arrayOK: false // role: Object Font *CarpetFont `json:"font,omitempty"` @@ -124,6 +127,7 @@ type Carpet struct { Legend String `json:"legend,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *CarpetLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -164,6 +168,7 @@ type Carpet struct { Opacity float64 `json:"opacity,omitempty"` // Stream + // arrayOK: false // role: Object Stream *CarpetStream `json:"stream,omitempty"` @@ -271,6 +276,7 @@ type CarpetAaxisTitleFont struct { type CarpetAaxisTitle struct { // Font + // arrayOK: false // role: Object Font *CarpetAaxisTitleFont `json:"font,omitempty"` @@ -571,6 +577,7 @@ type CarpetAaxis struct { Tickangle float64 `json:"tickangle,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *CarpetAaxisTickfont `json:"tickfont,omitempty"` @@ -630,6 +637,7 @@ type CarpetAaxis struct { Tickvalssrc string `json:"tickvalssrc,omitempty"` // Title + // arrayOK: false // role: Object Title *CarpetAaxisTitle `json:"title,omitempty"` @@ -689,6 +697,7 @@ type CarpetBaxisTitleFont struct { type CarpetBaxisTitle struct { // Font + // arrayOK: false // role: Object Font *CarpetBaxisTitleFont `json:"font,omitempty"` @@ -989,6 +998,7 @@ type CarpetBaxis struct { Tickangle float64 `json:"tickangle,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *CarpetBaxisTickfont `json:"tickfont,omitempty"` @@ -1048,6 +1058,7 @@ type CarpetBaxis struct { Tickvalssrc string `json:"tickvalssrc,omitempty"` // Title + // arrayOK: false // role: Object Title *CarpetBaxisTitle `json:"title,omitempty"` @@ -1107,6 +1118,7 @@ type CarpetLegendgrouptitleFont struct { type CarpetLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *CarpetLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.29.1/graph_objects/choropleth_gen.go b/generated/v2.29.1/graph_objects/choropleth_gen.go index bdc1b79..0b560e4 100644 --- a/generated/v2.29.1/graph_objects/choropleth_gen.go +++ b/generated/v2.29.1/graph_objects/choropleth_gen.go @@ -28,6 +28,7 @@ type Choropleth struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ChoroplethColorbar `json:"colorbar,omitempty"` @@ -68,6 +69,7 @@ type Choropleth struct { Geojson interface{} `json:"geojson,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -80,6 +82,7 @@ type Choropleth struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ChoroplethHoverlabel `json:"hoverlabel,omitempty"` @@ -132,6 +135,7 @@ type Choropleth struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ChoroplethLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -167,6 +171,7 @@ type Choropleth struct { Locationssrc string `json:"locationssrc,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ChoroplethMarker `json:"marker,omitempty"` @@ -195,6 +200,7 @@ type Choropleth struct { Reversescale Bool `json:"reversescale,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ChoroplethSelected `json:"selected,omitempty"` @@ -217,6 +223,7 @@ type Choropleth struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ChoroplethStream `json:"stream,omitempty"` @@ -251,6 +258,7 @@ type Choropleth struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ChoroplethUnselected `json:"unselected,omitempty"` @@ -346,6 +354,7 @@ type ChoroplethColorbarTitleFont struct { type ChoroplethColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ChoroplethColorbarTitleFont `json:"font,omitempty"` @@ -512,6 +521,7 @@ type ChoroplethColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ChoroplethColorbarTickfont `json:"tickfont,omitempty"` @@ -610,6 +620,7 @@ type ChoroplethColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ChoroplethColorbarTitle `json:"title,omitempty"` @@ -747,6 +758,7 @@ type ChoroplethHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ChoroplethHoverlabelFont `json:"font,omitempty"` @@ -789,6 +801,7 @@ type ChoroplethLegendgrouptitleFont struct { type ChoroplethLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ChoroplethLegendgrouptitleFont `json:"font,omitempty"` @@ -831,6 +844,7 @@ type ChoroplethMarkerLine struct { type ChoroplethMarker struct { // Line + // arrayOK: false // role: Object Line *ChoroplethMarkerLine `json:"line,omitempty"` @@ -861,6 +875,7 @@ type ChoroplethSelectedMarker struct { type ChoroplethSelected struct { // Marker + // arrayOK: false // role: Object Marker *ChoroplethSelectedMarker `json:"marker,omitempty"` } @@ -895,6 +910,7 @@ type ChoroplethUnselectedMarker struct { type ChoroplethUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ChoroplethUnselectedMarker `json:"marker,omitempty"` } diff --git a/generated/v2.29.1/graph_objects/choroplethmapbox_gen.go b/generated/v2.29.1/graph_objects/choroplethmapbox_gen.go index 32cc04d..1736558 100644 --- a/generated/v2.29.1/graph_objects/choroplethmapbox_gen.go +++ b/generated/v2.29.1/graph_objects/choroplethmapbox_gen.go @@ -34,6 +34,7 @@ type Choroplethmapbox struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ChoroplethmapboxColorbar `json:"colorbar,omitempty"` @@ -68,6 +69,7 @@ type Choroplethmapbox struct { Geojson interface{} `json:"geojson,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -80,6 +82,7 @@ type Choroplethmapbox struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ChoroplethmapboxHoverlabel `json:"hoverlabel,omitempty"` @@ -132,6 +135,7 @@ type Choroplethmapbox struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ChoroplethmapboxLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -160,6 +164,7 @@ type Choroplethmapbox struct { Locationssrc string `json:"locationssrc,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ChoroplethmapboxMarker `json:"marker,omitempty"` @@ -188,6 +193,7 @@ type Choroplethmapbox struct { Reversescale Bool `json:"reversescale,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ChoroplethmapboxSelected `json:"selected,omitempty"` @@ -210,6 +216,7 @@ type Choroplethmapbox struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ChoroplethmapboxStream `json:"stream,omitempty"` @@ -250,6 +257,7 @@ type Choroplethmapbox struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ChoroplethmapboxUnselected `json:"unselected,omitempty"` @@ -345,6 +353,7 @@ type ChoroplethmapboxColorbarTitleFont struct { type ChoroplethmapboxColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ChoroplethmapboxColorbarTitleFont `json:"font,omitempty"` @@ -511,6 +520,7 @@ type ChoroplethmapboxColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ChoroplethmapboxColorbarTickfont `json:"tickfont,omitempty"` @@ -609,6 +619,7 @@ type ChoroplethmapboxColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ChoroplethmapboxColorbarTitle `json:"title,omitempty"` @@ -746,6 +757,7 @@ type ChoroplethmapboxHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ChoroplethmapboxHoverlabelFont `json:"font,omitempty"` @@ -788,6 +800,7 @@ type ChoroplethmapboxLegendgrouptitleFont struct { type ChoroplethmapboxLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ChoroplethmapboxLegendgrouptitleFont `json:"font,omitempty"` @@ -830,6 +843,7 @@ type ChoroplethmapboxMarkerLine struct { type ChoroplethmapboxMarker struct { // Line + // arrayOK: false // role: Object Line *ChoroplethmapboxMarkerLine `json:"line,omitempty"` @@ -860,6 +874,7 @@ type ChoroplethmapboxSelectedMarker struct { type ChoroplethmapboxSelected struct { // Marker + // arrayOK: false // role: Object Marker *ChoroplethmapboxSelectedMarker `json:"marker,omitempty"` } @@ -894,6 +909,7 @@ type ChoroplethmapboxUnselectedMarker struct { type ChoroplethmapboxUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ChoroplethmapboxUnselectedMarker `json:"marker,omitempty"` } diff --git a/generated/v2.29.1/graph_objects/cone_gen.go b/generated/v2.29.1/graph_objects/cone_gen.go index bc2e8ee..55925b0 100644 --- a/generated/v2.29.1/graph_objects/cone_gen.go +++ b/generated/v2.29.1/graph_objects/cone_gen.go @@ -59,6 +59,7 @@ type Cone struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ConeColorbar `json:"colorbar,omitempty"` @@ -81,6 +82,7 @@ type Cone struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo + // arrayOK: true // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -93,6 +95,7 @@ type Cone struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ConeHoverlabel `json:"hoverlabel,omitempty"` @@ -145,6 +148,7 @@ type Cone struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ConeLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -161,10 +165,12 @@ type Cone struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Lighting + // arrayOK: false // role: Object Lighting *ConeLighting `json:"lighting,omitempty"` // Lightposition + // arrayOK: false // role: Object Lightposition *ConeLightposition `json:"lightposition,omitempty"` @@ -230,6 +236,7 @@ type Cone struct { Sizeref float64 `json:"sizeref,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ConeStream `json:"stream,omitempty"` @@ -421,6 +428,7 @@ type ConeColorbarTitleFont struct { type ConeColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ConeColorbarTitleFont `json:"font,omitempty"` @@ -587,6 +595,7 @@ type ConeColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ConeColorbarTickfont `json:"tickfont,omitempty"` @@ -685,6 +694,7 @@ type ConeColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ConeColorbarTitle `json:"title,omitempty"` @@ -822,6 +832,7 @@ type ConeHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ConeHoverlabelFont `json:"font,omitempty"` @@ -864,6 +875,7 @@ type ConeLegendgrouptitleFont struct { type ConeLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ConeLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.29.1/graph_objects/config_gen.go b/generated/v2.29.1/graph_objects/config_gen.go index d6486c9..b9e0cf8 100644 --- a/generated/v2.29.1/graph_objects/config_gen.go +++ b/generated/v2.29.1/graph_objects/config_gen.go @@ -48,6 +48,7 @@ type Config struct { Editable Bool `json:"editable,omitempty"` // Edits + // arrayOK: false // role: Object Edits *ConfigEdits `json:"edits,omitempty"` @@ -148,6 +149,7 @@ type Config struct { Responsive Bool `json:"responsive,omitempty"` // ScrollZoom + // arrayOK: false // default: gl3d+geo+mapbox // type: flaglist // Determines whether mouse wheel or two-finger scroll zooms is enable. Turned on by default for gl3d, geo and mapbox subplots (as these subplot types do not have zoombox via pan), but turned off by default for cartesian subplots. Set `scrollZoom` to *false* to disable scrolling for all subplots. diff --git a/generated/v2.29.1/graph_objects/contour_gen.go b/generated/v2.29.1/graph_objects/contour_gen.go index d8d2f5e..da9c4a7 100644 --- a/generated/v2.29.1/graph_objects/contour_gen.go +++ b/generated/v2.29.1/graph_objects/contour_gen.go @@ -34,6 +34,7 @@ type Contour struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ContourColorbar `json:"colorbar,omitempty"` @@ -50,6 +51,7 @@ type Contour struct { Connectgaps Bool `json:"connectgaps,omitempty"` // Contours + // arrayOK: false // role: Object Contours *ContourContours `json:"contours,omitempty"` @@ -84,6 +86,7 @@ type Contour struct { Fillcolor ColorWithColorScale `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -96,6 +99,7 @@ type Contour struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ContourHoverlabel `json:"hoverlabel,omitempty"` @@ -154,6 +158,7 @@ type Contour struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ContourLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -170,6 +175,7 @@ type Contour struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ContourLine `json:"line,omitempty"` @@ -222,6 +228,7 @@ type Contour struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ContourStream `json:"stream,omitempty"` @@ -232,6 +239,7 @@ type Contour struct { Text interface{} `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ContourTextfont `json:"textfont,omitempty"` @@ -495,6 +503,7 @@ type ContourColorbarTitleFont struct { type ContourColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ContourColorbarTitleFont `json:"font,omitempty"` @@ -661,6 +670,7 @@ type ContourColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ContourColorbarTickfont `json:"tickfont,omitempty"` @@ -759,6 +769,7 @@ type ContourColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ContourColorbarTitle `json:"title,omitempty"` @@ -854,6 +865,7 @@ type ContourContours struct { End float64 `json:"end,omitempty"` // Labelfont + // arrayOK: false // role: Object Labelfont *ContourContoursLabelfont `json:"labelfont,omitempty"` @@ -989,6 +1001,7 @@ type ContourHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ContourHoverlabelFont `json:"font,omitempty"` @@ -1031,6 +1044,7 @@ type ContourLegendgrouptitleFont struct { type ContourLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ContourLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.29.1/graph_objects/contourcarpet_gen.go b/generated/v2.29.1/graph_objects/contourcarpet_gen.go index 79fee8e..5da30cf 100644 --- a/generated/v2.29.1/graph_objects/contourcarpet_gen.go +++ b/generated/v2.29.1/graph_objects/contourcarpet_gen.go @@ -90,6 +90,7 @@ type Contourcarpet struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ContourcarpetColorbar `json:"colorbar,omitempty"` @@ -100,6 +101,7 @@ type Contourcarpet struct { Colorscale ColorScale `json:"colorscale,omitempty"` // Contours + // arrayOK: false // role: Object Contours *ContourcarpetContours `json:"contours,omitempty"` @@ -170,6 +172,7 @@ type Contourcarpet struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ContourcarpetLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -186,6 +189,7 @@ type Contourcarpet struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ContourcarpetLine `json:"line,omitempty"` @@ -238,6 +242,7 @@ type Contourcarpet struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ContourcarpetStream `json:"stream,omitempty"` @@ -375,6 +380,7 @@ type ContourcarpetColorbarTitleFont struct { type ContourcarpetColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ContourcarpetColorbarTitleFont `json:"font,omitempty"` @@ -541,6 +547,7 @@ type ContourcarpetColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ContourcarpetColorbarTickfont `json:"tickfont,omitempty"` @@ -639,6 +646,7 @@ type ContourcarpetColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ContourcarpetColorbarTitle `json:"title,omitempty"` @@ -734,6 +742,7 @@ type ContourcarpetContours struct { End float64 `json:"end,omitempty"` // Labelfont + // arrayOK: false // role: Object Labelfont *ContourcarpetContoursLabelfont `json:"labelfont,omitempty"` @@ -814,6 +823,7 @@ type ContourcarpetLegendgrouptitleFont struct { type ContourcarpetLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ContourcarpetLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.29.1/graph_objects/densitymapbox_gen.go b/generated/v2.29.1/graph_objects/densitymapbox_gen.go index f0fd283..38f6b11 100644 --- a/generated/v2.29.1/graph_objects/densitymapbox_gen.go +++ b/generated/v2.29.1/graph_objects/densitymapbox_gen.go @@ -34,6 +34,7 @@ type Densitymapbox struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *DensitymapboxColorbar `json:"colorbar,omitempty"` @@ -56,6 +57,7 @@ type Densitymapbox struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -68,6 +70,7 @@ type Densitymapbox struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *DensitymapboxHoverlabel `json:"hoverlabel,omitempty"` @@ -132,6 +135,7 @@ type Densitymapbox struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *DensitymapboxLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -214,6 +218,7 @@ type Densitymapbox struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *DensitymapboxStream `json:"stream,omitempty"` @@ -345,6 +350,7 @@ type DensitymapboxColorbarTitleFont struct { type DensitymapboxColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *DensitymapboxColorbarTitleFont `json:"font,omitempty"` @@ -511,6 +517,7 @@ type DensitymapboxColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *DensitymapboxColorbarTickfont `json:"tickfont,omitempty"` @@ -609,6 +616,7 @@ type DensitymapboxColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *DensitymapboxColorbarTitle `json:"title,omitempty"` @@ -746,6 +754,7 @@ type DensitymapboxHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *DensitymapboxHoverlabelFont `json:"font,omitempty"` @@ -788,6 +797,7 @@ type DensitymapboxLegendgrouptitleFont struct { type DensitymapboxLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *DensitymapboxLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.29.1/graph_objects/funnel_gen.go b/generated/v2.29.1/graph_objects/funnel_gen.go index 7585ae6..5751b18 100644 --- a/generated/v2.29.1/graph_objects/funnel_gen.go +++ b/generated/v2.29.1/graph_objects/funnel_gen.go @@ -28,6 +28,7 @@ type Funnel struct { Cliponaxis Bool `json:"cliponaxis,omitempty"` // Connector + // arrayOK: false // role: Object Connector *FunnelConnector `json:"connector,omitempty"` @@ -63,6 +64,7 @@ type Funnel struct { Dy float64 `json:"dy,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -75,6 +77,7 @@ type Funnel struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *FunnelHoverlabel `json:"hoverlabel,omitempty"` @@ -122,6 +125,7 @@ type Funnel struct { Insidetextanchor FunnelInsidetextanchor `json:"insidetextanchor,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *FunnelInsidetextfont `json:"insidetextfont,omitempty"` @@ -138,6 +142,7 @@ type Funnel struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *FunnelLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -154,6 +159,7 @@ type Funnel struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *FunnelMarker `json:"marker,omitempty"` @@ -201,6 +207,7 @@ type Funnel struct { Orientation FunnelOrientation `json:"orientation,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *FunnelOutsidetextfont `json:"outsidetextfont,omitempty"` @@ -217,6 +224,7 @@ type Funnel struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *FunnelStream `json:"stream,omitempty"` @@ -233,10 +241,12 @@ type Funnel struct { Textangle float64 `json:"textangle,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *FunnelTextfont `json:"textfont,omitempty"` // Textinfo + // arrayOK: false // default: %!s() // type: flaglist // Determines which trace information appear on the graph. In the case of having multiple funnels, percentages & totals are computed separately (per trace). @@ -435,6 +445,7 @@ type FunnelConnector struct { Fillcolor Color `json:"fillcolor,omitempty"` // Line + // arrayOK: false // role: Object Line *FunnelConnectorLine `json:"line,omitempty"` @@ -526,6 +537,7 @@ type FunnelHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *FunnelHoverlabelFont `json:"font,omitempty"` @@ -608,6 +620,7 @@ type FunnelLegendgrouptitleFont struct { type FunnelLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *FunnelLegendgrouptitleFont `json:"font,omitempty"` @@ -666,6 +679,7 @@ type FunnelMarkerColorbarTitleFont struct { type FunnelMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *FunnelMarkerColorbarTitleFont `json:"font,omitempty"` @@ -832,6 +846,7 @@ type FunnelMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *FunnelMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -930,6 +945,7 @@ type FunnelMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *FunnelMarkerColorbarTitle `json:"title,omitempty"` @@ -1108,6 +1124,7 @@ type FunnelMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *FunnelMarkerColorbar `json:"colorbar,omitempty"` @@ -1124,6 +1141,7 @@ type FunnelMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *FunnelMarkerLine `json:"line,omitempty"` diff --git a/generated/v2.29.1/graph_objects/funnelarea_gen.go b/generated/v2.29.1/graph_objects/funnelarea_gen.go index 00b4758..4fd348b 100644 --- a/generated/v2.29.1/graph_objects/funnelarea_gen.go +++ b/generated/v2.29.1/graph_objects/funnelarea_gen.go @@ -46,10 +46,12 @@ type Funnelarea struct { Dlabel float64 `json:"dlabel,omitempty"` // Domain + // arrayOK: false // role: Object Domain *FunnelareaDomain `json:"domain,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -62,6 +64,7 @@ type Funnelarea struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *FunnelareaHoverlabel `json:"hoverlabel,omitempty"` @@ -102,6 +105,7 @@ type Funnelarea struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *FunnelareaInsidetextfont `json:"insidetextfont,omitempty"` @@ -136,6 +140,7 @@ type Funnelarea struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *FunnelareaLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -152,6 +157,7 @@ type Funnelarea struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *FunnelareaMarker `json:"marker,omitempty"` @@ -192,6 +198,7 @@ type Funnelarea struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *FunnelareaStream `json:"stream,omitempty"` @@ -202,10 +209,12 @@ type Funnelarea struct { Text interface{} `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *FunnelareaTextfont `json:"textfont,omitempty"` // Textinfo + // arrayOK: false // default: %!s() // type: flaglist // Determines which trace information appear on the graph. @@ -243,6 +252,7 @@ type Funnelarea struct { Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Title + // arrayOK: false // role: Object Title *FunnelareaTitle `json:"title,omitempty"` @@ -393,6 +403,7 @@ type FunnelareaHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *FunnelareaHoverlabelFont `json:"font,omitempty"` @@ -475,6 +486,7 @@ type FunnelareaLegendgrouptitleFont struct { type FunnelareaLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *FunnelareaLegendgrouptitleFont `json:"font,omitempty"` @@ -607,10 +619,12 @@ type FunnelareaMarker struct { Colorssrc string `json:"colorssrc,omitempty"` // Line + // arrayOK: false // role: Object Line *FunnelareaMarkerLine `json:"line,omitempty"` // Pattern + // arrayOK: false // role: Object Pattern *FunnelareaMarkerPattern `json:"pattern,omitempty"` } @@ -715,6 +729,7 @@ type FunnelareaTitleFont struct { type FunnelareaTitle struct { // Font + // arrayOK: false // role: Object Font *FunnelareaTitleFont `json:"font,omitempty"` diff --git a/generated/v2.29.1/graph_objects/heatmap_gen.go b/generated/v2.29.1/graph_objects/heatmap_gen.go index 20b6ecf..aaf1f5c 100644 --- a/generated/v2.29.1/graph_objects/heatmap_gen.go +++ b/generated/v2.29.1/graph_objects/heatmap_gen.go @@ -28,6 +28,7 @@ type Heatmap struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *HeatmapColorbar `json:"colorbar,omitempty"` @@ -68,6 +69,7 @@ type Heatmap struct { Dy float64 `json:"dy,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -80,6 +82,7 @@ type Heatmap struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *HeatmapHoverlabel `json:"hoverlabel,omitempty"` @@ -138,6 +141,7 @@ type Heatmap struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *HeatmapLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -196,6 +200,7 @@ type Heatmap struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *HeatmapStream `json:"stream,omitempty"` @@ -206,6 +211,7 @@ type Heatmap struct { Text interface{} `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *HeatmapTextfont `json:"textfont,omitempty"` @@ -488,6 +494,7 @@ type HeatmapColorbarTitleFont struct { type HeatmapColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *HeatmapColorbarTitleFont `json:"font,omitempty"` @@ -654,6 +661,7 @@ type HeatmapColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *HeatmapColorbarTickfont `json:"tickfont,omitempty"` @@ -752,6 +760,7 @@ type HeatmapColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *HeatmapColorbarTitle `json:"title,omitempty"` @@ -889,6 +898,7 @@ type HeatmapHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *HeatmapHoverlabelFont `json:"font,omitempty"` @@ -931,6 +941,7 @@ type HeatmapLegendgrouptitleFont struct { type HeatmapLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *HeatmapLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.29.1/graph_objects/heatmapgl_gen.go b/generated/v2.29.1/graph_objects/heatmapgl_gen.go index 35c9187..fbe68f3 100644 --- a/generated/v2.29.1/graph_objects/heatmapgl_gen.go +++ b/generated/v2.29.1/graph_objects/heatmapgl_gen.go @@ -28,6 +28,7 @@ type Heatmapgl struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *HeatmapglColorbar `json:"colorbar,omitempty"` @@ -62,6 +63,7 @@ type Heatmapgl struct { Dy float64 `json:"dy,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -74,6 +76,7 @@ type Heatmapgl struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *HeatmapglHoverlabel `json:"hoverlabel,omitempty"` @@ -96,6 +99,7 @@ type Heatmapgl struct { Legend String `json:"legend,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *HeatmapglLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -148,6 +152,7 @@ type Heatmapgl struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *HeatmapglStream `json:"stream,omitempty"` @@ -348,6 +353,7 @@ type HeatmapglColorbarTitleFont struct { type HeatmapglColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *HeatmapglColorbarTitleFont `json:"font,omitempty"` @@ -514,6 +520,7 @@ type HeatmapglColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *HeatmapglColorbarTickfont `json:"tickfont,omitempty"` @@ -612,6 +619,7 @@ type HeatmapglColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *HeatmapglColorbarTitle `json:"title,omitempty"` @@ -749,6 +757,7 @@ type HeatmapglHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *HeatmapglHoverlabelFont `json:"font,omitempty"` @@ -791,6 +800,7 @@ type HeatmapglLegendgrouptitleFont struct { type HeatmapglLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *HeatmapglLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.29.1/graph_objects/histogram2d_gen.go b/generated/v2.29.1/graph_objects/histogram2d_gen.go index e8cfad6..f6d6fa5 100644 --- a/generated/v2.29.1/graph_objects/histogram2d_gen.go +++ b/generated/v2.29.1/graph_objects/histogram2d_gen.go @@ -46,6 +46,7 @@ type Histogram2d struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *Histogram2dColorbar `json:"colorbar,omitempty"` @@ -82,6 +83,7 @@ type Histogram2d struct { Histnorm Histogram2dHistnorm `json:"histnorm,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -94,6 +96,7 @@ type Histogram2d struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *Histogram2dHoverlabel `json:"hoverlabel,omitempty"` @@ -134,6 +137,7 @@ type Histogram2d struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *Histogram2dLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -150,6 +154,7 @@ type Histogram2d struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *Histogram2dMarker `json:"marker,omitempty"` @@ -208,10 +213,12 @@ type Histogram2d struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *Histogram2dStream `json:"stream,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *Histogram2dTextfont `json:"textfont,omitempty"` @@ -265,6 +272,7 @@ type Histogram2d struct { Xbingroup string `json:"xbingroup,omitempty"` // Xbins + // arrayOK: false // role: Object Xbins *Histogram2dXbins `json:"xbins,omitempty"` @@ -312,6 +320,7 @@ type Histogram2d struct { Ybingroup string `json:"ybingroup,omitempty"` // Ybins + // arrayOK: false // role: Object Ybins *Histogram2dYbins `json:"ybins,omitempty"` @@ -438,6 +447,7 @@ type Histogram2dColorbarTitleFont struct { type Histogram2dColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *Histogram2dColorbarTitleFont `json:"font,omitempty"` @@ -604,6 +614,7 @@ type Histogram2dColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *Histogram2dColorbarTickfont `json:"tickfont,omitempty"` @@ -702,6 +713,7 @@ type Histogram2dColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *Histogram2dColorbarTitle `json:"title,omitempty"` @@ -839,6 +851,7 @@ type Histogram2dHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *Histogram2dHoverlabelFont `json:"font,omitempty"` @@ -881,6 +894,7 @@ type Histogram2dLegendgrouptitleFont struct { type Histogram2dLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *Histogram2dLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.29.1/graph_objects/histogram2dcontour_gen.go b/generated/v2.29.1/graph_objects/histogram2dcontour_gen.go index 9e9e6d6..5bd181d 100644 --- a/generated/v2.29.1/graph_objects/histogram2dcontour_gen.go +++ b/generated/v2.29.1/graph_objects/histogram2dcontour_gen.go @@ -52,6 +52,7 @@ type Histogram2dcontour struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *Histogram2dcontourColorbar `json:"colorbar,omitempty"` @@ -62,6 +63,7 @@ type Histogram2dcontour struct { Colorscale ColorScale `json:"colorscale,omitempty"` // Contours + // arrayOK: false // role: Object Contours *Histogram2dcontourContours `json:"contours,omitempty"` @@ -92,6 +94,7 @@ type Histogram2dcontour struct { Histnorm Histogram2dcontourHistnorm `json:"histnorm,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -104,6 +107,7 @@ type Histogram2dcontour struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *Histogram2dcontourHoverlabel `json:"hoverlabel,omitempty"` @@ -144,6 +148,7 @@ type Histogram2dcontour struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *Histogram2dcontourLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -160,10 +165,12 @@ type Histogram2dcontour struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *Histogram2dcontourLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *Histogram2dcontourMarker `json:"marker,omitempty"` @@ -228,10 +235,12 @@ type Histogram2dcontour struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *Histogram2dcontourStream `json:"stream,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *Histogram2dcontourTextfont `json:"textfont,omitempty"` @@ -285,6 +294,7 @@ type Histogram2dcontour struct { Xbingroup string `json:"xbingroup,omitempty"` // Xbins + // arrayOK: false // role: Object Xbins *Histogram2dcontourXbins `json:"xbins,omitempty"` @@ -326,6 +336,7 @@ type Histogram2dcontour struct { Ybingroup string `json:"ybingroup,omitempty"` // Ybins + // arrayOK: false // role: Object Ybins *Histogram2dcontourYbins `json:"ybins,omitempty"` @@ -439,6 +450,7 @@ type Histogram2dcontourColorbarTitleFont struct { type Histogram2dcontourColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *Histogram2dcontourColorbarTitleFont `json:"font,omitempty"` @@ -605,6 +617,7 @@ type Histogram2dcontourColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *Histogram2dcontourColorbarTickfont `json:"tickfont,omitempty"` @@ -703,6 +716,7 @@ type Histogram2dcontourColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *Histogram2dcontourColorbarTitle `json:"title,omitempty"` @@ -798,6 +812,7 @@ type Histogram2dcontourContours struct { End float64 `json:"end,omitempty"` // Labelfont + // arrayOK: false // role: Object Labelfont *Histogram2dcontourContoursLabelfont `json:"labelfont,omitempty"` @@ -933,6 +948,7 @@ type Histogram2dcontourHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *Histogram2dcontourHoverlabelFont `json:"font,omitempty"` @@ -975,6 +991,7 @@ type Histogram2dcontourLegendgrouptitleFont struct { type Histogram2dcontourLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *Histogram2dcontourLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.29.1/graph_objects/histogram_gen.go b/generated/v2.29.1/graph_objects/histogram_gen.go index d08d56f..9aa840c 100644 --- a/generated/v2.29.1/graph_objects/histogram_gen.go +++ b/generated/v2.29.1/graph_objects/histogram_gen.go @@ -53,6 +53,7 @@ type Histogram struct { Constraintext HistogramConstraintext `json:"constraintext,omitempty"` // Cumulative + // arrayOK: false // role: Object Cumulative *HistogramCumulative `json:"cumulative,omitempty"` @@ -69,10 +70,12 @@ type Histogram struct { Customdatasrc string `json:"customdatasrc,omitempty"` // ErrorX + // arrayOK: false // role: Object ErrorX *HistogramErrorX `json:"error_x,omitempty"` // ErrorY + // arrayOK: false // role: Object ErrorY *HistogramErrorY `json:"error_y,omitempty"` @@ -91,6 +94,7 @@ type Histogram struct { Histnorm HistogramHistnorm `json:"histnorm,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -103,6 +107,7 @@ type Histogram struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *HistogramHoverlabel `json:"hoverlabel,omitempty"` @@ -150,6 +155,7 @@ type Histogram struct { Insidetextanchor HistogramInsidetextanchor `json:"insidetextanchor,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *HistogramInsidetextfont `json:"insidetextfont,omitempty"` @@ -166,6 +172,7 @@ type Histogram struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *HistogramLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -182,6 +189,7 @@ type Histogram struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *HistogramMarker `json:"marker,omitempty"` @@ -235,10 +243,12 @@ type Histogram struct { Orientation HistogramOrientation `json:"orientation,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *HistogramOutsidetextfont `json:"outsidetextfont,omitempty"` // Selected + // arrayOK: false // role: Object Selected *HistogramSelected `json:"selected,omitempty"` @@ -255,6 +265,7 @@ type Histogram struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *HistogramStream `json:"stream,omitempty"` @@ -271,6 +282,7 @@ type Histogram struct { Textangle float64 `json:"textangle,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *HistogramTextfont `json:"textfont,omitempty"` @@ -312,6 +324,7 @@ type Histogram struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *HistogramUnselected `json:"unselected,omitempty"` @@ -335,6 +348,7 @@ type Histogram struct { Xaxis String `json:"xaxis,omitempty"` // Xbins + // arrayOK: false // role: Object Xbins *HistogramXbins `json:"xbins,omitempty"` @@ -370,6 +384,7 @@ type Histogram struct { Yaxis String `json:"yaxis,omitempty"` // Ybins + // arrayOK: false // role: Object Ybins *HistogramYbins `json:"ybins,omitempty"` @@ -682,6 +697,7 @@ type HistogramHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *HistogramHoverlabelFont `json:"font,omitempty"` @@ -746,6 +762,7 @@ type HistogramLegendgrouptitleFont struct { type HistogramLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *HistogramLegendgrouptitleFont `json:"font,omitempty"` @@ -804,6 +821,7 @@ type HistogramMarkerColorbarTitleFont struct { type HistogramMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *HistogramMarkerColorbarTitleFont `json:"font,omitempty"` @@ -970,6 +988,7 @@ type HistogramMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *HistogramMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -1068,6 +1087,7 @@ type HistogramMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *HistogramMarkerColorbarTitle `json:"title,omitempty"` @@ -1324,6 +1344,7 @@ type HistogramMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *HistogramMarkerColorbar `json:"colorbar,omitempty"` @@ -1346,6 +1367,7 @@ type HistogramMarker struct { Cornerradius interface{} `json:"cornerradius,omitempty"` // Line + // arrayOK: false // role: Object Line *HistogramMarkerLine `json:"line,omitempty"` @@ -1362,6 +1384,7 @@ type HistogramMarker struct { Opacitysrc string `json:"opacitysrc,omitempty"` // Pattern + // arrayOK: false // role: Object Pattern *HistogramMarkerPattern `json:"pattern,omitempty"` @@ -1430,10 +1453,12 @@ type HistogramSelectedTextfont struct { type HistogramSelected struct { // Marker + // arrayOK: false // role: Object Marker *HistogramSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *HistogramSelectedTextfont `json:"textfont,omitempty"` } @@ -1506,10 +1531,12 @@ type HistogramUnselectedTextfont struct { type HistogramUnselected struct { // Marker + // arrayOK: false // role: Object Marker *HistogramUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *HistogramUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.29.1/graph_objects/icicle_gen.go b/generated/v2.29.1/graph_objects/icicle_gen.go index c57205c..62baa30 100644 --- a/generated/v2.29.1/graph_objects/icicle_gen.go +++ b/generated/v2.29.1/graph_objects/icicle_gen.go @@ -23,6 +23,7 @@ type Icicle struct { Branchvalues IcicleBranchvalues `json:"branchvalues,omitempty"` // Count + // arrayOK: false // default: leaves // type: flaglist // Determines default for `values` when it is not provided, by inferring a 1 for each of the *leaves* and/or *branches*, otherwise 0. @@ -41,10 +42,12 @@ type Icicle struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Domain + // arrayOK: false // role: Object Domain *IcicleDomain `json:"domain,omitempty"` // Hoverinfo + // arrayOK: true // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -57,6 +60,7 @@ type Icicle struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *IcicleHoverlabel `json:"hoverlabel,omitempty"` @@ -97,6 +101,7 @@ type Icicle struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *IcicleInsidetextfont `json:"insidetextfont,omitempty"` @@ -113,6 +118,7 @@ type Icicle struct { Labelssrc string `json:"labelssrc,omitempty"` // Leaf + // arrayOK: false // role: Object Leaf *IcicleLeaf `json:"leaf,omitempty"` @@ -123,6 +129,7 @@ type Icicle struct { Legend String `json:"legend,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *IcicleLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -145,6 +152,7 @@ type Icicle struct { Level interface{} `json:"level,omitempty"` // Marker + // arrayOK: false // role: Object Marker *IcicleMarker `json:"marker,omitempty"` @@ -179,6 +187,7 @@ type Icicle struct { Opacity float64 `json:"opacity,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *IcicleOutsidetextfont `json:"outsidetextfont,omitempty"` @@ -195,10 +204,12 @@ type Icicle struct { Parentssrc string `json:"parentssrc,omitempty"` // Pathbar + // arrayOK: false // role: Object Pathbar *IciclePathbar `json:"pathbar,omitempty"` // Root + // arrayOK: false // role: Object Root *IcicleRoot `json:"root,omitempty"` @@ -209,6 +220,7 @@ type Icicle struct { Sort Bool `json:"sort,omitempty"` // Stream + // arrayOK: false // role: Object Stream *IcicleStream `json:"stream,omitempty"` @@ -219,10 +231,12 @@ type Icicle struct { Text interface{} `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *IcicleTextfont `json:"textfont,omitempty"` // Textinfo + // arrayOK: false // default: %!s() // type: flaglist // Determines which trace information appear on the graph. @@ -254,6 +268,7 @@ type Icicle struct { Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Tiling + // arrayOK: false // role: Object Tiling *IcicleTiling `json:"tiling,omitempty"` @@ -404,6 +419,7 @@ type IcicleHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *IcicleHoverlabelFont `json:"font,omitempty"` @@ -496,6 +512,7 @@ type IcicleLegendgrouptitleFont struct { type IcicleLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *IcicleLegendgrouptitleFont `json:"font,omitempty"` @@ -554,6 +571,7 @@ type IcicleMarkerColorbarTitleFont struct { type IcicleMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *IcicleMarkerColorbarTitleFont `json:"font,omitempty"` @@ -720,6 +738,7 @@ type IcicleMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *IcicleMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -818,6 +837,7 @@ type IcicleMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *IcicleMarkerColorbarTitle `json:"title,omitempty"` @@ -1020,6 +1040,7 @@ type IcicleMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *IcicleMarkerColorbar `json:"colorbar,omitempty"` @@ -1042,10 +1063,12 @@ type IcicleMarker struct { Colorssrc string `json:"colorssrc,omitempty"` // Line + // arrayOK: false // role: Object Line *IcicleMarkerLine `json:"line,omitempty"` // Pattern + // arrayOK: false // role: Object Pattern *IcicleMarkerPattern `json:"pattern,omitempty"` @@ -1160,6 +1183,7 @@ type IciclePathbar struct { Side IciclePathbarSide `json:"side,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *IciclePathbarTextfont `json:"textfont,omitempty"` @@ -1246,6 +1270,7 @@ type IcicleTextfont struct { type IcicleTiling struct { // Flip + // arrayOK: false // default: // type: flaglist // Determines if the positions obtained from solver are flipped on each axis. diff --git a/generated/v2.29.1/graph_objects/image_gen.go b/generated/v2.29.1/graph_objects/image_gen.go index 9e2a5ab..7efe363 100644 --- a/generated/v2.29.1/graph_objects/image_gen.go +++ b/generated/v2.29.1/graph_objects/image_gen.go @@ -47,6 +47,7 @@ type Image struct { Dy float64 `json:"dy,omitempty"` // Hoverinfo + // arrayOK: true // default: x+y+z+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -59,6 +60,7 @@ type Image struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ImageHoverlabel `json:"hoverlabel,omitempty"` @@ -105,6 +107,7 @@ type Image struct { Legend String `json:"legend,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ImageLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -151,6 +154,7 @@ type Image struct { Source string `json:"source,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ImageStream `json:"stream,omitempty"` @@ -322,6 +326,7 @@ type ImageHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ImageHoverlabelFont `json:"font,omitempty"` @@ -364,6 +369,7 @@ type ImageLegendgrouptitleFont struct { type ImageLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ImageLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.29.1/graph_objects/indicator_gen.go b/generated/v2.29.1/graph_objects/indicator_gen.go index bfe6873..053bf6e 100644 --- a/generated/v2.29.1/graph_objects/indicator_gen.go +++ b/generated/v2.29.1/graph_objects/indicator_gen.go @@ -35,14 +35,17 @@ type Indicator struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Delta + // arrayOK: false // role: Object Delta *IndicatorDelta `json:"delta,omitempty"` // Domain + // arrayOK: false // role: Object Domain *IndicatorDomain `json:"domain,omitempty"` // Gauge + // arrayOK: false // role: Object Gauge *IndicatorGauge `json:"gauge,omitempty"` @@ -65,6 +68,7 @@ type Indicator struct { Legend String `json:"legend,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *IndicatorLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -93,6 +97,7 @@ type Indicator struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: number // type: flaglist // Determines how the value is displayed on the graph. `number` displays the value numerically in text. `delta` displays the difference to a reference value in text. Finally, `gauge` displays the value graphically on an axis. @@ -105,14 +110,17 @@ type Indicator struct { Name string `json:"name,omitempty"` // Number + // arrayOK: false // role: Object Number *IndicatorNumber `json:"number,omitempty"` // Stream + // arrayOK: false // role: Object Stream *IndicatorStream `json:"stream,omitempty"` // Title + // arrayOK: false // role: Object Title *IndicatorTitle `json:"title,omitempty"` @@ -206,14 +214,17 @@ type IndicatorDeltaIncreasing struct { type IndicatorDelta struct { // Decreasing + // arrayOK: false // role: Object Decreasing *IndicatorDeltaDecreasing `json:"decreasing,omitempty"` // Font + // arrayOK: false // role: Object Font *IndicatorDeltaFont `json:"font,omitempty"` // Increasing + // arrayOK: false // role: Object Increasing *IndicatorDeltaIncreasing `json:"increasing,omitempty"` @@ -397,6 +408,7 @@ type IndicatorGaugeAxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *IndicatorGaugeAxisTickfont `json:"tickfont,omitempty"` @@ -513,6 +525,7 @@ type IndicatorGaugeBar struct { Color Color `json:"color,omitempty"` // Line + // arrayOK: false // role: Object Line *IndicatorGaugeBarLine `json:"line,omitempty"` @@ -543,6 +556,7 @@ type IndicatorGaugeThresholdLine struct { type IndicatorGaugeThreshold struct { // Line + // arrayOK: false // role: Object Line *IndicatorGaugeThresholdLine `json:"line,omitempty"` @@ -563,10 +577,12 @@ type IndicatorGaugeThreshold struct { type IndicatorGauge struct { // Axis + // arrayOK: false // role: Object Axis *IndicatorGaugeAxis `json:"axis,omitempty"` // Bar + // arrayOK: false // role: Object Bar *IndicatorGaugeBar `json:"bar,omitempty"` @@ -602,6 +618,7 @@ type IndicatorGauge struct { Steps interface{} `json:"steps,omitempty"` // Threshold + // arrayOK: false // role: Object Threshold *IndicatorGaugeThreshold `json:"threshold,omitempty"` } @@ -632,6 +649,7 @@ type IndicatorLegendgrouptitleFont struct { type IndicatorLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *IndicatorLegendgrouptitleFont `json:"font,omitempty"` @@ -668,6 +686,7 @@ type IndicatorNumberFont struct { type IndicatorNumber struct { // Font + // arrayOK: false // role: Object Font *IndicatorNumberFont `json:"font,omitempty"` @@ -739,6 +758,7 @@ type IndicatorTitle struct { Align IndicatorTitleAlign `json:"align,omitempty"` // Font + // arrayOK: false // role: Object Font *IndicatorTitleFont `json:"font,omitempty"` diff --git a/generated/v2.29.1/graph_objects/isosurface_gen.go b/generated/v2.29.1/graph_objects/isosurface_gen.go index 502dcba..3ce9be8 100644 --- a/generated/v2.29.1/graph_objects/isosurface_gen.go +++ b/generated/v2.29.1/graph_objects/isosurface_gen.go @@ -22,6 +22,7 @@ type Isosurface struct { Autocolorscale Bool `json:"autocolorscale,omitempty"` // Caps + // arrayOK: false // role: Object Caps *IsosurfaceCaps `json:"caps,omitempty"` @@ -56,6 +57,7 @@ type Isosurface struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *IsosurfaceColorbar `json:"colorbar,omitempty"` @@ -66,6 +68,7 @@ type Isosurface struct { Colorscale ColorScale `json:"colorscale,omitempty"` // Contour + // arrayOK: false // role: Object Contour *IsosurfaceContour `json:"contour,omitempty"` @@ -88,6 +91,7 @@ type Isosurface struct { Flatshading Bool `json:"flatshading,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -100,6 +104,7 @@ type Isosurface struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *IsosurfaceHoverlabel `json:"hoverlabel,omitempty"` @@ -164,6 +169,7 @@ type Isosurface struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *IsosurfaceLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -180,10 +186,12 @@ type Isosurface struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Lighting + // arrayOK: false // role: Object Lighting *IsosurfaceLighting `json:"lighting,omitempty"` // Lightposition + // arrayOK: false // role: Object Lightposition *IsosurfaceLightposition `json:"lightposition,omitempty"` @@ -236,18 +244,22 @@ type Isosurface struct { Showscale Bool `json:"showscale,omitempty"` // Slices + // arrayOK: false // role: Object Slices *IsosurfaceSlices `json:"slices,omitempty"` // Spaceframe + // arrayOK: false // role: Object Spaceframe *IsosurfaceSpaceframe `json:"spaceframe,omitempty"` // Stream + // arrayOK: false // role: Object Stream *IsosurfaceStream `json:"stream,omitempty"` // Surface + // arrayOK: false // role: Object Surface *IsosurfaceSurface `json:"surface,omitempty"` @@ -407,14 +419,17 @@ type IsosurfaceCapsZ struct { type IsosurfaceCaps struct { // X + // arrayOK: false // role: Object X *IsosurfaceCapsX `json:"x,omitempty"` // Y + // arrayOK: false // role: Object Y *IsosurfaceCapsY `json:"y,omitempty"` // Z + // arrayOK: false // role: Object Z *IsosurfaceCapsZ `json:"z,omitempty"` } @@ -467,6 +482,7 @@ type IsosurfaceColorbarTitleFont struct { type IsosurfaceColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *IsosurfaceColorbarTitleFont `json:"font,omitempty"` @@ -633,6 +649,7 @@ type IsosurfaceColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *IsosurfaceColorbarTickfont `json:"tickfont,omitempty"` @@ -731,6 +748,7 @@ type IsosurfaceColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *IsosurfaceColorbarTitle `json:"title,omitempty"` @@ -890,6 +908,7 @@ type IsosurfaceHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *IsosurfaceHoverlabelFont `json:"font,omitempty"` @@ -932,6 +951,7 @@ type IsosurfaceLegendgrouptitleFont struct { type IsosurfaceLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *IsosurfaceLegendgrouptitleFont `json:"font,omitempty"` @@ -1098,14 +1118,17 @@ type IsosurfaceSlicesZ struct { type IsosurfaceSlices struct { // X + // arrayOK: false // role: Object X *IsosurfaceSlicesX `json:"x,omitempty"` // Y + // arrayOK: false // role: Object Y *IsosurfaceSlicesY `json:"y,omitempty"` // Z + // arrayOK: false // role: Object Z *IsosurfaceSlicesZ `json:"z,omitempty"` } @@ -1158,6 +1181,7 @@ type IsosurfaceSurface struct { Fill float64 `json:"fill,omitempty"` // Pattern + // arrayOK: false // default: all // type: flaglist // Sets the surface pattern of the iso-surface 3-D sections. The default pattern of the surface is `all` meaning that the rest of surface elements would be shaded. The check options (either 1 or 2) could be used to draw half of the squares on the surface. Using various combinations of capital `A`, `B`, `C`, `D` and `E` may also be used to reduce the number of triangles on the iso-surfaces and creating other patterns of interest. diff --git a/generated/v2.29.1/graph_objects/layout_gen.go b/generated/v2.29.1/graph_objects/layout_gen.go index a170599..9cdcb01 100644 --- a/generated/v2.29.1/graph_objects/layout_gen.go +++ b/generated/v2.29.1/graph_objects/layout_gen.go @@ -4,10 +4,12 @@ package grob type Layout struct { // Activeselection + // arrayOK: false // role: Object Activeselection *LayoutActiveselection `json:"activeselection,omitempty"` // Activeshape + // arrayOK: false // role: Object Activeshape *LayoutActiveshape `json:"activeshape,omitempty"` @@ -89,16 +91,19 @@ type Layout struct { Calendar LayoutCalendar `json:"calendar,omitempty"` // Clickmode + // arrayOK: false // default: event // type: flaglist // Determines the mode of single click interactions. *event* is the default value and emits the `plotly_click` event. In addition this mode emits the `plotly_selected` event in drag modes *lasso* and *select*, but with no event data attached (kept for compatibility reasons). The *select* flag enables selecting single data points via click. This mode also supports persistent selections, meaning that pressing Shift while clicking, adds to / subtracts from an existing selection. *select* with `hovermode`: *x* can be confusing, consider explicitly setting `hovermode`: *closest* when using this feature. Selection events are sent accordingly as long as *event* flag is set as well. When the *event* flag is missing, `plotly_click` and `plotly_selected` events are not fired. Clickmode LayoutClickmode `json:"clickmode,omitempty"` // Coloraxis + // arrayOK: false // role: Object Coloraxis *LayoutColoraxis `json:"coloraxis,omitempty"` // Colorscale + // arrayOK: false // role: Object Colorscale *LayoutColorscale `json:"colorscale,omitempty"` @@ -164,6 +169,7 @@ type Layout struct { Extendtreemapcolors Bool `json:"extendtreemapcolors,omitempty"` // Font + // arrayOK: false // role: Object Font *LayoutFont `json:"font,omitempty"` @@ -193,10 +199,12 @@ type Layout struct { Funnelmode LayoutFunnelmode `json:"funnelmode,omitempty"` // Geo + // arrayOK: false // role: Object Geo *LayoutGeo `json:"geo,omitempty"` // Grid + // arrayOK: false // role: Object Grid *LayoutGrid `json:"grid,omitempty"` @@ -231,6 +239,7 @@ type Layout struct { Hoverdistance int64 `json:"hoverdistance,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *LayoutHoverlabel `json:"hoverlabel,omitempty"` @@ -254,14 +263,17 @@ type Layout struct { Images interface{} `json:"images,omitempty"` // Legend + // arrayOK: false // role: Object Legend *LayoutLegend `json:"legend,omitempty"` // Mapbox + // arrayOK: false // role: Object Mapbox *LayoutMapbox `json:"mapbox,omitempty"` // Margin + // arrayOK: false // role: Object Margin *LayoutMargin `json:"margin,omitempty"` @@ -290,14 +302,17 @@ type Layout struct { Minreducedwidth float64 `json:"minreducedwidth,omitempty"` // Modebar + // arrayOK: false // role: Object Modebar *LayoutModebar `json:"modebar,omitempty"` // Newselection + // arrayOK: false // role: Object Newselection *LayoutNewselection `json:"newselection,omitempty"` // Newshape + // arrayOK: false // role: Object Newshape *LayoutNewshape `json:"newshape,omitempty"` @@ -320,6 +335,7 @@ type Layout struct { PlotBgcolor ColorWithColorScale `json:"plot_bgcolor,omitempty"` // Polar + // arrayOK: false // role: Object Polar *LayoutPolar `json:"polar,omitempty"` @@ -337,6 +353,7 @@ type Layout struct { Scattermode LayoutScattermode `json:"scattermode,omitempty"` // Scene + // arrayOK: false // role: Object Scene *LayoutScene `json:"scene,omitempty"` @@ -384,6 +401,7 @@ type Layout struct { Sliders interface{} `json:"sliders,omitempty"` // Smith + // arrayOK: false // role: Object Smith *LayoutSmith `json:"smith,omitempty"` @@ -406,14 +424,17 @@ type Layout struct { Template interface{} `json:"template,omitempty"` // Ternary + // arrayOK: false // role: Object Ternary *LayoutTernary `json:"ternary,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutTitle `json:"title,omitempty"` // Transition + // arrayOK: false // role: Object Transition *LayoutTransition `json:"transition,omitempty"` @@ -430,6 +451,7 @@ type Layout struct { Uirevision interface{} `json:"uirevision,omitempty"` // Uniformtext + // arrayOK: false // role: Object Uniformtext *LayoutUniformtext `json:"uniformtext,omitempty"` @@ -484,10 +506,12 @@ type Layout struct { Width float64 `json:"width,omitempty"` // Xaxis + // arrayOK: false // role: Object Xaxis *LayoutXaxis `json:"xaxis,omitempty"` // Yaxis + // arrayOK: false // role: Object Yaxis *LayoutYaxis `json:"yaxis,omitempty"` @@ -612,6 +636,7 @@ type LayoutColoraxisColorbarTitleFont struct { type LayoutColoraxisColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutColoraxisColorbarTitleFont `json:"font,omitempty"` @@ -778,6 +803,7 @@ type LayoutColoraxisColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutColoraxisColorbarTickfont `json:"tickfont,omitempty"` @@ -876,6 +902,7 @@ type LayoutColoraxisColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutColoraxisColorbarTitle `json:"title,omitempty"` @@ -966,6 +993,7 @@ type LayoutColoraxis struct { Cmin float64 `json:"cmin,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *LayoutColoraxisColorbar `json:"colorbar,omitempty"` @@ -1206,6 +1234,7 @@ type LayoutGeoProjection struct { Parallels interface{} `json:"parallels,omitempty"` // Rotation + // arrayOK: false // role: Object Rotation *LayoutGeoProjectionRotation `json:"rotation,omitempty"` @@ -1239,6 +1268,7 @@ type LayoutGeo struct { Bgcolor Color `json:"bgcolor,omitempty"` // Center + // arrayOK: false // role: Object Center *LayoutGeoCenter `json:"center,omitempty"` @@ -1267,6 +1297,7 @@ type LayoutGeo struct { Countrywidth float64 `json:"countrywidth,omitempty"` // Domain + // arrayOK: false // role: Object Domain *LayoutGeoDomain `json:"domain,omitempty"` @@ -1302,10 +1333,12 @@ type LayoutGeo struct { Landcolor Color `json:"landcolor,omitempty"` // Lataxis + // arrayOK: false // role: Object Lataxis *LayoutGeoLataxis `json:"lataxis,omitempty"` // Lonaxis + // arrayOK: false // role: Object Lonaxis *LayoutGeoLonaxis `json:"lonaxis,omitempty"` @@ -1316,6 +1349,7 @@ type LayoutGeo struct { Oceancolor Color `json:"oceancolor,omitempty"` // Projection + // arrayOK: false // role: Object Projection *LayoutGeoProjection `json:"projection,omitempty"` @@ -1444,6 +1478,7 @@ type LayoutGrid struct { Columns int64 `json:"columns,omitempty"` // Domain + // arrayOK: false // role: Object Domain *LayoutGridDomain `json:"domain,omitempty"` @@ -1579,10 +1614,12 @@ type LayoutHoverlabel struct { Bordercolor Color `json:"bordercolor,omitempty"` // Font + // arrayOK: false // role: Object Font *LayoutHoverlabelFont `json:"font,omitempty"` // Grouptitlefont + // arrayOK: false // role: Object Grouptitlefont *LayoutHoverlabelGrouptitlefont `json:"grouptitlefont,omitempty"` @@ -1663,6 +1700,7 @@ type LayoutLegendTitleFont struct { type LayoutLegendTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutLegendTitleFont `json:"font,omitempty"` @@ -1715,6 +1753,7 @@ type LayoutLegend struct { Entrywidthmode LayoutLegendEntrywidthmode `json:"entrywidthmode,omitempty"` // Font + // arrayOK: false // role: Object Font *LayoutLegendFont `json:"font,omitempty"` @@ -1726,6 +1765,7 @@ type LayoutLegend struct { Groupclick LayoutLegendGroupclick `json:"groupclick,omitempty"` // Grouptitlefont + // arrayOK: false // role: Object Grouptitlefont *LayoutLegendGrouptitlefont `json:"grouptitlefont,omitempty"` @@ -1764,6 +1804,7 @@ type LayoutLegend struct { Orientation LayoutLegendOrientation `json:"orientation,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutLegendTitle `json:"title,omitempty"` @@ -1774,6 +1815,7 @@ type LayoutLegend struct { Tracegroupgap float64 `json:"tracegroupgap,omitempty"` // Traceorder + // arrayOK: false // default: %!s() // type: flaglist // Determines the order at which the legend items are displayed. If *normal*, the items are displayed top-to-bottom in the same order as the input data. If *reversed*, the items are displayed in the opposite order as *normal*. If *grouped*, the items are displayed in groups (when a trace `legendgroup` is provided). if *grouped+reversed*, the items are displayed in the opposite order as *grouped*. @@ -1927,14 +1969,17 @@ type LayoutMapbox struct { Bearing float64 `json:"bearing,omitempty"` // Bounds + // arrayOK: false // role: Object Bounds *LayoutMapboxBounds `json:"bounds,omitempty"` // Center + // arrayOK: false // role: Object Center *LayoutMapboxCenter `json:"center,omitempty"` // Domain + // arrayOK: false // role: Object Domain *LayoutMapboxDomain `json:"domain,omitempty"` @@ -2094,6 +2139,7 @@ type LayoutNewselectionLine struct { type LayoutNewselection struct { // Line + // arrayOK: false // role: Object Line *LayoutNewselectionLine `json:"line,omitempty"` @@ -2131,6 +2177,7 @@ type LayoutNewshapeLabelFont struct { type LayoutNewshapeLabel struct { // Font + // arrayOK: false // role: Object Font *LayoutNewshapeLabelFont `json:"font,omitempty"` @@ -2206,6 +2253,7 @@ type LayoutNewshapeLegendgrouptitleFont struct { type LayoutNewshapeLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *LayoutNewshapeLegendgrouptitleFont `json:"font,omitempty"` @@ -2262,6 +2310,7 @@ type LayoutNewshape struct { Fillrule LayoutNewshapeFillrule `json:"fillrule,omitempty"` // Label + // arrayOK: false // role: Object Label *LayoutNewshapeLabel `json:"label,omitempty"` @@ -2285,6 +2334,7 @@ type LayoutNewshape struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *LayoutNewshapeLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -2301,6 +2351,7 @@ type LayoutNewshape struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *LayoutNewshapeLine `json:"line,omitempty"` @@ -2551,6 +2602,7 @@ type LayoutPolarAngularaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutPolarAngularaxisTickfont `json:"tickfont,omitempty"` @@ -2770,6 +2822,7 @@ type LayoutPolarRadialaxisTitleFont struct { type LayoutPolarRadialaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutPolarRadialaxisTitleFont `json:"font,omitempty"` @@ -2797,6 +2850,7 @@ type LayoutPolarRadialaxis struct { Autorange LayoutPolarRadialaxisAutorange `json:"autorange,omitempty"` // Autorangeoptions + // arrayOK: false // role: Object Autorangeoptions *LayoutPolarRadialaxisAutorangeoptions `json:"autorangeoptions,omitempty"` @@ -3015,6 +3069,7 @@ type LayoutPolarRadialaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutPolarRadialaxisTickfont `json:"tickfont,omitempty"` @@ -3099,6 +3154,7 @@ type LayoutPolarRadialaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutPolarRadialaxisTitle `json:"title,omitempty"` @@ -3126,6 +3182,7 @@ type LayoutPolarRadialaxis struct { type LayoutPolar struct { // Angularaxis + // arrayOK: false // role: Object Angularaxis *LayoutPolarAngularaxis `json:"angularaxis,omitempty"` @@ -3136,6 +3193,7 @@ type LayoutPolar struct { Bgcolor Color `json:"bgcolor,omitempty"` // Domain + // arrayOK: false // role: Object Domain *LayoutPolarDomain `json:"domain,omitempty"` @@ -3153,6 +3211,7 @@ type LayoutPolar struct { Hole float64 `json:"hole,omitempty"` // Radialaxis + // arrayOK: false // role: Object Radialaxis *LayoutPolarRadialaxis `json:"radialaxis,omitempty"` @@ -3272,18 +3331,22 @@ type LayoutSceneCameraUp struct { type LayoutSceneCamera struct { // Center + // arrayOK: false // role: Object Center *LayoutSceneCameraCenter `json:"center,omitempty"` // Eye + // arrayOK: false // role: Object Eye *LayoutSceneCameraEye `json:"eye,omitempty"` // Projection + // arrayOK: false // role: Object Projection *LayoutSceneCameraProjection `json:"projection,omitempty"` // Up + // arrayOK: false // role: Object Up *LayoutSceneCameraUp `json:"up,omitempty"` } @@ -3404,6 +3467,7 @@ type LayoutSceneXaxisTitleFont struct { type LayoutSceneXaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutSceneXaxisTitleFont `json:"font,omitempty"` @@ -3425,6 +3489,7 @@ type LayoutSceneXaxis struct { Autorange LayoutSceneXaxisAutorange `json:"autorange,omitempty"` // Autorangeoptions + // arrayOK: false // role: Object Autorangeoptions *LayoutSceneXaxisAutorangeoptions `json:"autorangeoptions,omitempty"` @@ -3666,6 +3731,7 @@ type LayoutSceneXaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutSceneXaxisTickfont `json:"tickfont,omitempty"` @@ -3744,6 +3810,7 @@ type LayoutSceneXaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutSceneXaxisTitle `json:"title,omitempty"` @@ -3867,6 +3934,7 @@ type LayoutSceneYaxisTitleFont struct { type LayoutSceneYaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutSceneYaxisTitleFont `json:"font,omitempty"` @@ -3888,6 +3956,7 @@ type LayoutSceneYaxis struct { Autorange LayoutSceneYaxisAutorange `json:"autorange,omitempty"` // Autorangeoptions + // arrayOK: false // role: Object Autorangeoptions *LayoutSceneYaxisAutorangeoptions `json:"autorangeoptions,omitempty"` @@ -4129,6 +4198,7 @@ type LayoutSceneYaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutSceneYaxisTickfont `json:"tickfont,omitempty"` @@ -4207,6 +4277,7 @@ type LayoutSceneYaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutSceneYaxisTitle `json:"title,omitempty"` @@ -4330,6 +4401,7 @@ type LayoutSceneZaxisTitleFont struct { type LayoutSceneZaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutSceneZaxisTitleFont `json:"font,omitempty"` @@ -4351,6 +4423,7 @@ type LayoutSceneZaxis struct { Autorange LayoutSceneZaxisAutorange `json:"autorange,omitempty"` // Autorangeoptions + // arrayOK: false // role: Object Autorangeoptions *LayoutSceneZaxisAutorangeoptions `json:"autorangeoptions,omitempty"` @@ -4592,6 +4665,7 @@ type LayoutSceneZaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutSceneZaxisTickfont `json:"tickfont,omitempty"` @@ -4670,6 +4744,7 @@ type LayoutSceneZaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutSceneZaxisTitle `json:"title,omitempty"` @@ -4722,6 +4797,7 @@ type LayoutScene struct { Aspectmode LayoutSceneAspectmode `json:"aspectmode,omitempty"` // Aspectratio + // arrayOK: false // role: Object Aspectratio *LayoutSceneAspectratio `json:"aspectratio,omitempty"` @@ -4732,10 +4808,12 @@ type LayoutScene struct { Bgcolor Color `json:"bgcolor,omitempty"` // Camera + // arrayOK: false // role: Object Camera *LayoutSceneCamera `json:"camera,omitempty"` // Domain + // arrayOK: false // role: Object Domain *LayoutSceneDomain `json:"domain,omitempty"` @@ -4760,14 +4838,17 @@ type LayoutScene struct { Uirevision interface{} `json:"uirevision,omitempty"` // Xaxis + // arrayOK: false // role: Object Xaxis *LayoutSceneXaxis `json:"xaxis,omitempty"` // Yaxis + // arrayOK: false // role: Object Yaxis *LayoutSceneYaxis `json:"yaxis,omitempty"` // Zaxis + // arrayOK: false // role: Object Zaxis *LayoutSceneZaxis `json:"zaxis,omitempty"` } @@ -4919,6 +5000,7 @@ type LayoutSmithImaginaryaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutSmithImaginaryaxisTickfont `json:"tickfont,omitempty"` @@ -5110,6 +5192,7 @@ type LayoutSmithRealaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutSmithRealaxisTickfont `json:"tickfont,omitempty"` @@ -5179,14 +5262,17 @@ type LayoutSmith struct { Bgcolor Color `json:"bgcolor,omitempty"` // Domain + // arrayOK: false // role: Object Domain *LayoutSmithDomain `json:"domain,omitempty"` // Imaginaryaxis + // arrayOK: false // role: Object Imaginaryaxis *LayoutSmithImaginaryaxis `json:"imaginaryaxis,omitempty"` // Realaxis + // arrayOK: false // role: Object Realaxis *LayoutSmithRealaxis `json:"realaxis,omitempty"` } @@ -5239,6 +5325,7 @@ type LayoutTernaryAaxisTitleFont struct { type LayoutTernaryAaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutTernaryAaxisTitleFont `json:"font,omitempty"` @@ -5402,6 +5489,7 @@ type LayoutTernaryAaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutTernaryAaxisTickfont `json:"tickfont,omitempty"` @@ -5486,6 +5574,7 @@ type LayoutTernaryAaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutTernaryAaxisTitle `json:"title,omitempty"` @@ -5544,6 +5633,7 @@ type LayoutTernaryBaxisTitleFont struct { type LayoutTernaryBaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutTernaryBaxisTitleFont `json:"font,omitempty"` @@ -5707,6 +5797,7 @@ type LayoutTernaryBaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutTernaryBaxisTickfont `json:"tickfont,omitempty"` @@ -5791,6 +5882,7 @@ type LayoutTernaryBaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutTernaryBaxisTitle `json:"title,omitempty"` @@ -5849,6 +5941,7 @@ type LayoutTernaryCaxisTitleFont struct { type LayoutTernaryCaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutTernaryCaxisTitleFont `json:"font,omitempty"` @@ -6012,6 +6105,7 @@ type LayoutTernaryCaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutTernaryCaxisTickfont `json:"tickfont,omitempty"` @@ -6096,6 +6190,7 @@ type LayoutTernaryCaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutTernaryCaxisTitle `json:"title,omitempty"` @@ -6138,10 +6233,12 @@ type LayoutTernaryDomain struct { type LayoutTernary struct { // Aaxis + // arrayOK: false // role: Object Aaxis *LayoutTernaryAaxis `json:"aaxis,omitempty"` // Baxis + // arrayOK: false // role: Object Baxis *LayoutTernaryBaxis `json:"baxis,omitempty"` @@ -6152,10 +6249,12 @@ type LayoutTernary struct { Bgcolor Color `json:"bgcolor,omitempty"` // Caxis + // arrayOK: false // role: Object Caxis *LayoutTernaryCaxis `json:"caxis,omitempty"` // Domain + // arrayOK: false // role: Object Domain *LayoutTernaryDomain `json:"domain,omitempty"` @@ -6232,10 +6331,12 @@ type LayoutTitle struct { Automargin Bool `json:"automargin,omitempty"` // Font + // arrayOK: false // role: Object Font *LayoutTitleFont `json:"font,omitempty"` // Pad + // arrayOK: false // role: Object Pad *LayoutTitlePad `json:"pad,omitempty"` @@ -6513,6 +6614,7 @@ type LayoutXaxisRangeselector struct { Buttons interface{} `json:"buttons,omitempty"` // Font + // arrayOK: false // role: Object Font *LayoutXaxisRangeselectorFont `json:"font,omitempty"` @@ -6612,6 +6714,7 @@ type LayoutXaxisRangeslider struct { Visible Bool `json:"visible,omitempty"` // Yaxis + // arrayOK: false // role: Object Yaxis *LayoutXaxisRangesliderYaxis `json:"yaxis,omitempty"` } @@ -6664,6 +6767,7 @@ type LayoutXaxisTitleFont struct { type LayoutXaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutXaxisTitleFont `json:"font,omitempty"` @@ -6691,6 +6795,7 @@ type LayoutXaxis struct { Anchor LayoutXaxisAnchor `json:"anchor,omitempty"` // Automargin + // arrayOK: false // default: %!s(bool=false) // type: flaglist // Determines whether long tick labels automatically grow the figure margins. @@ -6704,6 +6809,7 @@ type LayoutXaxis struct { Autorange LayoutXaxisAutorange `json:"autorange,omitempty"` // Autorangeoptions + // arrayOK: false // role: Object Autorangeoptions *LayoutXaxisAutorangeoptions `json:"autorangeoptions,omitempty"` @@ -6884,6 +6990,7 @@ type LayoutXaxis struct { Minexponent float64 `json:"minexponent,omitempty"` // Minor + // arrayOK: false // role: Object Minor *LayoutXaxisMinor `json:"minor,omitempty"` @@ -6933,10 +7040,12 @@ type LayoutXaxis struct { Rangemode LayoutXaxisRangemode `json:"rangemode,omitempty"` // Rangeselector + // arrayOK: false // role: Object Rangeselector *LayoutXaxisRangeselector `json:"rangeselector,omitempty"` // Rangeslider + // arrayOK: false // role: Object Rangeslider *LayoutXaxisRangeslider `json:"rangeslider,omitempty"` @@ -7030,6 +7139,7 @@ type LayoutXaxis struct { Spikedash string `json:"spikedash,omitempty"` // Spikemode + // arrayOK: false // default: toaxis // type: flaglist // Determines the drawing mode for the spike line If *toaxis*, the line is drawn from the data point to the axis the series is plotted on. If *across*, the line is drawn across the entire plot area, and supercedes *toaxis*. If *marker*, then a marker dot is drawn on the axis the series is plotted on @@ -7067,6 +7177,7 @@ type LayoutXaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutXaxisTickfont `json:"tickfont,omitempty"` @@ -7179,6 +7290,7 @@ type LayoutXaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutXaxisTitle `json:"title,omitempty"` @@ -7398,6 +7510,7 @@ type LayoutYaxisTitleFont struct { type LayoutYaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutYaxisTitleFont `json:"font,omitempty"` @@ -7425,6 +7538,7 @@ type LayoutYaxis struct { Anchor LayoutYaxisAnchor `json:"anchor,omitempty"` // Automargin + // arrayOK: false // default: %!s(bool=false) // type: flaglist // Determines whether long tick labels automatically grow the figure margins. @@ -7438,6 +7552,7 @@ type LayoutYaxis struct { Autorange LayoutYaxisAutorange `json:"autorange,omitempty"` // Autorangeoptions + // arrayOK: false // role: Object Autorangeoptions *LayoutYaxisAutorangeoptions `json:"autorangeoptions,omitempty"` @@ -7624,6 +7739,7 @@ type LayoutYaxis struct { Minexponent float64 `json:"minexponent,omitempty"` // Minor + // arrayOK: false // role: Object Minor *LayoutYaxisMinor `json:"minor,omitempty"` @@ -7768,6 +7884,7 @@ type LayoutYaxis struct { Spikedash string `json:"spikedash,omitempty"` // Spikemode + // arrayOK: false // default: toaxis // type: flaglist // Determines the drawing mode for the spike line If *toaxis*, the line is drawn from the data point to the axis the series is plotted on. If *across*, the line is drawn across the entire plot area, and supercedes *toaxis*. If *marker*, then a marker dot is drawn on the axis the series is plotted on @@ -7805,6 +7922,7 @@ type LayoutYaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutYaxisTickfont `json:"tickfont,omitempty"` @@ -7917,6 +8035,7 @@ type LayoutYaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutYaxisTitle `json:"title,omitempty"` diff --git a/generated/v2.29.1/graph_objects/mesh3d_gen.go b/generated/v2.29.1/graph_objects/mesh3d_gen.go index b01a6ae..a3459df 100644 --- a/generated/v2.29.1/graph_objects/mesh3d_gen.go +++ b/generated/v2.29.1/graph_objects/mesh3d_gen.go @@ -64,6 +64,7 @@ type Mesh3d struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *Mesh3dColorbar `json:"colorbar,omitempty"` @@ -74,6 +75,7 @@ type Mesh3d struct { Colorscale ColorScale `json:"colorscale,omitempty"` // Contour + // arrayOK: false // role: Object Contour *Mesh3dContour `json:"contour,omitempty"` @@ -115,6 +117,7 @@ type Mesh3d struct { Flatshading Bool `json:"flatshading,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -127,6 +130,7 @@ type Mesh3d struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *Mesh3dHoverlabel `json:"hoverlabel,omitempty"` @@ -234,6 +238,7 @@ type Mesh3d struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *Mesh3dLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -250,10 +255,12 @@ type Mesh3d struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Lighting + // arrayOK: false // role: Object Lighting *Mesh3dLighting `json:"lighting,omitempty"` // Lightposition + // arrayOK: false // role: Object Lightposition *Mesh3dLightposition `json:"lightposition,omitempty"` @@ -306,6 +313,7 @@ type Mesh3d struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *Mesh3dStream `json:"stream,omitempty"` @@ -476,6 +484,7 @@ type Mesh3dColorbarTitleFont struct { type Mesh3dColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *Mesh3dColorbarTitleFont `json:"font,omitempty"` @@ -642,6 +651,7 @@ type Mesh3dColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *Mesh3dColorbarTickfont `json:"tickfont,omitempty"` @@ -740,6 +750,7 @@ type Mesh3dColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *Mesh3dColorbarTitle `json:"title,omitempty"` @@ -899,6 +910,7 @@ type Mesh3dHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *Mesh3dHoverlabelFont `json:"font,omitempty"` @@ -941,6 +953,7 @@ type Mesh3dLegendgrouptitleFont struct { type Mesh3dLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *Mesh3dLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.29.1/graph_objects/ohlc_gen.go b/generated/v2.29.1/graph_objects/ohlc_gen.go index 5359b63..11ddd88 100644 --- a/generated/v2.29.1/graph_objects/ohlc_gen.go +++ b/generated/v2.29.1/graph_objects/ohlc_gen.go @@ -40,6 +40,7 @@ type Ohlc struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Decreasing + // arrayOK: false // role: Object Decreasing *OhlcDecreasing `json:"decreasing,omitempty"` @@ -56,6 +57,7 @@ type Ohlc struct { Highsrc string `json:"highsrc,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -68,6 +70,7 @@ type Ohlc struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *OhlcHoverlabel `json:"hoverlabel,omitempty"` @@ -96,6 +99,7 @@ type Ohlc struct { Idssrc string `json:"idssrc,omitempty"` // Increasing + // arrayOK: false // role: Object Increasing *OhlcIncreasing `json:"increasing,omitempty"` @@ -112,6 +116,7 @@ type Ohlc struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *OhlcLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -128,6 +133,7 @@ type Ohlc struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *OhlcLine `json:"line,omitempty"` @@ -192,6 +198,7 @@ type Ohlc struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *OhlcStream `json:"stream,omitempty"` @@ -327,6 +334,7 @@ type OhlcDecreasingLine struct { type OhlcDecreasing struct { // Line + // arrayOK: false // role: Object Line *OhlcDecreasingLine `json:"line,omitempty"` } @@ -412,6 +420,7 @@ type OhlcHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *OhlcHoverlabelFont `json:"font,omitempty"` @@ -460,6 +469,7 @@ type OhlcIncreasingLine struct { type OhlcIncreasing struct { // Line + // arrayOK: false // role: Object Line *OhlcIncreasingLine `json:"line,omitempty"` } @@ -490,6 +500,7 @@ type OhlcLegendgrouptitleFont struct { type OhlcLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *OhlcLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.29.1/graph_objects/parcats_gen.go b/generated/v2.29.1/graph_objects/parcats_gen.go index 12d3b82..86f313e 100644 --- a/generated/v2.29.1/graph_objects/parcats_gen.go +++ b/generated/v2.29.1/graph_objects/parcats_gen.go @@ -47,10 +47,12 @@ type Parcats struct { Dimensions interface{} `json:"dimensions,omitempty"` // Domain + // arrayOK: false // role: Object Domain *ParcatsDomain `json:"domain,omitempty"` // Hoverinfo + // arrayOK: false // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -70,10 +72,12 @@ type Parcats struct { Hovertemplate string `json:"hovertemplate,omitempty"` // Labelfont + // arrayOK: false // role: Object Labelfont *ParcatsLabelfont `json:"labelfont,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ParcatsLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -84,6 +88,7 @@ type Parcats struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ParcatsLine `json:"line,omitempty"` @@ -113,10 +118,12 @@ type Parcats struct { Sortpaths ParcatsSortpaths `json:"sortpaths,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ParcatsStream `json:"stream,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ParcatsTickfont `json:"tickfont,omitempty"` @@ -222,6 +229,7 @@ type ParcatsLegendgrouptitleFont struct { type ParcatsLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ParcatsLegendgrouptitleFont `json:"font,omitempty"` @@ -280,6 +288,7 @@ type ParcatsLineColorbarTitleFont struct { type ParcatsLineColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ParcatsLineColorbarTitleFont `json:"font,omitempty"` @@ -446,6 +455,7 @@ type ParcatsLineColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ParcatsLineColorbarTickfont `json:"tickfont,omitempty"` @@ -544,6 +554,7 @@ type ParcatsLineColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ParcatsLineColorbarTitle `json:"title,omitempty"` @@ -646,6 +657,7 @@ type ParcatsLine struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ParcatsLineColorbar `json:"colorbar,omitempty"` diff --git a/generated/v2.29.1/graph_objects/parcoords_gen.go b/generated/v2.29.1/graph_objects/parcoords_gen.go index 39411ca..abf7c48 100644 --- a/generated/v2.29.1/graph_objects/parcoords_gen.go +++ b/generated/v2.29.1/graph_objects/parcoords_gen.go @@ -34,6 +34,7 @@ type Parcoords struct { Dimensions interface{} `json:"dimensions,omitempty"` // Domain + // arrayOK: false // role: Object Domain *ParcoordsDomain `json:"domain,omitempty"` @@ -56,6 +57,7 @@ type Parcoords struct { Labelangle float64 `json:"labelangle,omitempty"` // Labelfont + // arrayOK: false // role: Object Labelfont *ParcoordsLabelfont `json:"labelfont,omitempty"` @@ -73,6 +75,7 @@ type Parcoords struct { Legend String `json:"legend,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ParcoordsLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -89,6 +92,7 @@ type Parcoords struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ParcoordsLine `json:"line,omitempty"` @@ -111,14 +115,17 @@ type Parcoords struct { Name string `json:"name,omitempty"` // Rangefont + // arrayOK: false // role: Object Rangefont *ParcoordsRangefont `json:"rangefont,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ParcoordsStream `json:"stream,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ParcoordsTickfont `json:"tickfont,omitempty"` @@ -141,6 +148,7 @@ type Parcoords struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ParcoordsUnselected `json:"unselected,omitempty"` @@ -228,6 +236,7 @@ type ParcoordsLegendgrouptitleFont struct { type ParcoordsLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ParcoordsLegendgrouptitleFont `json:"font,omitempty"` @@ -286,6 +295,7 @@ type ParcoordsLineColorbarTitleFont struct { type ParcoordsLineColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ParcoordsLineColorbarTitleFont `json:"font,omitempty"` @@ -452,6 +462,7 @@ type ParcoordsLineColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ParcoordsLineColorbarTickfont `json:"tickfont,omitempty"` @@ -550,6 +561,7 @@ type ParcoordsLineColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ParcoordsLineColorbarTitle `json:"title,omitempty"` @@ -652,6 +664,7 @@ type ParcoordsLine struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ParcoordsLineColorbar `json:"colorbar,omitempty"` @@ -760,6 +773,7 @@ type ParcoordsUnselectedLine struct { type ParcoordsUnselected struct { // Line + // arrayOK: false // role: Object Line *ParcoordsUnselectedLine `json:"line,omitempty"` } diff --git a/generated/v2.29.1/graph_objects/pie_gen.go b/generated/v2.29.1/graph_objects/pie_gen.go index 1167ebe..93021e5 100644 --- a/generated/v2.29.1/graph_objects/pie_gen.go +++ b/generated/v2.29.1/graph_objects/pie_gen.go @@ -47,6 +47,7 @@ type Pie struct { Dlabel float64 `json:"dlabel,omitempty"` // Domain + // arrayOK: false // role: Object Domain *PieDomain `json:"domain,omitempty"` @@ -57,6 +58,7 @@ type Pie struct { Hole float64 `json:"hole,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -69,6 +71,7 @@ type Pie struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *PieHoverlabel `json:"hoverlabel,omitempty"` @@ -109,6 +112,7 @@ type Pie struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *PieInsidetextfont `json:"insidetextfont,omitempty"` @@ -150,6 +154,7 @@ type Pie struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *PieLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -166,6 +171,7 @@ type Pie struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *PieMarker `json:"marker,omitempty"` @@ -194,6 +200,7 @@ type Pie struct { Opacity float64 `json:"opacity,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *PieOutsidetextfont `json:"outsidetextfont,omitempty"` @@ -234,6 +241,7 @@ type Pie struct { Sort Bool `json:"sort,omitempty"` // Stream + // arrayOK: false // role: Object Stream *PieStream `json:"stream,omitempty"` @@ -244,10 +252,12 @@ type Pie struct { Text interface{} `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *PieTextfont `json:"textfont,omitempty"` // Textinfo + // arrayOK: false // default: %!s() // type: flaglist // Determines which trace information appear on the graph. @@ -285,6 +295,7 @@ type Pie struct { Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Title + // arrayOK: false // role: Object Title *PieTitle `json:"title,omitempty"` @@ -435,6 +446,7 @@ type PieHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *PieHoverlabelFont `json:"font,omitempty"` @@ -517,6 +529,7 @@ type PieLegendgrouptitleFont struct { type PieLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *PieLegendgrouptitleFont `json:"font,omitempty"` @@ -649,10 +662,12 @@ type PieMarker struct { Colorssrc string `json:"colorssrc,omitempty"` // Line + // arrayOK: false // role: Object Line *PieMarkerLine `json:"line,omitempty"` // Pattern + // arrayOK: false // role: Object Pattern *PieMarkerPattern `json:"pattern,omitempty"` } @@ -797,6 +812,7 @@ type PieTitleFont struct { type PieTitle struct { // Font + // arrayOK: false // role: Object Font *PieTitleFont `json:"font,omitempty"` diff --git a/generated/v2.29.1/graph_objects/pointcloud_gen.go b/generated/v2.29.1/graph_objects/pointcloud_gen.go index bd6d23b..c99e053 100644 --- a/generated/v2.29.1/graph_objects/pointcloud_gen.go +++ b/generated/v2.29.1/graph_objects/pointcloud_gen.go @@ -28,6 +28,7 @@ type Pointcloud struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -40,6 +41,7 @@ type Pointcloud struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *PointcloudHoverlabel `json:"hoverlabel,omitempty"` @@ -80,6 +82,7 @@ type Pointcloud struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *PointcloudLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -96,6 +99,7 @@ type Pointcloud struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *PointcloudMarker `json:"marker,omitempty"` @@ -130,6 +134,7 @@ type Pointcloud struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *PointcloudStream `json:"stream,omitempty"` @@ -318,6 +323,7 @@ type PointcloudHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *PointcloudHoverlabelFont `json:"font,omitempty"` @@ -360,6 +366,7 @@ type PointcloudLegendgrouptitleFont struct { type PointcloudLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *PointcloudLegendgrouptitleFont `json:"font,omitempty"` @@ -396,6 +403,7 @@ type PointcloudMarker struct { Blend Bool `json:"blend,omitempty"` // Border + // arrayOK: false // role: Object Border *PointcloudMarkerBorder `json:"border,omitempty"` diff --git a/generated/v2.29.1/graph_objects/sankey_gen.go b/generated/v2.29.1/graph_objects/sankey_gen.go index c869a9a..3a4b15a 100644 --- a/generated/v2.29.1/graph_objects/sankey_gen.go +++ b/generated/v2.29.1/graph_objects/sankey_gen.go @@ -35,16 +35,19 @@ type Sankey struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Domain + // arrayOK: false // role: Object Domain *SankeyDomain `json:"domain,omitempty"` // Hoverinfo + // arrayOK: false // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. Note that this attribute is superseded by `node.hoverinfo` and `node.hoverinfo` for nodes and links respectively. Hoverinfo SankeyHoverinfo `json:"hoverinfo,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *SankeyHoverlabel `json:"hoverlabel,omitempty"` @@ -67,6 +70,7 @@ type Sankey struct { Legend String `json:"legend,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *SankeyLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -83,6 +87,7 @@ type Sankey struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Link + // arrayOK: false // role: Object Link *SankeyLink `json:"link,omitempty"` @@ -105,6 +110,7 @@ type Sankey struct { Name string `json:"name,omitempty"` // Node + // arrayOK: false // role: Object Node *SankeyNode `json:"node,omitempty"` @@ -122,10 +128,12 @@ type Sankey struct { Selectedpoints interface{} `json:"selectedpoints,omitempty"` // Stream + // arrayOK: false // role: Object Stream *SankeyStream `json:"stream,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *SankeyTextfont `json:"textfont,omitempty"` @@ -270,6 +278,7 @@ type SankeyHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *SankeyHoverlabelFont `json:"font,omitempty"` @@ -312,6 +321,7 @@ type SankeyLegendgrouptitleFont struct { type SankeyLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *SankeyLegendgrouptitleFont `json:"font,omitempty"` @@ -403,6 +413,7 @@ type SankeyLinkHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *SankeyLinkHoverlabelFont `json:"font,omitempty"` @@ -506,6 +517,7 @@ type SankeyLink struct { Hoverinfo SankeyLinkHoverinfo `json:"hoverinfo,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *SankeyLinkHoverlabel `json:"hoverlabel,omitempty"` @@ -534,6 +546,7 @@ type SankeyLink struct { Labelsrc string `json:"labelsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *SankeyLinkLine `json:"line,omitempty"` @@ -655,6 +668,7 @@ type SankeyNodeHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *SankeyNodeHoverlabelFont `json:"font,omitempty"` @@ -747,6 +761,7 @@ type SankeyNode struct { Hoverinfo SankeyNodeHoverinfo `json:"hoverinfo,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *SankeyNodeHoverlabel `json:"hoverlabel,omitempty"` @@ -775,6 +790,7 @@ type SankeyNode struct { Labelsrc string `json:"labelsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *SankeyNodeLine `json:"line,omitempty"` diff --git a/generated/v2.29.1/graph_objects/scatter3d_gen.go b/generated/v2.29.1/graph_objects/scatter3d_gen.go index ddd44b4..b1798dc 100644 --- a/generated/v2.29.1/graph_objects/scatter3d_gen.go +++ b/generated/v2.29.1/graph_objects/scatter3d_gen.go @@ -34,18 +34,22 @@ type Scatter3d struct { Customdatasrc string `json:"customdatasrc,omitempty"` // ErrorX + // arrayOK: false // role: Object ErrorX *Scatter3dErrorX `json:"error_x,omitempty"` // ErrorY + // arrayOK: false // role: Object ErrorY *Scatter3dErrorY `json:"error_y,omitempty"` // ErrorZ + // arrayOK: false // role: Object ErrorZ *Scatter3dErrorZ `json:"error_z,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -58,6 +62,7 @@ type Scatter3d struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *Scatter3dHoverlabel `json:"hoverlabel,omitempty"` @@ -110,6 +115,7 @@ type Scatter3d struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *Scatter3dLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -126,10 +132,12 @@ type Scatter3d struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *Scatter3dLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *Scatter3dMarker `json:"marker,omitempty"` @@ -146,6 +154,7 @@ type Scatter3d struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: lines+markers // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -164,6 +173,7 @@ type Scatter3d struct { Opacity float64 `json:"opacity,omitempty"` // Projection + // arrayOK: false // role: Object Projection *Scatter3dProjection `json:"projection,omitempty"` @@ -180,6 +190,7 @@ type Scatter3d struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *Scatter3dStream `json:"stream,omitempty"` @@ -203,6 +214,7 @@ type Scatter3d struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *Scatter3dTextfont `json:"textfont,omitempty"` @@ -698,6 +710,7 @@ type Scatter3dHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *Scatter3dHoverlabelFont `json:"font,omitempty"` @@ -740,6 +753,7 @@ type Scatter3dLegendgrouptitleFont struct { type Scatter3dLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *Scatter3dLegendgrouptitleFont `json:"font,omitempty"` @@ -798,6 +812,7 @@ type Scatter3dLineColorbarTitleFont struct { type Scatter3dLineColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *Scatter3dLineColorbarTitleFont `json:"font,omitempty"` @@ -964,6 +979,7 @@ type Scatter3dLineColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *Scatter3dLineColorbarTickfont `json:"tickfont,omitempty"` @@ -1062,6 +1078,7 @@ type Scatter3dLineColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *Scatter3dLineColorbarTitle `json:"title,omitempty"` @@ -1164,6 +1181,7 @@ type Scatter3dLine struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *Scatter3dLineColorbar `json:"colorbar,omitempty"` @@ -1253,6 +1271,7 @@ type Scatter3dMarkerColorbarTitleFont struct { type Scatter3dMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *Scatter3dMarkerColorbarTitleFont `json:"font,omitempty"` @@ -1419,6 +1438,7 @@ type Scatter3dMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *Scatter3dMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -1517,6 +1537,7 @@ type Scatter3dMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *Scatter3dMarkerColorbarTitle `json:"title,omitempty"` @@ -1689,6 +1710,7 @@ type Scatter3dMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *Scatter3dMarkerColorbar `json:"colorbar,omitempty"` @@ -1705,6 +1727,7 @@ type Scatter3dMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *Scatter3dMarkerLine `json:"line,omitempty"` @@ -1841,14 +1864,17 @@ type Scatter3dProjectionZ struct { type Scatter3dProjection struct { // X + // arrayOK: false // role: Object X *Scatter3dProjectionX `json:"x,omitempty"` // Y + // arrayOK: false // role: Object Y *Scatter3dProjectionY `json:"y,omitempty"` // Z + // arrayOK: false // role: Object Z *Scatter3dProjectionZ `json:"z,omitempty"` } diff --git a/generated/v2.29.1/graph_objects/scatter_gen.go b/generated/v2.29.1/graph_objects/scatter_gen.go index f7c9c21..dc6a4e2 100644 --- a/generated/v2.29.1/graph_objects/scatter_gen.go +++ b/generated/v2.29.1/graph_objects/scatter_gen.go @@ -58,10 +58,12 @@ type Scatter struct { Dy float64 `json:"dy,omitempty"` // ErrorX + // arrayOK: false // role: Object ErrorX *ScatterErrorX `json:"error_x,omitempty"` // ErrorY + // arrayOK: false // role: Object ErrorY *ScatterErrorY `json:"error_y,omitempty"` @@ -79,6 +81,7 @@ type Scatter struct { Fillcolor Color `json:"fillcolor,omitempty"` // Fillpattern + // arrayOK: false // role: Object Fillpattern *ScatterFillpattern `json:"fillpattern,omitempty"` @@ -90,6 +93,7 @@ type Scatter struct { Groupnorm ScatterGroupnorm `json:"groupnorm,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -102,10 +106,12 @@ type Scatter struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScatterHoverlabel `json:"hoverlabel,omitempty"` // Hoveron + // arrayOK: false // default: %!s() // type: flaglist // Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is *toself* or *tonext* and there are no markers or text, then the default is *fills*, otherwise it is *points*. @@ -160,6 +166,7 @@ type Scatter struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScatterLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -176,10 +183,12 @@ type Scatter struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScatterMarker `json:"marker,omitempty"` @@ -196,6 +205,7 @@ type Scatter struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: %!s() // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -227,6 +237,7 @@ type Scatter struct { Orientation ScatterOrientation `json:"orientation,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScatterSelected `json:"selected,omitempty"` @@ -256,6 +267,7 @@ type Scatter struct { Stackgroup string `json:"stackgroup,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScatterStream `json:"stream,omitempty"` @@ -266,6 +278,7 @@ type Scatter struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterTextfont `json:"textfont,omitempty"` @@ -319,6 +332,7 @@ type Scatter struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScatterUnselected `json:"unselected,omitempty"` @@ -785,6 +799,7 @@ type ScatterHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScatterHoverlabelFont `json:"font,omitempty"` @@ -827,6 +842,7 @@ type ScatterLegendgrouptitleFont struct { type ScatterLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScatterLegendgrouptitleFont `json:"font,omitempty"` @@ -938,6 +954,7 @@ type ScatterMarkerColorbarTitleFont struct { type ScatterMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScatterMarkerColorbarTitleFont `json:"font,omitempty"` @@ -1104,6 +1121,7 @@ type ScatterMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScatterMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -1202,6 +1220,7 @@ type ScatterMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScatterMarkerColorbarTitle `json:"title,omitempty"` @@ -1428,6 +1447,7 @@ type ScatterMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScatterMarkerColorbar `json:"colorbar,omitempty"` @@ -1444,10 +1464,12 @@ type ScatterMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Gradient + // arrayOK: false // role: Object Gradient *ScatterMarkerGradient `json:"gradient,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterMarkerLine `json:"line,omitempty"` @@ -1574,10 +1596,12 @@ type ScatterSelectedTextfont struct { type ScatterSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterSelectedTextfont `json:"textfont,omitempty"` } @@ -1674,10 +1698,12 @@ type ScatterUnselectedTextfont struct { type ScatterUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.29.1/graph_objects/scattercarpet_gen.go b/generated/v2.29.1/graph_objects/scattercarpet_gen.go index c23bee6..588ddae 100644 --- a/generated/v2.29.1/graph_objects/scattercarpet_gen.go +++ b/generated/v2.29.1/graph_objects/scattercarpet_gen.go @@ -77,6 +77,7 @@ type Scattercarpet struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -89,10 +90,12 @@ type Scattercarpet struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScattercarpetHoverlabel `json:"hoverlabel,omitempty"` // Hoveron + // arrayOK: false // default: %!s() // type: flaglist // Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is *toself* or *tonext* and there are no markers or text, then the default is *fills*, otherwise it is *points*. @@ -147,6 +150,7 @@ type Scattercarpet struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScattercarpetLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -163,10 +167,12 @@ type Scattercarpet struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScattercarpetLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScattercarpetMarker `json:"marker,omitempty"` @@ -183,6 +189,7 @@ type Scattercarpet struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: markers // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -201,6 +208,7 @@ type Scattercarpet struct { Opacity float64 `json:"opacity,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScattercarpetSelected `json:"selected,omitempty"` @@ -217,6 +225,7 @@ type Scattercarpet struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScattercarpetStream `json:"stream,omitempty"` @@ -227,6 +236,7 @@ type Scattercarpet struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattercarpetTextfont `json:"textfont,omitempty"` @@ -280,6 +290,7 @@ type Scattercarpet struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScattercarpetUnselected `json:"unselected,omitempty"` @@ -384,6 +395,7 @@ type ScattercarpetHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScattercarpetHoverlabelFont `json:"font,omitempty"` @@ -426,6 +438,7 @@ type ScattercarpetLegendgrouptitleFont struct { type ScattercarpetLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScattercarpetLegendgrouptitleFont `json:"font,omitempty"` @@ -531,6 +544,7 @@ type ScattercarpetMarkerColorbarTitleFont struct { type ScattercarpetMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScattercarpetMarkerColorbarTitleFont `json:"font,omitempty"` @@ -697,6 +711,7 @@ type ScattercarpetMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScattercarpetMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -795,6 +810,7 @@ type ScattercarpetMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScattercarpetMarkerColorbarTitle `json:"title,omitempty"` @@ -1021,6 +1037,7 @@ type ScattercarpetMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScattercarpetMarkerColorbar `json:"colorbar,omitempty"` @@ -1037,10 +1054,12 @@ type ScattercarpetMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Gradient + // arrayOK: false // role: Object Gradient *ScattercarpetMarkerGradient `json:"gradient,omitempty"` // Line + // arrayOK: false // role: Object Line *ScattercarpetMarkerLine `json:"line,omitempty"` @@ -1167,10 +1186,12 @@ type ScattercarpetSelectedTextfont struct { type ScattercarpetSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScattercarpetSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattercarpetSelectedTextfont `json:"textfont,omitempty"` } @@ -1267,10 +1288,12 @@ type ScattercarpetUnselectedTextfont struct { type ScattercarpetUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScattercarpetUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattercarpetUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.29.1/graph_objects/scattergeo_gen.go b/generated/v2.29.1/graph_objects/scattergeo_gen.go index d03b689..eb616e6 100644 --- a/generated/v2.29.1/graph_objects/scattergeo_gen.go +++ b/generated/v2.29.1/graph_objects/scattergeo_gen.go @@ -65,6 +65,7 @@ type Scattergeo struct { Geojson interface{} `json:"geojson,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -77,6 +78,7 @@ type Scattergeo struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScattergeoHoverlabel `json:"hoverlabel,omitempty"` @@ -141,6 +143,7 @@ type Scattergeo struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScattergeoLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -157,6 +160,7 @@ type Scattergeo struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScattergeoLine `json:"line,omitempty"` @@ -192,6 +196,7 @@ type Scattergeo struct { Lonsrc string `json:"lonsrc,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScattergeoMarker `json:"marker,omitempty"` @@ -208,6 +213,7 @@ type Scattergeo struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: markers // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -226,6 +232,7 @@ type Scattergeo struct { Opacity float64 `json:"opacity,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScattergeoSelected `json:"selected,omitempty"` @@ -242,6 +249,7 @@ type Scattergeo struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScattergeoStream `json:"stream,omitempty"` @@ -252,6 +260,7 @@ type Scattergeo struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattergeoTextfont `json:"textfont,omitempty"` @@ -305,6 +314,7 @@ type Scattergeo struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScattergeoUnselected `json:"unselected,omitempty"` @@ -397,6 +407,7 @@ type ScattergeoHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScattergeoHoverlabelFont `json:"font,omitempty"` @@ -439,6 +450,7 @@ type ScattergeoLegendgrouptitleFont struct { type ScattergeoLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScattergeoLegendgrouptitleFont `json:"font,omitempty"` @@ -519,6 +531,7 @@ type ScattergeoMarkerColorbarTitleFont struct { type ScattergeoMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScattergeoMarkerColorbarTitleFont `json:"font,omitempty"` @@ -685,6 +698,7 @@ type ScattergeoMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScattergeoMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -783,6 +797,7 @@ type ScattergeoMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScattergeoMarkerColorbarTitle `json:"title,omitempty"` @@ -1009,6 +1024,7 @@ type ScattergeoMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScattergeoMarkerColorbar `json:"colorbar,omitempty"` @@ -1025,10 +1041,12 @@ type ScattergeoMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Gradient + // arrayOK: false // role: Object Gradient *ScattergeoMarkerGradient `json:"gradient,omitempty"` // Line + // arrayOK: false // role: Object Line *ScattergeoMarkerLine `json:"line,omitempty"` @@ -1149,10 +1167,12 @@ type ScattergeoSelectedTextfont struct { type ScattergeoSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScattergeoSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattergeoSelectedTextfont `json:"textfont,omitempty"` } @@ -1249,10 +1269,12 @@ type ScattergeoUnselectedTextfont struct { type ScattergeoUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScattergeoUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattergeoUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.29.1/graph_objects/scattergl_gen.go b/generated/v2.29.1/graph_objects/scattergl_gen.go index 6b00f27..d45dff5 100644 --- a/generated/v2.29.1/graph_objects/scattergl_gen.go +++ b/generated/v2.29.1/graph_objects/scattergl_gen.go @@ -46,10 +46,12 @@ type Scattergl struct { Dy float64 `json:"dy,omitempty"` // ErrorX + // arrayOK: false // role: Object ErrorX *ScatterglErrorX `json:"error_x,omitempty"` // ErrorY + // arrayOK: false // role: Object ErrorY *ScatterglErrorY `json:"error_y,omitempty"` @@ -67,6 +69,7 @@ type Scattergl struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -79,6 +82,7 @@ type Scattergl struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScatterglHoverlabel `json:"hoverlabel,omitempty"` @@ -131,6 +135,7 @@ type Scattergl struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScatterglLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -147,10 +152,12 @@ type Scattergl struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterglLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScatterglMarker `json:"marker,omitempty"` @@ -167,6 +174,7 @@ type Scattergl struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: %!s() // type: flaglist // Determines the drawing mode for this scatter trace. @@ -185,6 +193,7 @@ type Scattergl struct { Opacity float64 `json:"opacity,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScatterglSelected `json:"selected,omitempty"` @@ -201,6 +210,7 @@ type Scattergl struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScatterglStream `json:"stream,omitempty"` @@ -211,6 +221,7 @@ type Scattergl struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterglTextfont `json:"textfont,omitempty"` @@ -264,6 +275,7 @@ type Scattergl struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScatterglUnselected `json:"unselected,omitempty"` @@ -652,6 +664,7 @@ type ScatterglHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScatterglHoverlabelFont `json:"font,omitempty"` @@ -694,6 +707,7 @@ type ScatterglLegendgrouptitleFont struct { type ScatterglLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScatterglLegendgrouptitleFont `json:"font,omitempty"` @@ -782,6 +796,7 @@ type ScatterglMarkerColorbarTitleFont struct { type ScatterglMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScatterglMarkerColorbarTitleFont `json:"font,omitempty"` @@ -948,6 +963,7 @@ type ScatterglMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScatterglMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -1046,6 +1062,7 @@ type ScatterglMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScatterglMarkerColorbarTitle `json:"title,omitempty"` @@ -1236,6 +1253,7 @@ type ScatterglMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScatterglMarkerColorbar `json:"colorbar,omitempty"` @@ -1252,6 +1270,7 @@ type ScatterglMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterglMarkerLine `json:"line,omitempty"` @@ -1360,10 +1379,12 @@ type ScatterglSelectedTextfont struct { type ScatterglSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterglSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterglSelectedTextfont `json:"textfont,omitempty"` } @@ -1460,10 +1481,12 @@ type ScatterglUnselectedTextfont struct { type ScatterglUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterglUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterglUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.29.1/graph_objects/scattermapbox_gen.go b/generated/v2.29.1/graph_objects/scattermapbox_gen.go index 7a03b64..aa1a94f 100644 --- a/generated/v2.29.1/graph_objects/scattermapbox_gen.go +++ b/generated/v2.29.1/graph_objects/scattermapbox_gen.go @@ -22,6 +22,7 @@ type Scattermapbox struct { Below string `json:"below,omitempty"` // Cluster + // arrayOK: false // role: Object Cluster *ScattermapboxCluster `json:"cluster,omitempty"` @@ -57,6 +58,7 @@ type Scattermapbox struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -69,6 +71,7 @@ type Scattermapbox struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScattermapboxHoverlabel `json:"hoverlabel,omitempty"` @@ -133,6 +136,7 @@ type Scattermapbox struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScattermapboxLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -149,6 +153,7 @@ type Scattermapbox struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScattermapboxLine `json:"line,omitempty"` @@ -165,6 +170,7 @@ type Scattermapbox struct { Lonsrc string `json:"lonsrc,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScattermapboxMarker `json:"marker,omitempty"` @@ -181,6 +187,7 @@ type Scattermapbox struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: markers // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. @@ -199,6 +206,7 @@ type Scattermapbox struct { Opacity float64 `json:"opacity,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScattermapboxSelected `json:"selected,omitempty"` @@ -215,6 +223,7 @@ type Scattermapbox struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScattermapboxStream `json:"stream,omitempty"` @@ -231,6 +240,7 @@ type Scattermapbox struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattermapboxTextfont `json:"textfont,omitempty"` @@ -278,6 +288,7 @@ type Scattermapbox struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScattermapboxUnselected `json:"unselected,omitempty"` @@ -434,6 +445,7 @@ type ScattermapboxHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScattermapboxHoverlabelFont `json:"font,omitempty"` @@ -476,6 +488,7 @@ type ScattermapboxLegendgrouptitleFont struct { type ScattermapboxLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScattermapboxLegendgrouptitleFont `json:"font,omitempty"` @@ -550,6 +563,7 @@ type ScattermapboxMarkerColorbarTitleFont struct { type ScattermapboxMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScattermapboxMarkerColorbarTitleFont `json:"font,omitempty"` @@ -716,6 +730,7 @@ type ScattermapboxMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScattermapboxMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -814,6 +829,7 @@ type ScattermapboxMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScattermapboxMarkerColorbarTitle `json:"title,omitempty"` @@ -934,6 +950,7 @@ type ScattermapboxMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScattermapboxMarkerColorbar `json:"colorbar,omitempty"` @@ -1043,6 +1060,7 @@ type ScattermapboxSelectedMarker struct { type ScattermapboxSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScattermapboxSelectedMarker `json:"marker,omitempty"` } @@ -1111,6 +1129,7 @@ type ScattermapboxUnselectedMarker struct { type ScattermapboxUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScattermapboxUnselectedMarker `json:"marker,omitempty"` } diff --git a/generated/v2.29.1/graph_objects/scatterpolar_gen.go b/generated/v2.29.1/graph_objects/scatterpolar_gen.go index 176c0e8..5e06795 100644 --- a/generated/v2.29.1/graph_objects/scatterpolar_gen.go +++ b/generated/v2.29.1/graph_objects/scatterpolar_gen.go @@ -65,6 +65,7 @@ type Scatterpolar struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -77,10 +78,12 @@ type Scatterpolar struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScatterpolarHoverlabel `json:"hoverlabel,omitempty"` // Hoveron + // arrayOK: false // default: %!s() // type: flaglist // Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is *toself* or *tonext* and there are no markers or text, then the default is *fills*, otherwise it is *points*. @@ -135,6 +138,7 @@ type Scatterpolar struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScatterpolarLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -151,10 +155,12 @@ type Scatterpolar struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterpolarLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScatterpolarMarker `json:"marker,omitempty"` @@ -171,6 +177,7 @@ type Scatterpolar struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: %!s() // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -207,6 +214,7 @@ type Scatterpolar struct { Rsrc string `json:"rsrc,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScatterpolarSelected `json:"selected,omitempty"` @@ -223,6 +231,7 @@ type Scatterpolar struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScatterpolarStream `json:"stream,omitempty"` @@ -239,6 +248,7 @@ type Scatterpolar struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterpolarTextfont `json:"textfont,omitempty"` @@ -317,6 +327,7 @@ type Scatterpolar struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScatterpolarUnselected `json:"unselected,omitempty"` @@ -409,6 +420,7 @@ type ScatterpolarHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScatterpolarHoverlabelFont `json:"font,omitempty"` @@ -451,6 +463,7 @@ type ScatterpolarLegendgrouptitleFont struct { type ScatterpolarLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScatterpolarLegendgrouptitleFont `json:"font,omitempty"` @@ -556,6 +569,7 @@ type ScatterpolarMarkerColorbarTitleFont struct { type ScatterpolarMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScatterpolarMarkerColorbarTitleFont `json:"font,omitempty"` @@ -722,6 +736,7 @@ type ScatterpolarMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScatterpolarMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -820,6 +835,7 @@ type ScatterpolarMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScatterpolarMarkerColorbarTitle `json:"title,omitempty"` @@ -1046,6 +1062,7 @@ type ScatterpolarMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScatterpolarMarkerColorbar `json:"colorbar,omitempty"` @@ -1062,10 +1079,12 @@ type ScatterpolarMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Gradient + // arrayOK: false // role: Object Gradient *ScatterpolarMarkerGradient `json:"gradient,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterpolarMarkerLine `json:"line,omitempty"` @@ -1192,10 +1211,12 @@ type ScatterpolarSelectedTextfont struct { type ScatterpolarSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterpolarSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterpolarSelectedTextfont `json:"textfont,omitempty"` } @@ -1292,10 +1313,12 @@ type ScatterpolarUnselectedTextfont struct { type ScatterpolarUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterpolarUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterpolarUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.29.1/graph_objects/scatterpolargl_gen.go b/generated/v2.29.1/graph_objects/scatterpolargl_gen.go index 8b19ea4..e85aa75 100644 --- a/generated/v2.29.1/graph_objects/scatterpolargl_gen.go +++ b/generated/v2.29.1/graph_objects/scatterpolargl_gen.go @@ -59,6 +59,7 @@ type Scatterpolargl struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -71,6 +72,7 @@ type Scatterpolargl struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScatterpolarglHoverlabel `json:"hoverlabel,omitempty"` @@ -123,6 +125,7 @@ type Scatterpolargl struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScatterpolarglLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -139,10 +142,12 @@ type Scatterpolargl struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterpolarglLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScatterpolarglMarker `json:"marker,omitempty"` @@ -159,6 +164,7 @@ type Scatterpolargl struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: %!s() // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -195,6 +201,7 @@ type Scatterpolargl struct { Rsrc string `json:"rsrc,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScatterpolarglSelected `json:"selected,omitempty"` @@ -211,6 +218,7 @@ type Scatterpolargl struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScatterpolarglStream `json:"stream,omitempty"` @@ -227,6 +235,7 @@ type Scatterpolargl struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterpolarglTextfont `json:"textfont,omitempty"` @@ -305,6 +314,7 @@ type Scatterpolargl struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScatterpolarglUnselected `json:"unselected,omitempty"` @@ -397,6 +407,7 @@ type ScatterpolarglHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScatterpolarglHoverlabelFont `json:"font,omitempty"` @@ -439,6 +450,7 @@ type ScatterpolarglLegendgrouptitleFont struct { type ScatterpolarglLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScatterpolarglLegendgrouptitleFont `json:"font,omitempty"` @@ -520,6 +532,7 @@ type ScatterpolarglMarkerColorbarTitleFont struct { type ScatterpolarglMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScatterpolarglMarkerColorbarTitleFont `json:"font,omitempty"` @@ -686,6 +699,7 @@ type ScatterpolarglMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScatterpolarglMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -784,6 +798,7 @@ type ScatterpolarglMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScatterpolarglMarkerColorbarTitle `json:"title,omitempty"` @@ -974,6 +989,7 @@ type ScatterpolarglMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScatterpolarglMarkerColorbar `json:"colorbar,omitempty"` @@ -990,6 +1006,7 @@ type ScatterpolarglMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterpolarglMarkerLine `json:"line,omitempty"` @@ -1098,10 +1115,12 @@ type ScatterpolarglSelectedTextfont struct { type ScatterpolarglSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterpolarglSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterpolarglSelectedTextfont `json:"textfont,omitempty"` } @@ -1198,10 +1217,12 @@ type ScatterpolarglUnselectedTextfont struct { type ScatterpolarglUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterpolarglUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterpolarglUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.29.1/graph_objects/scattersmith_gen.go b/generated/v2.29.1/graph_objects/scattersmith_gen.go index 505945e..771e712 100644 --- a/generated/v2.29.1/graph_objects/scattersmith_gen.go +++ b/generated/v2.29.1/graph_objects/scattersmith_gen.go @@ -53,6 +53,7 @@ type Scattersmith struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -65,10 +66,12 @@ type Scattersmith struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScattersmithHoverlabel `json:"hoverlabel,omitempty"` // Hoveron + // arrayOK: false // default: %!s() // type: flaglist // Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is *toself* or *tonext* and there are no markers or text, then the default is *fills*, otherwise it is *points*. @@ -135,6 +138,7 @@ type Scattersmith struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScattersmithLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -151,10 +155,12 @@ type Scattersmith struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScattersmithLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScattersmithMarker `json:"marker,omitempty"` @@ -171,6 +177,7 @@ type Scattersmith struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: %!s() // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -201,6 +208,7 @@ type Scattersmith struct { Realsrc string `json:"realsrc,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScattersmithSelected `json:"selected,omitempty"` @@ -217,6 +225,7 @@ type Scattersmith struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScattersmithStream `json:"stream,omitempty"` @@ -233,6 +242,7 @@ type Scattersmith struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattersmithTextfont `json:"textfont,omitempty"` @@ -286,6 +296,7 @@ type Scattersmith struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScattersmithUnselected `json:"unselected,omitempty"` @@ -378,6 +389,7 @@ type ScattersmithHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScattersmithHoverlabelFont `json:"font,omitempty"` @@ -420,6 +432,7 @@ type ScattersmithLegendgrouptitleFont struct { type ScattersmithLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScattersmithLegendgrouptitleFont `json:"font,omitempty"` @@ -525,6 +538,7 @@ type ScattersmithMarkerColorbarTitleFont struct { type ScattersmithMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScattersmithMarkerColorbarTitleFont `json:"font,omitempty"` @@ -691,6 +705,7 @@ type ScattersmithMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScattersmithMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -789,6 +804,7 @@ type ScattersmithMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScattersmithMarkerColorbarTitle `json:"title,omitempty"` @@ -1015,6 +1031,7 @@ type ScattersmithMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScattersmithMarkerColorbar `json:"colorbar,omitempty"` @@ -1031,10 +1048,12 @@ type ScattersmithMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Gradient + // arrayOK: false // role: Object Gradient *ScattersmithMarkerGradient `json:"gradient,omitempty"` // Line + // arrayOK: false // role: Object Line *ScattersmithMarkerLine `json:"line,omitempty"` @@ -1161,10 +1180,12 @@ type ScattersmithSelectedTextfont struct { type ScattersmithSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScattersmithSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattersmithSelectedTextfont `json:"textfont,omitempty"` } @@ -1261,10 +1282,12 @@ type ScattersmithUnselectedTextfont struct { type ScattersmithUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScattersmithUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattersmithUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.29.1/graph_objects/scatterternary_gen.go b/generated/v2.29.1/graph_objects/scatterternary_gen.go index d971e11..5059355 100644 --- a/generated/v2.29.1/graph_objects/scatterternary_gen.go +++ b/generated/v2.29.1/graph_objects/scatterternary_gen.go @@ -89,6 +89,7 @@ type Scatterternary struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -101,10 +102,12 @@ type Scatterternary struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScatterternaryHoverlabel `json:"hoverlabel,omitempty"` // Hoveron + // arrayOK: false // default: %!s() // type: flaglist // Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is *toself* or *tonext* and there are no markers or text, then the default is *fills*, otherwise it is *points*. @@ -159,6 +162,7 @@ type Scatterternary struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScatterternaryLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -175,10 +179,12 @@ type Scatterternary struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterternaryLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScatterternaryMarker `json:"marker,omitempty"` @@ -195,6 +201,7 @@ type Scatterternary struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: markers // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -213,6 +220,7 @@ type Scatterternary struct { Opacity float64 `json:"opacity,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScatterternarySelected `json:"selected,omitempty"` @@ -229,6 +237,7 @@ type Scatterternary struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScatterternaryStream `json:"stream,omitempty"` @@ -251,6 +260,7 @@ type Scatterternary struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterternaryTextfont `json:"textfont,omitempty"` @@ -304,6 +314,7 @@ type Scatterternary struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScatterternaryUnselected `json:"unselected,omitempty"` @@ -396,6 +407,7 @@ type ScatterternaryHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScatterternaryHoverlabelFont `json:"font,omitempty"` @@ -438,6 +450,7 @@ type ScatterternaryLegendgrouptitleFont struct { type ScatterternaryLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScatterternaryLegendgrouptitleFont `json:"font,omitempty"` @@ -543,6 +556,7 @@ type ScatterternaryMarkerColorbarTitleFont struct { type ScatterternaryMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScatterternaryMarkerColorbarTitleFont `json:"font,omitempty"` @@ -709,6 +723,7 @@ type ScatterternaryMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScatterternaryMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -807,6 +822,7 @@ type ScatterternaryMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScatterternaryMarkerColorbarTitle `json:"title,omitempty"` @@ -1033,6 +1049,7 @@ type ScatterternaryMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScatterternaryMarkerColorbar `json:"colorbar,omitempty"` @@ -1049,10 +1066,12 @@ type ScatterternaryMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Gradient + // arrayOK: false // role: Object Gradient *ScatterternaryMarkerGradient `json:"gradient,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterternaryMarkerLine `json:"line,omitempty"` @@ -1179,10 +1198,12 @@ type ScatterternarySelectedTextfont struct { type ScatterternarySelected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterternarySelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterternarySelectedTextfont `json:"textfont,omitempty"` } @@ -1279,10 +1300,12 @@ type ScatterternaryUnselectedTextfont struct { type ScatterternaryUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterternaryUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterternaryUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.29.1/graph_objects/splom_gen.go b/generated/v2.29.1/graph_objects/splom_gen.go index f4ad4e3..4594bbd 100644 --- a/generated/v2.29.1/graph_objects/splom_gen.go +++ b/generated/v2.29.1/graph_objects/splom_gen.go @@ -28,6 +28,7 @@ type Splom struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Diagonal + // arrayOK: false // role: Object Diagonal *SplomDiagonal `json:"diagonal,omitempty"` @@ -38,6 +39,7 @@ type Splom struct { Dimensions interface{} `json:"dimensions,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -50,6 +52,7 @@ type Splom struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *SplomHoverlabel `json:"hoverlabel,omitempty"` @@ -102,6 +105,7 @@ type Splom struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *SplomLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -118,6 +122,7 @@ type Splom struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *SplomMarker `json:"marker,omitempty"` @@ -146,6 +151,7 @@ type Splom struct { Opacity float64 `json:"opacity,omitempty"` // Selected + // arrayOK: false // role: Object Selected *SplomSelected `json:"selected,omitempty"` @@ -174,6 +180,7 @@ type Splom struct { Showupperhalf Bool `json:"showupperhalf,omitempty"` // Stream + // arrayOK: false // role: Object Stream *SplomStream `json:"stream,omitempty"` @@ -208,6 +215,7 @@ type Splom struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *SplomUnselected `json:"unselected,omitempty"` @@ -334,6 +342,7 @@ type SplomHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *SplomHoverlabelFont `json:"font,omitempty"` @@ -376,6 +385,7 @@ type SplomLegendgrouptitleFont struct { type SplomLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *SplomLegendgrouptitleFont `json:"font,omitempty"` @@ -434,6 +444,7 @@ type SplomMarkerColorbarTitleFont struct { type SplomMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *SplomMarkerColorbarTitleFont `json:"font,omitempty"` @@ -600,6 +611,7 @@ type SplomMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *SplomMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -698,6 +710,7 @@ type SplomMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *SplomMarkerColorbarTitle `json:"title,omitempty"` @@ -888,6 +901,7 @@ type SplomMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *SplomMarkerColorbar `json:"colorbar,omitempty"` @@ -904,6 +918,7 @@ type SplomMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *SplomMarkerLine `json:"line,omitempty"` @@ -1002,6 +1017,7 @@ type SplomSelectedMarker struct { type SplomSelected struct { // Marker + // arrayOK: false // role: Object Marker *SplomSelectedMarker `json:"marker,omitempty"` } @@ -1048,6 +1064,7 @@ type SplomUnselectedMarker struct { type SplomUnselected struct { // Marker + // arrayOK: false // role: Object Marker *SplomUnselectedMarker `json:"marker,omitempty"` } diff --git a/generated/v2.29.1/graph_objects/streamtube_gen.go b/generated/v2.29.1/graph_objects/streamtube_gen.go index 13ed0b0..b5c9614 100644 --- a/generated/v2.29.1/graph_objects/streamtube_gen.go +++ b/generated/v2.29.1/graph_objects/streamtube_gen.go @@ -52,6 +52,7 @@ type Streamtube struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *StreamtubeColorbar `json:"colorbar,omitempty"` @@ -74,6 +75,7 @@ type Streamtube struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo + // arrayOK: true // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -86,6 +88,7 @@ type Streamtube struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *StreamtubeHoverlabel `json:"hoverlabel,omitempty"` @@ -132,6 +135,7 @@ type Streamtube struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *StreamtubeLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -148,10 +152,12 @@ type Streamtube struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Lighting + // arrayOK: false // role: Object Lighting *StreamtubeLighting `json:"lighting,omitempty"` // Lightposition + // arrayOK: false // role: Object Lightposition *StreamtubeLightposition `json:"lightposition,omitempty"` @@ -216,10 +222,12 @@ type Streamtube struct { Sizeref float64 `json:"sizeref,omitempty"` // Starts + // arrayOK: false // role: Object Starts *StreamtubeStarts `json:"starts,omitempty"` // Stream + // arrayOK: false // role: Object Stream *StreamtubeStream `json:"stream,omitempty"` @@ -405,6 +413,7 @@ type StreamtubeColorbarTitleFont struct { type StreamtubeColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *StreamtubeColorbarTitleFont `json:"font,omitempty"` @@ -571,6 +580,7 @@ type StreamtubeColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *StreamtubeColorbarTickfont `json:"tickfont,omitempty"` @@ -669,6 +679,7 @@ type StreamtubeColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *StreamtubeColorbarTitle `json:"title,omitempty"` @@ -806,6 +817,7 @@ type StreamtubeHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *StreamtubeHoverlabelFont `json:"font,omitempty"` @@ -848,6 +860,7 @@ type StreamtubeLegendgrouptitleFont struct { type StreamtubeLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *StreamtubeLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.29.1/graph_objects/sunburst_gen.go b/generated/v2.29.1/graph_objects/sunburst_gen.go index b95afd7..5070ab9 100644 --- a/generated/v2.29.1/graph_objects/sunburst_gen.go +++ b/generated/v2.29.1/graph_objects/sunburst_gen.go @@ -23,6 +23,7 @@ type Sunburst struct { Branchvalues SunburstBranchvalues `json:"branchvalues,omitempty"` // Count + // arrayOK: false // default: leaves // type: flaglist // Determines default for `values` when it is not provided, by inferring a 1 for each of the *leaves* and/or *branches*, otherwise 0. @@ -41,10 +42,12 @@ type Sunburst struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Domain + // arrayOK: false // role: Object Domain *SunburstDomain `json:"domain,omitempty"` // Hoverinfo + // arrayOK: true // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -57,6 +60,7 @@ type Sunburst struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *SunburstHoverlabel `json:"hoverlabel,omitempty"` @@ -97,6 +101,7 @@ type Sunburst struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *SunburstInsidetextfont `json:"insidetextfont,omitempty"` @@ -120,6 +125,7 @@ type Sunburst struct { Labelssrc string `json:"labelssrc,omitempty"` // Leaf + // arrayOK: false // role: Object Leaf *SunburstLeaf `json:"leaf,omitempty"` @@ -130,6 +136,7 @@ type Sunburst struct { Legend String `json:"legend,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *SunburstLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -152,6 +159,7 @@ type Sunburst struct { Level interface{} `json:"level,omitempty"` // Marker + // arrayOK: false // role: Object Marker *SunburstMarker `json:"marker,omitempty"` @@ -186,6 +194,7 @@ type Sunburst struct { Opacity float64 `json:"opacity,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *SunburstOutsidetextfont `json:"outsidetextfont,omitempty"` @@ -202,6 +211,7 @@ type Sunburst struct { Parentssrc string `json:"parentssrc,omitempty"` // Root + // arrayOK: false // role: Object Root *SunburstRoot `json:"root,omitempty"` @@ -218,6 +228,7 @@ type Sunburst struct { Sort Bool `json:"sort,omitempty"` // Stream + // arrayOK: false // role: Object Stream *SunburstStream `json:"stream,omitempty"` @@ -228,10 +239,12 @@ type Sunburst struct { Text interface{} `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *SunburstTextfont `json:"textfont,omitempty"` // Textinfo + // arrayOK: false // default: %!s() // type: flaglist // Determines which trace information appear on the graph. @@ -402,6 +415,7 @@ type SunburstHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *SunburstHoverlabelFont `json:"font,omitempty"` @@ -494,6 +508,7 @@ type SunburstLegendgrouptitleFont struct { type SunburstLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *SunburstLegendgrouptitleFont `json:"font,omitempty"` @@ -552,6 +567,7 @@ type SunburstMarkerColorbarTitleFont struct { type SunburstMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *SunburstMarkerColorbarTitleFont `json:"font,omitempty"` @@ -718,6 +734,7 @@ type SunburstMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *SunburstMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -816,6 +833,7 @@ type SunburstMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *SunburstMarkerColorbarTitle `json:"title,omitempty"` @@ -1018,6 +1036,7 @@ type SunburstMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *SunburstMarkerColorbar `json:"colorbar,omitempty"` @@ -1040,10 +1059,12 @@ type SunburstMarker struct { Colorssrc string `json:"colorssrc,omitempty"` // Line + // arrayOK: false // role: Object Line *SunburstMarkerLine `json:"line,omitempty"` // Pattern + // arrayOK: false // role: Object Pattern *SunburstMarkerPattern `json:"pattern,omitempty"` diff --git a/generated/v2.29.1/graph_objects/surface_gen.go b/generated/v2.29.1/graph_objects/surface_gen.go index 6e1298a..f25d0c6 100644 --- a/generated/v2.29.1/graph_objects/surface_gen.go +++ b/generated/v2.29.1/graph_objects/surface_gen.go @@ -52,6 +52,7 @@ type Surface struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *SurfaceColorbar `json:"colorbar,omitempty"` @@ -68,6 +69,7 @@ type Surface struct { Connectgaps Bool `json:"connectgaps,omitempty"` // Contours + // arrayOK: false // role: Object Contours *SurfaceContours `json:"contours,omitempty"` @@ -90,6 +92,7 @@ type Surface struct { Hidesurface Bool `json:"hidesurface,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -102,6 +105,7 @@ type Surface struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *SurfaceHoverlabel `json:"hoverlabel,omitempty"` @@ -154,6 +158,7 @@ type Surface struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *SurfaceLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -170,10 +175,12 @@ type Surface struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Lighting + // arrayOK: false // role: Object Lighting *SurfaceLighting `json:"lighting,omitempty"` // Lightposition + // arrayOK: false // role: Object Lightposition *SurfaceLightposition `json:"lightposition,omitempty"` @@ -232,6 +239,7 @@ type Surface struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *SurfaceStream `json:"stream,omitempty"` @@ -402,6 +410,7 @@ type SurfaceColorbarTitleFont struct { type SurfaceColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *SurfaceColorbarTitleFont `json:"font,omitempty"` @@ -568,6 +577,7 @@ type SurfaceColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *SurfaceColorbarTickfont `json:"tickfont,omitempty"` @@ -666,6 +676,7 @@ type SurfaceColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *SurfaceColorbarTitle `json:"title,omitempty"` @@ -778,6 +789,7 @@ type SurfaceContoursX struct { Highlightwidth float64 `json:"highlightwidth,omitempty"` // Project + // arrayOK: false // role: Object Project *SurfaceContoursXProject `json:"project,omitempty"` @@ -868,6 +880,7 @@ type SurfaceContoursY struct { Highlightwidth float64 `json:"highlightwidth,omitempty"` // Project + // arrayOK: false // role: Object Project *SurfaceContoursYProject `json:"project,omitempty"` @@ -958,6 +971,7 @@ type SurfaceContoursZ struct { Highlightwidth float64 `json:"highlightwidth,omitempty"` // Project + // arrayOK: false // role: Object Project *SurfaceContoursZProject `json:"project,omitempty"` @@ -996,14 +1010,17 @@ type SurfaceContoursZ struct { type SurfaceContours struct { // X + // arrayOK: false // role: Object X *SurfaceContoursX `json:"x,omitempty"` // Y + // arrayOK: false // role: Object Y *SurfaceContoursY `json:"y,omitempty"` // Z + // arrayOK: false // role: Object Z *SurfaceContoursZ `json:"z,omitempty"` } @@ -1089,6 +1106,7 @@ type SurfaceHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *SurfaceHoverlabelFont `json:"font,omitempty"` @@ -1131,6 +1149,7 @@ type SurfaceLegendgrouptitleFont struct { type SurfaceLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *SurfaceLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.29.1/graph_objects/table_gen.go b/generated/v2.29.1/graph_objects/table_gen.go index fe75516..10815de 100644 --- a/generated/v2.29.1/graph_objects/table_gen.go +++ b/generated/v2.29.1/graph_objects/table_gen.go @@ -16,6 +16,7 @@ type Table struct { Type TraceType `json:"type,omitempty"` // Cells + // arrayOK: false // role: Object Cells *TableCells `json:"cells,omitempty"` @@ -56,14 +57,17 @@ type Table struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Domain + // arrayOK: false // role: Object Domain *TableDomain `json:"domain,omitempty"` // Header + // arrayOK: false // role: Object Header *TableHeader `json:"header,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -76,6 +80,7 @@ type Table struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *TableHoverlabel `json:"hoverlabel,omitempty"` @@ -98,6 +103,7 @@ type Table struct { Legend String `json:"legend,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *TableLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -132,6 +138,7 @@ type Table struct { Name string `json:"name,omitempty"` // Stream + // arrayOK: false // role: Object Stream *TableStream `json:"stream,omitempty"` @@ -256,10 +263,12 @@ type TableCells struct { Alignsrc string `json:"alignsrc,omitempty"` // Fill + // arrayOK: false // role: Object Fill *TableCellsFill `json:"fill,omitempty"` // Font + // arrayOK: false // role: Object Font *TableCellsFont `json:"font,omitempty"` @@ -282,6 +291,7 @@ type TableCells struct { Height float64 `json:"height,omitempty"` // Line + // arrayOK: false // role: Object Line *TableCellsLine `json:"line,omitempty"` @@ -451,10 +461,12 @@ type TableHeader struct { Alignsrc string `json:"alignsrc,omitempty"` // Fill + // arrayOK: false // role: Object Fill *TableHeaderFill `json:"fill,omitempty"` // Font + // arrayOK: false // role: Object Font *TableHeaderFont `json:"font,omitempty"` @@ -477,6 +489,7 @@ type TableHeader struct { Height float64 `json:"height,omitempty"` // Line + // arrayOK: false // role: Object Line *TableHeaderLine `json:"line,omitempty"` @@ -598,6 +611,7 @@ type TableHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *TableHoverlabelFont `json:"font,omitempty"` @@ -640,6 +654,7 @@ type TableLegendgrouptitleFont struct { type TableLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *TableLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.29.1/graph_objects/treemap_gen.go b/generated/v2.29.1/graph_objects/treemap_gen.go index bfe6f4e..e3e3e4b 100644 --- a/generated/v2.29.1/graph_objects/treemap_gen.go +++ b/generated/v2.29.1/graph_objects/treemap_gen.go @@ -23,6 +23,7 @@ type Treemap struct { Branchvalues TreemapBranchvalues `json:"branchvalues,omitempty"` // Count + // arrayOK: false // default: leaves // type: flaglist // Determines default for `values` when it is not provided, by inferring a 1 for each of the *leaves* and/or *branches*, otherwise 0. @@ -41,10 +42,12 @@ type Treemap struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Domain + // arrayOK: false // role: Object Domain *TreemapDomain `json:"domain,omitempty"` // Hoverinfo + // arrayOK: true // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -57,6 +60,7 @@ type Treemap struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *TreemapHoverlabel `json:"hoverlabel,omitempty"` @@ -97,6 +101,7 @@ type Treemap struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *TreemapInsidetextfont `json:"insidetextfont,omitempty"` @@ -119,6 +124,7 @@ type Treemap struct { Legend String `json:"legend,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *TreemapLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -141,6 +147,7 @@ type Treemap struct { Level interface{} `json:"level,omitempty"` // Marker + // arrayOK: false // role: Object Marker *TreemapMarker `json:"marker,omitempty"` @@ -175,6 +182,7 @@ type Treemap struct { Opacity float64 `json:"opacity,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *TreemapOutsidetextfont `json:"outsidetextfont,omitempty"` @@ -191,10 +199,12 @@ type Treemap struct { Parentssrc string `json:"parentssrc,omitempty"` // Pathbar + // arrayOK: false // role: Object Pathbar *TreemapPathbar `json:"pathbar,omitempty"` // Root + // arrayOK: false // role: Object Root *TreemapRoot `json:"root,omitempty"` @@ -205,6 +215,7 @@ type Treemap struct { Sort Bool `json:"sort,omitempty"` // Stream + // arrayOK: false // role: Object Stream *TreemapStream `json:"stream,omitempty"` @@ -215,10 +226,12 @@ type Treemap struct { Text interface{} `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *TreemapTextfont `json:"textfont,omitempty"` // Textinfo + // arrayOK: false // default: %!s() // type: flaglist // Determines which trace information appear on the graph. @@ -250,6 +263,7 @@ type Treemap struct { Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Tiling + // arrayOK: false // role: Object Tiling *TreemapTiling `json:"tiling,omitempty"` @@ -400,6 +414,7 @@ type TreemapHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *TreemapHoverlabelFont `json:"font,omitempty"` @@ -482,6 +497,7 @@ type TreemapLegendgrouptitleFont struct { type TreemapLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *TreemapLegendgrouptitleFont `json:"font,omitempty"` @@ -540,6 +556,7 @@ type TreemapMarkerColorbarTitleFont struct { type TreemapMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *TreemapMarkerColorbarTitleFont `json:"font,omitempty"` @@ -706,6 +723,7 @@ type TreemapMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *TreemapMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -804,6 +822,7 @@ type TreemapMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *TreemapMarkerColorbarTitle `json:"title,omitempty"` @@ -1034,6 +1053,7 @@ type TreemapMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *TreemapMarkerColorbar `json:"colorbar,omitempty"` @@ -1069,14 +1089,17 @@ type TreemapMarker struct { Depthfade TreemapMarkerDepthfade `json:"depthfade,omitempty"` // Line + // arrayOK: false // role: Object Line *TreemapMarkerLine `json:"line,omitempty"` // Pad + // arrayOK: false // role: Object Pad *TreemapMarkerPad `json:"pad,omitempty"` // Pattern + // arrayOK: false // role: Object Pattern *TreemapMarkerPattern `json:"pattern,omitempty"` @@ -1191,6 +1214,7 @@ type TreemapPathbar struct { Side TreemapPathbarSide `json:"side,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *TreemapPathbarTextfont `json:"textfont,omitempty"` @@ -1277,6 +1301,7 @@ type TreemapTextfont struct { type TreemapTiling struct { // Flip + // arrayOK: false // default: // type: flaglist // Determines if the positions obtained from solver are flipped on each axis. diff --git a/generated/v2.29.1/graph_objects/violin_gen.go b/generated/v2.29.1/graph_objects/violin_gen.go index 7662bdc..e9f4c43 100644 --- a/generated/v2.29.1/graph_objects/violin_gen.go +++ b/generated/v2.29.1/graph_objects/violin_gen.go @@ -28,6 +28,7 @@ type Violin struct { Bandwidth float64 `json:"bandwidth,omitempty"` // Box + // arrayOK: false // role: Object Box *ViolinBox `json:"box,omitempty"` @@ -50,6 +51,7 @@ type Violin struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -62,10 +64,12 @@ type Violin struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ViolinHoverlabel `json:"hoverlabel,omitempty"` // Hoveron + // arrayOK: false // default: violins+points+kde // type: flaglist // Do the hover effects highlight individual violins or sample points or the kernel density estimate or any combination of them? @@ -126,6 +130,7 @@ type Violin struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ViolinLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -142,14 +147,17 @@ type Violin struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ViolinLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ViolinMarker `json:"marker,omitempty"` // Meanline + // arrayOK: false // role: Object Meanline *ViolinMeanline `json:"meanline,omitempty"` @@ -224,6 +232,7 @@ type Violin struct { Scalemode ViolinScalemode `json:"scalemode,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ViolinSelected `json:"selected,omitempty"` @@ -260,6 +269,7 @@ type Violin struct { Spanmode ViolinSpanmode `json:"spanmode,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ViolinStream `json:"stream,omitempty"` @@ -294,6 +304,7 @@ type Violin struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ViolinUnselected `json:"unselected,omitempty"` @@ -397,6 +408,7 @@ type ViolinBox struct { Fillcolor Color `json:"fillcolor,omitempty"` // Line + // arrayOK: false // role: Object Line *ViolinBoxLine `json:"line,omitempty"` @@ -494,6 +506,7 @@ type ViolinHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ViolinHoverlabelFont `json:"font,omitempty"` @@ -536,6 +549,7 @@ type ViolinLegendgrouptitleFont struct { type ViolinLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ViolinLegendgrouptitleFont `json:"font,omitempty"` @@ -606,6 +620,7 @@ type ViolinMarker struct { Color Color `json:"color,omitempty"` // Line + // arrayOK: false // role: Object Line *ViolinMarkerLine `json:"line,omitempty"` @@ -683,6 +698,7 @@ type ViolinSelectedMarker struct { type ViolinSelected struct { // Marker + // arrayOK: false // role: Object Marker *ViolinSelectedMarker `json:"marker,omitempty"` } @@ -729,6 +745,7 @@ type ViolinUnselectedMarker struct { type ViolinUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ViolinUnselectedMarker `json:"marker,omitempty"` } diff --git a/generated/v2.29.1/graph_objects/volume_gen.go b/generated/v2.29.1/graph_objects/volume_gen.go index fc58df2..170023c 100644 --- a/generated/v2.29.1/graph_objects/volume_gen.go +++ b/generated/v2.29.1/graph_objects/volume_gen.go @@ -22,6 +22,7 @@ type Volume struct { Autocolorscale Bool `json:"autocolorscale,omitempty"` // Caps + // arrayOK: false // role: Object Caps *VolumeCaps `json:"caps,omitempty"` @@ -56,6 +57,7 @@ type Volume struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *VolumeColorbar `json:"colorbar,omitempty"` @@ -66,6 +68,7 @@ type Volume struct { Colorscale ColorScale `json:"colorscale,omitempty"` // Contour + // arrayOK: false // role: Object Contour *VolumeContour `json:"contour,omitempty"` @@ -88,6 +91,7 @@ type Volume struct { Flatshading Bool `json:"flatshading,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -100,6 +104,7 @@ type Volume struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *VolumeHoverlabel `json:"hoverlabel,omitempty"` @@ -164,6 +169,7 @@ type Volume struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *VolumeLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -180,10 +186,12 @@ type Volume struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Lighting + // arrayOK: false // role: Object Lighting *VolumeLighting `json:"lighting,omitempty"` // Lightposition + // arrayOK: false // role: Object Lightposition *VolumeLightposition `json:"lightposition,omitempty"` @@ -242,18 +250,22 @@ type Volume struct { Showscale Bool `json:"showscale,omitempty"` // Slices + // arrayOK: false // role: Object Slices *VolumeSlices `json:"slices,omitempty"` // Spaceframe + // arrayOK: false // role: Object Spaceframe *VolumeSpaceframe `json:"spaceframe,omitempty"` // Stream + // arrayOK: false // role: Object Stream *VolumeStream `json:"stream,omitempty"` // Surface + // arrayOK: false // role: Object Surface *VolumeSurface `json:"surface,omitempty"` @@ -413,14 +425,17 @@ type VolumeCapsZ struct { type VolumeCaps struct { // X + // arrayOK: false // role: Object X *VolumeCapsX `json:"x,omitempty"` // Y + // arrayOK: false // role: Object Y *VolumeCapsY `json:"y,omitempty"` // Z + // arrayOK: false // role: Object Z *VolumeCapsZ `json:"z,omitempty"` } @@ -473,6 +488,7 @@ type VolumeColorbarTitleFont struct { type VolumeColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *VolumeColorbarTitleFont `json:"font,omitempty"` @@ -639,6 +655,7 @@ type VolumeColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *VolumeColorbarTickfont `json:"tickfont,omitempty"` @@ -737,6 +754,7 @@ type VolumeColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *VolumeColorbarTitle `json:"title,omitempty"` @@ -896,6 +914,7 @@ type VolumeHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *VolumeHoverlabelFont `json:"font,omitempty"` @@ -938,6 +957,7 @@ type VolumeLegendgrouptitleFont struct { type VolumeLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *VolumeLegendgrouptitleFont `json:"font,omitempty"` @@ -1104,14 +1124,17 @@ type VolumeSlicesZ struct { type VolumeSlices struct { // X + // arrayOK: false // role: Object X *VolumeSlicesX `json:"x,omitempty"` // Y + // arrayOK: false // role: Object Y *VolumeSlicesY `json:"y,omitempty"` // Z + // arrayOK: false // role: Object Z *VolumeSlicesZ `json:"z,omitempty"` } @@ -1164,6 +1187,7 @@ type VolumeSurface struct { Fill float64 `json:"fill,omitempty"` // Pattern + // arrayOK: false // default: all // type: flaglist // Sets the surface pattern of the iso-surface 3-D sections. The default pattern of the surface is `all` meaning that the rest of surface elements would be shaded. The check options (either 1 or 2) could be used to draw half of the squares on the surface. Using various combinations of capital `A`, `B`, `C`, `D` and `E` may also be used to reduce the number of triangles on the iso-surfaces and creating other patterns of interest. diff --git a/generated/v2.29.1/graph_objects/waterfall_gen.go b/generated/v2.29.1/graph_objects/waterfall_gen.go index 91aad4f..14def67 100644 --- a/generated/v2.29.1/graph_objects/waterfall_gen.go +++ b/generated/v2.29.1/graph_objects/waterfall_gen.go @@ -34,6 +34,7 @@ type Waterfall struct { Cliponaxis Bool `json:"cliponaxis,omitempty"` // Connector + // arrayOK: false // role: Object Connector *WaterfallConnector `json:"connector,omitempty"` @@ -57,6 +58,7 @@ type Waterfall struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Decreasing + // arrayOK: false // role: Object Decreasing *WaterfallDecreasing `json:"decreasing,omitempty"` @@ -73,6 +75,7 @@ type Waterfall struct { Dy float64 `json:"dy,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -85,6 +88,7 @@ type Waterfall struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *WaterfallHoverlabel `json:"hoverlabel,omitempty"` @@ -125,6 +129,7 @@ type Waterfall struct { Idssrc string `json:"idssrc,omitempty"` // Increasing + // arrayOK: false // role: Object Increasing *WaterfallIncreasing `json:"increasing,omitempty"` @@ -136,6 +141,7 @@ type Waterfall struct { Insidetextanchor WaterfallInsidetextanchor `json:"insidetextanchor,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *WaterfallInsidetextfont `json:"insidetextfont,omitempty"` @@ -152,6 +158,7 @@ type Waterfall struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *WaterfallLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -229,6 +236,7 @@ type Waterfall struct { Orientation WaterfallOrientation `json:"orientation,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *WaterfallOutsidetextfont `json:"outsidetextfont,omitempty"` @@ -245,6 +253,7 @@ type Waterfall struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *WaterfallStream `json:"stream,omitempty"` @@ -261,10 +270,12 @@ type Waterfall struct { Textangle float64 `json:"textangle,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *WaterfallTextfont `json:"textfont,omitempty"` // Textinfo + // arrayOK: false // default: %!s() // type: flaglist // Determines which trace information appear on the graph. In the case of having multiple waterfalls, totals are computed separately (per trace). @@ -302,6 +313,7 @@ type Waterfall struct { Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Totals + // arrayOK: false // role: Object Totals *WaterfallTotals `json:"totals,omitempty"` @@ -467,6 +479,7 @@ type WaterfallConnectorLine struct { type WaterfallConnector struct { // Line + // arrayOK: false // role: Object Line *WaterfallConnectorLine `json:"line,omitempty"` @@ -510,6 +523,7 @@ type WaterfallDecreasingMarker struct { Color Color `json:"color,omitempty"` // Line + // arrayOK: false // role: Object Line *WaterfallDecreasingMarkerLine `json:"line,omitempty"` } @@ -518,6 +532,7 @@ type WaterfallDecreasingMarker struct { type WaterfallDecreasing struct { // Marker + // arrayOK: false // role: Object Marker *WaterfallDecreasingMarker `json:"marker,omitempty"` } @@ -603,6 +618,7 @@ type WaterfallHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *WaterfallHoverlabelFont `json:"font,omitempty"` @@ -645,6 +661,7 @@ type WaterfallIncreasingMarker struct { Color Color `json:"color,omitempty"` // Line + // arrayOK: false // role: Object Line *WaterfallIncreasingMarkerLine `json:"line,omitempty"` } @@ -653,6 +670,7 @@ type WaterfallIncreasingMarker struct { type WaterfallIncreasing struct { // Marker + // arrayOK: false // role: Object Marker *WaterfallIncreasingMarker `json:"marker,omitempty"` } @@ -723,6 +741,7 @@ type WaterfallLegendgrouptitleFont struct { type WaterfallLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *WaterfallLegendgrouptitleFont `json:"font,omitempty"` @@ -855,6 +874,7 @@ type WaterfallTotalsMarker struct { Color Color `json:"color,omitempty"` // Line + // arrayOK: false // role: Object Line *WaterfallTotalsMarkerLine `json:"line,omitempty"` } @@ -863,6 +883,7 @@ type WaterfallTotalsMarker struct { type WaterfallTotals struct { // Marker + // arrayOK: false // role: Object Marker *WaterfallTotalsMarker `json:"marker,omitempty"` } diff --git a/generated/v2.31.1/graph_objects/bar_gen.go b/generated/v2.31.1/graph_objects/bar_gen.go index ca5dfdd..d7cdcca 100644 --- a/generated/v2.31.1/graph_objects/bar_gen.go +++ b/generated/v2.31.1/graph_objects/bar_gen.go @@ -71,14 +71,17 @@ type Bar struct { Dy float64 `json:"dy,omitempty"` // ErrorX + // arrayOK: false // role: Object ErrorX *BarErrorX `json:"error_x,omitempty"` // ErrorY + // arrayOK: false // role: Object ErrorY *BarErrorY `json:"error_y,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -91,6 +94,7 @@ type Bar struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *BarHoverlabel `json:"hoverlabel,omitempty"` @@ -138,6 +142,7 @@ type Bar struct { Insidetextanchor BarInsidetextanchor `json:"insidetextanchor,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *BarInsidetextfont `json:"insidetextfont,omitempty"` @@ -154,6 +159,7 @@ type Bar struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *BarLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -170,6 +176,7 @@ type Bar struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *BarMarker `json:"marker,omitempty"` @@ -223,10 +230,12 @@ type Bar struct { Orientation BarOrientation `json:"orientation,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *BarOutsidetextfont `json:"outsidetextfont,omitempty"` // Selected + // arrayOK: false // role: Object Selected *BarSelected `json:"selected,omitempty"` @@ -243,6 +252,7 @@ type Bar struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *BarStream `json:"stream,omitempty"` @@ -259,6 +269,7 @@ type Bar struct { Textangle float64 `json:"textangle,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *BarTextfont `json:"textfont,omitempty"` @@ -312,6 +323,7 @@ type Bar struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *BarUnselected `json:"unselected,omitempty"` @@ -718,6 +730,7 @@ type BarHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *BarHoverlabelFont `json:"font,omitempty"` @@ -800,6 +813,7 @@ type BarLegendgrouptitleFont struct { type BarLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *BarLegendgrouptitleFont `json:"font,omitempty"` @@ -858,6 +872,7 @@ type BarMarkerColorbarTitleFont struct { type BarMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *BarMarkerColorbarTitleFont `json:"font,omitempty"` @@ -1024,6 +1039,7 @@ type BarMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *BarMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -1122,6 +1138,7 @@ type BarMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *BarMarkerColorbarTitle `json:"title,omitempty"` @@ -1378,6 +1395,7 @@ type BarMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *BarMarkerColorbar `json:"colorbar,omitempty"` @@ -1400,6 +1418,7 @@ type BarMarker struct { Cornerradius interface{} `json:"cornerradius,omitempty"` // Line + // arrayOK: false // role: Object Line *BarMarkerLine `json:"line,omitempty"` @@ -1416,6 +1435,7 @@ type BarMarker struct { Opacitysrc string `json:"opacitysrc,omitempty"` // Pattern + // arrayOK: false // role: Object Pattern *BarMarkerPattern `json:"pattern,omitempty"` @@ -1502,10 +1522,12 @@ type BarSelectedTextfont struct { type BarSelected struct { // Marker + // arrayOK: false // role: Object Marker *BarSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *BarSelectedTextfont `json:"textfont,omitempty"` } @@ -1596,10 +1618,12 @@ type BarUnselectedTextfont struct { type BarUnselected struct { // Marker + // arrayOK: false // role: Object Marker *BarUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *BarUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.31.1/graph_objects/barpolar_gen.go b/generated/v2.31.1/graph_objects/barpolar_gen.go index 0522253..602b7d4 100644 --- a/generated/v2.31.1/graph_objects/barpolar_gen.go +++ b/generated/v2.31.1/graph_objects/barpolar_gen.go @@ -52,6 +52,7 @@ type Barpolar struct { Dtheta float64 `json:"dtheta,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -64,6 +65,7 @@ type Barpolar struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *BarpolarHoverlabel `json:"hoverlabel,omitempty"` @@ -116,6 +118,7 @@ type Barpolar struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *BarpolarLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -132,6 +135,7 @@ type Barpolar struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *BarpolarMarker `json:"marker,omitempty"` @@ -190,6 +194,7 @@ type Barpolar struct { Rsrc string `json:"rsrc,omitempty"` // Selected + // arrayOK: false // role: Object Selected *BarpolarSelected `json:"selected,omitempty"` @@ -206,6 +211,7 @@ type Barpolar struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *BarpolarStream `json:"stream,omitempty"` @@ -271,6 +277,7 @@ type Barpolar struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *BarpolarUnselected `json:"unselected,omitempty"` @@ -375,6 +382,7 @@ type BarpolarHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *BarpolarHoverlabelFont `json:"font,omitempty"` @@ -417,6 +425,7 @@ type BarpolarLegendgrouptitleFont struct { type BarpolarLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *BarpolarLegendgrouptitleFont `json:"font,omitempty"` @@ -475,6 +484,7 @@ type BarpolarMarkerColorbarTitleFont struct { type BarpolarMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *BarpolarMarkerColorbarTitleFont `json:"font,omitempty"` @@ -641,6 +651,7 @@ type BarpolarMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *BarpolarMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -739,6 +750,7 @@ type BarpolarMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *BarpolarMarkerColorbarTitle `json:"title,omitempty"` @@ -995,6 +1007,7 @@ type BarpolarMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *BarpolarMarkerColorbar `json:"colorbar,omitempty"` @@ -1011,6 +1024,7 @@ type BarpolarMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *BarpolarMarkerLine `json:"line,omitempty"` @@ -1027,6 +1041,7 @@ type BarpolarMarker struct { Opacitysrc string `json:"opacitysrc,omitempty"` // Pattern + // arrayOK: false // role: Object Pattern *BarpolarMarkerPattern `json:"pattern,omitempty"` @@ -1073,10 +1088,12 @@ type BarpolarSelectedTextfont struct { type BarpolarSelected struct { // Marker + // arrayOK: false // role: Object Marker *BarpolarSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *BarpolarSelectedTextfont `json:"textfont,omitempty"` } @@ -1127,10 +1144,12 @@ type BarpolarUnselectedTextfont struct { type BarpolarUnselected struct { // Marker + // arrayOK: false // role: Object Marker *BarpolarUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *BarpolarUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.31.1/graph_objects/box_gen.go b/generated/v2.31.1/graph_objects/box_gen.go index 5e7c2ee..a7c08ae 100644 --- a/generated/v2.31.1/graph_objects/box_gen.go +++ b/generated/v2.31.1/graph_objects/box_gen.go @@ -66,6 +66,7 @@ type Box struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -78,10 +79,12 @@ type Box struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *BoxHoverlabel `json:"hoverlabel,omitempty"` // Hoveron + // arrayOK: false // default: boxes+points // type: flaglist // Do the hover effects highlight individual boxes or sample points or both? @@ -142,6 +145,7 @@ type Box struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *BoxLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -158,6 +162,7 @@ type Box struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *BoxLine `json:"line,omitempty"` @@ -174,6 +179,7 @@ type Box struct { Lowerfencesrc string `json:"lowerfencesrc,omitempty"` // Marker + // arrayOK: false // role: Object Marker *BoxMarker `json:"marker,omitempty"` @@ -318,6 +324,7 @@ type Box struct { Sdsrc string `json:"sdsrc,omitempty"` // Selected + // arrayOK: false // role: Object Selected *BoxSelected `json:"selected,omitempty"` @@ -347,6 +354,7 @@ type Box struct { Sizemode BoxSizemode `json:"sizemode,omitempty"` // Stream + // arrayOK: false // role: Object Stream *BoxStream `json:"stream,omitempty"` @@ -381,6 +389,7 @@ type Box struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *BoxUnselected `json:"unselected,omitempty"` @@ -615,6 +624,7 @@ type BoxHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *BoxHoverlabelFont `json:"font,omitempty"` @@ -657,6 +667,7 @@ type BoxLegendgrouptitleFont struct { type BoxLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *BoxLegendgrouptitleFont `json:"font,omitempty"` @@ -727,6 +738,7 @@ type BoxMarker struct { Color Color `json:"color,omitempty"` // Line + // arrayOK: false // role: Object Line *BoxMarkerLine `json:"line,omitempty"` @@ -782,6 +794,7 @@ type BoxSelectedMarker struct { type BoxSelected struct { // Marker + // arrayOK: false // role: Object Marker *BoxSelectedMarker `json:"marker,omitempty"` } @@ -828,6 +841,7 @@ type BoxUnselectedMarker struct { type BoxUnselected struct { // Marker + // arrayOK: false // role: Object Marker *BoxUnselectedMarker `json:"marker,omitempty"` } diff --git a/generated/v2.31.1/graph_objects/candlestick_gen.go b/generated/v2.31.1/graph_objects/candlestick_gen.go index dad13ca..ba6e7a6 100644 --- a/generated/v2.31.1/graph_objects/candlestick_gen.go +++ b/generated/v2.31.1/graph_objects/candlestick_gen.go @@ -40,6 +40,7 @@ type Candlestick struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Decreasing + // arrayOK: false // role: Object Decreasing *CandlestickDecreasing `json:"decreasing,omitempty"` @@ -56,6 +57,7 @@ type Candlestick struct { Highsrc string `json:"highsrc,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -68,6 +70,7 @@ type Candlestick struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *CandlestickHoverlabel `json:"hoverlabel,omitempty"` @@ -96,6 +99,7 @@ type Candlestick struct { Idssrc string `json:"idssrc,omitempty"` // Increasing + // arrayOK: false // role: Object Increasing *CandlestickIncreasing `json:"increasing,omitempty"` @@ -112,6 +116,7 @@ type Candlestick struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *CandlestickLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -128,6 +133,7 @@ type Candlestick struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *CandlestickLine `json:"line,omitempty"` @@ -192,6 +198,7 @@ type Candlestick struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *CandlestickStream `json:"stream,omitempty"` @@ -333,6 +340,7 @@ type CandlestickDecreasing struct { Fillcolor Color `json:"fillcolor,omitempty"` // Line + // arrayOK: false // role: Object Line *CandlestickDecreasingLine `json:"line,omitempty"` } @@ -418,6 +426,7 @@ type CandlestickHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *CandlestickHoverlabelFont `json:"font,omitempty"` @@ -466,6 +475,7 @@ type CandlestickIncreasing struct { Fillcolor Color `json:"fillcolor,omitempty"` // Line + // arrayOK: false // role: Object Line *CandlestickIncreasingLine `json:"line,omitempty"` } @@ -496,6 +506,7 @@ type CandlestickLegendgrouptitleFont struct { type CandlestickLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *CandlestickLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.31.1/graph_objects/carpet_gen.go b/generated/v2.31.1/graph_objects/carpet_gen.go index 1786849..637930d 100644 --- a/generated/v2.31.1/graph_objects/carpet_gen.go +++ b/generated/v2.31.1/graph_objects/carpet_gen.go @@ -28,6 +28,7 @@ type Carpet struct { A0 float64 `json:"a0,omitempty"` // Aaxis + // arrayOK: false // role: Object Aaxis *CarpetAaxis `json:"aaxis,omitempty"` @@ -50,6 +51,7 @@ type Carpet struct { B0 float64 `json:"b0,omitempty"` // Baxis + // arrayOK: false // role: Object Baxis *CarpetBaxis `json:"baxis,omitempty"` @@ -102,6 +104,7 @@ type Carpet struct { Db float64 `json:"db,omitempty"` // Font + // arrayOK: false // role: Object Font *CarpetFont `json:"font,omitempty"` @@ -124,6 +127,7 @@ type Carpet struct { Legend String `json:"legend,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *CarpetLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -164,6 +168,7 @@ type Carpet struct { Opacity float64 `json:"opacity,omitempty"` // Stream + // arrayOK: false // role: Object Stream *CarpetStream `json:"stream,omitempty"` @@ -277,6 +282,7 @@ type CarpetAaxisTitleFont struct { type CarpetAaxisTitle struct { // Font + // arrayOK: false // role: Object Font *CarpetAaxisTitleFont `json:"font,omitempty"` @@ -577,6 +583,7 @@ type CarpetAaxis struct { Tickangle float64 `json:"tickangle,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *CarpetAaxisTickfont `json:"tickfont,omitempty"` @@ -636,6 +643,7 @@ type CarpetAaxis struct { Tickvalssrc string `json:"tickvalssrc,omitempty"` // Title + // arrayOK: false // role: Object Title *CarpetAaxisTitle `json:"title,omitempty"` @@ -695,6 +703,7 @@ type CarpetBaxisTitleFont struct { type CarpetBaxisTitle struct { // Font + // arrayOK: false // role: Object Font *CarpetBaxisTitleFont `json:"font,omitempty"` @@ -995,6 +1004,7 @@ type CarpetBaxis struct { Tickangle float64 `json:"tickangle,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *CarpetBaxisTickfont `json:"tickfont,omitempty"` @@ -1054,6 +1064,7 @@ type CarpetBaxis struct { Tickvalssrc string `json:"tickvalssrc,omitempty"` // Title + // arrayOK: false // role: Object Title *CarpetBaxisTitle `json:"title,omitempty"` @@ -1113,6 +1124,7 @@ type CarpetLegendgrouptitleFont struct { type CarpetLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *CarpetLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.31.1/graph_objects/choropleth_gen.go b/generated/v2.31.1/graph_objects/choropleth_gen.go index bdc1b79..0b560e4 100644 --- a/generated/v2.31.1/graph_objects/choropleth_gen.go +++ b/generated/v2.31.1/graph_objects/choropleth_gen.go @@ -28,6 +28,7 @@ type Choropleth struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ChoroplethColorbar `json:"colorbar,omitempty"` @@ -68,6 +69,7 @@ type Choropleth struct { Geojson interface{} `json:"geojson,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -80,6 +82,7 @@ type Choropleth struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ChoroplethHoverlabel `json:"hoverlabel,omitempty"` @@ -132,6 +135,7 @@ type Choropleth struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ChoroplethLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -167,6 +171,7 @@ type Choropleth struct { Locationssrc string `json:"locationssrc,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ChoroplethMarker `json:"marker,omitempty"` @@ -195,6 +200,7 @@ type Choropleth struct { Reversescale Bool `json:"reversescale,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ChoroplethSelected `json:"selected,omitempty"` @@ -217,6 +223,7 @@ type Choropleth struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ChoroplethStream `json:"stream,omitempty"` @@ -251,6 +258,7 @@ type Choropleth struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ChoroplethUnselected `json:"unselected,omitempty"` @@ -346,6 +354,7 @@ type ChoroplethColorbarTitleFont struct { type ChoroplethColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ChoroplethColorbarTitleFont `json:"font,omitempty"` @@ -512,6 +521,7 @@ type ChoroplethColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ChoroplethColorbarTickfont `json:"tickfont,omitempty"` @@ -610,6 +620,7 @@ type ChoroplethColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ChoroplethColorbarTitle `json:"title,omitempty"` @@ -747,6 +758,7 @@ type ChoroplethHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ChoroplethHoverlabelFont `json:"font,omitempty"` @@ -789,6 +801,7 @@ type ChoroplethLegendgrouptitleFont struct { type ChoroplethLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ChoroplethLegendgrouptitleFont `json:"font,omitempty"` @@ -831,6 +844,7 @@ type ChoroplethMarkerLine struct { type ChoroplethMarker struct { // Line + // arrayOK: false // role: Object Line *ChoroplethMarkerLine `json:"line,omitempty"` @@ -861,6 +875,7 @@ type ChoroplethSelectedMarker struct { type ChoroplethSelected struct { // Marker + // arrayOK: false // role: Object Marker *ChoroplethSelectedMarker `json:"marker,omitempty"` } @@ -895,6 +910,7 @@ type ChoroplethUnselectedMarker struct { type ChoroplethUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ChoroplethUnselectedMarker `json:"marker,omitempty"` } diff --git a/generated/v2.31.1/graph_objects/choroplethmapbox_gen.go b/generated/v2.31.1/graph_objects/choroplethmapbox_gen.go index 32cc04d..1736558 100644 --- a/generated/v2.31.1/graph_objects/choroplethmapbox_gen.go +++ b/generated/v2.31.1/graph_objects/choroplethmapbox_gen.go @@ -34,6 +34,7 @@ type Choroplethmapbox struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ChoroplethmapboxColorbar `json:"colorbar,omitempty"` @@ -68,6 +69,7 @@ type Choroplethmapbox struct { Geojson interface{} `json:"geojson,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -80,6 +82,7 @@ type Choroplethmapbox struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ChoroplethmapboxHoverlabel `json:"hoverlabel,omitempty"` @@ -132,6 +135,7 @@ type Choroplethmapbox struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ChoroplethmapboxLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -160,6 +164,7 @@ type Choroplethmapbox struct { Locationssrc string `json:"locationssrc,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ChoroplethmapboxMarker `json:"marker,omitempty"` @@ -188,6 +193,7 @@ type Choroplethmapbox struct { Reversescale Bool `json:"reversescale,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ChoroplethmapboxSelected `json:"selected,omitempty"` @@ -210,6 +216,7 @@ type Choroplethmapbox struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ChoroplethmapboxStream `json:"stream,omitempty"` @@ -250,6 +257,7 @@ type Choroplethmapbox struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ChoroplethmapboxUnselected `json:"unselected,omitempty"` @@ -345,6 +353,7 @@ type ChoroplethmapboxColorbarTitleFont struct { type ChoroplethmapboxColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ChoroplethmapboxColorbarTitleFont `json:"font,omitempty"` @@ -511,6 +520,7 @@ type ChoroplethmapboxColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ChoroplethmapboxColorbarTickfont `json:"tickfont,omitempty"` @@ -609,6 +619,7 @@ type ChoroplethmapboxColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ChoroplethmapboxColorbarTitle `json:"title,omitempty"` @@ -746,6 +757,7 @@ type ChoroplethmapboxHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ChoroplethmapboxHoverlabelFont `json:"font,omitempty"` @@ -788,6 +800,7 @@ type ChoroplethmapboxLegendgrouptitleFont struct { type ChoroplethmapboxLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ChoroplethmapboxLegendgrouptitleFont `json:"font,omitempty"` @@ -830,6 +843,7 @@ type ChoroplethmapboxMarkerLine struct { type ChoroplethmapboxMarker struct { // Line + // arrayOK: false // role: Object Line *ChoroplethmapboxMarkerLine `json:"line,omitempty"` @@ -860,6 +874,7 @@ type ChoroplethmapboxSelectedMarker struct { type ChoroplethmapboxSelected struct { // Marker + // arrayOK: false // role: Object Marker *ChoroplethmapboxSelectedMarker `json:"marker,omitempty"` } @@ -894,6 +909,7 @@ type ChoroplethmapboxUnselectedMarker struct { type ChoroplethmapboxUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ChoroplethmapboxUnselectedMarker `json:"marker,omitempty"` } diff --git a/generated/v2.31.1/graph_objects/cone_gen.go b/generated/v2.31.1/graph_objects/cone_gen.go index afd6189..349fa4e 100644 --- a/generated/v2.31.1/graph_objects/cone_gen.go +++ b/generated/v2.31.1/graph_objects/cone_gen.go @@ -59,6 +59,7 @@ type Cone struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ConeColorbar `json:"colorbar,omitempty"` @@ -81,6 +82,7 @@ type Cone struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo + // arrayOK: true // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -93,6 +95,7 @@ type Cone struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ConeHoverlabel `json:"hoverlabel,omitempty"` @@ -145,6 +148,7 @@ type Cone struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ConeLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -161,10 +165,12 @@ type Cone struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Lighting + // arrayOK: false // role: Object Lighting *ConeLighting `json:"lighting,omitempty"` // Lightposition + // arrayOK: false // role: Object Lightposition *ConeLightposition `json:"lightposition,omitempty"` @@ -230,6 +236,7 @@ type Cone struct { Sizeref float64 `json:"sizeref,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ConeStream `json:"stream,omitempty"` @@ -421,6 +428,7 @@ type ConeColorbarTitleFont struct { type ConeColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ConeColorbarTitleFont `json:"font,omitempty"` @@ -587,6 +595,7 @@ type ConeColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ConeColorbarTickfont `json:"tickfont,omitempty"` @@ -685,6 +694,7 @@ type ConeColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ConeColorbarTitle `json:"title,omitempty"` @@ -822,6 +832,7 @@ type ConeHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ConeHoverlabelFont `json:"font,omitempty"` @@ -864,6 +875,7 @@ type ConeLegendgrouptitleFont struct { type ConeLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ConeLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.31.1/graph_objects/config_gen.go b/generated/v2.31.1/graph_objects/config_gen.go index d6486c9..b9e0cf8 100644 --- a/generated/v2.31.1/graph_objects/config_gen.go +++ b/generated/v2.31.1/graph_objects/config_gen.go @@ -48,6 +48,7 @@ type Config struct { Editable Bool `json:"editable,omitempty"` // Edits + // arrayOK: false // role: Object Edits *ConfigEdits `json:"edits,omitempty"` @@ -148,6 +149,7 @@ type Config struct { Responsive Bool `json:"responsive,omitempty"` // ScrollZoom + // arrayOK: false // default: gl3d+geo+mapbox // type: flaglist // Determines whether mouse wheel or two-finger scroll zooms is enable. Turned on by default for gl3d, geo and mapbox subplots (as these subplot types do not have zoombox via pan), but turned off by default for cartesian subplots. Set `scrollZoom` to *false* to disable scrolling for all subplots. diff --git a/generated/v2.31.1/graph_objects/contour_gen.go b/generated/v2.31.1/graph_objects/contour_gen.go index 794b2f2..736984b 100644 --- a/generated/v2.31.1/graph_objects/contour_gen.go +++ b/generated/v2.31.1/graph_objects/contour_gen.go @@ -34,6 +34,7 @@ type Contour struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ContourColorbar `json:"colorbar,omitempty"` @@ -50,6 +51,7 @@ type Contour struct { Connectgaps Bool `json:"connectgaps,omitempty"` // Contours + // arrayOK: false // role: Object Contours *ContourContours `json:"contours,omitempty"` @@ -84,6 +86,7 @@ type Contour struct { Fillcolor ColorWithColorScale `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -96,6 +99,7 @@ type Contour struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ContourHoverlabel `json:"hoverlabel,omitempty"` @@ -154,6 +158,7 @@ type Contour struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ContourLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -170,6 +175,7 @@ type Contour struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ContourLine `json:"line,omitempty"` @@ -222,6 +228,7 @@ type Contour struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ContourStream `json:"stream,omitempty"` @@ -232,6 +239,7 @@ type Contour struct { Text interface{} `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ContourTextfont `json:"textfont,omitempty"` @@ -501,6 +509,7 @@ type ContourColorbarTitleFont struct { type ContourColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ContourColorbarTitleFont `json:"font,omitempty"` @@ -667,6 +676,7 @@ type ContourColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ContourColorbarTickfont `json:"tickfont,omitempty"` @@ -765,6 +775,7 @@ type ContourColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ContourColorbarTitle `json:"title,omitempty"` @@ -860,6 +871,7 @@ type ContourContours struct { End float64 `json:"end,omitempty"` // Labelfont + // arrayOK: false // role: Object Labelfont *ContourContoursLabelfont `json:"labelfont,omitempty"` @@ -995,6 +1007,7 @@ type ContourHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ContourHoverlabelFont `json:"font,omitempty"` @@ -1037,6 +1050,7 @@ type ContourLegendgrouptitleFont struct { type ContourLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ContourLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.31.1/graph_objects/contourcarpet_gen.go b/generated/v2.31.1/graph_objects/contourcarpet_gen.go index 4d40c11..ca4843e 100644 --- a/generated/v2.31.1/graph_objects/contourcarpet_gen.go +++ b/generated/v2.31.1/graph_objects/contourcarpet_gen.go @@ -90,6 +90,7 @@ type Contourcarpet struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ContourcarpetColorbar `json:"colorbar,omitempty"` @@ -100,6 +101,7 @@ type Contourcarpet struct { Colorscale ColorScale `json:"colorscale,omitempty"` // Contours + // arrayOK: false // role: Object Contours *ContourcarpetContours `json:"contours,omitempty"` @@ -170,6 +172,7 @@ type Contourcarpet struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ContourcarpetLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -186,6 +189,7 @@ type Contourcarpet struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ContourcarpetLine `json:"line,omitempty"` @@ -238,6 +242,7 @@ type Contourcarpet struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ContourcarpetStream `json:"stream,omitempty"` @@ -381,6 +386,7 @@ type ContourcarpetColorbarTitleFont struct { type ContourcarpetColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ContourcarpetColorbarTitleFont `json:"font,omitempty"` @@ -547,6 +553,7 @@ type ContourcarpetColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ContourcarpetColorbarTickfont `json:"tickfont,omitempty"` @@ -645,6 +652,7 @@ type ContourcarpetColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ContourcarpetColorbarTitle `json:"title,omitempty"` @@ -740,6 +748,7 @@ type ContourcarpetContours struct { End float64 `json:"end,omitempty"` // Labelfont + // arrayOK: false // role: Object Labelfont *ContourcarpetContoursLabelfont `json:"labelfont,omitempty"` @@ -820,6 +829,7 @@ type ContourcarpetLegendgrouptitleFont struct { type ContourcarpetLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ContourcarpetLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.31.1/graph_objects/densitymapbox_gen.go b/generated/v2.31.1/graph_objects/densitymapbox_gen.go index f0fd283..38f6b11 100644 --- a/generated/v2.31.1/graph_objects/densitymapbox_gen.go +++ b/generated/v2.31.1/graph_objects/densitymapbox_gen.go @@ -34,6 +34,7 @@ type Densitymapbox struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *DensitymapboxColorbar `json:"colorbar,omitempty"` @@ -56,6 +57,7 @@ type Densitymapbox struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -68,6 +70,7 @@ type Densitymapbox struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *DensitymapboxHoverlabel `json:"hoverlabel,omitempty"` @@ -132,6 +135,7 @@ type Densitymapbox struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *DensitymapboxLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -214,6 +218,7 @@ type Densitymapbox struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *DensitymapboxStream `json:"stream,omitempty"` @@ -345,6 +350,7 @@ type DensitymapboxColorbarTitleFont struct { type DensitymapboxColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *DensitymapboxColorbarTitleFont `json:"font,omitempty"` @@ -511,6 +517,7 @@ type DensitymapboxColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *DensitymapboxColorbarTickfont `json:"tickfont,omitempty"` @@ -609,6 +616,7 @@ type DensitymapboxColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *DensitymapboxColorbarTitle `json:"title,omitempty"` @@ -746,6 +754,7 @@ type DensitymapboxHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *DensitymapboxHoverlabelFont `json:"font,omitempty"` @@ -788,6 +797,7 @@ type DensitymapboxLegendgrouptitleFont struct { type DensitymapboxLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *DensitymapboxLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.31.1/graph_objects/funnel_gen.go b/generated/v2.31.1/graph_objects/funnel_gen.go index b1f2976..d988308 100644 --- a/generated/v2.31.1/graph_objects/funnel_gen.go +++ b/generated/v2.31.1/graph_objects/funnel_gen.go @@ -28,6 +28,7 @@ type Funnel struct { Cliponaxis Bool `json:"cliponaxis,omitempty"` // Connector + // arrayOK: false // role: Object Connector *FunnelConnector `json:"connector,omitempty"` @@ -63,6 +64,7 @@ type Funnel struct { Dy float64 `json:"dy,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -75,6 +77,7 @@ type Funnel struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *FunnelHoverlabel `json:"hoverlabel,omitempty"` @@ -122,6 +125,7 @@ type Funnel struct { Insidetextanchor FunnelInsidetextanchor `json:"insidetextanchor,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *FunnelInsidetextfont `json:"insidetextfont,omitempty"` @@ -138,6 +142,7 @@ type Funnel struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *FunnelLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -154,6 +159,7 @@ type Funnel struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *FunnelMarker `json:"marker,omitempty"` @@ -201,6 +207,7 @@ type Funnel struct { Orientation FunnelOrientation `json:"orientation,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *FunnelOutsidetextfont `json:"outsidetextfont,omitempty"` @@ -217,6 +224,7 @@ type Funnel struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *FunnelStream `json:"stream,omitempty"` @@ -233,10 +241,12 @@ type Funnel struct { Textangle float64 `json:"textangle,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *FunnelTextfont `json:"textfont,omitempty"` // Textinfo + // arrayOK: false // default: %!s() // type: flaglist // Determines which trace information appear on the graph. In the case of having multiple funnels, percentages & totals are computed separately (per trace). @@ -441,6 +451,7 @@ type FunnelConnector struct { Fillcolor Color `json:"fillcolor,omitempty"` // Line + // arrayOK: false // role: Object Line *FunnelConnectorLine `json:"line,omitempty"` @@ -532,6 +543,7 @@ type FunnelHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *FunnelHoverlabelFont `json:"font,omitempty"` @@ -614,6 +626,7 @@ type FunnelLegendgrouptitleFont struct { type FunnelLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *FunnelLegendgrouptitleFont `json:"font,omitempty"` @@ -672,6 +685,7 @@ type FunnelMarkerColorbarTitleFont struct { type FunnelMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *FunnelMarkerColorbarTitleFont `json:"font,omitempty"` @@ -838,6 +852,7 @@ type FunnelMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *FunnelMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -936,6 +951,7 @@ type FunnelMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *FunnelMarkerColorbarTitle `json:"title,omitempty"` @@ -1114,6 +1130,7 @@ type FunnelMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *FunnelMarkerColorbar `json:"colorbar,omitempty"` @@ -1130,6 +1147,7 @@ type FunnelMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *FunnelMarkerLine `json:"line,omitempty"` diff --git a/generated/v2.31.1/graph_objects/funnelarea_gen.go b/generated/v2.31.1/graph_objects/funnelarea_gen.go index 00b4758..4fd348b 100644 --- a/generated/v2.31.1/graph_objects/funnelarea_gen.go +++ b/generated/v2.31.1/graph_objects/funnelarea_gen.go @@ -46,10 +46,12 @@ type Funnelarea struct { Dlabel float64 `json:"dlabel,omitempty"` // Domain + // arrayOK: false // role: Object Domain *FunnelareaDomain `json:"domain,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -62,6 +64,7 @@ type Funnelarea struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *FunnelareaHoverlabel `json:"hoverlabel,omitempty"` @@ -102,6 +105,7 @@ type Funnelarea struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *FunnelareaInsidetextfont `json:"insidetextfont,omitempty"` @@ -136,6 +140,7 @@ type Funnelarea struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *FunnelareaLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -152,6 +157,7 @@ type Funnelarea struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *FunnelareaMarker `json:"marker,omitempty"` @@ -192,6 +198,7 @@ type Funnelarea struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *FunnelareaStream `json:"stream,omitempty"` @@ -202,10 +209,12 @@ type Funnelarea struct { Text interface{} `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *FunnelareaTextfont `json:"textfont,omitempty"` // Textinfo + // arrayOK: false // default: %!s() // type: flaglist // Determines which trace information appear on the graph. @@ -243,6 +252,7 @@ type Funnelarea struct { Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Title + // arrayOK: false // role: Object Title *FunnelareaTitle `json:"title,omitempty"` @@ -393,6 +403,7 @@ type FunnelareaHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *FunnelareaHoverlabelFont `json:"font,omitempty"` @@ -475,6 +486,7 @@ type FunnelareaLegendgrouptitleFont struct { type FunnelareaLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *FunnelareaLegendgrouptitleFont `json:"font,omitempty"` @@ -607,10 +619,12 @@ type FunnelareaMarker struct { Colorssrc string `json:"colorssrc,omitempty"` // Line + // arrayOK: false // role: Object Line *FunnelareaMarkerLine `json:"line,omitempty"` // Pattern + // arrayOK: false // role: Object Pattern *FunnelareaMarkerPattern `json:"pattern,omitempty"` } @@ -715,6 +729,7 @@ type FunnelareaTitleFont struct { type FunnelareaTitle struct { // Font + // arrayOK: false // role: Object Font *FunnelareaTitleFont `json:"font,omitempty"` diff --git a/generated/v2.31.1/graph_objects/heatmap_gen.go b/generated/v2.31.1/graph_objects/heatmap_gen.go index aa381b4..9e1687c 100644 --- a/generated/v2.31.1/graph_objects/heatmap_gen.go +++ b/generated/v2.31.1/graph_objects/heatmap_gen.go @@ -28,6 +28,7 @@ type Heatmap struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *HeatmapColorbar `json:"colorbar,omitempty"` @@ -68,6 +69,7 @@ type Heatmap struct { Dy float64 `json:"dy,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -80,6 +82,7 @@ type Heatmap struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *HeatmapHoverlabel `json:"hoverlabel,omitempty"` @@ -138,6 +141,7 @@ type Heatmap struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *HeatmapLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -196,6 +200,7 @@ type Heatmap struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *HeatmapStream `json:"stream,omitempty"` @@ -206,6 +211,7 @@ type Heatmap struct { Text interface{} `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *HeatmapTextfont `json:"textfont,omitempty"` @@ -494,6 +500,7 @@ type HeatmapColorbarTitleFont struct { type HeatmapColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *HeatmapColorbarTitleFont `json:"font,omitempty"` @@ -660,6 +667,7 @@ type HeatmapColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *HeatmapColorbarTickfont `json:"tickfont,omitempty"` @@ -758,6 +766,7 @@ type HeatmapColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *HeatmapColorbarTitle `json:"title,omitempty"` @@ -895,6 +904,7 @@ type HeatmapHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *HeatmapHoverlabelFont `json:"font,omitempty"` @@ -937,6 +947,7 @@ type HeatmapLegendgrouptitleFont struct { type HeatmapLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *HeatmapLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.31.1/graph_objects/heatmapgl_gen.go b/generated/v2.31.1/graph_objects/heatmapgl_gen.go index 35c9187..fbe68f3 100644 --- a/generated/v2.31.1/graph_objects/heatmapgl_gen.go +++ b/generated/v2.31.1/graph_objects/heatmapgl_gen.go @@ -28,6 +28,7 @@ type Heatmapgl struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *HeatmapglColorbar `json:"colorbar,omitempty"` @@ -62,6 +63,7 @@ type Heatmapgl struct { Dy float64 `json:"dy,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -74,6 +76,7 @@ type Heatmapgl struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *HeatmapglHoverlabel `json:"hoverlabel,omitempty"` @@ -96,6 +99,7 @@ type Heatmapgl struct { Legend String `json:"legend,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *HeatmapglLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -148,6 +152,7 @@ type Heatmapgl struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *HeatmapglStream `json:"stream,omitempty"` @@ -348,6 +353,7 @@ type HeatmapglColorbarTitleFont struct { type HeatmapglColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *HeatmapglColorbarTitleFont `json:"font,omitempty"` @@ -514,6 +520,7 @@ type HeatmapglColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *HeatmapglColorbarTickfont `json:"tickfont,omitempty"` @@ -612,6 +619,7 @@ type HeatmapglColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *HeatmapglColorbarTitle `json:"title,omitempty"` @@ -749,6 +757,7 @@ type HeatmapglHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *HeatmapglHoverlabelFont `json:"font,omitempty"` @@ -791,6 +800,7 @@ type HeatmapglLegendgrouptitleFont struct { type HeatmapglLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *HeatmapglLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.31.1/graph_objects/histogram2d_gen.go b/generated/v2.31.1/graph_objects/histogram2d_gen.go index e8cfad6..f6d6fa5 100644 --- a/generated/v2.31.1/graph_objects/histogram2d_gen.go +++ b/generated/v2.31.1/graph_objects/histogram2d_gen.go @@ -46,6 +46,7 @@ type Histogram2d struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *Histogram2dColorbar `json:"colorbar,omitempty"` @@ -82,6 +83,7 @@ type Histogram2d struct { Histnorm Histogram2dHistnorm `json:"histnorm,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -94,6 +96,7 @@ type Histogram2d struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *Histogram2dHoverlabel `json:"hoverlabel,omitempty"` @@ -134,6 +137,7 @@ type Histogram2d struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *Histogram2dLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -150,6 +154,7 @@ type Histogram2d struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *Histogram2dMarker `json:"marker,omitempty"` @@ -208,10 +213,12 @@ type Histogram2d struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *Histogram2dStream `json:"stream,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *Histogram2dTextfont `json:"textfont,omitempty"` @@ -265,6 +272,7 @@ type Histogram2d struct { Xbingroup string `json:"xbingroup,omitempty"` // Xbins + // arrayOK: false // role: Object Xbins *Histogram2dXbins `json:"xbins,omitempty"` @@ -312,6 +320,7 @@ type Histogram2d struct { Ybingroup string `json:"ybingroup,omitempty"` // Ybins + // arrayOK: false // role: Object Ybins *Histogram2dYbins `json:"ybins,omitempty"` @@ -438,6 +447,7 @@ type Histogram2dColorbarTitleFont struct { type Histogram2dColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *Histogram2dColorbarTitleFont `json:"font,omitempty"` @@ -604,6 +614,7 @@ type Histogram2dColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *Histogram2dColorbarTickfont `json:"tickfont,omitempty"` @@ -702,6 +713,7 @@ type Histogram2dColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *Histogram2dColorbarTitle `json:"title,omitempty"` @@ -839,6 +851,7 @@ type Histogram2dHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *Histogram2dHoverlabelFont `json:"font,omitempty"` @@ -881,6 +894,7 @@ type Histogram2dLegendgrouptitleFont struct { type Histogram2dLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *Histogram2dLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.31.1/graph_objects/histogram2dcontour_gen.go b/generated/v2.31.1/graph_objects/histogram2dcontour_gen.go index 9e9e6d6..5bd181d 100644 --- a/generated/v2.31.1/graph_objects/histogram2dcontour_gen.go +++ b/generated/v2.31.1/graph_objects/histogram2dcontour_gen.go @@ -52,6 +52,7 @@ type Histogram2dcontour struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *Histogram2dcontourColorbar `json:"colorbar,omitempty"` @@ -62,6 +63,7 @@ type Histogram2dcontour struct { Colorscale ColorScale `json:"colorscale,omitempty"` // Contours + // arrayOK: false // role: Object Contours *Histogram2dcontourContours `json:"contours,omitempty"` @@ -92,6 +94,7 @@ type Histogram2dcontour struct { Histnorm Histogram2dcontourHistnorm `json:"histnorm,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -104,6 +107,7 @@ type Histogram2dcontour struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *Histogram2dcontourHoverlabel `json:"hoverlabel,omitempty"` @@ -144,6 +148,7 @@ type Histogram2dcontour struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *Histogram2dcontourLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -160,10 +165,12 @@ type Histogram2dcontour struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *Histogram2dcontourLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *Histogram2dcontourMarker `json:"marker,omitempty"` @@ -228,10 +235,12 @@ type Histogram2dcontour struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *Histogram2dcontourStream `json:"stream,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *Histogram2dcontourTextfont `json:"textfont,omitempty"` @@ -285,6 +294,7 @@ type Histogram2dcontour struct { Xbingroup string `json:"xbingroup,omitempty"` // Xbins + // arrayOK: false // role: Object Xbins *Histogram2dcontourXbins `json:"xbins,omitempty"` @@ -326,6 +336,7 @@ type Histogram2dcontour struct { Ybingroup string `json:"ybingroup,omitempty"` // Ybins + // arrayOK: false // role: Object Ybins *Histogram2dcontourYbins `json:"ybins,omitempty"` @@ -439,6 +450,7 @@ type Histogram2dcontourColorbarTitleFont struct { type Histogram2dcontourColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *Histogram2dcontourColorbarTitleFont `json:"font,omitempty"` @@ -605,6 +617,7 @@ type Histogram2dcontourColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *Histogram2dcontourColorbarTickfont `json:"tickfont,omitempty"` @@ -703,6 +716,7 @@ type Histogram2dcontourColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *Histogram2dcontourColorbarTitle `json:"title,omitempty"` @@ -798,6 +812,7 @@ type Histogram2dcontourContours struct { End float64 `json:"end,omitempty"` // Labelfont + // arrayOK: false // role: Object Labelfont *Histogram2dcontourContoursLabelfont `json:"labelfont,omitempty"` @@ -933,6 +948,7 @@ type Histogram2dcontourHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *Histogram2dcontourHoverlabelFont `json:"font,omitempty"` @@ -975,6 +991,7 @@ type Histogram2dcontourLegendgrouptitleFont struct { type Histogram2dcontourLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *Histogram2dcontourLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.31.1/graph_objects/histogram_gen.go b/generated/v2.31.1/graph_objects/histogram_gen.go index 5388be2..09dafb5 100644 --- a/generated/v2.31.1/graph_objects/histogram_gen.go +++ b/generated/v2.31.1/graph_objects/histogram_gen.go @@ -53,6 +53,7 @@ type Histogram struct { Constraintext HistogramConstraintext `json:"constraintext,omitempty"` // Cumulative + // arrayOK: false // role: Object Cumulative *HistogramCumulative `json:"cumulative,omitempty"` @@ -69,10 +70,12 @@ type Histogram struct { Customdatasrc string `json:"customdatasrc,omitempty"` // ErrorX + // arrayOK: false // role: Object ErrorX *HistogramErrorX `json:"error_x,omitempty"` // ErrorY + // arrayOK: false // role: Object ErrorY *HistogramErrorY `json:"error_y,omitempty"` @@ -91,6 +94,7 @@ type Histogram struct { Histnorm HistogramHistnorm `json:"histnorm,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -103,6 +107,7 @@ type Histogram struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *HistogramHoverlabel `json:"hoverlabel,omitempty"` @@ -150,6 +155,7 @@ type Histogram struct { Insidetextanchor HistogramInsidetextanchor `json:"insidetextanchor,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *HistogramInsidetextfont `json:"insidetextfont,omitempty"` @@ -166,6 +172,7 @@ type Histogram struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *HistogramLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -182,6 +189,7 @@ type Histogram struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *HistogramMarker `json:"marker,omitempty"` @@ -235,10 +243,12 @@ type Histogram struct { Orientation HistogramOrientation `json:"orientation,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *HistogramOutsidetextfont `json:"outsidetextfont,omitempty"` // Selected + // arrayOK: false // role: Object Selected *HistogramSelected `json:"selected,omitempty"` @@ -255,6 +265,7 @@ type Histogram struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *HistogramStream `json:"stream,omitempty"` @@ -271,6 +282,7 @@ type Histogram struct { Textangle float64 `json:"textangle,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *HistogramTextfont `json:"textfont,omitempty"` @@ -312,6 +324,7 @@ type Histogram struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *HistogramUnselected `json:"unselected,omitempty"` @@ -335,6 +348,7 @@ type Histogram struct { Xaxis String `json:"xaxis,omitempty"` // Xbins + // arrayOK: false // role: Object Xbins *HistogramXbins `json:"xbins,omitempty"` @@ -370,6 +384,7 @@ type Histogram struct { Yaxis String `json:"yaxis,omitempty"` // Ybins + // arrayOK: false // role: Object Ybins *HistogramYbins `json:"ybins,omitempty"` @@ -688,6 +703,7 @@ type HistogramHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *HistogramHoverlabelFont `json:"font,omitempty"` @@ -752,6 +768,7 @@ type HistogramLegendgrouptitleFont struct { type HistogramLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *HistogramLegendgrouptitleFont `json:"font,omitempty"` @@ -810,6 +827,7 @@ type HistogramMarkerColorbarTitleFont struct { type HistogramMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *HistogramMarkerColorbarTitleFont `json:"font,omitempty"` @@ -976,6 +994,7 @@ type HistogramMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *HistogramMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -1074,6 +1093,7 @@ type HistogramMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *HistogramMarkerColorbarTitle `json:"title,omitempty"` @@ -1330,6 +1350,7 @@ type HistogramMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *HistogramMarkerColorbar `json:"colorbar,omitempty"` @@ -1352,6 +1373,7 @@ type HistogramMarker struct { Cornerradius interface{} `json:"cornerradius,omitempty"` // Line + // arrayOK: false // role: Object Line *HistogramMarkerLine `json:"line,omitempty"` @@ -1368,6 +1390,7 @@ type HistogramMarker struct { Opacitysrc string `json:"opacitysrc,omitempty"` // Pattern + // arrayOK: false // role: Object Pattern *HistogramMarkerPattern `json:"pattern,omitempty"` @@ -1436,10 +1459,12 @@ type HistogramSelectedTextfont struct { type HistogramSelected struct { // Marker + // arrayOK: false // role: Object Marker *HistogramSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *HistogramSelectedTextfont `json:"textfont,omitempty"` } @@ -1512,10 +1537,12 @@ type HistogramUnselectedTextfont struct { type HistogramUnselected struct { // Marker + // arrayOK: false // role: Object Marker *HistogramUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *HistogramUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.31.1/graph_objects/icicle_gen.go b/generated/v2.31.1/graph_objects/icicle_gen.go index c57205c..62baa30 100644 --- a/generated/v2.31.1/graph_objects/icicle_gen.go +++ b/generated/v2.31.1/graph_objects/icicle_gen.go @@ -23,6 +23,7 @@ type Icicle struct { Branchvalues IcicleBranchvalues `json:"branchvalues,omitempty"` // Count + // arrayOK: false // default: leaves // type: flaglist // Determines default for `values` when it is not provided, by inferring a 1 for each of the *leaves* and/or *branches*, otherwise 0. @@ -41,10 +42,12 @@ type Icicle struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Domain + // arrayOK: false // role: Object Domain *IcicleDomain `json:"domain,omitempty"` // Hoverinfo + // arrayOK: true // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -57,6 +60,7 @@ type Icicle struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *IcicleHoverlabel `json:"hoverlabel,omitempty"` @@ -97,6 +101,7 @@ type Icicle struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *IcicleInsidetextfont `json:"insidetextfont,omitempty"` @@ -113,6 +118,7 @@ type Icicle struct { Labelssrc string `json:"labelssrc,omitempty"` // Leaf + // arrayOK: false // role: Object Leaf *IcicleLeaf `json:"leaf,omitempty"` @@ -123,6 +129,7 @@ type Icicle struct { Legend String `json:"legend,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *IcicleLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -145,6 +152,7 @@ type Icicle struct { Level interface{} `json:"level,omitempty"` // Marker + // arrayOK: false // role: Object Marker *IcicleMarker `json:"marker,omitempty"` @@ -179,6 +187,7 @@ type Icicle struct { Opacity float64 `json:"opacity,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *IcicleOutsidetextfont `json:"outsidetextfont,omitempty"` @@ -195,10 +204,12 @@ type Icicle struct { Parentssrc string `json:"parentssrc,omitempty"` // Pathbar + // arrayOK: false // role: Object Pathbar *IciclePathbar `json:"pathbar,omitempty"` // Root + // arrayOK: false // role: Object Root *IcicleRoot `json:"root,omitempty"` @@ -209,6 +220,7 @@ type Icicle struct { Sort Bool `json:"sort,omitempty"` // Stream + // arrayOK: false // role: Object Stream *IcicleStream `json:"stream,omitempty"` @@ -219,10 +231,12 @@ type Icicle struct { Text interface{} `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *IcicleTextfont `json:"textfont,omitempty"` // Textinfo + // arrayOK: false // default: %!s() // type: flaglist // Determines which trace information appear on the graph. @@ -254,6 +268,7 @@ type Icicle struct { Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Tiling + // arrayOK: false // role: Object Tiling *IcicleTiling `json:"tiling,omitempty"` @@ -404,6 +419,7 @@ type IcicleHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *IcicleHoverlabelFont `json:"font,omitempty"` @@ -496,6 +512,7 @@ type IcicleLegendgrouptitleFont struct { type IcicleLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *IcicleLegendgrouptitleFont `json:"font,omitempty"` @@ -554,6 +571,7 @@ type IcicleMarkerColorbarTitleFont struct { type IcicleMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *IcicleMarkerColorbarTitleFont `json:"font,omitempty"` @@ -720,6 +738,7 @@ type IcicleMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *IcicleMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -818,6 +837,7 @@ type IcicleMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *IcicleMarkerColorbarTitle `json:"title,omitempty"` @@ -1020,6 +1040,7 @@ type IcicleMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *IcicleMarkerColorbar `json:"colorbar,omitempty"` @@ -1042,10 +1063,12 @@ type IcicleMarker struct { Colorssrc string `json:"colorssrc,omitempty"` // Line + // arrayOK: false // role: Object Line *IcicleMarkerLine `json:"line,omitempty"` // Pattern + // arrayOK: false // role: Object Pattern *IcicleMarkerPattern `json:"pattern,omitempty"` @@ -1160,6 +1183,7 @@ type IciclePathbar struct { Side IciclePathbarSide `json:"side,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *IciclePathbarTextfont `json:"textfont,omitempty"` @@ -1246,6 +1270,7 @@ type IcicleTextfont struct { type IcicleTiling struct { // Flip + // arrayOK: false // default: // type: flaglist // Determines if the positions obtained from solver are flipped on each axis. diff --git a/generated/v2.31.1/graph_objects/image_gen.go b/generated/v2.31.1/graph_objects/image_gen.go index 2735199..d5d8c64 100644 --- a/generated/v2.31.1/graph_objects/image_gen.go +++ b/generated/v2.31.1/graph_objects/image_gen.go @@ -47,6 +47,7 @@ type Image struct { Dy float64 `json:"dy,omitempty"` // Hoverinfo + // arrayOK: true // default: x+y+z+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -59,6 +60,7 @@ type Image struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ImageHoverlabel `json:"hoverlabel,omitempty"` @@ -105,6 +107,7 @@ type Image struct { Legend String `json:"legend,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ImageLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -151,6 +154,7 @@ type Image struct { Source string `json:"source,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ImageStream `json:"stream,omitempty"` @@ -328,6 +332,7 @@ type ImageHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ImageHoverlabelFont `json:"font,omitempty"` @@ -370,6 +375,7 @@ type ImageLegendgrouptitleFont struct { type ImageLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ImageLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.31.1/graph_objects/indicator_gen.go b/generated/v2.31.1/graph_objects/indicator_gen.go index bfe6873..053bf6e 100644 --- a/generated/v2.31.1/graph_objects/indicator_gen.go +++ b/generated/v2.31.1/graph_objects/indicator_gen.go @@ -35,14 +35,17 @@ type Indicator struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Delta + // arrayOK: false // role: Object Delta *IndicatorDelta `json:"delta,omitempty"` // Domain + // arrayOK: false // role: Object Domain *IndicatorDomain `json:"domain,omitempty"` // Gauge + // arrayOK: false // role: Object Gauge *IndicatorGauge `json:"gauge,omitempty"` @@ -65,6 +68,7 @@ type Indicator struct { Legend String `json:"legend,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *IndicatorLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -93,6 +97,7 @@ type Indicator struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: number // type: flaglist // Determines how the value is displayed on the graph. `number` displays the value numerically in text. `delta` displays the difference to a reference value in text. Finally, `gauge` displays the value graphically on an axis. @@ -105,14 +110,17 @@ type Indicator struct { Name string `json:"name,omitempty"` // Number + // arrayOK: false // role: Object Number *IndicatorNumber `json:"number,omitempty"` // Stream + // arrayOK: false // role: Object Stream *IndicatorStream `json:"stream,omitempty"` // Title + // arrayOK: false // role: Object Title *IndicatorTitle `json:"title,omitempty"` @@ -206,14 +214,17 @@ type IndicatorDeltaIncreasing struct { type IndicatorDelta struct { // Decreasing + // arrayOK: false // role: Object Decreasing *IndicatorDeltaDecreasing `json:"decreasing,omitempty"` // Font + // arrayOK: false // role: Object Font *IndicatorDeltaFont `json:"font,omitempty"` // Increasing + // arrayOK: false // role: Object Increasing *IndicatorDeltaIncreasing `json:"increasing,omitempty"` @@ -397,6 +408,7 @@ type IndicatorGaugeAxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *IndicatorGaugeAxisTickfont `json:"tickfont,omitempty"` @@ -513,6 +525,7 @@ type IndicatorGaugeBar struct { Color Color `json:"color,omitempty"` // Line + // arrayOK: false // role: Object Line *IndicatorGaugeBarLine `json:"line,omitempty"` @@ -543,6 +556,7 @@ type IndicatorGaugeThresholdLine struct { type IndicatorGaugeThreshold struct { // Line + // arrayOK: false // role: Object Line *IndicatorGaugeThresholdLine `json:"line,omitempty"` @@ -563,10 +577,12 @@ type IndicatorGaugeThreshold struct { type IndicatorGauge struct { // Axis + // arrayOK: false // role: Object Axis *IndicatorGaugeAxis `json:"axis,omitempty"` // Bar + // arrayOK: false // role: Object Bar *IndicatorGaugeBar `json:"bar,omitempty"` @@ -602,6 +618,7 @@ type IndicatorGauge struct { Steps interface{} `json:"steps,omitempty"` // Threshold + // arrayOK: false // role: Object Threshold *IndicatorGaugeThreshold `json:"threshold,omitempty"` } @@ -632,6 +649,7 @@ type IndicatorLegendgrouptitleFont struct { type IndicatorLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *IndicatorLegendgrouptitleFont `json:"font,omitempty"` @@ -668,6 +686,7 @@ type IndicatorNumberFont struct { type IndicatorNumber struct { // Font + // arrayOK: false // role: Object Font *IndicatorNumberFont `json:"font,omitempty"` @@ -739,6 +758,7 @@ type IndicatorTitle struct { Align IndicatorTitleAlign `json:"align,omitempty"` // Font + // arrayOK: false // role: Object Font *IndicatorTitleFont `json:"font,omitempty"` diff --git a/generated/v2.31.1/graph_objects/isosurface_gen.go b/generated/v2.31.1/graph_objects/isosurface_gen.go index 502dcba..3ce9be8 100644 --- a/generated/v2.31.1/graph_objects/isosurface_gen.go +++ b/generated/v2.31.1/graph_objects/isosurface_gen.go @@ -22,6 +22,7 @@ type Isosurface struct { Autocolorscale Bool `json:"autocolorscale,omitempty"` // Caps + // arrayOK: false // role: Object Caps *IsosurfaceCaps `json:"caps,omitempty"` @@ -56,6 +57,7 @@ type Isosurface struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *IsosurfaceColorbar `json:"colorbar,omitempty"` @@ -66,6 +68,7 @@ type Isosurface struct { Colorscale ColorScale `json:"colorscale,omitempty"` // Contour + // arrayOK: false // role: Object Contour *IsosurfaceContour `json:"contour,omitempty"` @@ -88,6 +91,7 @@ type Isosurface struct { Flatshading Bool `json:"flatshading,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -100,6 +104,7 @@ type Isosurface struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *IsosurfaceHoverlabel `json:"hoverlabel,omitempty"` @@ -164,6 +169,7 @@ type Isosurface struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *IsosurfaceLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -180,10 +186,12 @@ type Isosurface struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Lighting + // arrayOK: false // role: Object Lighting *IsosurfaceLighting `json:"lighting,omitempty"` // Lightposition + // arrayOK: false // role: Object Lightposition *IsosurfaceLightposition `json:"lightposition,omitempty"` @@ -236,18 +244,22 @@ type Isosurface struct { Showscale Bool `json:"showscale,omitempty"` // Slices + // arrayOK: false // role: Object Slices *IsosurfaceSlices `json:"slices,omitempty"` // Spaceframe + // arrayOK: false // role: Object Spaceframe *IsosurfaceSpaceframe `json:"spaceframe,omitempty"` // Stream + // arrayOK: false // role: Object Stream *IsosurfaceStream `json:"stream,omitempty"` // Surface + // arrayOK: false // role: Object Surface *IsosurfaceSurface `json:"surface,omitempty"` @@ -407,14 +419,17 @@ type IsosurfaceCapsZ struct { type IsosurfaceCaps struct { // X + // arrayOK: false // role: Object X *IsosurfaceCapsX `json:"x,omitempty"` // Y + // arrayOK: false // role: Object Y *IsosurfaceCapsY `json:"y,omitempty"` // Z + // arrayOK: false // role: Object Z *IsosurfaceCapsZ `json:"z,omitempty"` } @@ -467,6 +482,7 @@ type IsosurfaceColorbarTitleFont struct { type IsosurfaceColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *IsosurfaceColorbarTitleFont `json:"font,omitempty"` @@ -633,6 +649,7 @@ type IsosurfaceColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *IsosurfaceColorbarTickfont `json:"tickfont,omitempty"` @@ -731,6 +748,7 @@ type IsosurfaceColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *IsosurfaceColorbarTitle `json:"title,omitempty"` @@ -890,6 +908,7 @@ type IsosurfaceHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *IsosurfaceHoverlabelFont `json:"font,omitempty"` @@ -932,6 +951,7 @@ type IsosurfaceLegendgrouptitleFont struct { type IsosurfaceLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *IsosurfaceLegendgrouptitleFont `json:"font,omitempty"` @@ -1098,14 +1118,17 @@ type IsosurfaceSlicesZ struct { type IsosurfaceSlices struct { // X + // arrayOK: false // role: Object X *IsosurfaceSlicesX `json:"x,omitempty"` // Y + // arrayOK: false // role: Object Y *IsosurfaceSlicesY `json:"y,omitempty"` // Z + // arrayOK: false // role: Object Z *IsosurfaceSlicesZ `json:"z,omitempty"` } @@ -1158,6 +1181,7 @@ type IsosurfaceSurface struct { Fill float64 `json:"fill,omitempty"` // Pattern + // arrayOK: false // default: all // type: flaglist // Sets the surface pattern of the iso-surface 3-D sections. The default pattern of the surface is `all` meaning that the rest of surface elements would be shaded. The check options (either 1 or 2) could be used to draw half of the squares on the surface. Using various combinations of capital `A`, `B`, `C`, `D` and `E` may also be used to reduce the number of triangles on the iso-surfaces and creating other patterns of interest. diff --git a/generated/v2.31.1/graph_objects/layout_gen.go b/generated/v2.31.1/graph_objects/layout_gen.go index 952e3f6..51c39b5 100644 --- a/generated/v2.31.1/graph_objects/layout_gen.go +++ b/generated/v2.31.1/graph_objects/layout_gen.go @@ -4,10 +4,12 @@ package grob type Layout struct { // Activeselection + // arrayOK: false // role: Object Activeselection *LayoutActiveselection `json:"activeselection,omitempty"` // Activeshape + // arrayOK: false // role: Object Activeshape *LayoutActiveshape `json:"activeshape,omitempty"` @@ -89,16 +91,19 @@ type Layout struct { Calendar LayoutCalendar `json:"calendar,omitempty"` // Clickmode + // arrayOK: false // default: event // type: flaglist // Determines the mode of single click interactions. *event* is the default value and emits the `plotly_click` event. In addition this mode emits the `plotly_selected` event in drag modes *lasso* and *select*, but with no event data attached (kept for compatibility reasons). The *select* flag enables selecting single data points via click. This mode also supports persistent selections, meaning that pressing Shift while clicking, adds to / subtracts from an existing selection. *select* with `hovermode`: *x* can be confusing, consider explicitly setting `hovermode`: *closest* when using this feature. Selection events are sent accordingly as long as *event* flag is set as well. When the *event* flag is missing, `plotly_click` and `plotly_selected` events are not fired. Clickmode LayoutClickmode `json:"clickmode,omitempty"` // Coloraxis + // arrayOK: false // role: Object Coloraxis *LayoutColoraxis `json:"coloraxis,omitempty"` // Colorscale + // arrayOK: false // role: Object Colorscale *LayoutColorscale `json:"colorscale,omitempty"` @@ -164,6 +169,7 @@ type Layout struct { Extendtreemapcolors Bool `json:"extendtreemapcolors,omitempty"` // Font + // arrayOK: false // role: Object Font *LayoutFont `json:"font,omitempty"` @@ -193,10 +199,12 @@ type Layout struct { Funnelmode LayoutFunnelmode `json:"funnelmode,omitempty"` // Geo + // arrayOK: false // role: Object Geo *LayoutGeo `json:"geo,omitempty"` // Grid + // arrayOK: false // role: Object Grid *LayoutGrid `json:"grid,omitempty"` @@ -231,6 +239,7 @@ type Layout struct { Hoverdistance int64 `json:"hoverdistance,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *LayoutHoverlabel `json:"hoverlabel,omitempty"` @@ -261,14 +270,17 @@ type Layout struct { Images interface{} `json:"images,omitempty"` // Legend + // arrayOK: false // role: Object Legend *LayoutLegend `json:"legend,omitempty"` // Mapbox + // arrayOK: false // role: Object Mapbox *LayoutMapbox `json:"mapbox,omitempty"` // Margin + // arrayOK: false // role: Object Margin *LayoutMargin `json:"margin,omitempty"` @@ -297,14 +309,17 @@ type Layout struct { Minreducedwidth float64 `json:"minreducedwidth,omitempty"` // Modebar + // arrayOK: false // role: Object Modebar *LayoutModebar `json:"modebar,omitempty"` // Newselection + // arrayOK: false // role: Object Newselection *LayoutNewselection `json:"newselection,omitempty"` // Newshape + // arrayOK: false // role: Object Newshape *LayoutNewshape `json:"newshape,omitempty"` @@ -327,6 +342,7 @@ type Layout struct { PlotBgcolor ColorWithColorScale `json:"plot_bgcolor,omitempty"` // Polar + // arrayOK: false // role: Object Polar *LayoutPolar `json:"polar,omitempty"` @@ -344,6 +360,7 @@ type Layout struct { Scattermode LayoutScattermode `json:"scattermode,omitempty"` // Scene + // arrayOK: false // role: Object Scene *LayoutScene `json:"scene,omitempty"` @@ -391,6 +408,7 @@ type Layout struct { Sliders interface{} `json:"sliders,omitempty"` // Smith + // arrayOK: false // role: Object Smith *LayoutSmith `json:"smith,omitempty"` @@ -413,14 +431,17 @@ type Layout struct { Template interface{} `json:"template,omitempty"` // Ternary + // arrayOK: false // role: Object Ternary *LayoutTernary `json:"ternary,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutTitle `json:"title,omitempty"` // Transition + // arrayOK: false // role: Object Transition *LayoutTransition `json:"transition,omitempty"` @@ -437,6 +458,7 @@ type Layout struct { Uirevision interface{} `json:"uirevision,omitempty"` // Uniformtext + // arrayOK: false // role: Object Uniformtext *LayoutUniformtext `json:"uniformtext,omitempty"` @@ -491,10 +513,12 @@ type Layout struct { Width float64 `json:"width,omitempty"` // Xaxis + // arrayOK: false // role: Object Xaxis *LayoutXaxis `json:"xaxis,omitempty"` // Yaxis + // arrayOK: false // role: Object Yaxis *LayoutYaxis `json:"yaxis,omitempty"` @@ -619,6 +643,7 @@ type LayoutColoraxisColorbarTitleFont struct { type LayoutColoraxisColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutColoraxisColorbarTitleFont `json:"font,omitempty"` @@ -785,6 +810,7 @@ type LayoutColoraxisColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutColoraxisColorbarTickfont `json:"tickfont,omitempty"` @@ -883,6 +909,7 @@ type LayoutColoraxisColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutColoraxisColorbarTitle `json:"title,omitempty"` @@ -973,6 +1000,7 @@ type LayoutColoraxis struct { Cmin float64 `json:"cmin,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *LayoutColoraxisColorbar `json:"colorbar,omitempty"` @@ -1213,6 +1241,7 @@ type LayoutGeoProjection struct { Parallels interface{} `json:"parallels,omitempty"` // Rotation + // arrayOK: false // role: Object Rotation *LayoutGeoProjectionRotation `json:"rotation,omitempty"` @@ -1246,6 +1275,7 @@ type LayoutGeo struct { Bgcolor Color `json:"bgcolor,omitempty"` // Center + // arrayOK: false // role: Object Center *LayoutGeoCenter `json:"center,omitempty"` @@ -1274,6 +1304,7 @@ type LayoutGeo struct { Countrywidth float64 `json:"countrywidth,omitempty"` // Domain + // arrayOK: false // role: Object Domain *LayoutGeoDomain `json:"domain,omitempty"` @@ -1309,10 +1340,12 @@ type LayoutGeo struct { Landcolor Color `json:"landcolor,omitempty"` // Lataxis + // arrayOK: false // role: Object Lataxis *LayoutGeoLataxis `json:"lataxis,omitempty"` // Lonaxis + // arrayOK: false // role: Object Lonaxis *LayoutGeoLonaxis `json:"lonaxis,omitempty"` @@ -1323,6 +1356,7 @@ type LayoutGeo struct { Oceancolor Color `json:"oceancolor,omitempty"` // Projection + // arrayOK: false // role: Object Projection *LayoutGeoProjection `json:"projection,omitempty"` @@ -1451,6 +1485,7 @@ type LayoutGrid struct { Columns int64 `json:"columns,omitempty"` // Domain + // arrayOK: false // role: Object Domain *LayoutGridDomain `json:"domain,omitempty"` @@ -1586,10 +1621,12 @@ type LayoutHoverlabel struct { Bordercolor Color `json:"bordercolor,omitempty"` // Font + // arrayOK: false // role: Object Font *LayoutHoverlabelFont `json:"font,omitempty"` // Grouptitlefont + // arrayOK: false // role: Object Grouptitlefont *LayoutHoverlabelGrouptitlefont `json:"grouptitlefont,omitempty"` @@ -1670,6 +1707,7 @@ type LayoutLegendTitleFont struct { type LayoutLegendTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutLegendTitleFont `json:"font,omitempty"` @@ -1722,6 +1760,7 @@ type LayoutLegend struct { Entrywidthmode LayoutLegendEntrywidthmode `json:"entrywidthmode,omitempty"` // Font + // arrayOK: false // role: Object Font *LayoutLegendFont `json:"font,omitempty"` @@ -1733,6 +1772,7 @@ type LayoutLegend struct { Groupclick LayoutLegendGroupclick `json:"groupclick,omitempty"` // Grouptitlefont + // arrayOK: false // role: Object Grouptitlefont *LayoutLegendGrouptitlefont `json:"grouptitlefont,omitempty"` @@ -1777,6 +1817,7 @@ type LayoutLegend struct { Orientation LayoutLegendOrientation `json:"orientation,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutLegendTitle `json:"title,omitempty"` @@ -1787,6 +1828,7 @@ type LayoutLegend struct { Tracegroupgap float64 `json:"tracegroupgap,omitempty"` // Traceorder + // arrayOK: false // default: %!s() // type: flaglist // Determines the order at which the legend items are displayed. If *normal*, the items are displayed top-to-bottom in the same order as the input data. If *reversed*, the items are displayed in the opposite order as *normal*. If *grouped*, the items are displayed in groups (when a trace `legendgroup` is provided). if *grouped+reversed*, the items are displayed in the opposite order as *grouped*. @@ -1940,14 +1982,17 @@ type LayoutMapbox struct { Bearing float64 `json:"bearing,omitempty"` // Bounds + // arrayOK: false // role: Object Bounds *LayoutMapboxBounds `json:"bounds,omitempty"` // Center + // arrayOK: false // role: Object Center *LayoutMapboxCenter `json:"center,omitempty"` // Domain + // arrayOK: false // role: Object Domain *LayoutMapboxDomain `json:"domain,omitempty"` @@ -2107,6 +2152,7 @@ type LayoutNewselectionLine struct { type LayoutNewselection struct { // Line + // arrayOK: false // role: Object Line *LayoutNewselectionLine `json:"line,omitempty"` @@ -2144,6 +2190,7 @@ type LayoutNewshapeLabelFont struct { type LayoutNewshapeLabel struct { // Font + // arrayOK: false // role: Object Font *LayoutNewshapeLabelFont `json:"font,omitempty"` @@ -2219,6 +2266,7 @@ type LayoutNewshapeLegendgrouptitleFont struct { type LayoutNewshapeLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *LayoutNewshapeLegendgrouptitleFont `json:"font,omitempty"` @@ -2275,6 +2323,7 @@ type LayoutNewshape struct { Fillrule LayoutNewshapeFillrule `json:"fillrule,omitempty"` // Label + // arrayOK: false // role: Object Label *LayoutNewshapeLabel `json:"label,omitempty"` @@ -2298,6 +2347,7 @@ type LayoutNewshape struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *LayoutNewshapeLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -2314,6 +2364,7 @@ type LayoutNewshape struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *LayoutNewshapeLine `json:"line,omitempty"` @@ -2564,6 +2615,7 @@ type LayoutPolarAngularaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutPolarAngularaxisTickfont `json:"tickfont,omitempty"` @@ -2783,6 +2835,7 @@ type LayoutPolarRadialaxisTitleFont struct { type LayoutPolarRadialaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutPolarRadialaxisTitleFont `json:"font,omitempty"` @@ -2810,6 +2863,7 @@ type LayoutPolarRadialaxis struct { Autorange LayoutPolarRadialaxisAutorange `json:"autorange,omitempty"` // Autorangeoptions + // arrayOK: false // role: Object Autorangeoptions *LayoutPolarRadialaxisAutorangeoptions `json:"autorangeoptions,omitempty"` @@ -3028,6 +3082,7 @@ type LayoutPolarRadialaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutPolarRadialaxisTickfont `json:"tickfont,omitempty"` @@ -3112,6 +3167,7 @@ type LayoutPolarRadialaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutPolarRadialaxisTitle `json:"title,omitempty"` @@ -3139,6 +3195,7 @@ type LayoutPolarRadialaxis struct { type LayoutPolar struct { // Angularaxis + // arrayOK: false // role: Object Angularaxis *LayoutPolarAngularaxis `json:"angularaxis,omitempty"` @@ -3149,6 +3206,7 @@ type LayoutPolar struct { Bgcolor Color `json:"bgcolor,omitempty"` // Domain + // arrayOK: false // role: Object Domain *LayoutPolarDomain `json:"domain,omitempty"` @@ -3166,6 +3224,7 @@ type LayoutPolar struct { Hole float64 `json:"hole,omitempty"` // Radialaxis + // arrayOK: false // role: Object Radialaxis *LayoutPolarRadialaxis `json:"radialaxis,omitempty"` @@ -3285,18 +3344,22 @@ type LayoutSceneCameraUp struct { type LayoutSceneCamera struct { // Center + // arrayOK: false // role: Object Center *LayoutSceneCameraCenter `json:"center,omitempty"` // Eye + // arrayOK: false // role: Object Eye *LayoutSceneCameraEye `json:"eye,omitempty"` // Projection + // arrayOK: false // role: Object Projection *LayoutSceneCameraProjection `json:"projection,omitempty"` // Up + // arrayOK: false // role: Object Up *LayoutSceneCameraUp `json:"up,omitempty"` } @@ -3417,6 +3480,7 @@ type LayoutSceneXaxisTitleFont struct { type LayoutSceneXaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutSceneXaxisTitleFont `json:"font,omitempty"` @@ -3438,6 +3502,7 @@ type LayoutSceneXaxis struct { Autorange LayoutSceneXaxisAutorange `json:"autorange,omitempty"` // Autorangeoptions + // arrayOK: false // role: Object Autorangeoptions *LayoutSceneXaxisAutorangeoptions `json:"autorangeoptions,omitempty"` @@ -3679,6 +3744,7 @@ type LayoutSceneXaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutSceneXaxisTickfont `json:"tickfont,omitempty"` @@ -3757,6 +3823,7 @@ type LayoutSceneXaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutSceneXaxisTitle `json:"title,omitempty"` @@ -3880,6 +3947,7 @@ type LayoutSceneYaxisTitleFont struct { type LayoutSceneYaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutSceneYaxisTitleFont `json:"font,omitempty"` @@ -3901,6 +3969,7 @@ type LayoutSceneYaxis struct { Autorange LayoutSceneYaxisAutorange `json:"autorange,omitempty"` // Autorangeoptions + // arrayOK: false // role: Object Autorangeoptions *LayoutSceneYaxisAutorangeoptions `json:"autorangeoptions,omitempty"` @@ -4142,6 +4211,7 @@ type LayoutSceneYaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutSceneYaxisTickfont `json:"tickfont,omitempty"` @@ -4220,6 +4290,7 @@ type LayoutSceneYaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutSceneYaxisTitle `json:"title,omitempty"` @@ -4343,6 +4414,7 @@ type LayoutSceneZaxisTitleFont struct { type LayoutSceneZaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutSceneZaxisTitleFont `json:"font,omitempty"` @@ -4364,6 +4436,7 @@ type LayoutSceneZaxis struct { Autorange LayoutSceneZaxisAutorange `json:"autorange,omitempty"` // Autorangeoptions + // arrayOK: false // role: Object Autorangeoptions *LayoutSceneZaxisAutorangeoptions `json:"autorangeoptions,omitempty"` @@ -4605,6 +4678,7 @@ type LayoutSceneZaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutSceneZaxisTickfont `json:"tickfont,omitempty"` @@ -4683,6 +4757,7 @@ type LayoutSceneZaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutSceneZaxisTitle `json:"title,omitempty"` @@ -4735,6 +4810,7 @@ type LayoutScene struct { Aspectmode LayoutSceneAspectmode `json:"aspectmode,omitempty"` // Aspectratio + // arrayOK: false // role: Object Aspectratio *LayoutSceneAspectratio `json:"aspectratio,omitempty"` @@ -4745,10 +4821,12 @@ type LayoutScene struct { Bgcolor Color `json:"bgcolor,omitempty"` // Camera + // arrayOK: false // role: Object Camera *LayoutSceneCamera `json:"camera,omitempty"` // Domain + // arrayOK: false // role: Object Domain *LayoutSceneDomain `json:"domain,omitempty"` @@ -4773,14 +4851,17 @@ type LayoutScene struct { Uirevision interface{} `json:"uirevision,omitempty"` // Xaxis + // arrayOK: false // role: Object Xaxis *LayoutSceneXaxis `json:"xaxis,omitempty"` // Yaxis + // arrayOK: false // role: Object Yaxis *LayoutSceneYaxis `json:"yaxis,omitempty"` // Zaxis + // arrayOK: false // role: Object Zaxis *LayoutSceneZaxis `json:"zaxis,omitempty"` } @@ -4932,6 +5013,7 @@ type LayoutSmithImaginaryaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutSmithImaginaryaxisTickfont `json:"tickfont,omitempty"` @@ -5123,6 +5205,7 @@ type LayoutSmithRealaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutSmithRealaxisTickfont `json:"tickfont,omitempty"` @@ -5192,14 +5275,17 @@ type LayoutSmith struct { Bgcolor Color `json:"bgcolor,omitempty"` // Domain + // arrayOK: false // role: Object Domain *LayoutSmithDomain `json:"domain,omitempty"` // Imaginaryaxis + // arrayOK: false // role: Object Imaginaryaxis *LayoutSmithImaginaryaxis `json:"imaginaryaxis,omitempty"` // Realaxis + // arrayOK: false // role: Object Realaxis *LayoutSmithRealaxis `json:"realaxis,omitempty"` } @@ -5252,6 +5338,7 @@ type LayoutTernaryAaxisTitleFont struct { type LayoutTernaryAaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutTernaryAaxisTitleFont `json:"font,omitempty"` @@ -5415,6 +5502,7 @@ type LayoutTernaryAaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutTernaryAaxisTickfont `json:"tickfont,omitempty"` @@ -5499,6 +5587,7 @@ type LayoutTernaryAaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutTernaryAaxisTitle `json:"title,omitempty"` @@ -5557,6 +5646,7 @@ type LayoutTernaryBaxisTitleFont struct { type LayoutTernaryBaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutTernaryBaxisTitleFont `json:"font,omitempty"` @@ -5720,6 +5810,7 @@ type LayoutTernaryBaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutTernaryBaxisTickfont `json:"tickfont,omitempty"` @@ -5804,6 +5895,7 @@ type LayoutTernaryBaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutTernaryBaxisTitle `json:"title,omitempty"` @@ -5862,6 +5954,7 @@ type LayoutTernaryCaxisTitleFont struct { type LayoutTernaryCaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutTernaryCaxisTitleFont `json:"font,omitempty"` @@ -6025,6 +6118,7 @@ type LayoutTernaryCaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutTernaryCaxisTickfont `json:"tickfont,omitempty"` @@ -6109,6 +6203,7 @@ type LayoutTernaryCaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutTernaryCaxisTitle `json:"title,omitempty"` @@ -6151,10 +6246,12 @@ type LayoutTernaryDomain struct { type LayoutTernary struct { // Aaxis + // arrayOK: false // role: Object Aaxis *LayoutTernaryAaxis `json:"aaxis,omitempty"` // Baxis + // arrayOK: false // role: Object Baxis *LayoutTernaryBaxis `json:"baxis,omitempty"` @@ -6165,10 +6262,12 @@ type LayoutTernary struct { Bgcolor Color `json:"bgcolor,omitempty"` // Caxis + // arrayOK: false // role: Object Caxis *LayoutTernaryCaxis `json:"caxis,omitempty"` // Domain + // arrayOK: false // role: Object Domain *LayoutTernaryDomain `json:"domain,omitempty"` @@ -6245,10 +6344,12 @@ type LayoutTitle struct { Automargin Bool `json:"automargin,omitempty"` // Font + // arrayOK: false // role: Object Font *LayoutTitleFont `json:"font,omitempty"` // Pad + // arrayOK: false // role: Object Pad *LayoutTitlePad `json:"pad,omitempty"` @@ -6526,6 +6627,7 @@ type LayoutXaxisRangeselector struct { Buttons interface{} `json:"buttons,omitempty"` // Font + // arrayOK: false // role: Object Font *LayoutXaxisRangeselectorFont `json:"font,omitempty"` @@ -6625,6 +6727,7 @@ type LayoutXaxisRangeslider struct { Visible Bool `json:"visible,omitempty"` // Yaxis + // arrayOK: false // role: Object Yaxis *LayoutXaxisRangesliderYaxis `json:"yaxis,omitempty"` } @@ -6677,6 +6780,7 @@ type LayoutXaxisTitleFont struct { type LayoutXaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutXaxisTitleFont `json:"font,omitempty"` @@ -6704,6 +6808,7 @@ type LayoutXaxis struct { Anchor LayoutXaxisAnchor `json:"anchor,omitempty"` // Automargin + // arrayOK: false // default: %!s(bool=false) // type: flaglist // Determines whether long tick labels automatically grow the figure margins. @@ -6717,6 +6822,7 @@ type LayoutXaxis struct { Autorange LayoutXaxisAutorange `json:"autorange,omitempty"` // Autorangeoptions + // arrayOK: false // role: Object Autorangeoptions *LayoutXaxisAutorangeoptions `json:"autorangeoptions,omitempty"` @@ -6897,6 +7003,7 @@ type LayoutXaxis struct { Minexponent float64 `json:"minexponent,omitempty"` // Minor + // arrayOK: false // role: Object Minor *LayoutXaxisMinor `json:"minor,omitempty"` @@ -6946,10 +7053,12 @@ type LayoutXaxis struct { Rangemode LayoutXaxisRangemode `json:"rangemode,omitempty"` // Rangeselector + // arrayOK: false // role: Object Rangeselector *LayoutXaxisRangeselector `json:"rangeselector,omitempty"` // Rangeslider + // arrayOK: false // role: Object Rangeslider *LayoutXaxisRangeslider `json:"rangeslider,omitempty"` @@ -7043,6 +7152,7 @@ type LayoutXaxis struct { Spikedash string `json:"spikedash,omitempty"` // Spikemode + // arrayOK: false // default: toaxis // type: flaglist // Determines the drawing mode for the spike line If *toaxis*, the line is drawn from the data point to the axis the series is plotted on. If *across*, the line is drawn across the entire plot area, and supercedes *toaxis*. If *marker*, then a marker dot is drawn on the axis the series is plotted on @@ -7080,6 +7190,7 @@ type LayoutXaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutXaxisTickfont `json:"tickfont,omitempty"` @@ -7192,6 +7303,7 @@ type LayoutXaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutXaxisTitle `json:"title,omitempty"` @@ -7411,6 +7523,7 @@ type LayoutYaxisTitleFont struct { type LayoutYaxisTitle struct { // Font + // arrayOK: false // role: Object Font *LayoutYaxisTitleFont `json:"font,omitempty"` @@ -7438,6 +7551,7 @@ type LayoutYaxis struct { Anchor LayoutYaxisAnchor `json:"anchor,omitempty"` // Automargin + // arrayOK: false // default: %!s(bool=false) // type: flaglist // Determines whether long tick labels automatically grow the figure margins. @@ -7451,6 +7565,7 @@ type LayoutYaxis struct { Autorange LayoutYaxisAutorange `json:"autorange,omitempty"` // Autorangeoptions + // arrayOK: false // role: Object Autorangeoptions *LayoutYaxisAutorangeoptions `json:"autorangeoptions,omitempty"` @@ -7637,6 +7752,7 @@ type LayoutYaxis struct { Minexponent float64 `json:"minexponent,omitempty"` // Minor + // arrayOK: false // role: Object Minor *LayoutYaxisMinor `json:"minor,omitempty"` @@ -7781,6 +7897,7 @@ type LayoutYaxis struct { Spikedash string `json:"spikedash,omitempty"` // Spikemode + // arrayOK: false // default: toaxis // type: flaglist // Determines the drawing mode for the spike line If *toaxis*, the line is drawn from the data point to the axis the series is plotted on. If *across*, the line is drawn across the entire plot area, and supercedes *toaxis*. If *marker*, then a marker dot is drawn on the axis the series is plotted on @@ -7818,6 +7935,7 @@ type LayoutYaxis struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *LayoutYaxisTickfont `json:"tickfont,omitempty"` @@ -7930,6 +8048,7 @@ type LayoutYaxis struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *LayoutYaxisTitle `json:"title,omitempty"` diff --git a/generated/v2.31.1/graph_objects/mesh3d_gen.go b/generated/v2.31.1/graph_objects/mesh3d_gen.go index b01a6ae..a3459df 100644 --- a/generated/v2.31.1/graph_objects/mesh3d_gen.go +++ b/generated/v2.31.1/graph_objects/mesh3d_gen.go @@ -64,6 +64,7 @@ type Mesh3d struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *Mesh3dColorbar `json:"colorbar,omitempty"` @@ -74,6 +75,7 @@ type Mesh3d struct { Colorscale ColorScale `json:"colorscale,omitempty"` // Contour + // arrayOK: false // role: Object Contour *Mesh3dContour `json:"contour,omitempty"` @@ -115,6 +117,7 @@ type Mesh3d struct { Flatshading Bool `json:"flatshading,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -127,6 +130,7 @@ type Mesh3d struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *Mesh3dHoverlabel `json:"hoverlabel,omitempty"` @@ -234,6 +238,7 @@ type Mesh3d struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *Mesh3dLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -250,10 +255,12 @@ type Mesh3d struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Lighting + // arrayOK: false // role: Object Lighting *Mesh3dLighting `json:"lighting,omitempty"` // Lightposition + // arrayOK: false // role: Object Lightposition *Mesh3dLightposition `json:"lightposition,omitempty"` @@ -306,6 +313,7 @@ type Mesh3d struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *Mesh3dStream `json:"stream,omitempty"` @@ -476,6 +484,7 @@ type Mesh3dColorbarTitleFont struct { type Mesh3dColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *Mesh3dColorbarTitleFont `json:"font,omitempty"` @@ -642,6 +651,7 @@ type Mesh3dColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *Mesh3dColorbarTickfont `json:"tickfont,omitempty"` @@ -740,6 +750,7 @@ type Mesh3dColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *Mesh3dColorbarTitle `json:"title,omitempty"` @@ -899,6 +910,7 @@ type Mesh3dHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *Mesh3dHoverlabelFont `json:"font,omitempty"` @@ -941,6 +953,7 @@ type Mesh3dLegendgrouptitleFont struct { type Mesh3dLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *Mesh3dLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.31.1/graph_objects/ohlc_gen.go b/generated/v2.31.1/graph_objects/ohlc_gen.go index 5e62e95..2a61fb6 100644 --- a/generated/v2.31.1/graph_objects/ohlc_gen.go +++ b/generated/v2.31.1/graph_objects/ohlc_gen.go @@ -40,6 +40,7 @@ type Ohlc struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Decreasing + // arrayOK: false // role: Object Decreasing *OhlcDecreasing `json:"decreasing,omitempty"` @@ -56,6 +57,7 @@ type Ohlc struct { Highsrc string `json:"highsrc,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -68,6 +70,7 @@ type Ohlc struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *OhlcHoverlabel `json:"hoverlabel,omitempty"` @@ -96,6 +99,7 @@ type Ohlc struct { Idssrc string `json:"idssrc,omitempty"` // Increasing + // arrayOK: false // role: Object Increasing *OhlcIncreasing `json:"increasing,omitempty"` @@ -112,6 +116,7 @@ type Ohlc struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *OhlcLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -128,6 +133,7 @@ type Ohlc struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *OhlcLine `json:"line,omitempty"` @@ -192,6 +198,7 @@ type Ohlc struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *OhlcStream `json:"stream,omitempty"` @@ -333,6 +340,7 @@ type OhlcDecreasingLine struct { type OhlcDecreasing struct { // Line + // arrayOK: false // role: Object Line *OhlcDecreasingLine `json:"line,omitempty"` } @@ -418,6 +426,7 @@ type OhlcHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *OhlcHoverlabelFont `json:"font,omitempty"` @@ -466,6 +475,7 @@ type OhlcIncreasingLine struct { type OhlcIncreasing struct { // Line + // arrayOK: false // role: Object Line *OhlcIncreasingLine `json:"line,omitempty"` } @@ -496,6 +506,7 @@ type OhlcLegendgrouptitleFont struct { type OhlcLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *OhlcLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.31.1/graph_objects/parcats_gen.go b/generated/v2.31.1/graph_objects/parcats_gen.go index 12d3b82..86f313e 100644 --- a/generated/v2.31.1/graph_objects/parcats_gen.go +++ b/generated/v2.31.1/graph_objects/parcats_gen.go @@ -47,10 +47,12 @@ type Parcats struct { Dimensions interface{} `json:"dimensions,omitempty"` // Domain + // arrayOK: false // role: Object Domain *ParcatsDomain `json:"domain,omitempty"` // Hoverinfo + // arrayOK: false // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -70,10 +72,12 @@ type Parcats struct { Hovertemplate string `json:"hovertemplate,omitempty"` // Labelfont + // arrayOK: false // role: Object Labelfont *ParcatsLabelfont `json:"labelfont,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ParcatsLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -84,6 +88,7 @@ type Parcats struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ParcatsLine `json:"line,omitempty"` @@ -113,10 +118,12 @@ type Parcats struct { Sortpaths ParcatsSortpaths `json:"sortpaths,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ParcatsStream `json:"stream,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ParcatsTickfont `json:"tickfont,omitempty"` @@ -222,6 +229,7 @@ type ParcatsLegendgrouptitleFont struct { type ParcatsLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ParcatsLegendgrouptitleFont `json:"font,omitempty"` @@ -280,6 +288,7 @@ type ParcatsLineColorbarTitleFont struct { type ParcatsLineColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ParcatsLineColorbarTitleFont `json:"font,omitempty"` @@ -446,6 +455,7 @@ type ParcatsLineColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ParcatsLineColorbarTickfont `json:"tickfont,omitempty"` @@ -544,6 +554,7 @@ type ParcatsLineColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ParcatsLineColorbarTitle `json:"title,omitempty"` @@ -646,6 +657,7 @@ type ParcatsLine struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ParcatsLineColorbar `json:"colorbar,omitempty"` diff --git a/generated/v2.31.1/graph_objects/parcoords_gen.go b/generated/v2.31.1/graph_objects/parcoords_gen.go index 39411ca..abf7c48 100644 --- a/generated/v2.31.1/graph_objects/parcoords_gen.go +++ b/generated/v2.31.1/graph_objects/parcoords_gen.go @@ -34,6 +34,7 @@ type Parcoords struct { Dimensions interface{} `json:"dimensions,omitempty"` // Domain + // arrayOK: false // role: Object Domain *ParcoordsDomain `json:"domain,omitempty"` @@ -56,6 +57,7 @@ type Parcoords struct { Labelangle float64 `json:"labelangle,omitempty"` // Labelfont + // arrayOK: false // role: Object Labelfont *ParcoordsLabelfont `json:"labelfont,omitempty"` @@ -73,6 +75,7 @@ type Parcoords struct { Legend String `json:"legend,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ParcoordsLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -89,6 +92,7 @@ type Parcoords struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ParcoordsLine `json:"line,omitempty"` @@ -111,14 +115,17 @@ type Parcoords struct { Name string `json:"name,omitempty"` // Rangefont + // arrayOK: false // role: Object Rangefont *ParcoordsRangefont `json:"rangefont,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ParcoordsStream `json:"stream,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ParcoordsTickfont `json:"tickfont,omitempty"` @@ -141,6 +148,7 @@ type Parcoords struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ParcoordsUnselected `json:"unselected,omitempty"` @@ -228,6 +236,7 @@ type ParcoordsLegendgrouptitleFont struct { type ParcoordsLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ParcoordsLegendgrouptitleFont `json:"font,omitempty"` @@ -286,6 +295,7 @@ type ParcoordsLineColorbarTitleFont struct { type ParcoordsLineColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ParcoordsLineColorbarTitleFont `json:"font,omitempty"` @@ -452,6 +462,7 @@ type ParcoordsLineColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ParcoordsLineColorbarTickfont `json:"tickfont,omitempty"` @@ -550,6 +561,7 @@ type ParcoordsLineColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ParcoordsLineColorbarTitle `json:"title,omitempty"` @@ -652,6 +664,7 @@ type ParcoordsLine struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ParcoordsLineColorbar `json:"colorbar,omitempty"` @@ -760,6 +773,7 @@ type ParcoordsUnselectedLine struct { type ParcoordsUnselected struct { // Line + // arrayOK: false // role: Object Line *ParcoordsUnselectedLine `json:"line,omitempty"` } diff --git a/generated/v2.31.1/graph_objects/pie_gen.go b/generated/v2.31.1/graph_objects/pie_gen.go index 1167ebe..93021e5 100644 --- a/generated/v2.31.1/graph_objects/pie_gen.go +++ b/generated/v2.31.1/graph_objects/pie_gen.go @@ -47,6 +47,7 @@ type Pie struct { Dlabel float64 `json:"dlabel,omitempty"` // Domain + // arrayOK: false // role: Object Domain *PieDomain `json:"domain,omitempty"` @@ -57,6 +58,7 @@ type Pie struct { Hole float64 `json:"hole,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -69,6 +71,7 @@ type Pie struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *PieHoverlabel `json:"hoverlabel,omitempty"` @@ -109,6 +112,7 @@ type Pie struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *PieInsidetextfont `json:"insidetextfont,omitempty"` @@ -150,6 +154,7 @@ type Pie struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *PieLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -166,6 +171,7 @@ type Pie struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *PieMarker `json:"marker,omitempty"` @@ -194,6 +200,7 @@ type Pie struct { Opacity float64 `json:"opacity,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *PieOutsidetextfont `json:"outsidetextfont,omitempty"` @@ -234,6 +241,7 @@ type Pie struct { Sort Bool `json:"sort,omitempty"` // Stream + // arrayOK: false // role: Object Stream *PieStream `json:"stream,omitempty"` @@ -244,10 +252,12 @@ type Pie struct { Text interface{} `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *PieTextfont `json:"textfont,omitempty"` // Textinfo + // arrayOK: false // default: %!s() // type: flaglist // Determines which trace information appear on the graph. @@ -285,6 +295,7 @@ type Pie struct { Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Title + // arrayOK: false // role: Object Title *PieTitle `json:"title,omitempty"` @@ -435,6 +446,7 @@ type PieHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *PieHoverlabelFont `json:"font,omitempty"` @@ -517,6 +529,7 @@ type PieLegendgrouptitleFont struct { type PieLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *PieLegendgrouptitleFont `json:"font,omitempty"` @@ -649,10 +662,12 @@ type PieMarker struct { Colorssrc string `json:"colorssrc,omitempty"` // Line + // arrayOK: false // role: Object Line *PieMarkerLine `json:"line,omitempty"` // Pattern + // arrayOK: false // role: Object Pattern *PieMarkerPattern `json:"pattern,omitempty"` } @@ -797,6 +812,7 @@ type PieTitleFont struct { type PieTitle struct { // Font + // arrayOK: false // role: Object Font *PieTitleFont `json:"font,omitempty"` diff --git a/generated/v2.31.1/graph_objects/pointcloud_gen.go b/generated/v2.31.1/graph_objects/pointcloud_gen.go index bd6d23b..c99e053 100644 --- a/generated/v2.31.1/graph_objects/pointcloud_gen.go +++ b/generated/v2.31.1/graph_objects/pointcloud_gen.go @@ -28,6 +28,7 @@ type Pointcloud struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -40,6 +41,7 @@ type Pointcloud struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *PointcloudHoverlabel `json:"hoverlabel,omitempty"` @@ -80,6 +82,7 @@ type Pointcloud struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *PointcloudLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -96,6 +99,7 @@ type Pointcloud struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *PointcloudMarker `json:"marker,omitempty"` @@ -130,6 +134,7 @@ type Pointcloud struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *PointcloudStream `json:"stream,omitempty"` @@ -318,6 +323,7 @@ type PointcloudHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *PointcloudHoverlabelFont `json:"font,omitempty"` @@ -360,6 +366,7 @@ type PointcloudLegendgrouptitleFont struct { type PointcloudLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *PointcloudLegendgrouptitleFont `json:"font,omitempty"` @@ -396,6 +403,7 @@ type PointcloudMarker struct { Blend Bool `json:"blend,omitempty"` // Border + // arrayOK: false // role: Object Border *PointcloudMarkerBorder `json:"border,omitempty"` diff --git a/generated/v2.31.1/graph_objects/sankey_gen.go b/generated/v2.31.1/graph_objects/sankey_gen.go index c869a9a..3a4b15a 100644 --- a/generated/v2.31.1/graph_objects/sankey_gen.go +++ b/generated/v2.31.1/graph_objects/sankey_gen.go @@ -35,16 +35,19 @@ type Sankey struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Domain + // arrayOK: false // role: Object Domain *SankeyDomain `json:"domain,omitempty"` // Hoverinfo + // arrayOK: false // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. Note that this attribute is superseded by `node.hoverinfo` and `node.hoverinfo` for nodes and links respectively. Hoverinfo SankeyHoverinfo `json:"hoverinfo,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *SankeyHoverlabel `json:"hoverlabel,omitempty"` @@ -67,6 +70,7 @@ type Sankey struct { Legend String `json:"legend,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *SankeyLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -83,6 +87,7 @@ type Sankey struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Link + // arrayOK: false // role: Object Link *SankeyLink `json:"link,omitempty"` @@ -105,6 +110,7 @@ type Sankey struct { Name string `json:"name,omitempty"` // Node + // arrayOK: false // role: Object Node *SankeyNode `json:"node,omitempty"` @@ -122,10 +128,12 @@ type Sankey struct { Selectedpoints interface{} `json:"selectedpoints,omitempty"` // Stream + // arrayOK: false // role: Object Stream *SankeyStream `json:"stream,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *SankeyTextfont `json:"textfont,omitempty"` @@ -270,6 +278,7 @@ type SankeyHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *SankeyHoverlabelFont `json:"font,omitempty"` @@ -312,6 +321,7 @@ type SankeyLegendgrouptitleFont struct { type SankeyLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *SankeyLegendgrouptitleFont `json:"font,omitempty"` @@ -403,6 +413,7 @@ type SankeyLinkHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *SankeyLinkHoverlabelFont `json:"font,omitempty"` @@ -506,6 +517,7 @@ type SankeyLink struct { Hoverinfo SankeyLinkHoverinfo `json:"hoverinfo,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *SankeyLinkHoverlabel `json:"hoverlabel,omitempty"` @@ -534,6 +546,7 @@ type SankeyLink struct { Labelsrc string `json:"labelsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *SankeyLinkLine `json:"line,omitempty"` @@ -655,6 +668,7 @@ type SankeyNodeHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *SankeyNodeHoverlabelFont `json:"font,omitempty"` @@ -747,6 +761,7 @@ type SankeyNode struct { Hoverinfo SankeyNodeHoverinfo `json:"hoverinfo,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *SankeyNodeHoverlabel `json:"hoverlabel,omitempty"` @@ -775,6 +790,7 @@ type SankeyNode struct { Labelsrc string `json:"labelsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *SankeyNodeLine `json:"line,omitempty"` diff --git a/generated/v2.31.1/graph_objects/scatter3d_gen.go b/generated/v2.31.1/graph_objects/scatter3d_gen.go index ddd44b4..b1798dc 100644 --- a/generated/v2.31.1/graph_objects/scatter3d_gen.go +++ b/generated/v2.31.1/graph_objects/scatter3d_gen.go @@ -34,18 +34,22 @@ type Scatter3d struct { Customdatasrc string `json:"customdatasrc,omitempty"` // ErrorX + // arrayOK: false // role: Object ErrorX *Scatter3dErrorX `json:"error_x,omitempty"` // ErrorY + // arrayOK: false // role: Object ErrorY *Scatter3dErrorY `json:"error_y,omitempty"` // ErrorZ + // arrayOK: false // role: Object ErrorZ *Scatter3dErrorZ `json:"error_z,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -58,6 +62,7 @@ type Scatter3d struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *Scatter3dHoverlabel `json:"hoverlabel,omitempty"` @@ -110,6 +115,7 @@ type Scatter3d struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *Scatter3dLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -126,10 +132,12 @@ type Scatter3d struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *Scatter3dLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *Scatter3dMarker `json:"marker,omitempty"` @@ -146,6 +154,7 @@ type Scatter3d struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: lines+markers // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -164,6 +173,7 @@ type Scatter3d struct { Opacity float64 `json:"opacity,omitempty"` // Projection + // arrayOK: false // role: Object Projection *Scatter3dProjection `json:"projection,omitempty"` @@ -180,6 +190,7 @@ type Scatter3d struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *Scatter3dStream `json:"stream,omitempty"` @@ -203,6 +214,7 @@ type Scatter3d struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *Scatter3dTextfont `json:"textfont,omitempty"` @@ -698,6 +710,7 @@ type Scatter3dHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *Scatter3dHoverlabelFont `json:"font,omitempty"` @@ -740,6 +753,7 @@ type Scatter3dLegendgrouptitleFont struct { type Scatter3dLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *Scatter3dLegendgrouptitleFont `json:"font,omitempty"` @@ -798,6 +812,7 @@ type Scatter3dLineColorbarTitleFont struct { type Scatter3dLineColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *Scatter3dLineColorbarTitleFont `json:"font,omitempty"` @@ -964,6 +979,7 @@ type Scatter3dLineColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *Scatter3dLineColorbarTickfont `json:"tickfont,omitempty"` @@ -1062,6 +1078,7 @@ type Scatter3dLineColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *Scatter3dLineColorbarTitle `json:"title,omitempty"` @@ -1164,6 +1181,7 @@ type Scatter3dLine struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *Scatter3dLineColorbar `json:"colorbar,omitempty"` @@ -1253,6 +1271,7 @@ type Scatter3dMarkerColorbarTitleFont struct { type Scatter3dMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *Scatter3dMarkerColorbarTitleFont `json:"font,omitempty"` @@ -1419,6 +1438,7 @@ type Scatter3dMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *Scatter3dMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -1517,6 +1537,7 @@ type Scatter3dMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *Scatter3dMarkerColorbarTitle `json:"title,omitempty"` @@ -1689,6 +1710,7 @@ type Scatter3dMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *Scatter3dMarkerColorbar `json:"colorbar,omitempty"` @@ -1705,6 +1727,7 @@ type Scatter3dMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *Scatter3dMarkerLine `json:"line,omitempty"` @@ -1841,14 +1864,17 @@ type Scatter3dProjectionZ struct { type Scatter3dProjection struct { // X + // arrayOK: false // role: Object X *Scatter3dProjectionX `json:"x,omitempty"` // Y + // arrayOK: false // role: Object Y *Scatter3dProjectionY `json:"y,omitempty"` // Z + // arrayOK: false // role: Object Z *Scatter3dProjectionZ `json:"z,omitempty"` } diff --git a/generated/v2.31.1/graph_objects/scatter_gen.go b/generated/v2.31.1/graph_objects/scatter_gen.go index c52df90..0bea0de 100644 --- a/generated/v2.31.1/graph_objects/scatter_gen.go +++ b/generated/v2.31.1/graph_objects/scatter_gen.go @@ -58,10 +58,12 @@ type Scatter struct { Dy float64 `json:"dy,omitempty"` // ErrorX + // arrayOK: false // role: Object ErrorX *ScatterErrorX `json:"error_x,omitempty"` // ErrorY + // arrayOK: false // role: Object ErrorY *ScatterErrorY `json:"error_y,omitempty"` @@ -79,10 +81,12 @@ type Scatter struct { Fillcolor Color `json:"fillcolor,omitempty"` // Fillgradient + // arrayOK: false // role: Object Fillgradient *ScatterFillgradient `json:"fillgradient,omitempty"` // Fillpattern + // arrayOK: false // role: Object Fillpattern *ScatterFillpattern `json:"fillpattern,omitempty"` @@ -94,6 +98,7 @@ type Scatter struct { Groupnorm ScatterGroupnorm `json:"groupnorm,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -106,10 +111,12 @@ type Scatter struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScatterHoverlabel `json:"hoverlabel,omitempty"` // Hoveron + // arrayOK: false // default: %!s() // type: flaglist // Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is *toself* or *tonext* and there are no markers or text, then the default is *fills*, otherwise it is *points*. @@ -164,6 +171,7 @@ type Scatter struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScatterLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -180,10 +188,12 @@ type Scatter struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScatterMarker `json:"marker,omitempty"` @@ -200,6 +210,7 @@ type Scatter struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: %!s() // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -231,6 +242,7 @@ type Scatter struct { Orientation ScatterOrientation `json:"orientation,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScatterSelected `json:"selected,omitempty"` @@ -260,6 +272,7 @@ type Scatter struct { Stackgroup string `json:"stackgroup,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScatterStream `json:"stream,omitempty"` @@ -270,6 +283,7 @@ type Scatter struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterTextfont `json:"textfont,omitempty"` @@ -323,6 +337,7 @@ type Scatter struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScatterUnselected `json:"unselected,omitempty"` @@ -824,6 +839,7 @@ type ScatterHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScatterHoverlabelFont `json:"font,omitempty"` @@ -866,6 +882,7 @@ type ScatterLegendgrouptitleFont struct { type ScatterLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScatterLegendgrouptitleFont `json:"font,omitempty"` @@ -977,6 +994,7 @@ type ScatterMarkerColorbarTitleFont struct { type ScatterMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScatterMarkerColorbarTitleFont `json:"font,omitempty"` @@ -1143,6 +1161,7 @@ type ScatterMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScatterMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -1241,6 +1260,7 @@ type ScatterMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScatterMarkerColorbarTitle `json:"title,omitempty"` @@ -1467,6 +1487,7 @@ type ScatterMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScatterMarkerColorbar `json:"colorbar,omitempty"` @@ -1483,10 +1504,12 @@ type ScatterMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Gradient + // arrayOK: false // role: Object Gradient *ScatterMarkerGradient `json:"gradient,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterMarkerLine `json:"line,omitempty"` @@ -1613,10 +1636,12 @@ type ScatterSelectedTextfont struct { type ScatterSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterSelectedTextfont `json:"textfont,omitempty"` } @@ -1713,10 +1738,12 @@ type ScatterUnselectedTextfont struct { type ScatterUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.31.1/graph_objects/scattercarpet_gen.go b/generated/v2.31.1/graph_objects/scattercarpet_gen.go index 3f14d37..390eac3 100644 --- a/generated/v2.31.1/graph_objects/scattercarpet_gen.go +++ b/generated/v2.31.1/graph_objects/scattercarpet_gen.go @@ -77,6 +77,7 @@ type Scattercarpet struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -89,10 +90,12 @@ type Scattercarpet struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScattercarpetHoverlabel `json:"hoverlabel,omitempty"` // Hoveron + // arrayOK: false // default: %!s() // type: flaglist // Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is *toself* or *tonext* and there are no markers or text, then the default is *fills*, otherwise it is *points*. @@ -147,6 +150,7 @@ type Scattercarpet struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScattercarpetLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -163,10 +167,12 @@ type Scattercarpet struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScattercarpetLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScattercarpetMarker `json:"marker,omitempty"` @@ -183,6 +189,7 @@ type Scattercarpet struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: markers // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -201,6 +208,7 @@ type Scattercarpet struct { Opacity float64 `json:"opacity,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScattercarpetSelected `json:"selected,omitempty"` @@ -217,6 +225,7 @@ type Scattercarpet struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScattercarpetStream `json:"stream,omitempty"` @@ -227,6 +236,7 @@ type Scattercarpet struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattercarpetTextfont `json:"textfont,omitempty"` @@ -280,6 +290,7 @@ type Scattercarpet struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScattercarpetUnselected `json:"unselected,omitempty"` @@ -390,6 +401,7 @@ type ScattercarpetHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScattercarpetHoverlabelFont `json:"font,omitempty"` @@ -432,6 +444,7 @@ type ScattercarpetLegendgrouptitleFont struct { type ScattercarpetLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScattercarpetLegendgrouptitleFont `json:"font,omitempty"` @@ -537,6 +550,7 @@ type ScattercarpetMarkerColorbarTitleFont struct { type ScattercarpetMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScattercarpetMarkerColorbarTitleFont `json:"font,omitempty"` @@ -703,6 +717,7 @@ type ScattercarpetMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScattercarpetMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -801,6 +816,7 @@ type ScattercarpetMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScattercarpetMarkerColorbarTitle `json:"title,omitempty"` @@ -1027,6 +1043,7 @@ type ScattercarpetMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScattercarpetMarkerColorbar `json:"colorbar,omitempty"` @@ -1043,10 +1060,12 @@ type ScattercarpetMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Gradient + // arrayOK: false // role: Object Gradient *ScattercarpetMarkerGradient `json:"gradient,omitempty"` // Line + // arrayOK: false // role: Object Line *ScattercarpetMarkerLine `json:"line,omitempty"` @@ -1173,10 +1192,12 @@ type ScattercarpetSelectedTextfont struct { type ScattercarpetSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScattercarpetSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattercarpetSelectedTextfont `json:"textfont,omitempty"` } @@ -1273,10 +1294,12 @@ type ScattercarpetUnselectedTextfont struct { type ScattercarpetUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScattercarpetUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattercarpetUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.31.1/graph_objects/scattergeo_gen.go b/generated/v2.31.1/graph_objects/scattergeo_gen.go index d03b689..eb616e6 100644 --- a/generated/v2.31.1/graph_objects/scattergeo_gen.go +++ b/generated/v2.31.1/graph_objects/scattergeo_gen.go @@ -65,6 +65,7 @@ type Scattergeo struct { Geojson interface{} `json:"geojson,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -77,6 +78,7 @@ type Scattergeo struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScattergeoHoverlabel `json:"hoverlabel,omitempty"` @@ -141,6 +143,7 @@ type Scattergeo struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScattergeoLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -157,6 +160,7 @@ type Scattergeo struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScattergeoLine `json:"line,omitempty"` @@ -192,6 +196,7 @@ type Scattergeo struct { Lonsrc string `json:"lonsrc,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScattergeoMarker `json:"marker,omitempty"` @@ -208,6 +213,7 @@ type Scattergeo struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: markers // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -226,6 +232,7 @@ type Scattergeo struct { Opacity float64 `json:"opacity,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScattergeoSelected `json:"selected,omitempty"` @@ -242,6 +249,7 @@ type Scattergeo struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScattergeoStream `json:"stream,omitempty"` @@ -252,6 +260,7 @@ type Scattergeo struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattergeoTextfont `json:"textfont,omitempty"` @@ -305,6 +314,7 @@ type Scattergeo struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScattergeoUnselected `json:"unselected,omitempty"` @@ -397,6 +407,7 @@ type ScattergeoHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScattergeoHoverlabelFont `json:"font,omitempty"` @@ -439,6 +450,7 @@ type ScattergeoLegendgrouptitleFont struct { type ScattergeoLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScattergeoLegendgrouptitleFont `json:"font,omitempty"` @@ -519,6 +531,7 @@ type ScattergeoMarkerColorbarTitleFont struct { type ScattergeoMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScattergeoMarkerColorbarTitleFont `json:"font,omitempty"` @@ -685,6 +698,7 @@ type ScattergeoMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScattergeoMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -783,6 +797,7 @@ type ScattergeoMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScattergeoMarkerColorbarTitle `json:"title,omitempty"` @@ -1009,6 +1024,7 @@ type ScattergeoMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScattergeoMarkerColorbar `json:"colorbar,omitempty"` @@ -1025,10 +1041,12 @@ type ScattergeoMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Gradient + // arrayOK: false // role: Object Gradient *ScattergeoMarkerGradient `json:"gradient,omitempty"` // Line + // arrayOK: false // role: Object Line *ScattergeoMarkerLine `json:"line,omitempty"` @@ -1149,10 +1167,12 @@ type ScattergeoSelectedTextfont struct { type ScattergeoSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScattergeoSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattergeoSelectedTextfont `json:"textfont,omitempty"` } @@ -1249,10 +1269,12 @@ type ScattergeoUnselectedTextfont struct { type ScattergeoUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScattergeoUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattergeoUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.31.1/graph_objects/scattergl_gen.go b/generated/v2.31.1/graph_objects/scattergl_gen.go index 6b00f27..d45dff5 100644 --- a/generated/v2.31.1/graph_objects/scattergl_gen.go +++ b/generated/v2.31.1/graph_objects/scattergl_gen.go @@ -46,10 +46,12 @@ type Scattergl struct { Dy float64 `json:"dy,omitempty"` // ErrorX + // arrayOK: false // role: Object ErrorX *ScatterglErrorX `json:"error_x,omitempty"` // ErrorY + // arrayOK: false // role: Object ErrorY *ScatterglErrorY `json:"error_y,omitempty"` @@ -67,6 +69,7 @@ type Scattergl struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -79,6 +82,7 @@ type Scattergl struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScatterglHoverlabel `json:"hoverlabel,omitempty"` @@ -131,6 +135,7 @@ type Scattergl struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScatterglLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -147,10 +152,12 @@ type Scattergl struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterglLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScatterglMarker `json:"marker,omitempty"` @@ -167,6 +174,7 @@ type Scattergl struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: %!s() // type: flaglist // Determines the drawing mode for this scatter trace. @@ -185,6 +193,7 @@ type Scattergl struct { Opacity float64 `json:"opacity,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScatterglSelected `json:"selected,omitempty"` @@ -201,6 +210,7 @@ type Scattergl struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScatterglStream `json:"stream,omitempty"` @@ -211,6 +221,7 @@ type Scattergl struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterglTextfont `json:"textfont,omitempty"` @@ -264,6 +275,7 @@ type Scattergl struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScatterglUnselected `json:"unselected,omitempty"` @@ -652,6 +664,7 @@ type ScatterglHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScatterglHoverlabelFont `json:"font,omitempty"` @@ -694,6 +707,7 @@ type ScatterglLegendgrouptitleFont struct { type ScatterglLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScatterglLegendgrouptitleFont `json:"font,omitempty"` @@ -782,6 +796,7 @@ type ScatterglMarkerColorbarTitleFont struct { type ScatterglMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScatterglMarkerColorbarTitleFont `json:"font,omitempty"` @@ -948,6 +963,7 @@ type ScatterglMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScatterglMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -1046,6 +1062,7 @@ type ScatterglMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScatterglMarkerColorbarTitle `json:"title,omitempty"` @@ -1236,6 +1253,7 @@ type ScatterglMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScatterglMarkerColorbar `json:"colorbar,omitempty"` @@ -1252,6 +1270,7 @@ type ScatterglMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterglMarkerLine `json:"line,omitempty"` @@ -1360,10 +1379,12 @@ type ScatterglSelectedTextfont struct { type ScatterglSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterglSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterglSelectedTextfont `json:"textfont,omitempty"` } @@ -1460,10 +1481,12 @@ type ScatterglUnselectedTextfont struct { type ScatterglUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterglUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterglUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.31.1/graph_objects/scattermapbox_gen.go b/generated/v2.31.1/graph_objects/scattermapbox_gen.go index 7a03b64..aa1a94f 100644 --- a/generated/v2.31.1/graph_objects/scattermapbox_gen.go +++ b/generated/v2.31.1/graph_objects/scattermapbox_gen.go @@ -22,6 +22,7 @@ type Scattermapbox struct { Below string `json:"below,omitempty"` // Cluster + // arrayOK: false // role: Object Cluster *ScattermapboxCluster `json:"cluster,omitempty"` @@ -57,6 +58,7 @@ type Scattermapbox struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -69,6 +71,7 @@ type Scattermapbox struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScattermapboxHoverlabel `json:"hoverlabel,omitempty"` @@ -133,6 +136,7 @@ type Scattermapbox struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScattermapboxLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -149,6 +153,7 @@ type Scattermapbox struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScattermapboxLine `json:"line,omitempty"` @@ -165,6 +170,7 @@ type Scattermapbox struct { Lonsrc string `json:"lonsrc,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScattermapboxMarker `json:"marker,omitempty"` @@ -181,6 +187,7 @@ type Scattermapbox struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: markers // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. @@ -199,6 +206,7 @@ type Scattermapbox struct { Opacity float64 `json:"opacity,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScattermapboxSelected `json:"selected,omitempty"` @@ -215,6 +223,7 @@ type Scattermapbox struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScattermapboxStream `json:"stream,omitempty"` @@ -231,6 +240,7 @@ type Scattermapbox struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattermapboxTextfont `json:"textfont,omitempty"` @@ -278,6 +288,7 @@ type Scattermapbox struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScattermapboxUnselected `json:"unselected,omitempty"` @@ -434,6 +445,7 @@ type ScattermapboxHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScattermapboxHoverlabelFont `json:"font,omitempty"` @@ -476,6 +488,7 @@ type ScattermapboxLegendgrouptitleFont struct { type ScattermapboxLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScattermapboxLegendgrouptitleFont `json:"font,omitempty"` @@ -550,6 +563,7 @@ type ScattermapboxMarkerColorbarTitleFont struct { type ScattermapboxMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScattermapboxMarkerColorbarTitleFont `json:"font,omitempty"` @@ -716,6 +730,7 @@ type ScattermapboxMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScattermapboxMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -814,6 +829,7 @@ type ScattermapboxMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScattermapboxMarkerColorbarTitle `json:"title,omitempty"` @@ -934,6 +950,7 @@ type ScattermapboxMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScattermapboxMarkerColorbar `json:"colorbar,omitempty"` @@ -1043,6 +1060,7 @@ type ScattermapboxSelectedMarker struct { type ScattermapboxSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScattermapboxSelectedMarker `json:"marker,omitempty"` } @@ -1111,6 +1129,7 @@ type ScattermapboxUnselectedMarker struct { type ScattermapboxUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScattermapboxUnselectedMarker `json:"marker,omitempty"` } diff --git a/generated/v2.31.1/graph_objects/scatterpolar_gen.go b/generated/v2.31.1/graph_objects/scatterpolar_gen.go index 176c0e8..5e06795 100644 --- a/generated/v2.31.1/graph_objects/scatterpolar_gen.go +++ b/generated/v2.31.1/graph_objects/scatterpolar_gen.go @@ -65,6 +65,7 @@ type Scatterpolar struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -77,10 +78,12 @@ type Scatterpolar struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScatterpolarHoverlabel `json:"hoverlabel,omitempty"` // Hoveron + // arrayOK: false // default: %!s() // type: flaglist // Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is *toself* or *tonext* and there are no markers or text, then the default is *fills*, otherwise it is *points*. @@ -135,6 +138,7 @@ type Scatterpolar struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScatterpolarLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -151,10 +155,12 @@ type Scatterpolar struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterpolarLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScatterpolarMarker `json:"marker,omitempty"` @@ -171,6 +177,7 @@ type Scatterpolar struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: %!s() // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -207,6 +214,7 @@ type Scatterpolar struct { Rsrc string `json:"rsrc,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScatterpolarSelected `json:"selected,omitempty"` @@ -223,6 +231,7 @@ type Scatterpolar struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScatterpolarStream `json:"stream,omitempty"` @@ -239,6 +248,7 @@ type Scatterpolar struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterpolarTextfont `json:"textfont,omitempty"` @@ -317,6 +327,7 @@ type Scatterpolar struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScatterpolarUnselected `json:"unselected,omitempty"` @@ -409,6 +420,7 @@ type ScatterpolarHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScatterpolarHoverlabelFont `json:"font,omitempty"` @@ -451,6 +463,7 @@ type ScatterpolarLegendgrouptitleFont struct { type ScatterpolarLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScatterpolarLegendgrouptitleFont `json:"font,omitempty"` @@ -556,6 +569,7 @@ type ScatterpolarMarkerColorbarTitleFont struct { type ScatterpolarMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScatterpolarMarkerColorbarTitleFont `json:"font,omitempty"` @@ -722,6 +736,7 @@ type ScatterpolarMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScatterpolarMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -820,6 +835,7 @@ type ScatterpolarMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScatterpolarMarkerColorbarTitle `json:"title,omitempty"` @@ -1046,6 +1062,7 @@ type ScatterpolarMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScatterpolarMarkerColorbar `json:"colorbar,omitempty"` @@ -1062,10 +1079,12 @@ type ScatterpolarMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Gradient + // arrayOK: false // role: Object Gradient *ScatterpolarMarkerGradient `json:"gradient,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterpolarMarkerLine `json:"line,omitempty"` @@ -1192,10 +1211,12 @@ type ScatterpolarSelectedTextfont struct { type ScatterpolarSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterpolarSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterpolarSelectedTextfont `json:"textfont,omitempty"` } @@ -1292,10 +1313,12 @@ type ScatterpolarUnselectedTextfont struct { type ScatterpolarUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterpolarUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterpolarUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.31.1/graph_objects/scatterpolargl_gen.go b/generated/v2.31.1/graph_objects/scatterpolargl_gen.go index 8b19ea4..e85aa75 100644 --- a/generated/v2.31.1/graph_objects/scatterpolargl_gen.go +++ b/generated/v2.31.1/graph_objects/scatterpolargl_gen.go @@ -59,6 +59,7 @@ type Scatterpolargl struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -71,6 +72,7 @@ type Scatterpolargl struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScatterpolarglHoverlabel `json:"hoverlabel,omitempty"` @@ -123,6 +125,7 @@ type Scatterpolargl struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScatterpolarglLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -139,10 +142,12 @@ type Scatterpolargl struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterpolarglLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScatterpolarglMarker `json:"marker,omitempty"` @@ -159,6 +164,7 @@ type Scatterpolargl struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: %!s() // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -195,6 +201,7 @@ type Scatterpolargl struct { Rsrc string `json:"rsrc,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScatterpolarglSelected `json:"selected,omitempty"` @@ -211,6 +218,7 @@ type Scatterpolargl struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScatterpolarglStream `json:"stream,omitempty"` @@ -227,6 +235,7 @@ type Scatterpolargl struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterpolarglTextfont `json:"textfont,omitempty"` @@ -305,6 +314,7 @@ type Scatterpolargl struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScatterpolarglUnselected `json:"unselected,omitempty"` @@ -397,6 +407,7 @@ type ScatterpolarglHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScatterpolarglHoverlabelFont `json:"font,omitempty"` @@ -439,6 +450,7 @@ type ScatterpolarglLegendgrouptitleFont struct { type ScatterpolarglLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScatterpolarglLegendgrouptitleFont `json:"font,omitempty"` @@ -520,6 +532,7 @@ type ScatterpolarglMarkerColorbarTitleFont struct { type ScatterpolarglMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScatterpolarglMarkerColorbarTitleFont `json:"font,omitempty"` @@ -686,6 +699,7 @@ type ScatterpolarglMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScatterpolarglMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -784,6 +798,7 @@ type ScatterpolarglMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScatterpolarglMarkerColorbarTitle `json:"title,omitempty"` @@ -974,6 +989,7 @@ type ScatterpolarglMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScatterpolarglMarkerColorbar `json:"colorbar,omitempty"` @@ -990,6 +1006,7 @@ type ScatterpolarglMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterpolarglMarkerLine `json:"line,omitempty"` @@ -1098,10 +1115,12 @@ type ScatterpolarglSelectedTextfont struct { type ScatterpolarglSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterpolarglSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterpolarglSelectedTextfont `json:"textfont,omitempty"` } @@ -1198,10 +1217,12 @@ type ScatterpolarglUnselectedTextfont struct { type ScatterpolarglUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterpolarglUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterpolarglUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.31.1/graph_objects/scattersmith_gen.go b/generated/v2.31.1/graph_objects/scattersmith_gen.go index 505945e..771e712 100644 --- a/generated/v2.31.1/graph_objects/scattersmith_gen.go +++ b/generated/v2.31.1/graph_objects/scattersmith_gen.go @@ -53,6 +53,7 @@ type Scattersmith struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -65,10 +66,12 @@ type Scattersmith struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScattersmithHoverlabel `json:"hoverlabel,omitempty"` // Hoveron + // arrayOK: false // default: %!s() // type: flaglist // Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is *toself* or *tonext* and there are no markers or text, then the default is *fills*, otherwise it is *points*. @@ -135,6 +138,7 @@ type Scattersmith struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScattersmithLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -151,10 +155,12 @@ type Scattersmith struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScattersmithLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScattersmithMarker `json:"marker,omitempty"` @@ -171,6 +177,7 @@ type Scattersmith struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: %!s() // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -201,6 +208,7 @@ type Scattersmith struct { Realsrc string `json:"realsrc,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScattersmithSelected `json:"selected,omitempty"` @@ -217,6 +225,7 @@ type Scattersmith struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScattersmithStream `json:"stream,omitempty"` @@ -233,6 +242,7 @@ type Scattersmith struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattersmithTextfont `json:"textfont,omitempty"` @@ -286,6 +296,7 @@ type Scattersmith struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScattersmithUnselected `json:"unselected,omitempty"` @@ -378,6 +389,7 @@ type ScattersmithHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScattersmithHoverlabelFont `json:"font,omitempty"` @@ -420,6 +432,7 @@ type ScattersmithLegendgrouptitleFont struct { type ScattersmithLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScattersmithLegendgrouptitleFont `json:"font,omitempty"` @@ -525,6 +538,7 @@ type ScattersmithMarkerColorbarTitleFont struct { type ScattersmithMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScattersmithMarkerColorbarTitleFont `json:"font,omitempty"` @@ -691,6 +705,7 @@ type ScattersmithMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScattersmithMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -789,6 +804,7 @@ type ScattersmithMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScattersmithMarkerColorbarTitle `json:"title,omitempty"` @@ -1015,6 +1031,7 @@ type ScattersmithMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScattersmithMarkerColorbar `json:"colorbar,omitempty"` @@ -1031,10 +1048,12 @@ type ScattersmithMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Gradient + // arrayOK: false // role: Object Gradient *ScattersmithMarkerGradient `json:"gradient,omitempty"` // Line + // arrayOK: false // role: Object Line *ScattersmithMarkerLine `json:"line,omitempty"` @@ -1161,10 +1180,12 @@ type ScattersmithSelectedTextfont struct { type ScattersmithSelected struct { // Marker + // arrayOK: false // role: Object Marker *ScattersmithSelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattersmithSelectedTextfont `json:"textfont,omitempty"` } @@ -1261,10 +1282,12 @@ type ScattersmithUnselectedTextfont struct { type ScattersmithUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScattersmithUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScattersmithUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.31.1/graph_objects/scatterternary_gen.go b/generated/v2.31.1/graph_objects/scatterternary_gen.go index d971e11..5059355 100644 --- a/generated/v2.31.1/graph_objects/scatterternary_gen.go +++ b/generated/v2.31.1/graph_objects/scatterternary_gen.go @@ -89,6 +89,7 @@ type Scatterternary struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -101,10 +102,12 @@ type Scatterternary struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ScatterternaryHoverlabel `json:"hoverlabel,omitempty"` // Hoveron + // arrayOK: false // default: %!s() // type: flaglist // Do the hover effects highlight individual points (markers or line points) or do they highlight filled regions? If the fill is *toself* or *tonext* and there are no markers or text, then the default is *fills*, otherwise it is *points*. @@ -159,6 +162,7 @@ type Scatterternary struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ScatterternaryLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -175,10 +179,12 @@ type Scatterternary struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterternaryLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ScatterternaryMarker `json:"marker,omitempty"` @@ -195,6 +201,7 @@ type Scatterternary struct { Metasrc string `json:"metasrc,omitempty"` // Mode + // arrayOK: false // default: markers // type: flaglist // Determines the drawing mode for this scatter trace. If the provided `mode` includes *text* then the `text` elements appear at the coordinates. Otherwise, the `text` elements appear on hover. If there are less than 20 points and the trace is not stacked then the default is *lines+markers*. Otherwise, *lines*. @@ -213,6 +220,7 @@ type Scatterternary struct { Opacity float64 `json:"opacity,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ScatterternarySelected `json:"selected,omitempty"` @@ -229,6 +237,7 @@ type Scatterternary struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ScatterternaryStream `json:"stream,omitempty"` @@ -251,6 +260,7 @@ type Scatterternary struct { Text ArrayOK[*string] `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterternaryTextfont `json:"textfont,omitempty"` @@ -304,6 +314,7 @@ type Scatterternary struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ScatterternaryUnselected `json:"unselected,omitempty"` @@ -396,6 +407,7 @@ type ScatterternaryHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ScatterternaryHoverlabelFont `json:"font,omitempty"` @@ -438,6 +450,7 @@ type ScatterternaryLegendgrouptitleFont struct { type ScatterternaryLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ScatterternaryLegendgrouptitleFont `json:"font,omitempty"` @@ -543,6 +556,7 @@ type ScatterternaryMarkerColorbarTitleFont struct { type ScatterternaryMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *ScatterternaryMarkerColorbarTitleFont `json:"font,omitempty"` @@ -709,6 +723,7 @@ type ScatterternaryMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *ScatterternaryMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -807,6 +822,7 @@ type ScatterternaryMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *ScatterternaryMarkerColorbarTitle `json:"title,omitempty"` @@ -1033,6 +1049,7 @@ type ScatterternaryMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *ScatterternaryMarkerColorbar `json:"colorbar,omitempty"` @@ -1049,10 +1066,12 @@ type ScatterternaryMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Gradient + // arrayOK: false // role: Object Gradient *ScatterternaryMarkerGradient `json:"gradient,omitempty"` // Line + // arrayOK: false // role: Object Line *ScatterternaryMarkerLine `json:"line,omitempty"` @@ -1179,10 +1198,12 @@ type ScatterternarySelectedTextfont struct { type ScatterternarySelected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterternarySelectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterternarySelectedTextfont `json:"textfont,omitempty"` } @@ -1279,10 +1300,12 @@ type ScatterternaryUnselectedTextfont struct { type ScatterternaryUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ScatterternaryUnselectedMarker `json:"marker,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *ScatterternaryUnselectedTextfont `json:"textfont,omitempty"` } diff --git a/generated/v2.31.1/graph_objects/splom_gen.go b/generated/v2.31.1/graph_objects/splom_gen.go index f4ad4e3..4594bbd 100644 --- a/generated/v2.31.1/graph_objects/splom_gen.go +++ b/generated/v2.31.1/graph_objects/splom_gen.go @@ -28,6 +28,7 @@ type Splom struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Diagonal + // arrayOK: false // role: Object Diagonal *SplomDiagonal `json:"diagonal,omitempty"` @@ -38,6 +39,7 @@ type Splom struct { Dimensions interface{} `json:"dimensions,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -50,6 +52,7 @@ type Splom struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *SplomHoverlabel `json:"hoverlabel,omitempty"` @@ -102,6 +105,7 @@ type Splom struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *SplomLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -118,6 +122,7 @@ type Splom struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Marker + // arrayOK: false // role: Object Marker *SplomMarker `json:"marker,omitempty"` @@ -146,6 +151,7 @@ type Splom struct { Opacity float64 `json:"opacity,omitempty"` // Selected + // arrayOK: false // role: Object Selected *SplomSelected `json:"selected,omitempty"` @@ -174,6 +180,7 @@ type Splom struct { Showupperhalf Bool `json:"showupperhalf,omitempty"` // Stream + // arrayOK: false // role: Object Stream *SplomStream `json:"stream,omitempty"` @@ -208,6 +215,7 @@ type Splom struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *SplomUnselected `json:"unselected,omitempty"` @@ -334,6 +342,7 @@ type SplomHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *SplomHoverlabelFont `json:"font,omitempty"` @@ -376,6 +385,7 @@ type SplomLegendgrouptitleFont struct { type SplomLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *SplomLegendgrouptitleFont `json:"font,omitempty"` @@ -434,6 +444,7 @@ type SplomMarkerColorbarTitleFont struct { type SplomMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *SplomMarkerColorbarTitleFont `json:"font,omitempty"` @@ -600,6 +611,7 @@ type SplomMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *SplomMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -698,6 +710,7 @@ type SplomMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *SplomMarkerColorbarTitle `json:"title,omitempty"` @@ -888,6 +901,7 @@ type SplomMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *SplomMarkerColorbar `json:"colorbar,omitempty"` @@ -904,6 +918,7 @@ type SplomMarker struct { Colorsrc string `json:"colorsrc,omitempty"` // Line + // arrayOK: false // role: Object Line *SplomMarkerLine `json:"line,omitempty"` @@ -1002,6 +1017,7 @@ type SplomSelectedMarker struct { type SplomSelected struct { // Marker + // arrayOK: false // role: Object Marker *SplomSelectedMarker `json:"marker,omitempty"` } @@ -1048,6 +1064,7 @@ type SplomUnselectedMarker struct { type SplomUnselected struct { // Marker + // arrayOK: false // role: Object Marker *SplomUnselectedMarker `json:"marker,omitempty"` } diff --git a/generated/v2.31.1/graph_objects/streamtube_gen.go b/generated/v2.31.1/graph_objects/streamtube_gen.go index 13ed0b0..b5c9614 100644 --- a/generated/v2.31.1/graph_objects/streamtube_gen.go +++ b/generated/v2.31.1/graph_objects/streamtube_gen.go @@ -52,6 +52,7 @@ type Streamtube struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *StreamtubeColorbar `json:"colorbar,omitempty"` @@ -74,6 +75,7 @@ type Streamtube struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Hoverinfo + // arrayOK: true // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -86,6 +88,7 @@ type Streamtube struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *StreamtubeHoverlabel `json:"hoverlabel,omitempty"` @@ -132,6 +135,7 @@ type Streamtube struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *StreamtubeLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -148,10 +152,12 @@ type Streamtube struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Lighting + // arrayOK: false // role: Object Lighting *StreamtubeLighting `json:"lighting,omitempty"` // Lightposition + // arrayOK: false // role: Object Lightposition *StreamtubeLightposition `json:"lightposition,omitempty"` @@ -216,10 +222,12 @@ type Streamtube struct { Sizeref float64 `json:"sizeref,omitempty"` // Starts + // arrayOK: false // role: Object Starts *StreamtubeStarts `json:"starts,omitempty"` // Stream + // arrayOK: false // role: Object Stream *StreamtubeStream `json:"stream,omitempty"` @@ -405,6 +413,7 @@ type StreamtubeColorbarTitleFont struct { type StreamtubeColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *StreamtubeColorbarTitleFont `json:"font,omitempty"` @@ -571,6 +580,7 @@ type StreamtubeColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *StreamtubeColorbarTickfont `json:"tickfont,omitempty"` @@ -669,6 +679,7 @@ type StreamtubeColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *StreamtubeColorbarTitle `json:"title,omitempty"` @@ -806,6 +817,7 @@ type StreamtubeHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *StreamtubeHoverlabelFont `json:"font,omitempty"` @@ -848,6 +860,7 @@ type StreamtubeLegendgrouptitleFont struct { type StreamtubeLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *StreamtubeLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.31.1/graph_objects/sunburst_gen.go b/generated/v2.31.1/graph_objects/sunburst_gen.go index b95afd7..5070ab9 100644 --- a/generated/v2.31.1/graph_objects/sunburst_gen.go +++ b/generated/v2.31.1/graph_objects/sunburst_gen.go @@ -23,6 +23,7 @@ type Sunburst struct { Branchvalues SunburstBranchvalues `json:"branchvalues,omitempty"` // Count + // arrayOK: false // default: leaves // type: flaglist // Determines default for `values` when it is not provided, by inferring a 1 for each of the *leaves* and/or *branches*, otherwise 0. @@ -41,10 +42,12 @@ type Sunburst struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Domain + // arrayOK: false // role: Object Domain *SunburstDomain `json:"domain,omitempty"` // Hoverinfo + // arrayOK: true // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -57,6 +60,7 @@ type Sunburst struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *SunburstHoverlabel `json:"hoverlabel,omitempty"` @@ -97,6 +101,7 @@ type Sunburst struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *SunburstInsidetextfont `json:"insidetextfont,omitempty"` @@ -120,6 +125,7 @@ type Sunburst struct { Labelssrc string `json:"labelssrc,omitempty"` // Leaf + // arrayOK: false // role: Object Leaf *SunburstLeaf `json:"leaf,omitempty"` @@ -130,6 +136,7 @@ type Sunburst struct { Legend String `json:"legend,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *SunburstLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -152,6 +159,7 @@ type Sunburst struct { Level interface{} `json:"level,omitempty"` // Marker + // arrayOK: false // role: Object Marker *SunburstMarker `json:"marker,omitempty"` @@ -186,6 +194,7 @@ type Sunburst struct { Opacity float64 `json:"opacity,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *SunburstOutsidetextfont `json:"outsidetextfont,omitempty"` @@ -202,6 +211,7 @@ type Sunburst struct { Parentssrc string `json:"parentssrc,omitempty"` // Root + // arrayOK: false // role: Object Root *SunburstRoot `json:"root,omitempty"` @@ -218,6 +228,7 @@ type Sunburst struct { Sort Bool `json:"sort,omitempty"` // Stream + // arrayOK: false // role: Object Stream *SunburstStream `json:"stream,omitempty"` @@ -228,10 +239,12 @@ type Sunburst struct { Text interface{} `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *SunburstTextfont `json:"textfont,omitempty"` // Textinfo + // arrayOK: false // default: %!s() // type: flaglist // Determines which trace information appear on the graph. @@ -402,6 +415,7 @@ type SunburstHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *SunburstHoverlabelFont `json:"font,omitempty"` @@ -494,6 +508,7 @@ type SunburstLegendgrouptitleFont struct { type SunburstLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *SunburstLegendgrouptitleFont `json:"font,omitempty"` @@ -552,6 +567,7 @@ type SunburstMarkerColorbarTitleFont struct { type SunburstMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *SunburstMarkerColorbarTitleFont `json:"font,omitempty"` @@ -718,6 +734,7 @@ type SunburstMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *SunburstMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -816,6 +833,7 @@ type SunburstMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *SunburstMarkerColorbarTitle `json:"title,omitempty"` @@ -1018,6 +1036,7 @@ type SunburstMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *SunburstMarkerColorbar `json:"colorbar,omitempty"` @@ -1040,10 +1059,12 @@ type SunburstMarker struct { Colorssrc string `json:"colorssrc,omitempty"` // Line + // arrayOK: false // role: Object Line *SunburstMarkerLine `json:"line,omitempty"` // Pattern + // arrayOK: false // role: Object Pattern *SunburstMarkerPattern `json:"pattern,omitempty"` diff --git a/generated/v2.31.1/graph_objects/surface_gen.go b/generated/v2.31.1/graph_objects/surface_gen.go index 6e1298a..f25d0c6 100644 --- a/generated/v2.31.1/graph_objects/surface_gen.go +++ b/generated/v2.31.1/graph_objects/surface_gen.go @@ -52,6 +52,7 @@ type Surface struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *SurfaceColorbar `json:"colorbar,omitempty"` @@ -68,6 +69,7 @@ type Surface struct { Connectgaps Bool `json:"connectgaps,omitempty"` // Contours + // arrayOK: false // role: Object Contours *SurfaceContours `json:"contours,omitempty"` @@ -90,6 +92,7 @@ type Surface struct { Hidesurface Bool `json:"hidesurface,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -102,6 +105,7 @@ type Surface struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *SurfaceHoverlabel `json:"hoverlabel,omitempty"` @@ -154,6 +158,7 @@ type Surface struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *SurfaceLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -170,10 +175,12 @@ type Surface struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Lighting + // arrayOK: false // role: Object Lighting *SurfaceLighting `json:"lighting,omitempty"` // Lightposition + // arrayOK: false // role: Object Lightposition *SurfaceLightposition `json:"lightposition,omitempty"` @@ -232,6 +239,7 @@ type Surface struct { Showscale Bool `json:"showscale,omitempty"` // Stream + // arrayOK: false // role: Object Stream *SurfaceStream `json:"stream,omitempty"` @@ -402,6 +410,7 @@ type SurfaceColorbarTitleFont struct { type SurfaceColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *SurfaceColorbarTitleFont `json:"font,omitempty"` @@ -568,6 +577,7 @@ type SurfaceColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *SurfaceColorbarTickfont `json:"tickfont,omitempty"` @@ -666,6 +676,7 @@ type SurfaceColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *SurfaceColorbarTitle `json:"title,omitempty"` @@ -778,6 +789,7 @@ type SurfaceContoursX struct { Highlightwidth float64 `json:"highlightwidth,omitempty"` // Project + // arrayOK: false // role: Object Project *SurfaceContoursXProject `json:"project,omitempty"` @@ -868,6 +880,7 @@ type SurfaceContoursY struct { Highlightwidth float64 `json:"highlightwidth,omitempty"` // Project + // arrayOK: false // role: Object Project *SurfaceContoursYProject `json:"project,omitempty"` @@ -958,6 +971,7 @@ type SurfaceContoursZ struct { Highlightwidth float64 `json:"highlightwidth,omitempty"` // Project + // arrayOK: false // role: Object Project *SurfaceContoursZProject `json:"project,omitempty"` @@ -996,14 +1010,17 @@ type SurfaceContoursZ struct { type SurfaceContours struct { // X + // arrayOK: false // role: Object X *SurfaceContoursX `json:"x,omitempty"` // Y + // arrayOK: false // role: Object Y *SurfaceContoursY `json:"y,omitempty"` // Z + // arrayOK: false // role: Object Z *SurfaceContoursZ `json:"z,omitempty"` } @@ -1089,6 +1106,7 @@ type SurfaceHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *SurfaceHoverlabelFont `json:"font,omitempty"` @@ -1131,6 +1149,7 @@ type SurfaceLegendgrouptitleFont struct { type SurfaceLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *SurfaceLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.31.1/graph_objects/table_gen.go b/generated/v2.31.1/graph_objects/table_gen.go index fe75516..10815de 100644 --- a/generated/v2.31.1/graph_objects/table_gen.go +++ b/generated/v2.31.1/graph_objects/table_gen.go @@ -16,6 +16,7 @@ type Table struct { Type TraceType `json:"type,omitempty"` // Cells + // arrayOK: false // role: Object Cells *TableCells `json:"cells,omitempty"` @@ -56,14 +57,17 @@ type Table struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Domain + // arrayOK: false // role: Object Domain *TableDomain `json:"domain,omitempty"` // Header + // arrayOK: false // role: Object Header *TableHeader `json:"header,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -76,6 +80,7 @@ type Table struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *TableHoverlabel `json:"hoverlabel,omitempty"` @@ -98,6 +103,7 @@ type Table struct { Legend String `json:"legend,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *TableLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -132,6 +138,7 @@ type Table struct { Name string `json:"name,omitempty"` // Stream + // arrayOK: false // role: Object Stream *TableStream `json:"stream,omitempty"` @@ -256,10 +263,12 @@ type TableCells struct { Alignsrc string `json:"alignsrc,omitempty"` // Fill + // arrayOK: false // role: Object Fill *TableCellsFill `json:"fill,omitempty"` // Font + // arrayOK: false // role: Object Font *TableCellsFont `json:"font,omitempty"` @@ -282,6 +291,7 @@ type TableCells struct { Height float64 `json:"height,omitempty"` // Line + // arrayOK: false // role: Object Line *TableCellsLine `json:"line,omitempty"` @@ -451,10 +461,12 @@ type TableHeader struct { Alignsrc string `json:"alignsrc,omitempty"` // Fill + // arrayOK: false // role: Object Fill *TableHeaderFill `json:"fill,omitempty"` // Font + // arrayOK: false // role: Object Font *TableHeaderFont `json:"font,omitempty"` @@ -477,6 +489,7 @@ type TableHeader struct { Height float64 `json:"height,omitempty"` // Line + // arrayOK: false // role: Object Line *TableHeaderLine `json:"line,omitempty"` @@ -598,6 +611,7 @@ type TableHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *TableHoverlabelFont `json:"font,omitempty"` @@ -640,6 +654,7 @@ type TableLegendgrouptitleFont struct { type TableLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *TableLegendgrouptitleFont `json:"font,omitempty"` diff --git a/generated/v2.31.1/graph_objects/treemap_gen.go b/generated/v2.31.1/graph_objects/treemap_gen.go index bfe6f4e..e3e3e4b 100644 --- a/generated/v2.31.1/graph_objects/treemap_gen.go +++ b/generated/v2.31.1/graph_objects/treemap_gen.go @@ -23,6 +23,7 @@ type Treemap struct { Branchvalues TreemapBranchvalues `json:"branchvalues,omitempty"` // Count + // arrayOK: false // default: leaves // type: flaglist // Determines default for `values` when it is not provided, by inferring a 1 for each of the *leaves* and/or *branches*, otherwise 0. @@ -41,10 +42,12 @@ type Treemap struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Domain + // arrayOK: false // role: Object Domain *TreemapDomain `json:"domain,omitempty"` // Hoverinfo + // arrayOK: true // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -57,6 +60,7 @@ type Treemap struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *TreemapHoverlabel `json:"hoverlabel,omitempty"` @@ -97,6 +101,7 @@ type Treemap struct { Idssrc string `json:"idssrc,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *TreemapInsidetextfont `json:"insidetextfont,omitempty"` @@ -119,6 +124,7 @@ type Treemap struct { Legend String `json:"legend,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *TreemapLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -141,6 +147,7 @@ type Treemap struct { Level interface{} `json:"level,omitempty"` // Marker + // arrayOK: false // role: Object Marker *TreemapMarker `json:"marker,omitempty"` @@ -175,6 +182,7 @@ type Treemap struct { Opacity float64 `json:"opacity,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *TreemapOutsidetextfont `json:"outsidetextfont,omitempty"` @@ -191,10 +199,12 @@ type Treemap struct { Parentssrc string `json:"parentssrc,omitempty"` // Pathbar + // arrayOK: false // role: Object Pathbar *TreemapPathbar `json:"pathbar,omitempty"` // Root + // arrayOK: false // role: Object Root *TreemapRoot `json:"root,omitempty"` @@ -205,6 +215,7 @@ type Treemap struct { Sort Bool `json:"sort,omitempty"` // Stream + // arrayOK: false // role: Object Stream *TreemapStream `json:"stream,omitempty"` @@ -215,10 +226,12 @@ type Treemap struct { Text interface{} `json:"text,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *TreemapTextfont `json:"textfont,omitempty"` // Textinfo + // arrayOK: false // default: %!s() // type: flaglist // Determines which trace information appear on the graph. @@ -250,6 +263,7 @@ type Treemap struct { Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Tiling + // arrayOK: false // role: Object Tiling *TreemapTiling `json:"tiling,omitempty"` @@ -400,6 +414,7 @@ type TreemapHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *TreemapHoverlabelFont `json:"font,omitempty"` @@ -482,6 +497,7 @@ type TreemapLegendgrouptitleFont struct { type TreemapLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *TreemapLegendgrouptitleFont `json:"font,omitempty"` @@ -540,6 +556,7 @@ type TreemapMarkerColorbarTitleFont struct { type TreemapMarkerColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *TreemapMarkerColorbarTitleFont `json:"font,omitempty"` @@ -706,6 +723,7 @@ type TreemapMarkerColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *TreemapMarkerColorbarTickfont `json:"tickfont,omitempty"` @@ -804,6 +822,7 @@ type TreemapMarkerColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *TreemapMarkerColorbarTitle `json:"title,omitempty"` @@ -1034,6 +1053,7 @@ type TreemapMarker struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *TreemapMarkerColorbar `json:"colorbar,omitempty"` @@ -1069,14 +1089,17 @@ type TreemapMarker struct { Depthfade TreemapMarkerDepthfade `json:"depthfade,omitempty"` // Line + // arrayOK: false // role: Object Line *TreemapMarkerLine `json:"line,omitempty"` // Pad + // arrayOK: false // role: Object Pad *TreemapMarkerPad `json:"pad,omitempty"` // Pattern + // arrayOK: false // role: Object Pattern *TreemapMarkerPattern `json:"pattern,omitempty"` @@ -1191,6 +1214,7 @@ type TreemapPathbar struct { Side TreemapPathbarSide `json:"side,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *TreemapPathbarTextfont `json:"textfont,omitempty"` @@ -1277,6 +1301,7 @@ type TreemapTextfont struct { type TreemapTiling struct { // Flip + // arrayOK: false // default: // type: flaglist // Determines if the positions obtained from solver are flipped on each axis. diff --git a/generated/v2.31.1/graph_objects/violin_gen.go b/generated/v2.31.1/graph_objects/violin_gen.go index a3607f2..ec404e2 100644 --- a/generated/v2.31.1/graph_objects/violin_gen.go +++ b/generated/v2.31.1/graph_objects/violin_gen.go @@ -28,6 +28,7 @@ type Violin struct { Bandwidth float64 `json:"bandwidth,omitempty"` // Box + // arrayOK: false // role: Object Box *ViolinBox `json:"box,omitempty"` @@ -50,6 +51,7 @@ type Violin struct { Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -62,10 +64,12 @@ type Violin struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *ViolinHoverlabel `json:"hoverlabel,omitempty"` // Hoveron + // arrayOK: false // default: violins+points+kde // type: flaglist // Do the hover effects highlight individual violins or sample points or the kernel density estimate or any combination of them? @@ -126,6 +130,7 @@ type Violin struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *ViolinLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -142,14 +147,17 @@ type Violin struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Line + // arrayOK: false // role: Object Line *ViolinLine `json:"line,omitempty"` // Marker + // arrayOK: false // role: Object Marker *ViolinMarker `json:"marker,omitempty"` // Meanline + // arrayOK: false // role: Object Meanline *ViolinMeanline `json:"meanline,omitempty"` @@ -224,6 +232,7 @@ type Violin struct { Scalemode ViolinScalemode `json:"scalemode,omitempty"` // Selected + // arrayOK: false // role: Object Selected *ViolinSelected `json:"selected,omitempty"` @@ -260,6 +269,7 @@ type Violin struct { Spanmode ViolinSpanmode `json:"spanmode,omitempty"` // Stream + // arrayOK: false // role: Object Stream *ViolinStream `json:"stream,omitempty"` @@ -294,6 +304,7 @@ type Violin struct { Uirevision interface{} `json:"uirevision,omitempty"` // Unselected + // arrayOK: false // role: Object Unselected *ViolinUnselected `json:"unselected,omitempty"` @@ -403,6 +414,7 @@ type ViolinBox struct { Fillcolor Color `json:"fillcolor,omitempty"` // Line + // arrayOK: false // role: Object Line *ViolinBoxLine `json:"line,omitempty"` @@ -500,6 +512,7 @@ type ViolinHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *ViolinHoverlabelFont `json:"font,omitempty"` @@ -542,6 +555,7 @@ type ViolinLegendgrouptitleFont struct { type ViolinLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *ViolinLegendgrouptitleFont `json:"font,omitempty"` @@ -612,6 +626,7 @@ type ViolinMarker struct { Color Color `json:"color,omitempty"` // Line + // arrayOK: false // role: Object Line *ViolinMarkerLine `json:"line,omitempty"` @@ -689,6 +704,7 @@ type ViolinSelectedMarker struct { type ViolinSelected struct { // Marker + // arrayOK: false // role: Object Marker *ViolinSelectedMarker `json:"marker,omitempty"` } @@ -735,6 +751,7 @@ type ViolinUnselectedMarker struct { type ViolinUnselected struct { // Marker + // arrayOK: false // role: Object Marker *ViolinUnselectedMarker `json:"marker,omitempty"` } diff --git a/generated/v2.31.1/graph_objects/volume_gen.go b/generated/v2.31.1/graph_objects/volume_gen.go index fc58df2..170023c 100644 --- a/generated/v2.31.1/graph_objects/volume_gen.go +++ b/generated/v2.31.1/graph_objects/volume_gen.go @@ -22,6 +22,7 @@ type Volume struct { Autocolorscale Bool `json:"autocolorscale,omitempty"` // Caps + // arrayOK: false // role: Object Caps *VolumeCaps `json:"caps,omitempty"` @@ -56,6 +57,7 @@ type Volume struct { Coloraxis String `json:"coloraxis,omitempty"` // Colorbar + // arrayOK: false // role: Object Colorbar *VolumeColorbar `json:"colorbar,omitempty"` @@ -66,6 +68,7 @@ type Volume struct { Colorscale ColorScale `json:"colorscale,omitempty"` // Contour + // arrayOK: false // role: Object Contour *VolumeContour `json:"contour,omitempty"` @@ -88,6 +91,7 @@ type Volume struct { Flatshading Bool `json:"flatshading,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -100,6 +104,7 @@ type Volume struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *VolumeHoverlabel `json:"hoverlabel,omitempty"` @@ -164,6 +169,7 @@ type Volume struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *VolumeLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -180,10 +186,12 @@ type Volume struct { Legendwidth float64 `json:"legendwidth,omitempty"` // Lighting + // arrayOK: false // role: Object Lighting *VolumeLighting `json:"lighting,omitempty"` // Lightposition + // arrayOK: false // role: Object Lightposition *VolumeLightposition `json:"lightposition,omitempty"` @@ -242,18 +250,22 @@ type Volume struct { Showscale Bool `json:"showscale,omitempty"` // Slices + // arrayOK: false // role: Object Slices *VolumeSlices `json:"slices,omitempty"` // Spaceframe + // arrayOK: false // role: Object Spaceframe *VolumeSpaceframe `json:"spaceframe,omitempty"` // Stream + // arrayOK: false // role: Object Stream *VolumeStream `json:"stream,omitempty"` // Surface + // arrayOK: false // role: Object Surface *VolumeSurface `json:"surface,omitempty"` @@ -413,14 +425,17 @@ type VolumeCapsZ struct { type VolumeCaps struct { // X + // arrayOK: false // role: Object X *VolumeCapsX `json:"x,omitempty"` // Y + // arrayOK: false // role: Object Y *VolumeCapsY `json:"y,omitempty"` // Z + // arrayOK: false // role: Object Z *VolumeCapsZ `json:"z,omitempty"` } @@ -473,6 +488,7 @@ type VolumeColorbarTitleFont struct { type VolumeColorbarTitle struct { // Font + // arrayOK: false // role: Object Font *VolumeColorbarTitleFont `json:"font,omitempty"` @@ -639,6 +655,7 @@ type VolumeColorbar struct { Tickcolor Color `json:"tickcolor,omitempty"` // Tickfont + // arrayOK: false // role: Object Tickfont *VolumeColorbarTickfont `json:"tickfont,omitempty"` @@ -737,6 +754,7 @@ type VolumeColorbar struct { Tickwidth float64 `json:"tickwidth,omitempty"` // Title + // arrayOK: false // role: Object Title *VolumeColorbarTitle `json:"title,omitempty"` @@ -896,6 +914,7 @@ type VolumeHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *VolumeHoverlabelFont `json:"font,omitempty"` @@ -938,6 +957,7 @@ type VolumeLegendgrouptitleFont struct { type VolumeLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *VolumeLegendgrouptitleFont `json:"font,omitempty"` @@ -1104,14 +1124,17 @@ type VolumeSlicesZ struct { type VolumeSlices struct { // X + // arrayOK: false // role: Object X *VolumeSlicesX `json:"x,omitempty"` // Y + // arrayOK: false // role: Object Y *VolumeSlicesY `json:"y,omitempty"` // Z + // arrayOK: false // role: Object Z *VolumeSlicesZ `json:"z,omitempty"` } @@ -1164,6 +1187,7 @@ type VolumeSurface struct { Fill float64 `json:"fill,omitempty"` // Pattern + // arrayOK: false // default: all // type: flaglist // Sets the surface pattern of the iso-surface 3-D sections. The default pattern of the surface is `all` meaning that the rest of surface elements would be shaded. The check options (either 1 or 2) could be used to draw half of the squares on the surface. Using various combinations of capital `A`, `B`, `C`, `D` and `E` may also be used to reduce the number of triangles on the iso-surfaces and creating other patterns of interest. diff --git a/generated/v2.31.1/graph_objects/waterfall_gen.go b/generated/v2.31.1/graph_objects/waterfall_gen.go index c76178a..8cb7a46 100644 --- a/generated/v2.31.1/graph_objects/waterfall_gen.go +++ b/generated/v2.31.1/graph_objects/waterfall_gen.go @@ -34,6 +34,7 @@ type Waterfall struct { Cliponaxis Bool `json:"cliponaxis,omitempty"` // Connector + // arrayOK: false // role: Object Connector *WaterfallConnector `json:"connector,omitempty"` @@ -57,6 +58,7 @@ type Waterfall struct { Customdatasrc string `json:"customdatasrc,omitempty"` // Decreasing + // arrayOK: false // role: Object Decreasing *WaterfallDecreasing `json:"decreasing,omitempty"` @@ -73,6 +75,7 @@ type Waterfall struct { Dy float64 `json:"dy,omitempty"` // Hoverinfo + // arrayOK: true // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. @@ -85,6 +88,7 @@ type Waterfall struct { Hoverinfosrc string `json:"hoverinfosrc,omitempty"` // Hoverlabel + // arrayOK: false // role: Object Hoverlabel *WaterfallHoverlabel `json:"hoverlabel,omitempty"` @@ -125,6 +129,7 @@ type Waterfall struct { Idssrc string `json:"idssrc,omitempty"` // Increasing + // arrayOK: false // role: Object Increasing *WaterfallIncreasing `json:"increasing,omitempty"` @@ -136,6 +141,7 @@ type Waterfall struct { Insidetextanchor WaterfallInsidetextanchor `json:"insidetextanchor,omitempty"` // Insidetextfont + // arrayOK: false // role: Object Insidetextfont *WaterfallInsidetextfont `json:"insidetextfont,omitempty"` @@ -152,6 +158,7 @@ type Waterfall struct { Legendgroup string `json:"legendgroup,omitempty"` // Legendgrouptitle + // arrayOK: false // role: Object Legendgrouptitle *WaterfallLegendgrouptitle `json:"legendgrouptitle,omitempty"` @@ -229,6 +236,7 @@ type Waterfall struct { Orientation WaterfallOrientation `json:"orientation,omitempty"` // Outsidetextfont + // arrayOK: false // role: Object Outsidetextfont *WaterfallOutsidetextfont `json:"outsidetextfont,omitempty"` @@ -245,6 +253,7 @@ type Waterfall struct { Showlegend Bool `json:"showlegend,omitempty"` // Stream + // arrayOK: false // role: Object Stream *WaterfallStream `json:"stream,omitempty"` @@ -261,10 +270,12 @@ type Waterfall struct { Textangle float64 `json:"textangle,omitempty"` // Textfont + // arrayOK: false // role: Object Textfont *WaterfallTextfont `json:"textfont,omitempty"` // Textinfo + // arrayOK: false // default: %!s() // type: flaglist // Determines which trace information appear on the graph. In the case of having multiple waterfalls, totals are computed separately (per trace). @@ -302,6 +313,7 @@ type Waterfall struct { Texttemplatesrc string `json:"texttemplatesrc,omitempty"` // Totals + // arrayOK: false // role: Object Totals *WaterfallTotals `json:"totals,omitempty"` @@ -473,6 +485,7 @@ type WaterfallConnectorLine struct { type WaterfallConnector struct { // Line + // arrayOK: false // role: Object Line *WaterfallConnectorLine `json:"line,omitempty"` @@ -516,6 +529,7 @@ type WaterfallDecreasingMarker struct { Color Color `json:"color,omitempty"` // Line + // arrayOK: false // role: Object Line *WaterfallDecreasingMarkerLine `json:"line,omitempty"` } @@ -524,6 +538,7 @@ type WaterfallDecreasingMarker struct { type WaterfallDecreasing struct { // Marker + // arrayOK: false // role: Object Marker *WaterfallDecreasingMarker `json:"marker,omitempty"` } @@ -609,6 +624,7 @@ type WaterfallHoverlabel struct { Bordercolorsrc string `json:"bordercolorsrc,omitempty"` // Font + // arrayOK: false // role: Object Font *WaterfallHoverlabelFont `json:"font,omitempty"` @@ -651,6 +667,7 @@ type WaterfallIncreasingMarker struct { Color Color `json:"color,omitempty"` // Line + // arrayOK: false // role: Object Line *WaterfallIncreasingMarkerLine `json:"line,omitempty"` } @@ -659,6 +676,7 @@ type WaterfallIncreasingMarker struct { type WaterfallIncreasing struct { // Marker + // arrayOK: false // role: Object Marker *WaterfallIncreasingMarker `json:"marker,omitempty"` } @@ -729,6 +747,7 @@ type WaterfallLegendgrouptitleFont struct { type WaterfallLegendgrouptitle struct { // Font + // arrayOK: false // role: Object Font *WaterfallLegendgrouptitleFont `json:"font,omitempty"` @@ -861,6 +880,7 @@ type WaterfallTotalsMarker struct { Color Color `json:"color,omitempty"` // Line + // arrayOK: false // role: Object Line *WaterfallTotalsMarkerLine `json:"line,omitempty"` } @@ -869,6 +889,7 @@ type WaterfallTotalsMarker struct { type WaterfallTotals struct { // Marker + // arrayOK: false // role: Object Marker *WaterfallTotalsMarker `json:"marker,omitempty"` } diff --git a/generator/typefile.go b/generator/typefile.go index 662529e..fff4e7c 100644 --- a/generator/typefile.go +++ b/generator/typefile.go @@ -106,11 +106,16 @@ func (file *typeFile) parseAttributes(namePrefix string, typePrefix string, attr if err != nil { return nil, fmt.Errorf("cannot parse object %s, %w", name, err) } + typeName := "*" + name + if attr.ArrayOK { + typeName = fmt.Sprintf("ArrayOK[*%s]", typeName) + } fields = append(fields, structField{ Name: xstrings.ToCamelCase(attr.Name), JSONName: attr.Name, - Type: "*" + name, + Type: typeName, Description: []string{ + fmt.Sprintf("arrayOK: %t", attr.ArrayOK), "role: Object", }, }) From 2e8e6b57c406ad5bcb22dcf9ddf5057be5e16acc Mon Sep 17 00:00:00 2001 From: metalblueberry Date: Wed, 21 Aug 2024 10:47:08 +0200 Subject: [PATCH 15/17] fix compilation --- generator/templates/dummy_types.go | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 generator/templates/dummy_types.go diff --git a/generator/templates/dummy_types.go b/generator/templates/dummy_types.go new file mode 100644 index 0000000..ea51875 --- /dev/null +++ b/generator/templates/dummy_types.go @@ -0,0 +1,10 @@ +package grob + +import "encoding/json" + +// Types defined here are just meant to allow compilation for the template package + +type Layout struct{} +type Config struct{} + +func UnmarshalTrace(json.RawMessage) (Trace, error) { return nil, nil } From b567802d77b21800973645141d6c26c63fbe3531 Mon Sep 17 00:00:00 2001 From: metalblueberry Date: Wed, 21 Aug 2024 10:57:02 +0200 Subject: [PATCH 16/17] clarify mapping and just apply colorscale to the right color names --- examples/bar_custom/main.go | 4 ++-- examples/wasm/main.go | 2 ++ generated/v2.19.0/graph_objects/contour_gen.go | 2 +- generated/v2.19.0/graph_objects/contourcarpet_gen.go | 2 +- generated/v2.19.0/graph_objects/layout_gen.go | 4 ++-- generated/v2.29.1/graph_objects/contour_gen.go | 2 +- generated/v2.29.1/graph_objects/contourcarpet_gen.go | 2 +- generated/v2.29.1/graph_objects/layout_gen.go | 4 ++-- generated/v2.31.1/graph_objects/contour_gen.go | 2 +- generated/v2.31.1/graph_objects/contourcarpet_gen.go | 2 +- generated/v2.31.1/graph_objects/layout_gen.go | 4 ++-- generator/typefile.go | 4 +++- 12 files changed, 19 insertions(+), 15 deletions(-) diff --git a/examples/bar_custom/main.go b/examples/bar_custom/main.go index 8250e6e..67dc04a 100644 --- a/examples/bar_custom/main.go +++ b/examples/bar_custom/main.go @@ -55,8 +55,8 @@ func main() { X: xValue, Y: yValue, Text: grob.ArrayOKArray(toString(yValue)...), - Textposition: grob.BarTextpositionAuto, - Hoverinfo: grob.BarHoverinfoNone, + Textposition: grob.ArrayOKValue(grob.BarTextpositionAuto), + Hoverinfo: grob.ArrayOKValue(grob.BarHoverinfoNone), Marker: &grob.BarMarker{ Color: grob.ArrayOKValue(grob.UseColor(grob.Color( markerColor.Hex(), // Use colorfull diff --git a/examples/wasm/main.go b/examples/wasm/main.go index 122762e..b9c71b3 100644 --- a/examples/wasm/main.go +++ b/examples/wasm/main.go @@ -1,3 +1,5 @@ +//go:build ignore + package main import ( diff --git a/generated/v2.19.0/graph_objects/contour_gen.go b/generated/v2.19.0/graph_objects/contour_gen.go index 2d41cbc..724ca1d 100644 --- a/generated/v2.19.0/graph_objects/contour_gen.go +++ b/generated/v2.19.0/graph_objects/contour_gen.go @@ -83,7 +83,7 @@ type Contour struct { // arrayOK: false // type: color // Sets the fill color if `contours.type` is *constraint*. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. - Fillcolor ColorWithColorScale `json:"fillcolor,omitempty"` + Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo // arrayOK: true diff --git a/generated/v2.19.0/graph_objects/contourcarpet_gen.go b/generated/v2.19.0/graph_objects/contourcarpet_gen.go index 649802d..bf59314 100644 --- a/generated/v2.19.0/graph_objects/contourcarpet_gen.go +++ b/generated/v2.19.0/graph_objects/contourcarpet_gen.go @@ -133,7 +133,7 @@ type Contourcarpet struct { // arrayOK: false // type: color // Sets the fill color if `contours.type` is *constraint*. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. - Fillcolor ColorWithColorScale `json:"fillcolor,omitempty"` + Fillcolor Color `json:"fillcolor,omitempty"` // Hovertext // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/layout_gen.go b/generated/v2.19.0/graph_objects/layout_gen.go index f2027d9..8ef5a01 100644 --- a/generated/v2.19.0/graph_objects/layout_gen.go +++ b/generated/v2.19.0/graph_objects/layout_gen.go @@ -314,7 +314,7 @@ type Layout struct { // arrayOK: false // type: color // Sets the background color of the paper where the graph is drawn. - PaperBgcolor ColorWithColorScale `json:"paper_bgcolor,omitempty"` + PaperBgcolor Color `json:"paper_bgcolor,omitempty"` // Piecolorway // arrayOK: false @@ -326,7 +326,7 @@ type Layout struct { // arrayOK: false // type: color // Sets the background color of the plotting area in-between x and y axes. - PlotBgcolor ColorWithColorScale `json:"plot_bgcolor,omitempty"` + PlotBgcolor Color `json:"plot_bgcolor,omitempty"` // Polar // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/contour_gen.go b/generated/v2.29.1/graph_objects/contour_gen.go index da9c4a7..e9adbd7 100644 --- a/generated/v2.29.1/graph_objects/contour_gen.go +++ b/generated/v2.29.1/graph_objects/contour_gen.go @@ -83,7 +83,7 @@ type Contour struct { // arrayOK: false // type: color // Sets the fill color if `contours.type` is *constraint*. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. - Fillcolor ColorWithColorScale `json:"fillcolor,omitempty"` + Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo // arrayOK: true diff --git a/generated/v2.29.1/graph_objects/contourcarpet_gen.go b/generated/v2.29.1/graph_objects/contourcarpet_gen.go index 5da30cf..e04f9aa 100644 --- a/generated/v2.29.1/graph_objects/contourcarpet_gen.go +++ b/generated/v2.29.1/graph_objects/contourcarpet_gen.go @@ -133,7 +133,7 @@ type Contourcarpet struct { // arrayOK: false // type: color // Sets the fill color if `contours.type` is *constraint*. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. - Fillcolor ColorWithColorScale `json:"fillcolor,omitempty"` + Fillcolor Color `json:"fillcolor,omitempty"` // Hovertext // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/layout_gen.go b/generated/v2.29.1/graph_objects/layout_gen.go index 9cdcb01..bdcb87a 100644 --- a/generated/v2.29.1/graph_objects/layout_gen.go +++ b/generated/v2.29.1/graph_objects/layout_gen.go @@ -320,7 +320,7 @@ type Layout struct { // arrayOK: false // type: color // Sets the background color of the paper where the graph is drawn. - PaperBgcolor ColorWithColorScale `json:"paper_bgcolor,omitempty"` + PaperBgcolor Color `json:"paper_bgcolor,omitempty"` // Piecolorway // arrayOK: false @@ -332,7 +332,7 @@ type Layout struct { // arrayOK: false // type: color // Sets the background color of the plotting area in-between x and y axes. - PlotBgcolor ColorWithColorScale `json:"plot_bgcolor,omitempty"` + PlotBgcolor Color `json:"plot_bgcolor,omitempty"` // Polar // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/contour_gen.go b/generated/v2.31.1/graph_objects/contour_gen.go index 736984b..e5a4f3a 100644 --- a/generated/v2.31.1/graph_objects/contour_gen.go +++ b/generated/v2.31.1/graph_objects/contour_gen.go @@ -83,7 +83,7 @@ type Contour struct { // arrayOK: false // type: color // Sets the fill color if `contours.type` is *constraint*. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. - Fillcolor ColorWithColorScale `json:"fillcolor,omitempty"` + Fillcolor Color `json:"fillcolor,omitempty"` // Hoverinfo // arrayOK: true diff --git a/generated/v2.31.1/graph_objects/contourcarpet_gen.go b/generated/v2.31.1/graph_objects/contourcarpet_gen.go index ca4843e..f0ab0e4 100644 --- a/generated/v2.31.1/graph_objects/contourcarpet_gen.go +++ b/generated/v2.31.1/graph_objects/contourcarpet_gen.go @@ -133,7 +133,7 @@ type Contourcarpet struct { // arrayOK: false // type: color // Sets the fill color if `contours.type` is *constraint*. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available. - Fillcolor ColorWithColorScale `json:"fillcolor,omitempty"` + Fillcolor Color `json:"fillcolor,omitempty"` // Hovertext // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/layout_gen.go b/generated/v2.31.1/graph_objects/layout_gen.go index 51c39b5..a0e48ca 100644 --- a/generated/v2.31.1/graph_objects/layout_gen.go +++ b/generated/v2.31.1/graph_objects/layout_gen.go @@ -327,7 +327,7 @@ type Layout struct { // arrayOK: false // type: color // Sets the background color of the paper where the graph is drawn. - PaperBgcolor ColorWithColorScale `json:"paper_bgcolor,omitempty"` + PaperBgcolor Color `json:"paper_bgcolor,omitempty"` // Piecolorway // arrayOK: false @@ -339,7 +339,7 @@ type Layout struct { // arrayOK: false // type: color // Sets the background color of the plotting area in-between x and y axes. - PlotBgcolor ColorWithColorScale `json:"plot_bgcolor,omitempty"` + PlotBgcolor Color `json:"plot_bgcolor,omitempty"` // Polar // arrayOK: false diff --git a/generator/typefile.go b/generator/typefile.go index fff4e7c..506c5a1 100644 --- a/generator/typefile.go +++ b/generator/typefile.go @@ -178,7 +178,9 @@ func (file *typeFile) parseAttributes(namePrefix string, typePrefix string, attr default: ty := valTypeMap[attr.ValType] - if attr.ValType == ValTypeColor && attrs["colorscale"] != nil { + + // Special case, the attribute color may also be a ColorScale + if attr.ValType == ValTypeColor && attr.Name == "color" && attrs["colorscale"] != nil { ty = "ColorWithColorScale" } if attr.ArrayOK { From 36f4cb1d1cce2d4fdb6186b07d30d82105df23c2 Mon Sep 17 00:00:00 2001 From: metalblueberry Date: Wed, 21 Aug 2024 11:22:56 +0200 Subject: [PATCH 17/17] Move array ok to types --- generated/v2.19.0/graph_objects/bar_gen.go | 74 +++++++------ .../v2.19.0/graph_objects/barpolar_gen.go | 52 ++++----- generated/v2.19.0/graph_objects/box_gen.go | 28 ++--- .../v2.19.0/graph_objects/candlestick_gen.go | 26 +++-- generated/v2.19.0/graph_objects/carpet_gen.go | 6 +- .../v2.19.0/graph_objects/choropleth_gen.go | 34 +++--- .../graph_objects/choroplethmapbox_gen.go | 34 +++--- generated/v2.19.0/graph_objects/cone_gen.go | 28 ++--- .../v2.19.0/graph_objects/contour_gen.go | 24 +++-- .../graph_objects/contourcarpet_gen.go | 6 +- .../graph_objects/densitymapbox_gen.go | 30 +++--- generated/v2.19.0/graph_objects/funnel_gen.go | 58 +++++----- .../v2.19.0/graph_objects/funnelarea_gen.go | 52 ++++----- .../v2.19.0/graph_objects/heatmap_gen.go | 24 +++-- .../v2.19.0/graph_objects/heatmapgl_gen.go | 22 ++-- .../v2.19.0/graph_objects/histogram2d_gen.go | 24 +++-- .../graph_objects/histogram2dcontour_gen.go | 24 +++-- .../v2.19.0/graph_objects/histogram_gen.go | 46 ++++---- generated/v2.19.0/graph_objects/icicle_gen.go | 56 +++++----- generated/v2.19.0/graph_objects/image_gen.go | 24 +++-- .../v2.19.0/graph_objects/indicator_gen.go | 6 +- .../v2.19.0/graph_objects/isosurface_gen.go | 28 ++--- generated/v2.19.0/graph_objects/layout_gen.go | 14 ++- generated/v2.19.0/graph_objects/mesh3d_gen.go | 28 ++--- generated/v2.19.0/graph_objects/ohlc_gen.go | 26 +++-- .../v2.19.0/graph_objects/parcats_gen.go | 10 +- .../v2.19.0/graph_objects/parcoords_gen.go | 8 +- generated/v2.19.0/graph_objects/pie_gen.go | 60 ++++++----- generated/v2.19.0/graph_objects/plotly_gen.go | 49 --------- .../v2.19.0/graph_objects/pointcloud_gen.go | 24 +++-- generated/v2.19.0/graph_objects/sankey_gen.go | 64 +++++------ .../v2.19.0/graph_objects/scatter3d_gen.go | 46 ++++---- .../v2.19.0/graph_objects/scatter_gen.go | 70 ++++++------ .../graph_objects/scattercarpet_gen.go | 60 ++++++----- .../v2.19.0/graph_objects/scattergeo_gen.go | 58 +++++----- .../v2.19.0/graph_objects/scattergl_gen.go | 52 ++++----- .../graph_objects/scattermapbox_gen.go | 48 +++++---- .../v2.19.0/graph_objects/scatterpolar_gen.go | 60 ++++++----- .../graph_objects/scatterpolargl_gen.go | 52 ++++----- .../v2.19.0/graph_objects/scattersmith_gen.go | 60 ++++++----- .../graph_objects/scatterternary_gen.go | 60 ++++++----- generated/v2.19.0/graph_objects/splom_gen.go | 42 ++++---- .../v2.19.0/graph_objects/streamtube_gen.go | 24 +++-- .../v2.19.0/graph_objects/sunburst_gen.go | 50 +++++---- .../v2.19.0/graph_objects/surface_gen.go | 28 ++--- generated/v2.19.0/graph_objects/table_gen.go | 60 ++++++----- .../v2.19.0/graph_objects/treemap_gen.go | 56 +++++----- generated/v2.19.0/graph_objects/violin_gen.go | 28 ++--- generated/v2.19.0/graph_objects/volume_gen.go | 28 ++--- .../v2.19.0/graph_objects/waterfall_gen.go | 54 +++++----- generated/v2.29.1/graph_objects/bar_gen.go | 74 +++++++------ .../v2.29.1/graph_objects/barpolar_gen.go | 52 ++++----- generated/v2.29.1/graph_objects/box_gen.go | 28 ++--- .../v2.29.1/graph_objects/candlestick_gen.go | 26 +++-- generated/v2.29.1/graph_objects/carpet_gen.go | 6 +- .../v2.29.1/graph_objects/choropleth_gen.go | 34 +++--- .../graph_objects/choroplethmapbox_gen.go | 34 +++--- generated/v2.29.1/graph_objects/cone_gen.go | 28 ++--- .../v2.29.1/graph_objects/contour_gen.go | 24 +++-- .../graph_objects/contourcarpet_gen.go | 6 +- .../graph_objects/densitymapbox_gen.go | 30 +++--- generated/v2.29.1/graph_objects/funnel_gen.go | 58 +++++----- .../v2.29.1/graph_objects/funnelarea_gen.go | 62 ++++++----- .../v2.29.1/graph_objects/heatmap_gen.go | 24 +++-- .../v2.29.1/graph_objects/heatmapgl_gen.go | 22 ++-- .../v2.29.1/graph_objects/histogram2d_gen.go | 24 +++-- .../graph_objects/histogram2dcontour_gen.go | 24 +++-- .../v2.29.1/graph_objects/histogram_gen.go | 46 ++++---- generated/v2.29.1/graph_objects/icicle_gen.go | 66 ++++++------ generated/v2.29.1/graph_objects/image_gen.go | 24 +++-- .../v2.29.1/graph_objects/indicator_gen.go | 6 +- .../v2.29.1/graph_objects/isosurface_gen.go | 28 ++--- generated/v2.29.1/graph_objects/layout_gen.go | 26 +++-- generated/v2.29.1/graph_objects/mesh3d_gen.go | 28 ++--- generated/v2.29.1/graph_objects/ohlc_gen.go | 26 +++-- .../v2.29.1/graph_objects/parcats_gen.go | 10 +- .../v2.29.1/graph_objects/parcoords_gen.go | 8 +- generated/v2.29.1/graph_objects/pie_gen.go | 70 ++++++------ generated/v2.29.1/graph_objects/plotly_gen.go | 49 --------- .../v2.29.1/graph_objects/pointcloud_gen.go | 24 +++-- generated/v2.29.1/graph_objects/sankey_gen.go | 66 ++++++------ .../v2.29.1/graph_objects/scatter3d_gen.go | 46 ++++---- .../v2.29.1/graph_objects/scatter_gen.go | 70 ++++++------ .../graph_objects/scattercarpet_gen.go | 60 ++++++----- .../v2.29.1/graph_objects/scattergeo_gen.go | 58 +++++----- .../v2.29.1/graph_objects/scattergl_gen.go | 52 ++++----- .../graph_objects/scattermapbox_gen.go | 48 +++++---- .../v2.29.1/graph_objects/scatterpolar_gen.go | 60 ++++++----- .../graph_objects/scatterpolargl_gen.go | 52 ++++----- .../v2.29.1/graph_objects/scattersmith_gen.go | 60 ++++++----- .../graph_objects/scatterternary_gen.go | 60 ++++++----- generated/v2.29.1/graph_objects/splom_gen.go | 42 ++++---- .../v2.29.1/graph_objects/streamtube_gen.go | 24 +++-- .../v2.29.1/graph_objects/sunburst_gen.go | 60 ++++++----- .../v2.29.1/graph_objects/surface_gen.go | 28 ++--- generated/v2.29.1/graph_objects/table_gen.go | 60 ++++++----- .../v2.29.1/graph_objects/treemap_gen.go | 66 ++++++------ generated/v2.29.1/graph_objects/violin_gen.go | 28 ++--- generated/v2.29.1/graph_objects/volume_gen.go | 28 ++--- .../v2.29.1/graph_objects/waterfall_gen.go | 54 +++++----- generated/v2.31.1/graph_objects/bar_gen.go | 74 +++++++------ .../v2.31.1/graph_objects/barpolar_gen.go | 52 ++++----- generated/v2.31.1/graph_objects/box_gen.go | 28 ++--- .../v2.31.1/graph_objects/candlestick_gen.go | 26 +++-- generated/v2.31.1/graph_objects/carpet_gen.go | 6 +- .../v2.31.1/graph_objects/choropleth_gen.go | 34 +++--- .../graph_objects/choroplethmapbox_gen.go | 34 +++--- generated/v2.31.1/graph_objects/cone_gen.go | 28 ++--- .../v2.31.1/graph_objects/contour_gen.go | 24 +++-- .../graph_objects/contourcarpet_gen.go | 6 +- .../graph_objects/densitymapbox_gen.go | 30 +++--- generated/v2.31.1/graph_objects/funnel_gen.go | 58 +++++----- .../v2.31.1/graph_objects/funnelarea_gen.go | 62 ++++++----- .../v2.31.1/graph_objects/heatmap_gen.go | 24 +++-- .../v2.31.1/graph_objects/heatmapgl_gen.go | 22 ++-- .../v2.31.1/graph_objects/histogram2d_gen.go | 24 +++-- .../graph_objects/histogram2dcontour_gen.go | 24 +++-- .../v2.31.1/graph_objects/histogram_gen.go | 46 ++++---- generated/v2.31.1/graph_objects/icicle_gen.go | 66 ++++++------ generated/v2.31.1/graph_objects/image_gen.go | 24 +++-- .../v2.31.1/graph_objects/indicator_gen.go | 6 +- .../v2.31.1/graph_objects/isosurface_gen.go | 28 ++--- generated/v2.31.1/graph_objects/layout_gen.go | 26 +++-- generated/v2.31.1/graph_objects/mesh3d_gen.go | 28 ++--- generated/v2.31.1/graph_objects/ohlc_gen.go | 26 +++-- .../v2.31.1/graph_objects/parcats_gen.go | 10 +- .../v2.31.1/graph_objects/parcoords_gen.go | 8 +- generated/v2.31.1/graph_objects/pie_gen.go | 70 ++++++------ generated/v2.31.1/graph_objects/plotly_gen.go | 49 --------- .../v2.31.1/graph_objects/pointcloud_gen.go | 24 +++-- generated/v2.31.1/graph_objects/sankey_gen.go | 66 ++++++------ .../v2.31.1/graph_objects/scatter3d_gen.go | 46 ++++---- .../v2.31.1/graph_objects/scatter_gen.go | 70 ++++++------ .../graph_objects/scattercarpet_gen.go | 60 ++++++----- .../v2.31.1/graph_objects/scattergeo_gen.go | 58 +++++----- .../v2.31.1/graph_objects/scattergl_gen.go | 52 ++++----- .../graph_objects/scattermapbox_gen.go | 48 +++++---- .../v2.31.1/graph_objects/scatterpolar_gen.go | 60 ++++++----- .../graph_objects/scatterpolargl_gen.go | 52 ++++----- .../v2.31.1/graph_objects/scattersmith_gen.go | 60 ++++++----- .../graph_objects/scatterternary_gen.go | 60 ++++++----- generated/v2.31.1/graph_objects/splom_gen.go | 42 ++++---- .../v2.31.1/graph_objects/streamtube_gen.go | 24 +++-- .../v2.31.1/graph_objects/sunburst_gen.go | 60 ++++++----- .../v2.31.1/graph_objects/surface_gen.go | 28 ++--- generated/v2.31.1/graph_objects/table_gen.go | 60 ++++++----- .../v2.31.1/graph_objects/treemap_gen.go | 66 ++++++------ generated/v2.31.1/graph_objects/violin_gen.go | 28 ++--- generated/v2.31.1/graph_objects/volume_gen.go | 28 ++--- .../v2.31.1/graph_objects/waterfall_gen.go | 54 +++++----- generator/renderer.go | 34 +++--- generator/templates/layout_base.tmpl | 7 ++ generator/templates/plotly.go | 49 --------- generator/templates/trace_base.tmpl | 14 +++ generator/typefile.go | 14 +-- types/{ => arrayok}/arrayok.go | 18 ++-- types/{ => arrayok}/arrayok_test.go | 102 +++++++++--------- 157 files changed, 3280 insertions(+), 2861 deletions(-) create mode 100644 generator/templates/layout_base.tmpl create mode 100644 generator/templates/trace_base.tmpl rename types/{ => arrayok}/arrayok.go (58%) rename types/{ => arrayok}/arrayok_test.go (77%) diff --git a/generated/v2.19.0/graph_objects/bar_gen.go b/generated/v2.19.0/graph_objects/bar_gen.go index d5ef901..01cf378 100644 --- a/generated/v2.19.0/graph_objects/bar_gen.go +++ b/generated/v2.19.0/graph_objects/bar_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeBar TraceType = "bar" func (trace *Bar) GetType() TraceType { @@ -25,7 +29,7 @@ type Bar struct { // arrayOK: true // type: any // Sets where the bar base is drawn (in position axis units). In *stack* or *relative* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead. - Base ArrayOK[*interface{}] `json:"base,omitempty"` + Base arrayok.Type[*interface{}] `json:"base,omitempty"` // Basesrc // arrayOK: false @@ -85,7 +89,7 @@ type Bar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*BarHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*BarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -102,7 +106,7 @@ type Bar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -114,7 +118,7 @@ type Bar struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -178,7 +182,7 @@ type Bar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -196,7 +200,7 @@ type Bar struct { // arrayOK: true // type: number // Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead. - Offset ArrayOK[*float64] `json:"offset,omitempty"` + Offset arrayok.Type[*float64] `json:"offset,omitempty"` // Offsetgroup // arrayOK: false @@ -254,7 +258,7 @@ type Bar struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -272,7 +276,7 @@ type Bar struct { // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition ArrayOK[*BarTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*BarTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -290,7 +294,7 @@ type Bar struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `value` and `label`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -332,7 +336,7 @@ type Bar struct { // arrayOK: true // type: number // Sets the bar width (in position axis units). - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -644,7 +648,7 @@ type BarHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -656,7 +660,7 @@ type BarHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -668,7 +672,7 @@ type BarHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -685,7 +689,7 @@ type BarHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*BarHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*BarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -697,7 +701,7 @@ type BarHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -709,7 +713,7 @@ type BarHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -726,7 +730,7 @@ type BarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -742,7 +746,7 @@ type BarInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -754,7 +758,7 @@ type BarInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -766,7 +770,7 @@ type BarInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1206,7 +1210,7 @@ type BarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1236,7 +1240,7 @@ type BarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1252,7 +1256,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -1264,7 +1268,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -1290,7 +1294,7 @@ type BarMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*BarMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*BarMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -1302,7 +1306,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1314,7 +1318,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1360,7 +1364,7 @@ type BarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1394,7 +1398,7 @@ type BarMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1427,7 +1431,7 @@ type BarOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1439,7 +1443,7 @@ type BarOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1451,7 +1455,7 @@ type BarOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1523,7 +1527,7 @@ type BarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1535,7 +1539,7 @@ type BarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1547,7 +1551,7 @@ type BarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/barpolar_gen.go b/generated/v2.19.0/graph_objects/barpolar_gen.go index 5f51ce5..781ef8a 100644 --- a/generated/v2.19.0/graph_objects/barpolar_gen.go +++ b/generated/v2.19.0/graph_objects/barpolar_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeBarpolar TraceType = "barpolar" func (trace *Barpolar) GetType() TraceType { @@ -19,7 +23,7 @@ type Barpolar struct { // arrayOK: true // type: any // Sets where the bar base is drawn (in radial axis units). In *stack* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead. - Base ArrayOK[*interface{}] `json:"base,omitempty"` + Base arrayok.Type[*interface{}] `json:"base,omitempty"` // Basesrc // arrayOK: false @@ -56,7 +60,7 @@ type Barpolar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*BarpolarHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*BarpolarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -73,7 +77,7 @@ type Barpolar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -85,7 +89,7 @@ type Barpolar struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -137,7 +141,7 @@ type Barpolar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -155,7 +159,7 @@ type Barpolar struct { // arrayOK: true // type: number // Shifts the angular position where the bar is drawn (in *thetatunit* units). - Offset ArrayOK[*float64] `json:"offset,omitempty"` + Offset arrayok.Type[*float64] `json:"offset,omitempty"` // Offsetsrc // arrayOK: false @@ -219,7 +223,7 @@ type Barpolar struct { // arrayOK: true // type: string // Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace's coordinates. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -286,7 +290,7 @@ type Barpolar struct { // arrayOK: true // type: number // Sets the bar angular width (in *thetaunit* units). - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -302,7 +306,7 @@ type BarpolarHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -314,7 +318,7 @@ type BarpolarHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -326,7 +330,7 @@ type BarpolarHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -343,7 +347,7 @@ type BarpolarHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*BarpolarHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*BarpolarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -355,7 +359,7 @@ type BarpolarHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -367,7 +371,7 @@ type BarpolarHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -384,7 +388,7 @@ type BarpolarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -824,7 +828,7 @@ type BarpolarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -854,7 +858,7 @@ type BarpolarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -870,7 +874,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -882,7 +886,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -908,7 +912,7 @@ type BarpolarMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*BarpolarMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*BarpolarMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -920,7 +924,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -932,7 +936,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -978,7 +982,7 @@ type BarpolarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1012,7 +1016,7 @@ type BarpolarMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/box_gen.go b/generated/v2.19.0/graph_objects/box_gen.go index 2fb7be0..4de9878 100644 --- a/generated/v2.19.0/graph_objects/box_gen.go +++ b/generated/v2.19.0/graph_objects/box_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeBox TraceType = "box" func (trace *Box) GetType() TraceType { @@ -70,7 +74,7 @@ type Box struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*BoxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*BoxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -94,7 +98,7 @@ type Box struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -106,7 +110,7 @@ type Box struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -205,7 +209,7 @@ type Box struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -337,7 +341,7 @@ type Box struct { // arrayOK: true // type: string // Sets the text elements associated with each sample value. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -519,7 +523,7 @@ type BoxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -531,7 +535,7 @@ type BoxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -543,7 +547,7 @@ type BoxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -560,7 +564,7 @@ type BoxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*BoxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*BoxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -572,7 +576,7 @@ type BoxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -584,7 +588,7 @@ type BoxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -601,7 +605,7 @@ type BoxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/candlestick_gen.go b/generated/v2.19.0/graph_objects/candlestick_gen.go index 41a65f6..467c877 100644 --- a/generated/v2.19.0/graph_objects/candlestick_gen.go +++ b/generated/v2.19.0/graph_objects/candlestick_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeCandlestick TraceType = "candlestick" func (trace *Candlestick) GetType() TraceType { @@ -61,7 +65,7 @@ type Candlestick struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*CandlestickHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*CandlestickHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -78,7 +82,7 @@ type Candlestick struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -147,7 +151,7 @@ type Candlestick struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -200,7 +204,7 @@ type Candlestick struct { // arrayOK: true // type: string // Sets hover text elements associated with each sample point. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to this trace's sample points. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -340,7 +344,7 @@ type CandlestickHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -352,7 +356,7 @@ type CandlestickHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -364,7 +368,7 @@ type CandlestickHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -381,7 +385,7 @@ type CandlestickHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*CandlestickHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*CandlestickHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -393,7 +397,7 @@ type CandlestickHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -405,7 +409,7 @@ type CandlestickHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -422,7 +426,7 @@ type CandlestickHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/carpet_gen.go b/generated/v2.19.0/graph_objects/carpet_gen.go index 5c3f5a4..7460219 100644 --- a/generated/v2.19.0/graph_objects/carpet_gen.go +++ b/generated/v2.19.0/graph_objects/carpet_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeCarpet TraceType = "carpet" func (trace *Carpet) GetType() TraceType { @@ -141,7 +145,7 @@ type Carpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/choropleth_gen.go b/generated/v2.19.0/graph_objects/choropleth_gen.go index f6b15d5..5d2810c 100644 --- a/generated/v2.19.0/graph_objects/choropleth_gen.go +++ b/generated/v2.19.0/graph_objects/choropleth_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeChoropleth TraceType = "choropleth" func (trace *Choropleth) GetType() TraceType { @@ -73,7 +77,7 @@ type Choropleth struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ChoroplethHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ChoroplethHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -90,7 +94,7 @@ type Choropleth struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -102,7 +106,7 @@ type Choropleth struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -173,7 +177,7 @@ type Choropleth struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -225,7 +229,7 @@ type Choropleth struct { // arrayOK: true // type: string // Sets the text elements associated with each location. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -664,7 +668,7 @@ type ChoroplethHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -676,7 +680,7 @@ type ChoroplethHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -688,7 +692,7 @@ type ChoroplethHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -705,7 +709,7 @@ type ChoroplethHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ChoroplethHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ChoroplethHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -717,7 +721,7 @@ type ChoroplethHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -729,7 +733,7 @@ type ChoroplethHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -746,7 +750,7 @@ type ChoroplethHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -799,7 +803,7 @@ type ChoroplethMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -811,7 +815,7 @@ type ChoroplethMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -832,7 +836,7 @@ type ChoroplethMarker struct { // arrayOK: true // type: number // Sets the opacity of the locations. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go b/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go index b835c13..677c9b2 100644 --- a/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go +++ b/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeChoroplethmapbox TraceType = "choroplethmapbox" func (trace *Choroplethmapbox) GetType() TraceType { @@ -73,7 +77,7 @@ type Choroplethmapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ChoroplethmapboxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ChoroplethmapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -90,7 +94,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variable `properties` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -102,7 +106,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -166,7 +170,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -224,7 +228,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Sets the text elements associated with each location. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -663,7 +667,7 @@ type ChoroplethmapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -675,7 +679,7 @@ type ChoroplethmapboxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -687,7 +691,7 @@ type ChoroplethmapboxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -704,7 +708,7 @@ type ChoroplethmapboxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ChoroplethmapboxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ChoroplethmapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -716,7 +720,7 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -728,7 +732,7 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -745,7 +749,7 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -798,7 +802,7 @@ type ChoroplethmapboxMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -810,7 +814,7 @@ type ChoroplethmapboxMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -831,7 +835,7 @@ type ChoroplethmapboxMarker struct { // arrayOK: true // type: number // Sets the opacity of the locations. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/cone_gen.go b/generated/v2.19.0/graph_objects/cone_gen.go index 260e508..8799232 100644 --- a/generated/v2.19.0/graph_objects/cone_gen.go +++ b/generated/v2.19.0/graph_objects/cone_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeCone TraceType = "cone" func (trace *Cone) GetType() TraceType { @@ -86,7 +90,7 @@ type Cone struct { // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ConeHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ConeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -103,7 +107,7 @@ type Cone struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variable `norm` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -115,7 +119,7 @@ type Cone struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -172,7 +176,7 @@ type Cone struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -238,7 +242,7 @@ type Cone struct { // arrayOK: true // type: string // Sets the text elements associated with the cones. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -738,7 +742,7 @@ type ConeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -750,7 +754,7 @@ type ConeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -762,7 +766,7 @@ type ConeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -779,7 +783,7 @@ type ConeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ConeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ConeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -791,7 +795,7 @@ type ConeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -803,7 +807,7 @@ type ConeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -820,7 +824,7 @@ type ConeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/contour_gen.go b/generated/v2.19.0/graph_objects/contour_gen.go index 724ca1d..21433c9 100644 --- a/generated/v2.19.0/graph_objects/contour_gen.go +++ b/generated/v2.19.0/graph_objects/contour_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeContour TraceType = "contour" func (trace *Contour) GetType() TraceType { @@ -90,7 +94,7 @@ type Contour struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ContourHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ContourHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -113,7 +117,7 @@ type Contour struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -177,7 +181,7 @@ type Contour struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -907,7 +911,7 @@ type ContourHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -919,7 +923,7 @@ type ContourHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -931,7 +935,7 @@ type ContourHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -948,7 +952,7 @@ type ContourHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ContourHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ContourHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -960,7 +964,7 @@ type ContourHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -972,7 +976,7 @@ type ContourHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -989,7 +993,7 @@ type ContourHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/contourcarpet_gen.go b/generated/v2.19.0/graph_objects/contourcarpet_gen.go index bf59314..1b9b8fd 100644 --- a/generated/v2.19.0/graph_objects/contourcarpet_gen.go +++ b/generated/v2.19.0/graph_objects/contourcarpet_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeContourcarpet TraceType = "contourcarpet" func (trace *Contourcarpet) GetType() TraceType { @@ -191,7 +195,7 @@ type Contourcarpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/densitymapbox_gen.go b/generated/v2.19.0/graph_objects/densitymapbox_gen.go index a2200af..f7e77cc 100644 --- a/generated/v2.19.0/graph_objects/densitymapbox_gen.go +++ b/generated/v2.19.0/graph_objects/densitymapbox_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeDensitymapbox TraceType = "densitymapbox" func (trace *Densitymapbox) GetType() TraceType { @@ -61,7 +65,7 @@ type Densitymapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*DensitymapboxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*DensitymapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -78,7 +82,7 @@ type Densitymapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -90,7 +94,7 @@ type Densitymapbox struct { // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -161,7 +165,7 @@ type Densitymapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -185,7 +189,7 @@ type Densitymapbox struct { // arrayOK: true // type: number // Sets the radius of influence of one `lon` / `lat` point in pixels. Increasing the value makes the densitymapbox trace smoother, but less detailed. - Radius ArrayOK[*float64] `json:"radius,omitempty"` + Radius arrayok.Type[*float64] `json:"radius,omitempty"` // Radiussrc // arrayOK: false @@ -226,7 +230,7 @@ type Densitymapbox struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -660,7 +664,7 @@ type DensitymapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -672,7 +676,7 @@ type DensitymapboxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -684,7 +688,7 @@ type DensitymapboxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -701,7 +705,7 @@ type DensitymapboxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*DensitymapboxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*DensitymapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -713,7 +717,7 @@ type DensitymapboxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -725,7 +729,7 @@ type DensitymapboxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -742,7 +746,7 @@ type DensitymapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/funnel_gen.go b/generated/v2.19.0/graph_objects/funnel_gen.go index cee492b..db61f85 100644 --- a/generated/v2.19.0/graph_objects/funnel_gen.go +++ b/generated/v2.19.0/graph_objects/funnel_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeFunnel TraceType = "funnel" func (trace *Funnel) GetType() TraceType { @@ -68,7 +72,7 @@ type Funnel struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*FunnelHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*FunnelHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -85,7 +89,7 @@ type Funnel struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `percentInitial`, `percentPrevious` and `percentTotal`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -97,7 +101,7 @@ type Funnel struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -161,7 +165,7 @@ type Funnel struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -226,7 +230,7 @@ type Funnel struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -251,7 +255,7 @@ type Funnel struct { // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition ArrayOK[*FunnelTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*FunnelTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -269,7 +273,7 @@ type Funnel struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `percentInitial`, `percentPrevious`, `percentTotal`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -457,7 +461,7 @@ type FunnelHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -469,7 +473,7 @@ type FunnelHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -481,7 +485,7 @@ type FunnelHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -498,7 +502,7 @@ type FunnelHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*FunnelHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*FunnelHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -510,7 +514,7 @@ type FunnelHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -522,7 +526,7 @@ type FunnelHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -539,7 +543,7 @@ type FunnelHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -555,7 +559,7 @@ type FunnelInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -567,7 +571,7 @@ type FunnelInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -579,7 +583,7 @@ type FunnelInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1019,7 +1023,7 @@ type FunnelMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1049,7 +1053,7 @@ type FunnelMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1095,7 +1099,7 @@ type FunnelMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1129,7 +1133,7 @@ type FunnelMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1157,7 +1161,7 @@ type FunnelOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1169,7 +1173,7 @@ type FunnelOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1181,7 +1185,7 @@ type FunnelOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1213,7 +1217,7 @@ type FunnelTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1225,7 +1229,7 @@ type FunnelTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1237,7 +1241,7 @@ type FunnelTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/funnelarea_gen.go b/generated/v2.19.0/graph_objects/funnelarea_gen.go index 3618adc..894cbe1 100644 --- a/generated/v2.19.0/graph_objects/funnelarea_gen.go +++ b/generated/v2.19.0/graph_objects/funnelarea_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeFunnelarea TraceType = "funnelarea" func (trace *Funnelarea) GetType() TraceType { @@ -55,7 +59,7 @@ type Funnelarea struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*FunnelareaHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*FunnelareaHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -72,7 +76,7 @@ type Funnelarea struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `label`, `color`, `value`, `text` and `percent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -84,7 +88,7 @@ type Funnelarea struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -159,7 +163,7 @@ type Funnelarea struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -219,7 +223,7 @@ type Funnelarea struct { // default: inside // type: enumerated // Specifies the location of the `textinfo`. - Textposition ArrayOK[*FunnelareaTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*FunnelareaTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -237,7 +241,7 @@ type Funnelarea struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `label`, `color`, `value`, `text` and `percent`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -323,7 +327,7 @@ type FunnelareaHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -335,7 +339,7 @@ type FunnelareaHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -347,7 +351,7 @@ type FunnelareaHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -364,7 +368,7 @@ type FunnelareaHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*FunnelareaHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*FunnelareaHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -376,7 +380,7 @@ type FunnelareaHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -388,7 +392,7 @@ type FunnelareaHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -405,7 +409,7 @@ type FunnelareaHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -421,7 +425,7 @@ type FunnelareaInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -433,7 +437,7 @@ type FunnelareaInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -445,7 +449,7 @@ type FunnelareaInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -498,7 +502,7 @@ type FunnelareaMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -510,7 +514,7 @@ type FunnelareaMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -563,7 +567,7 @@ type FunnelareaTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -575,7 +579,7 @@ type FunnelareaTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -587,7 +591,7 @@ type FunnelareaTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -603,7 +607,7 @@ type FunnelareaTitleFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -615,7 +619,7 @@ type FunnelareaTitleFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -627,7 +631,7 @@ type FunnelareaTitleFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/heatmap_gen.go b/generated/v2.19.0/graph_objects/heatmap_gen.go index 67f2f5a..adb6904 100644 --- a/generated/v2.19.0/graph_objects/heatmap_gen.go +++ b/generated/v2.19.0/graph_objects/heatmap_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHeatmap TraceType = "heatmap" func (trace *Heatmap) GetType() TraceType { @@ -73,7 +77,7 @@ type Heatmap struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*HeatmapHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*HeatmapHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -96,7 +100,7 @@ type Heatmap struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -155,7 +159,7 @@ type Heatmap struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -804,7 +808,7 @@ type HeatmapHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -816,7 +820,7 @@ type HeatmapHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -828,7 +832,7 @@ type HeatmapHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -845,7 +849,7 @@ type HeatmapHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*HeatmapHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*HeatmapHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -857,7 +861,7 @@ type HeatmapHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -869,7 +873,7 @@ type HeatmapHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -886,7 +890,7 @@ type HeatmapHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/heatmapgl_gen.go b/generated/v2.19.0/graph_objects/heatmapgl_gen.go index 4e98a62..337c752 100644 --- a/generated/v2.19.0/graph_objects/heatmapgl_gen.go +++ b/generated/v2.19.0/graph_objects/heatmapgl_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHeatmapgl TraceType = "heatmapgl" func (trace *Heatmapgl) GetType() TraceType { @@ -67,7 +71,7 @@ type Heatmapgl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*HeatmapglHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*HeatmapglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -113,7 +117,7 @@ type Heatmapgl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -663,7 +667,7 @@ type HeatmapglHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -675,7 +679,7 @@ type HeatmapglHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -687,7 +691,7 @@ type HeatmapglHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -704,7 +708,7 @@ type HeatmapglHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*HeatmapglHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*HeatmapglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -716,7 +720,7 @@ type HeatmapglHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -728,7 +732,7 @@ type HeatmapglHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -745,7 +749,7 @@ type HeatmapglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/histogram2d_gen.go b/generated/v2.19.0/graph_objects/histogram2d_gen.go index 70a7e89..e7295b2 100644 --- a/generated/v2.19.0/graph_objects/histogram2d_gen.go +++ b/generated/v2.19.0/graph_objects/histogram2d_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHistogram2d TraceType = "histogram2d" func (trace *Histogram2d) GetType() TraceType { @@ -87,7 +91,7 @@ type Histogram2d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Histogram2dHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Histogram2dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -104,7 +108,7 @@ type Histogram2d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variable `z` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -156,7 +160,7 @@ type Histogram2d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -757,7 +761,7 @@ type Histogram2dHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -769,7 +773,7 @@ type Histogram2dHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -781,7 +785,7 @@ type Histogram2dHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -798,7 +802,7 @@ type Histogram2dHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Histogram2dHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Histogram2dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -810,7 +814,7 @@ type Histogram2dHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -822,7 +826,7 @@ type Histogram2dHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -839,7 +843,7 @@ type Histogram2dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go b/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go index 4dc1d98..8360966 100644 --- a/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go +++ b/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHistogram2dcontour TraceType = "histogram2dcontour" func (trace *Histogram2dcontour) GetType() TraceType { @@ -98,7 +102,7 @@ type Histogram2dcontour struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Histogram2dcontourHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Histogram2dcontourHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -115,7 +119,7 @@ type Histogram2dcontour struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variable `z` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -172,7 +176,7 @@ type Histogram2dcontour struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -854,7 +858,7 @@ type Histogram2dcontourHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -866,7 +870,7 @@ type Histogram2dcontourHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -878,7 +882,7 @@ type Histogram2dcontourHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -895,7 +899,7 @@ type Histogram2dcontourHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Histogram2dcontourHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Histogram2dcontourHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -907,7 +911,7 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -919,7 +923,7 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -936,7 +940,7 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/histogram_gen.go b/generated/v2.19.0/graph_objects/histogram_gen.go index dd0fbb9..cfdf689 100644 --- a/generated/v2.19.0/graph_objects/histogram_gen.go +++ b/generated/v2.19.0/graph_objects/histogram_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHistogram TraceType = "histogram" func (trace *Histogram) GetType() TraceType { @@ -98,7 +102,7 @@ type Histogram struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*HistogramHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*HistogramHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -115,7 +119,7 @@ type Histogram struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variable `binNumber` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -127,7 +131,7 @@ type Histogram struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -191,7 +195,7 @@ type Histogram struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -267,7 +271,7 @@ type Histogram struct { // arrayOK: true // type: string // Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace's coordinates. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -617,7 +621,7 @@ type HistogramHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -629,7 +633,7 @@ type HistogramHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -641,7 +645,7 @@ type HistogramHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -658,7 +662,7 @@ type HistogramHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*HistogramHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*HistogramHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -670,7 +674,7 @@ type HistogramHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -682,7 +686,7 @@ type HistogramHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -699,7 +703,7 @@ type HistogramHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -1161,7 +1165,7 @@ type HistogramMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1191,7 +1195,7 @@ type HistogramMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1207,7 +1211,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -1219,7 +1223,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -1245,7 +1249,7 @@ type HistogramMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*HistogramMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*HistogramMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -1257,7 +1261,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1269,7 +1273,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1315,7 +1319,7 @@ type HistogramMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1349,7 +1353,7 @@ type HistogramMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/icicle_gen.go b/generated/v2.19.0/graph_objects/icicle_gen.go index c10e79d..8c132e4 100644 --- a/generated/v2.19.0/graph_objects/icicle_gen.go +++ b/generated/v2.19.0/graph_objects/icicle_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeIcicle TraceType = "icicle" func (trace *Icicle) GetType() TraceType { @@ -51,7 +55,7 @@ type Icicle struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*IcicleHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*IcicleHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Icicle struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -80,7 +84,7 @@ type Icicle struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -160,7 +164,7 @@ type Icicle struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -253,7 +257,7 @@ type Icicle struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -339,7 +343,7 @@ type IcicleHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -351,7 +355,7 @@ type IcicleHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -363,7 +367,7 @@ type IcicleHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -380,7 +384,7 @@ type IcicleHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*IcicleHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*IcicleHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -392,7 +396,7 @@ type IcicleHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -404,7 +408,7 @@ type IcicleHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -421,7 +425,7 @@ type IcicleHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -437,7 +441,7 @@ type IcicleInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -449,7 +453,7 @@ type IcicleInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -461,7 +465,7 @@ type IcicleInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -881,7 +885,7 @@ type IcicleMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -893,7 +897,7 @@ type IcicleMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -989,7 +993,7 @@ type IcicleOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1001,7 +1005,7 @@ type IcicleOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1013,7 +1017,7 @@ type IcicleOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1029,7 +1033,7 @@ type IciclePathbarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1041,7 +1045,7 @@ type IciclePathbarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1053,7 +1057,7 @@ type IciclePathbarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1130,7 +1134,7 @@ type IcicleTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1142,7 +1146,7 @@ type IcicleTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1154,7 +1158,7 @@ type IcicleTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/image_gen.go b/generated/v2.19.0/graph_objects/image_gen.go index 3ee3eb1..06d0842 100644 --- a/generated/v2.19.0/graph_objects/image_gen.go +++ b/generated/v2.19.0/graph_objects/image_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeImage TraceType = "image" func (trace *Image) GetType() TraceType { @@ -51,7 +55,7 @@ type Image struct { // default: x+y+z+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ImageHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ImageHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Image struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `z`, `color` and `colormodel`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -121,7 +125,7 @@ type Image struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -246,7 +250,7 @@ type ImageHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -258,7 +262,7 @@ type ImageHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -270,7 +274,7 @@ type ImageHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -287,7 +291,7 @@ type ImageHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ImageHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ImageHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -299,7 +303,7 @@ type ImageHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -311,7 +315,7 @@ type ImageHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -328,7 +332,7 @@ type ImageHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/indicator_gen.go b/generated/v2.19.0/graph_objects/indicator_gen.go index 35175d8..23d9585 100644 --- a/generated/v2.19.0/graph_objects/indicator_gen.go +++ b/generated/v2.19.0/graph_objects/indicator_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeIndicator TraceType = "indicator" func (trace *Indicator) GetType() TraceType { @@ -82,7 +86,7 @@ type Indicator struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/isosurface_gen.go b/generated/v2.19.0/graph_objects/isosurface_gen.go index ac8c08f..02346ab 100644 --- a/generated/v2.19.0/graph_objects/isosurface_gen.go +++ b/generated/v2.19.0/graph_objects/isosurface_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeIsosurface TraceType = "isosurface" func (trace *Isosurface) GetType() TraceType { @@ -95,7 +99,7 @@ type Isosurface struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*IsosurfaceHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*IsosurfaceHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -112,7 +116,7 @@ type Isosurface struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -124,7 +128,7 @@ type Isosurface struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -193,7 +197,7 @@ type Isosurface struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -261,7 +265,7 @@ type Isosurface struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -814,7 +818,7 @@ type IsosurfaceHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -826,7 +830,7 @@ type IsosurfaceHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -838,7 +842,7 @@ type IsosurfaceHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -855,7 +859,7 @@ type IsosurfaceHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*IsosurfaceHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*IsosurfaceHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -867,7 +871,7 @@ type IsosurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -879,7 +883,7 @@ type IsosurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -896,7 +900,7 @@ type IsosurfaceHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/layout_gen.go b/generated/v2.19.0/graph_objects/layout_gen.go index 8ef5a01..3b23164 100644 --- a/generated/v2.19.0/graph_objects/layout_gen.go +++ b/generated/v2.19.0/graph_objects/layout_gen.go @@ -1,6 +1,12 @@ package grob -// Code generated by go-plotly/generator. DO NOT EDIT.// Layout Plot layout options +// Code generated by go-plotly/generator. DO NOT EDIT. + +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + +// Layout Plot layout options type Layout struct { // Activeselection @@ -275,7 +281,7 @@ type Layout struct { // arrayOK: true // type: any // Assigns extra meta information that can be used in various `text` attributes. Attributes such as the graph, axis and colorbar `title.text`, annotation `text` `trace.name` in legend items, `rangeselector`, `updatemenus` and `sliders` `label` text all support `meta`. One can access `meta` fields using template strings: `%{meta[i]}` where `i` is the index of the `meta` item in question. `meta` can also be an object for example `{key: value}` which can be accessed %{meta[key]}. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -2027,7 +2033,7 @@ type LayoutModebar struct { // arrayOK: true // type: string // Determines which predefined modebar buttons to add. Please note that these buttons will only be shown if they are compatible with all trace types used in a graph. Similar to `config.modeBarButtonsToAdd` option. This may include *v1hovermode*, *hoverclosest*, *hovercompare*, *togglehover*, *togglespikelines*, *drawline*, *drawopenpath*, *drawclosedpath*, *drawcircle*, *drawrect*, *eraseshape*. - Add ArrayOK[*string] `json:"add,omitempty"` + Add arrayok.Type[*string] `json:"add,omitempty"` // Addsrc // arrayOK: false @@ -2058,7 +2064,7 @@ type LayoutModebar struct { // arrayOK: true // type: string // Determines which predefined modebar buttons to remove. Similar to `config.modeBarButtonsToRemove` option. This may include *autoScale2d*, *autoscale*, *editInChartStudio*, *editinchartstudio*, *hoverCompareCartesian*, *hovercompare*, *lasso*, *lasso2d*, *orbitRotation*, *orbitrotation*, *pan*, *pan2d*, *pan3d*, *reset*, *resetCameraDefault3d*, *resetCameraLastSave3d*, *resetGeo*, *resetSankeyGroup*, *resetScale2d*, *resetViewMapbox*, *resetViews*, *resetcameradefault*, *resetcameralastsave*, *resetsankeygroup*, *resetscale*, *resetview*, *resetviews*, *select*, *select2d*, *sendDataToCloud*, *senddatatocloud*, *tableRotation*, *tablerotation*, *toImage*, *toggleHover*, *toggleSpikelines*, *togglehover*, *togglespikelines*, *toimage*, *zoom*, *zoom2d*, *zoom3d*, *zoomIn2d*, *zoomInGeo*, *zoomInMapbox*, *zoomOut2d*, *zoomOutGeo*, *zoomOutMapbox*, *zoomin*, *zoomout*. - Remove ArrayOK[*string] `json:"remove,omitempty"` + Remove arrayok.Type[*string] `json:"remove,omitempty"` // Removesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/mesh3d_gen.go b/generated/v2.19.0/graph_objects/mesh3d_gen.go index 7d5ecb1..f8dd96f 100644 --- a/generated/v2.19.0/graph_objects/mesh3d_gen.go +++ b/generated/v2.19.0/graph_objects/mesh3d_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeMesh3d TraceType = "mesh3d" func (trace *Mesh3d) GetType() TraceType { @@ -121,7 +125,7 @@ type Mesh3d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Mesh3dHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Mesh3dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -138,7 +142,7 @@ type Mesh3d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -150,7 +154,7 @@ type Mesh3d struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -262,7 +266,7 @@ type Mesh3d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -315,7 +319,7 @@ type Mesh3d struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -816,7 +820,7 @@ type Mesh3dHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -828,7 +832,7 @@ type Mesh3dHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -840,7 +844,7 @@ type Mesh3dHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -857,7 +861,7 @@ type Mesh3dHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Mesh3dHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Mesh3dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -869,7 +873,7 @@ type Mesh3dHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -881,7 +885,7 @@ type Mesh3dHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -898,7 +902,7 @@ type Mesh3dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/ohlc_gen.go b/generated/v2.19.0/graph_objects/ohlc_gen.go index 9dfa8ad..5676fbe 100644 --- a/generated/v2.19.0/graph_objects/ohlc_gen.go +++ b/generated/v2.19.0/graph_objects/ohlc_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeOhlc TraceType = "ohlc" func (trace *Ohlc) GetType() TraceType { @@ -61,7 +65,7 @@ type Ohlc struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*OhlcHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*OhlcHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -78,7 +82,7 @@ type Ohlc struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -147,7 +151,7 @@ type Ohlc struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -200,7 +204,7 @@ type Ohlc struct { // arrayOK: true // type: string // Sets hover text elements associated with each sample point. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to this trace's sample points. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -340,7 +344,7 @@ type OhlcHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -352,7 +356,7 @@ type OhlcHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -364,7 +368,7 @@ type OhlcHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -381,7 +385,7 @@ type OhlcHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*OhlcHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*OhlcHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -393,7 +397,7 @@ type OhlcHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -405,7 +409,7 @@ type OhlcHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -422,7 +426,7 @@ type OhlcHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/parcats_gen.go b/generated/v2.19.0/graph_objects/parcats_gen.go index cd7d6e6..10e34e8 100644 --- a/generated/v2.19.0/graph_objects/parcats_gen.go +++ b/generated/v2.19.0/graph_objects/parcats_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeParcats TraceType = "parcats" func (trace *Parcats) GetType() TraceType { @@ -32,7 +36,7 @@ type Parcats struct { // arrayOK: true // type: number // The number of observations represented by each state. Defaults to 1 so that each state represents one observation - Counts ArrayOK[*float64] `json:"counts,omitempty"` + Counts arrayok.Type[*float64] `json:"counts,omitempty"` // Countssrc // arrayOK: false @@ -96,7 +100,7 @@ type Parcats struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -634,7 +638,7 @@ type ParcatsLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/parcoords_gen.go b/generated/v2.19.0/graph_objects/parcoords_gen.go index 0f89350..900c776 100644 --- a/generated/v2.19.0/graph_objects/parcoords_gen.go +++ b/generated/v2.19.0/graph_objects/parcoords_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeParcoords TraceType = "parcoords" func (trace *Parcoords) GetType() TraceType { @@ -94,7 +98,7 @@ type Parcoords struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -635,7 +639,7 @@ type ParcoordsLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/pie_gen.go b/generated/v2.19.0/graph_objects/pie_gen.go index 02a4ddf..76fe286 100644 --- a/generated/v2.19.0/graph_objects/pie_gen.go +++ b/generated/v2.19.0/graph_objects/pie_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypePie TraceType = "pie" func (trace *Pie) GetType() TraceType { @@ -62,7 +66,7 @@ type Pie struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*PieHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*PieHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -79,7 +83,7 @@ type Pie struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `label`, `color`, `value`, `percent` and `text`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -91,7 +95,7 @@ type Pie struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -173,7 +177,7 @@ type Pie struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -202,7 +206,7 @@ type Pie struct { // arrayOK: true // type: number // Sets the fraction of larger radius to pull the sectors out from the center. This can be a constant to pull all slices apart from each other equally or an array to highlight one or more slices. - Pull ArrayOK[*float64] `json:"pull,omitempty"` + Pull arrayok.Type[*float64] `json:"pull,omitempty"` // Pullsrc // arrayOK: false @@ -262,7 +266,7 @@ type Pie struct { // default: auto // type: enumerated // Specifies the location of the `textinfo`. - Textposition ArrayOK[*PieTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*PieTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -280,7 +284,7 @@ type Pie struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `label`, `color`, `value`, `percent` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -366,7 +370,7 @@ type PieHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -378,7 +382,7 @@ type PieHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -390,7 +394,7 @@ type PieHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -407,7 +411,7 @@ type PieHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*PieHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*PieHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -419,7 +423,7 @@ type PieHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -431,7 +435,7 @@ type PieHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -448,7 +452,7 @@ type PieHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -464,7 +468,7 @@ type PieInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -476,7 +480,7 @@ type PieInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -488,7 +492,7 @@ type PieInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -541,7 +545,7 @@ type PieMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -553,7 +557,7 @@ type PieMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -590,7 +594,7 @@ type PieOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -602,7 +606,7 @@ type PieOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -614,7 +618,7 @@ type PieOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -646,7 +650,7 @@ type PieTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -658,7 +662,7 @@ type PieTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -670,7 +674,7 @@ type PieTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -686,7 +690,7 @@ type PieTitleFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -698,7 +702,7 @@ type PieTitleFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -710,7 +714,7 @@ type PieTitleFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/plotly_gen.go b/generated/v2.19.0/graph_objects/plotly_gen.go index f1b563d..692f355 100644 --- a/generated/v2.19.0/graph_objects/plotly_gen.go +++ b/generated/v2.19.0/graph_objects/plotly_gen.go @@ -153,52 +153,3 @@ type ColorList []Color // ColorScale A Plotly colorscale either picked by a name: (any of Greys, YlGnBu, Greens, YlOrRd, Bluered, RdBu, Reds, Blues, Picnic, Rainbow, Portland, Jet, Hot, Blackbody, Earth, Electric, Viridis, Cividis ) customized as an {array} of 2-element {arrays} where the first element is the normalized color level value (starting at *0* and ending at *1*), and the second item is a valid color string. type ColorScale interface{} - -func ArrayOKValue[T any](value T) ArrayOK[*T] { - v := &value - return ArrayOK[*T]{Value: v} -} - -func ArrayOKArray[T any](array ...T) ArrayOK[*T] { - out := make([]*T, len(array)) - for i, v := range array { - value := v - out[i] = &value - } - return ArrayOK[*T]{ - Array: out, - } -} - -// ArrayOK is a type that allows you to define a single value or an array of values, But not both. -// If Array is defined, Value will be ignored. -type ArrayOK[T any] struct { - Value T - Array []T -} - -func (arrayOK *ArrayOK[T]) MarshalJSON() ([]byte, error) { - if arrayOK.Array != nil { - return json.Marshal(arrayOK.Array) - } - return json.Marshal(arrayOK.Value) -} - -func (arrayOK *ArrayOK[T]) UnmarshalJSON(data []byte) error { - arrayOK.Array = nil - - var array []T - err := json.Unmarshal(data, &array) - if err == nil { - arrayOK.Array = array - return nil - } - - var value T - err = json.Unmarshal(data, &value) - if err != nil { - return err - } - arrayOK.Value = value - return nil -} diff --git a/generated/v2.19.0/graph_objects/pointcloud_gen.go b/generated/v2.19.0/graph_objects/pointcloud_gen.go index 8bbbad4..a649985 100644 --- a/generated/v2.19.0/graph_objects/pointcloud_gen.go +++ b/generated/v2.19.0/graph_objects/pointcloud_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypePointcloud TraceType = "pointcloud" func (trace *Pointcloud) GetType() TraceType { @@ -32,7 +36,7 @@ type Pointcloud struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*PointcloudHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*PointcloudHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -101,7 +105,7 @@ type Pointcloud struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -136,7 +140,7 @@ type Pointcloud struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -243,7 +247,7 @@ type PointcloudHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -255,7 +259,7 @@ type PointcloudHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -267,7 +271,7 @@ type PointcloudHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -284,7 +288,7 @@ type PointcloudHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*PointcloudHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*PointcloudHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -296,7 +300,7 @@ type PointcloudHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -308,7 +312,7 @@ type PointcloudHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -325,7 +329,7 @@ type PointcloudHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/sankey_gen.go b/generated/v2.19.0/graph_objects/sankey_gen.go index e0c4ba9..b4255c9 100644 --- a/generated/v2.19.0/graph_objects/sankey_gen.go +++ b/generated/v2.19.0/graph_objects/sankey_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSankey TraceType = "sankey" func (trace *Sankey) GetType() TraceType { @@ -89,7 +93,7 @@ type Sankey struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -198,7 +202,7 @@ type SankeyHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -210,7 +214,7 @@ type SankeyHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -222,7 +226,7 @@ type SankeyHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -239,7 +243,7 @@ type SankeyHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SankeyHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SankeyHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -251,7 +255,7 @@ type SankeyHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -263,7 +267,7 @@ type SankeyHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -280,7 +284,7 @@ type SankeyHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -333,7 +337,7 @@ type SankeyLinkHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -345,7 +349,7 @@ type SankeyLinkHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -357,7 +361,7 @@ type SankeyLinkHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -374,7 +378,7 @@ type SankeyLinkHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SankeyLinkHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SankeyLinkHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -386,7 +390,7 @@ type SankeyLinkHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -398,7 +402,7 @@ type SankeyLinkHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -415,7 +419,7 @@ type SankeyLinkHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -431,7 +435,7 @@ type SankeyLinkLine struct { // arrayOK: true // type: color // Sets the color of the `line` around each `link`. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -443,7 +447,7 @@ type SankeyLinkLine struct { // arrayOK: true // type: number // Sets the width (in px) of the `line` around each `link`. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -465,7 +469,7 @@ type SankeyLink struct { // arrayOK: true // type: color // Sets the `link` color. It can be a single value, or an array for specifying color for each `link`. If `link.color` is omitted, then by default, a translucent grey link will be used. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorscales // It's an items array and what goes inside it's... messy... check the docs @@ -507,7 +511,7 @@ type SankeyLink struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -576,7 +580,7 @@ type SankeyNodeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -588,7 +592,7 @@ type SankeyNodeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -600,7 +604,7 @@ type SankeyNodeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -617,7 +621,7 @@ type SankeyNodeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SankeyNodeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SankeyNodeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -629,7 +633,7 @@ type SankeyNodeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -641,7 +645,7 @@ type SankeyNodeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -658,7 +662,7 @@ type SankeyNodeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -674,7 +678,7 @@ type SankeyNodeLine struct { // arrayOK: true // type: color // Sets the color of the `line` around each `node`. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -686,7 +690,7 @@ type SankeyNodeLine struct { // arrayOK: true // type: number // Sets the width (in px) of the `line` around each `node`. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -702,7 +706,7 @@ type SankeyNode struct { // arrayOK: true // type: color // Sets the `node` color. It can be a single value, or an array for specifying color for each `node`. If `node.color` is omitted, then the default `Plotly` color palette will be cycled through to have a variety of colors. These defaults are not fully opaque, to allow some visibility of what is beneath the node. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -744,7 +748,7 @@ type SankeyNode struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scatter3d_gen.go b/generated/v2.19.0/graph_objects/scatter3d_gen.go index fdc671d..e6ef078 100644 --- a/generated/v2.19.0/graph_objects/scatter3d_gen.go +++ b/generated/v2.19.0/graph_objects/scatter3d_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatter3d TraceType = "scatter3d" func (trace *Scatter3d) GetType() TraceType { @@ -53,7 +57,7 @@ type Scatter3d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Scatter3dHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Scatter3dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -70,7 +74,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -82,7 +86,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y,z) triplet. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y,z) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -139,7 +143,7 @@ type Scatter3d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -205,7 +209,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y,z) triplet. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y,z) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -217,7 +221,7 @@ type Scatter3d struct { // default: top center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*Scatter3dTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*Scatter3dTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -235,7 +239,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -630,7 +634,7 @@ type Scatter3dHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -642,7 +646,7 @@ type Scatter3dHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -654,7 +658,7 @@ type Scatter3dHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -671,7 +675,7 @@ type Scatter3dHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Scatter3dHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Scatter3dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -683,7 +687,7 @@ type Scatter3dHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -695,7 +699,7 @@ type Scatter3dHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -712,7 +716,7 @@ type Scatter3dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -1152,7 +1156,7 @@ type Scatter3dLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1597,7 +1601,7 @@ type Scatter3dMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1667,7 +1671,7 @@ type Scatter3dMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1719,7 +1723,7 @@ type Scatter3dMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1751,7 +1755,7 @@ type Scatter3dMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. - Symbol ArrayOK[*Scatter3dMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*Scatter3dMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1868,7 +1872,7 @@ type Scatter3dTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1886,7 +1890,7 @@ type Scatter3dTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scatter_gen.go b/generated/v2.19.0/graph_objects/scatter_gen.go index f498d04..06107f4 100644 --- a/generated/v2.19.0/graph_objects/scatter_gen.go +++ b/generated/v2.19.0/graph_objects/scatter_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatter TraceType = "scatter" func (trace *Scatter) GetType() TraceType { @@ -97,7 +101,7 @@ type Scatter struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -121,7 +125,7 @@ type Scatter struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -133,7 +137,7 @@ type Scatter struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -190,7 +194,7 @@ type Scatter struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -269,7 +273,7 @@ type Scatter struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -281,7 +285,7 @@ type Scatter struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -299,7 +303,7 @@ type Scatter struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -641,7 +645,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -653,7 +657,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -679,7 +683,7 @@ type ScatterFillpattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*ScatterFillpatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*ScatterFillpatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -691,7 +695,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -703,7 +707,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -719,7 +723,7 @@ type ScatterHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -731,7 +735,7 @@ type ScatterHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -743,7 +747,7 @@ type ScatterHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -760,7 +764,7 @@ type ScatterHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -772,7 +776,7 @@ type ScatterHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -784,7 +788,7 @@ type ScatterHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -801,7 +805,7 @@ type ScatterHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -854,7 +858,7 @@ type ScatterLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -1264,7 +1268,7 @@ type ScatterMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1277,7 +1281,7 @@ type ScatterMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScatterMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScatterMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -1323,7 +1327,7 @@ type ScatterMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1353,7 +1357,7 @@ type ScatterMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1369,7 +1373,7 @@ type ScatterMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1418,7 +1422,7 @@ type ScatterMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1463,7 +1467,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1487,7 +1491,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1518,7 +1522,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1531,7 +1535,7 @@ type ScatterMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1609,7 +1613,7 @@ type ScatterTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1621,7 +1625,7 @@ type ScatterTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1633,7 +1637,7 @@ type ScatterTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scattercarpet_gen.go b/generated/v2.19.0/graph_objects/scattercarpet_gen.go index 7c445ff..696890b 100644 --- a/generated/v2.19.0/graph_objects/scattercarpet_gen.go +++ b/generated/v2.19.0/graph_objects/scattercarpet_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattercarpet TraceType = "scattercarpet" func (trace *Scattercarpet) GetType() TraceType { @@ -81,7 +85,7 @@ type Scattercarpet struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattercarpetHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattercarpetHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -105,7 +109,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -117,7 +121,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Sets hover text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -174,7 +178,7 @@ type Scattercarpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -227,7 +231,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Sets text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -239,7 +243,7 @@ type Scattercarpet struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScattercarpetTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScattercarpetTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -257,7 +261,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `a`, `b` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -315,7 +319,7 @@ type ScattercarpetHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -327,7 +331,7 @@ type ScattercarpetHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -339,7 +343,7 @@ type ScattercarpetHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -356,7 +360,7 @@ type ScattercarpetHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattercarpetHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattercarpetHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -368,7 +372,7 @@ type ScattercarpetHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -380,7 +384,7 @@ type ScattercarpetHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -397,7 +401,7 @@ type ScattercarpetHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -450,7 +454,7 @@ type ScattercarpetLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -854,7 +858,7 @@ type ScattercarpetMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -867,7 +871,7 @@ type ScattercarpetMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScattercarpetMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScattercarpetMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -913,7 +917,7 @@ type ScattercarpetMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -943,7 +947,7 @@ type ScattercarpetMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -959,7 +963,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1008,7 +1012,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1053,7 +1057,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1077,7 +1081,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1108,7 +1112,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1121,7 +1125,7 @@ type ScattercarpetMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScattercarpetMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScattercarpetMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1199,7 +1203,7 @@ type ScattercarpetTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1211,7 +1215,7 @@ type ScattercarpetTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1223,7 +1227,7 @@ type ScattercarpetTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scattergeo_gen.go b/generated/v2.19.0/graph_objects/scattergeo_gen.go index fe5181e..67bdcf9 100644 --- a/generated/v2.19.0/graph_objects/scattergeo_gen.go +++ b/generated/v2.19.0/graph_objects/scattergeo_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattergeo TraceType = "scattergeo" func (trace *Scattergeo) GetType() TraceType { @@ -69,7 +73,7 @@ type Scattergeo struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattergeoHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattergeoHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -86,7 +90,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -98,7 +102,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair or item in `locations`. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) or `locations` coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -198,7 +202,7 @@ type Scattergeo struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -251,7 +255,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair or item in `locations`. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) or `locations` coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -263,7 +267,7 @@ type Scattergeo struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScattergeoTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScattergeoTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -281,7 +285,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `lat`, `lon`, `location` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -327,7 +331,7 @@ type ScattergeoHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -339,7 +343,7 @@ type ScattergeoHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -351,7 +355,7 @@ type ScattergeoHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -368,7 +372,7 @@ type ScattergeoHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattergeoHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattergeoHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -380,7 +384,7 @@ type ScattergeoHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -392,7 +396,7 @@ type ScattergeoHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -409,7 +413,7 @@ type ScattergeoHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -841,7 +845,7 @@ type ScattergeoMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -854,7 +858,7 @@ type ScattergeoMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScattergeoMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScattergeoMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -900,7 +904,7 @@ type ScattergeoMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -930,7 +934,7 @@ type ScattergeoMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -946,7 +950,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -995,7 +999,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1034,7 +1038,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1058,7 +1062,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1089,7 +1093,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1102,7 +1106,7 @@ type ScattergeoMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScattergeoMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScattergeoMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1180,7 +1184,7 @@ type ScattergeoTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1192,7 +1196,7 @@ type ScattergeoTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1204,7 +1208,7 @@ type ScattergeoTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scattergl_gen.go b/generated/v2.19.0/graph_objects/scattergl_gen.go index 183ad3c..693b9ec 100644 --- a/generated/v2.19.0/graph_objects/scattergl_gen.go +++ b/generated/v2.19.0/graph_objects/scattergl_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattergl TraceType = "scattergl" func (trace *Scattergl) GetType() TraceType { @@ -73,7 +77,7 @@ type Scattergl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterglHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -90,7 +94,7 @@ type Scattergl struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -102,7 +106,7 @@ type Scattergl struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -159,7 +163,7 @@ type Scattergl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -212,7 +216,7 @@ type Scattergl struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -224,7 +228,7 @@ type Scattergl struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterglTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterglTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -242,7 +246,7 @@ type Scattergl struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -584,7 +588,7 @@ type ScatterglHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -596,7 +600,7 @@ type ScatterglHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -608,7 +612,7 @@ type ScatterglHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -625,7 +629,7 @@ type ScatterglHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterglHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -637,7 +641,7 @@ type ScatterglHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -649,7 +653,7 @@ type ScatterglHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -666,7 +670,7 @@ type ScatterglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -1136,7 +1140,7 @@ type ScatterglMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1166,7 +1170,7 @@ type ScatterglMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1182,7 +1186,7 @@ type ScatterglMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -1224,7 +1228,7 @@ type ScatterglMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1258,7 +1262,7 @@ type ScatterglMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1282,7 +1286,7 @@ type ScatterglMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1314,7 +1318,7 @@ type ScatterglMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterglMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterglMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1392,7 +1396,7 @@ type ScatterglTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1404,7 +1408,7 @@ type ScatterglTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1416,7 +1420,7 @@ type ScatterglTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scattermapbox_gen.go b/generated/v2.19.0/graph_objects/scattermapbox_gen.go index 3fda441..cd2f761 100644 --- a/generated/v2.19.0/graph_objects/scattermapbox_gen.go +++ b/generated/v2.19.0/graph_objects/scattermapbox_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattermapbox TraceType = "scattermapbox" func (trace *Scattermapbox) GetType() TraceType { @@ -62,7 +66,7 @@ type Scattermapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattermapboxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattermapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -79,7 +83,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -91,7 +95,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -172,7 +176,7 @@ type Scattermapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -231,7 +235,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -255,7 +259,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `lat`, `lon` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -301,7 +305,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: color // Sets the color for each cluster step. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -325,7 +329,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -337,7 +341,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: number // Sets the size for each cluster step. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -349,7 +353,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: number // Sets how many points it takes to create a cluster or advance to the next cluster step. Use this in conjunction with arrays for `size` and / or `color`. If an integer, steps start at multiples of this number. If an array, each step extends from the given value until one less than the next value. - Step ArrayOK[*float64] `json:"step,omitempty"` + Step arrayok.Type[*float64] `json:"step,omitempty"` // Stepsrc // arrayOK: false @@ -365,7 +369,7 @@ type ScattermapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -377,7 +381,7 @@ type ScattermapboxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -389,7 +393,7 @@ type ScattermapboxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -406,7 +410,7 @@ type ScattermapboxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattermapboxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattermapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -418,7 +422,7 @@ type ScattermapboxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -430,7 +434,7 @@ type ScattermapboxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -447,7 +451,7 @@ type ScattermapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -879,7 +883,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker orientation from true North, in degrees clockwise. When using the *auto* default, no rotation would be applied in perspective views which is different from using a zero angle. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -921,7 +925,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -950,7 +954,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -974,7 +978,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1005,7 +1009,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: string // Sets the marker symbol. Full list: https://www.mapbox.com/maki-icons/ Note that the array `marker.color` and `marker.size` are only available for *circle* symbols. - Symbol ArrayOK[*string] `json:"symbol,omitempty"` + Symbol arrayok.Type[*string] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scatterpolar_gen.go b/generated/v2.19.0/graph_objects/scatterpolar_gen.go index f729df6..8c2686f 100644 --- a/generated/v2.19.0/graph_objects/scatterpolar_gen.go +++ b/generated/v2.19.0/graph_objects/scatterpolar_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatterpolar TraceType = "scatterpolar" func (trace *Scatterpolar) GetType() TraceType { @@ -69,7 +73,7 @@ type Scatterpolar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterpolarHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterpolarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -93,7 +97,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -105,7 +109,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -162,7 +166,7 @@ type Scatterpolar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -239,7 +243,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -251,7 +255,7 @@ type Scatterpolar struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterpolarTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterpolarTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -269,7 +273,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `r`, `theta` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -340,7 +344,7 @@ type ScatterpolarHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -352,7 +356,7 @@ type ScatterpolarHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -364,7 +368,7 @@ type ScatterpolarHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -381,7 +385,7 @@ type ScatterpolarHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterpolarHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterpolarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -393,7 +397,7 @@ type ScatterpolarHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -405,7 +409,7 @@ type ScatterpolarHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -422,7 +426,7 @@ type ScatterpolarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -475,7 +479,7 @@ type ScatterpolarLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -879,7 +883,7 @@ type ScatterpolarMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -892,7 +896,7 @@ type ScatterpolarMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScatterpolarMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScatterpolarMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -938,7 +942,7 @@ type ScatterpolarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -968,7 +972,7 @@ type ScatterpolarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -984,7 +988,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1033,7 +1037,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1078,7 +1082,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1102,7 +1106,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1133,7 +1137,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1146,7 +1150,7 @@ type ScatterpolarMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterpolarMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterpolarMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1224,7 +1228,7 @@ type ScatterpolarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1236,7 +1240,7 @@ type ScatterpolarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1248,7 +1252,7 @@ type ScatterpolarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scatterpolargl_gen.go b/generated/v2.19.0/graph_objects/scatterpolargl_gen.go index 33831fa..136a345 100644 --- a/generated/v2.19.0/graph_objects/scatterpolargl_gen.go +++ b/generated/v2.19.0/graph_objects/scatterpolargl_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatterpolargl TraceType = "scatterpolargl" func (trace *Scatterpolargl) GetType() TraceType { @@ -63,7 +67,7 @@ type Scatterpolargl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterpolarglHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterpolarglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -80,7 +84,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -92,7 +96,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -149,7 +153,7 @@ type Scatterpolargl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -226,7 +230,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -238,7 +242,7 @@ type Scatterpolargl struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterpolarglTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterpolarglTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -256,7 +260,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `r`, `theta` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -327,7 +331,7 @@ type ScatterpolarglHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -339,7 +343,7 @@ type ScatterpolarglHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -351,7 +355,7 @@ type ScatterpolarglHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -368,7 +372,7 @@ type ScatterpolarglHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterpolarglHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterpolarglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -380,7 +384,7 @@ type ScatterpolarglHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -392,7 +396,7 @@ type ScatterpolarglHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -409,7 +413,7 @@ type ScatterpolarglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -879,7 +883,7 @@ type ScatterpolarglMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -909,7 +913,7 @@ type ScatterpolarglMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -925,7 +929,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -967,7 +971,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1001,7 +1005,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1025,7 +1029,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1057,7 +1061,7 @@ type ScatterpolarglMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterpolarglMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterpolarglMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1135,7 +1139,7 @@ type ScatterpolarglTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1147,7 +1151,7 @@ type ScatterpolarglTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1159,7 +1163,7 @@ type ScatterpolarglTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scattersmith_gen.go b/generated/v2.19.0/graph_objects/scattersmith_gen.go index 717ac3f..eec79b0 100644 --- a/generated/v2.19.0/graph_objects/scattersmith_gen.go +++ b/generated/v2.19.0/graph_objects/scattersmith_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattersmith TraceType = "scattersmith" func (trace *Scattersmith) GetType() TraceType { @@ -57,7 +61,7 @@ type Scattersmith struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattersmithHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattersmithHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -81,7 +85,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -93,7 +97,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -162,7 +166,7 @@ type Scattersmith struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -233,7 +237,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -245,7 +249,7 @@ type Scattersmith struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScattersmithTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScattersmithTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -263,7 +267,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `real`, `imag` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -309,7 +313,7 @@ type ScattersmithHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -321,7 +325,7 @@ type ScattersmithHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -333,7 +337,7 @@ type ScattersmithHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -350,7 +354,7 @@ type ScattersmithHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattersmithHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattersmithHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -362,7 +366,7 @@ type ScattersmithHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -374,7 +378,7 @@ type ScattersmithHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -391,7 +395,7 @@ type ScattersmithHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -444,7 +448,7 @@ type ScattersmithLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -848,7 +852,7 @@ type ScattersmithMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -861,7 +865,7 @@ type ScattersmithMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScattersmithMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScattersmithMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -907,7 +911,7 @@ type ScattersmithMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -937,7 +941,7 @@ type ScattersmithMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -953,7 +957,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1002,7 +1006,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1047,7 +1051,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1071,7 +1075,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1102,7 +1106,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1115,7 +1119,7 @@ type ScattersmithMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScattersmithMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScattersmithMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1193,7 +1197,7 @@ type ScattersmithTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1205,7 +1209,7 @@ type ScattersmithTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1217,7 +1221,7 @@ type ScattersmithTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/scatterternary_gen.go b/generated/v2.19.0/graph_objects/scatterternary_gen.go index 5ae44da..fcf0a98 100644 --- a/generated/v2.19.0/graph_objects/scatterternary_gen.go +++ b/generated/v2.19.0/graph_objects/scatterternary_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatterternary TraceType = "scatterternary" func (trace *Scatterternary) GetType() TraceType { @@ -93,7 +97,7 @@ type Scatterternary struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterternaryHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterternaryHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -117,7 +121,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -129,7 +133,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Sets hover text elements associated with each (a,b,c) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b,c). To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -186,7 +190,7 @@ type Scatterternary struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -251,7 +255,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Sets text elements associated with each (a,b,c) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b,c). If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -263,7 +267,7 @@ type Scatterternary struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterternaryTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterternaryTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -281,7 +285,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `a`, `b`, `c` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -327,7 +331,7 @@ type ScatterternaryHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -339,7 +343,7 @@ type ScatterternaryHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -351,7 +355,7 @@ type ScatterternaryHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -368,7 +372,7 @@ type ScatterternaryHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterternaryHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterternaryHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -380,7 +384,7 @@ type ScatterternaryHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -392,7 +396,7 @@ type ScatterternaryHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -409,7 +413,7 @@ type ScatterternaryHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -462,7 +466,7 @@ type ScatterternaryLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -866,7 +870,7 @@ type ScatterternaryMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -879,7 +883,7 @@ type ScatterternaryMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScatterternaryMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScatterternaryMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -925,7 +929,7 @@ type ScatterternaryMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -955,7 +959,7 @@ type ScatterternaryMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -971,7 +975,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1020,7 +1024,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1065,7 +1069,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1089,7 +1093,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1120,7 +1124,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1133,7 +1137,7 @@ type ScatterternaryMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterternaryMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterternaryMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1211,7 +1215,7 @@ type ScatterternaryTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1223,7 +1227,7 @@ type ScatterternaryTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1235,7 +1239,7 @@ type ScatterternaryTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/splom_gen.go b/generated/v2.19.0/graph_objects/splom_gen.go index c5e0ab9..399b998 100644 --- a/generated/v2.19.0/graph_objects/splom_gen.go +++ b/generated/v2.19.0/graph_objects/splom_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSplom TraceType = "splom" func (trace *Splom) GetType() TraceType { @@ -43,7 +47,7 @@ type Splom struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*SplomHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*SplomHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -60,7 +64,7 @@ type Splom struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -72,7 +76,7 @@ type Splom struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -124,7 +128,7 @@ type Splom struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -182,7 +186,7 @@ type Splom struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair to appear on hover. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -262,7 +266,7 @@ type SplomHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -274,7 +278,7 @@ type SplomHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -286,7 +290,7 @@ type SplomHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -303,7 +307,7 @@ type SplomHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SplomHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SplomHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -315,7 +319,7 @@ type SplomHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -327,7 +331,7 @@ type SplomHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -344,7 +348,7 @@ type SplomHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -784,7 +788,7 @@ type SplomMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -814,7 +818,7 @@ type SplomMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -830,7 +834,7 @@ type SplomMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -872,7 +876,7 @@ type SplomMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -906,7 +910,7 @@ type SplomMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -930,7 +934,7 @@ type SplomMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -962,7 +966,7 @@ type SplomMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*SplomMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*SplomMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/streamtube_gen.go b/generated/v2.19.0/graph_objects/streamtube_gen.go index 4194a92..2c2b80a 100644 --- a/generated/v2.19.0/graph_objects/streamtube_gen.go +++ b/generated/v2.19.0/graph_objects/streamtube_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeStreamtube TraceType = "streamtube" func (trace *Streamtube) GetType() TraceType { @@ -79,7 +83,7 @@ type Streamtube struct { // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*StreamtubeHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*StreamtubeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -96,7 +100,7 @@ type Streamtube struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `tubex`, `tubey`, `tubez`, `tubeu`, `tubev`, `tubew`, `norm` and `divergence`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -165,7 +169,7 @@ type Streamtube struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -723,7 +727,7 @@ type StreamtubeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -735,7 +739,7 @@ type StreamtubeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -747,7 +751,7 @@ type StreamtubeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -764,7 +768,7 @@ type StreamtubeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*StreamtubeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*StreamtubeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -776,7 +780,7 @@ type StreamtubeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -788,7 +792,7 @@ type StreamtubeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -805,7 +809,7 @@ type StreamtubeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/sunburst_gen.go b/generated/v2.19.0/graph_objects/sunburst_gen.go index b396890..9c8fd1c 100644 --- a/generated/v2.19.0/graph_objects/sunburst_gen.go +++ b/generated/v2.19.0/graph_objects/sunburst_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSunburst TraceType = "sunburst" func (trace *Sunburst) GetType() TraceType { @@ -51,7 +55,7 @@ type Sunburst struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*SunburstHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*SunburstHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Sunburst struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -80,7 +84,7 @@ type Sunburst struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -167,7 +171,7 @@ type Sunburst struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -254,7 +258,7 @@ type Sunburst struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -335,7 +339,7 @@ type SunburstHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -347,7 +351,7 @@ type SunburstHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -359,7 +363,7 @@ type SunburstHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -376,7 +380,7 @@ type SunburstHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SunburstHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SunburstHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -388,7 +392,7 @@ type SunburstHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -400,7 +404,7 @@ type SunburstHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -417,7 +421,7 @@ type SunburstHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -433,7 +437,7 @@ type SunburstInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -445,7 +449,7 @@ type SunburstInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -457,7 +461,7 @@ type SunburstInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -877,7 +881,7 @@ type SunburstMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -889,7 +893,7 @@ type SunburstMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -985,7 +989,7 @@ type SunburstOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -997,7 +1001,7 @@ type SunburstOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1009,7 +1013,7 @@ type SunburstOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1051,7 +1055,7 @@ type SunburstTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1063,7 +1067,7 @@ type SunburstTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1075,7 +1079,7 @@ type SunburstTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/surface_gen.go b/generated/v2.19.0/graph_objects/surface_gen.go index 7ccdb9b..709efa1 100644 --- a/generated/v2.19.0/graph_objects/surface_gen.go +++ b/generated/v2.19.0/graph_objects/surface_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSurface TraceType = "surface" func (trace *Surface) GetType() TraceType { @@ -96,7 +100,7 @@ type Surface struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*SurfaceHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*SurfaceHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -113,7 +117,7 @@ type Surface struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -125,7 +129,7 @@ type Surface struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -182,7 +186,7 @@ type Surface struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -253,7 +257,7 @@ type Surface struct { // arrayOK: true // type: string // Sets the text elements associated with each z value. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -1012,7 +1016,7 @@ type SurfaceHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1024,7 +1028,7 @@ type SurfaceHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1036,7 +1040,7 @@ type SurfaceHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1053,7 +1057,7 @@ type SurfaceHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SurfaceHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SurfaceHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -1065,7 +1069,7 @@ type SurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -1077,7 +1081,7 @@ type SurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -1094,7 +1098,7 @@ type SurfaceHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/table_gen.go b/generated/v2.19.0/graph_objects/table_gen.go index 71ccdef..d9d5cb7 100644 --- a/generated/v2.19.0/graph_objects/table_gen.go +++ b/generated/v2.19.0/graph_objects/table_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeTable TraceType = "table" func (trace *Table) GetType() TraceType { @@ -36,7 +40,7 @@ type Table struct { // arrayOK: true // type: number // The width of columns expressed as a ratio. Columns fill the available width in proportion of their specified column widths. - Columnwidth ArrayOK[*float64] `json:"columnwidth,omitempty"` + Columnwidth arrayok.Type[*float64] `json:"columnwidth,omitempty"` // Columnwidthsrc // arrayOK: false @@ -71,7 +75,7 @@ type Table struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*TableHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*TableHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -117,7 +121,7 @@ type Table struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -163,7 +167,7 @@ type TableCellsFill struct { // arrayOK: true // type: color // Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -179,7 +183,7 @@ type TableCellsFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -191,7 +195,7 @@ type TableCellsFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -203,7 +207,7 @@ type TableCellsFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -219,7 +223,7 @@ type TableCellsLine struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -231,7 +235,7 @@ type TableCellsLine struct { // arrayOK: true // type: number // - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -248,7 +252,7 @@ type TableCells struct { // default: center // type: enumerated // Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more
HTML tags) or if an explicit width is set to override the text width. - Align ArrayOK[*TableCellsAlign] `json:"align,omitempty"` + Align arrayok.Type[*TableCellsAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -293,7 +297,7 @@ type TableCells struct { // arrayOK: true // type: string // Prefix for cell values. - Prefix ArrayOK[*string] `json:"prefix,omitempty"` + Prefix arrayok.Type[*string] `json:"prefix,omitempty"` // Prefixsrc // arrayOK: false @@ -305,7 +309,7 @@ type TableCells struct { // arrayOK: true // type: string // Suffix for cell values. - Suffix ArrayOK[*string] `json:"suffix,omitempty"` + Suffix arrayok.Type[*string] `json:"suffix,omitempty"` // Suffixsrc // arrayOK: false @@ -361,7 +365,7 @@ type TableHeaderFill struct { // arrayOK: true // type: color // Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -377,7 +381,7 @@ type TableHeaderFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -389,7 +393,7 @@ type TableHeaderFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -401,7 +405,7 @@ type TableHeaderFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -417,7 +421,7 @@ type TableHeaderLine struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -429,7 +433,7 @@ type TableHeaderLine struct { // arrayOK: true // type: number // - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -446,7 +450,7 @@ type TableHeader struct { // default: center // type: enumerated // Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more
HTML tags) or if an explicit width is set to override the text width. - Align ArrayOK[*TableHeaderAlign] `json:"align,omitempty"` + Align arrayok.Type[*TableHeaderAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -491,7 +495,7 @@ type TableHeader struct { // arrayOK: true // type: string // Prefix for cell values. - Prefix ArrayOK[*string] `json:"prefix,omitempty"` + Prefix arrayok.Type[*string] `json:"prefix,omitempty"` // Prefixsrc // arrayOK: false @@ -503,7 +507,7 @@ type TableHeader struct { // arrayOK: true // type: string // Suffix for cell values. - Suffix ArrayOK[*string] `json:"suffix,omitempty"` + Suffix arrayok.Type[*string] `json:"suffix,omitempty"` // Suffixsrc // arrayOK: false @@ -531,7 +535,7 @@ type TableHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -543,7 +547,7 @@ type TableHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -555,7 +559,7 @@ type TableHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -572,7 +576,7 @@ type TableHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*TableHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*TableHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -584,7 +588,7 @@ type TableHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -596,7 +600,7 @@ type TableHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -613,7 +617,7 @@ type TableHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/treemap_gen.go b/generated/v2.19.0/graph_objects/treemap_gen.go index 474dc6b..a64a398 100644 --- a/generated/v2.19.0/graph_objects/treemap_gen.go +++ b/generated/v2.19.0/graph_objects/treemap_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeTreemap TraceType = "treemap" func (trace *Treemap) GetType() TraceType { @@ -51,7 +55,7 @@ type Treemap struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*TreemapHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*TreemapHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Treemap struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -80,7 +84,7 @@ type Treemap struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -155,7 +159,7 @@ type Treemap struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -248,7 +252,7 @@ type Treemap struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -334,7 +338,7 @@ type TreemapHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -346,7 +350,7 @@ type TreemapHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -358,7 +362,7 @@ type TreemapHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -375,7 +379,7 @@ type TreemapHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*TreemapHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*TreemapHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -387,7 +391,7 @@ type TreemapHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -399,7 +403,7 @@ type TreemapHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -416,7 +420,7 @@ type TreemapHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -432,7 +436,7 @@ type TreemapInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -444,7 +448,7 @@ type TreemapInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -456,7 +460,7 @@ type TreemapInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -866,7 +870,7 @@ type TreemapMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -878,7 +882,7 @@ type TreemapMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1020,7 +1024,7 @@ type TreemapOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1032,7 +1036,7 @@ type TreemapOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1044,7 +1048,7 @@ type TreemapOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1060,7 +1064,7 @@ type TreemapPathbarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1072,7 +1076,7 @@ type TreemapPathbarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1084,7 +1088,7 @@ type TreemapPathbarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1161,7 +1165,7 @@ type TreemapTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1173,7 +1177,7 @@ type TreemapTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1185,7 +1189,7 @@ type TreemapTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/violin_gen.go b/generated/v2.19.0/graph_objects/violin_gen.go index 7ae46af..19381af 100644 --- a/generated/v2.19.0/graph_objects/violin_gen.go +++ b/generated/v2.19.0/graph_objects/violin_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeViolin TraceType = "violin" func (trace *Violin) GetType() TraceType { @@ -55,7 +59,7 @@ type Violin struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ViolinHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ViolinHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -79,7 +83,7 @@ type Violin struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -91,7 +95,7 @@ type Violin struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -159,7 +163,7 @@ type Violin struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -271,7 +275,7 @@ type Violin struct { // arrayOK: true // type: string // Sets the text elements associated with each sample value. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -426,7 +430,7 @@ type ViolinHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -438,7 +442,7 @@ type ViolinHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -450,7 +454,7 @@ type ViolinHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -467,7 +471,7 @@ type ViolinHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ViolinHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ViolinHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -479,7 +483,7 @@ type ViolinHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -491,7 +495,7 @@ type ViolinHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -508,7 +512,7 @@ type ViolinHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/volume_gen.go b/generated/v2.19.0/graph_objects/volume_gen.go index 6d0da5d..d92800e 100644 --- a/generated/v2.19.0/graph_objects/volume_gen.go +++ b/generated/v2.19.0/graph_objects/volume_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeVolume TraceType = "volume" func (trace *Volume) GetType() TraceType { @@ -95,7 +99,7 @@ type Volume struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*VolumeHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*VolumeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -112,7 +116,7 @@ type Volume struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -124,7 +128,7 @@ type Volume struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -193,7 +197,7 @@ type Volume struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -267,7 +271,7 @@ type Volume struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -820,7 +824,7 @@ type VolumeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -832,7 +836,7 @@ type VolumeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -844,7 +848,7 @@ type VolumeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -861,7 +865,7 @@ type VolumeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*VolumeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*VolumeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -873,7 +877,7 @@ type VolumeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -885,7 +889,7 @@ type VolumeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -902,7 +906,7 @@ type VolumeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.19.0/graph_objects/waterfall_gen.go b/generated/v2.19.0/graph_objects/waterfall_gen.go index db6fbcb..1964827 100644 --- a/generated/v2.19.0/graph_objects/waterfall_gen.go +++ b/generated/v2.19.0/graph_objects/waterfall_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeWaterfall TraceType = "waterfall" func (trace *Waterfall) GetType() TraceType { @@ -79,7 +83,7 @@ type Waterfall struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*WaterfallHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*WaterfallHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -96,7 +100,7 @@ type Waterfall struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `initial`, `delta` and `final`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -108,7 +112,7 @@ type Waterfall struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -184,7 +188,7 @@ type Waterfall struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -202,7 +206,7 @@ type Waterfall struct { // arrayOK: true // type: number // Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead. - Offset ArrayOK[*float64] `json:"offset,omitempty"` + Offset arrayok.Type[*float64] `json:"offset,omitempty"` // Offsetgroup // arrayOK: false @@ -255,7 +259,7 @@ type Waterfall struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -280,7 +284,7 @@ type Waterfall struct { // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition ArrayOK[*WaterfallTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*WaterfallTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -298,7 +302,7 @@ type Waterfall struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. variables `initial`, `delta`, `final` and `label`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -340,7 +344,7 @@ type Waterfall struct { // arrayOK: true // type: number // Sets the bar width (in position axis units). - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -538,7 +542,7 @@ type WaterfallHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -550,7 +554,7 @@ type WaterfallHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -562,7 +566,7 @@ type WaterfallHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -579,7 +583,7 @@ type WaterfallHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*WaterfallHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*WaterfallHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -591,7 +595,7 @@ type WaterfallHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -603,7 +607,7 @@ type WaterfallHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -620,7 +624,7 @@ type WaterfallHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -676,7 +680,7 @@ type WaterfallInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -688,7 +692,7 @@ type WaterfallInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -700,7 +704,7 @@ type WaterfallInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -753,7 +757,7 @@ type WaterfallOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -765,7 +769,7 @@ type WaterfallOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -777,7 +781,7 @@ type WaterfallOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -809,7 +813,7 @@ type WaterfallTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -821,7 +825,7 @@ type WaterfallTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -833,7 +837,7 @@ type WaterfallTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/bar_gen.go b/generated/v2.29.1/graph_objects/bar_gen.go index 969823a..15eebe3 100644 --- a/generated/v2.29.1/graph_objects/bar_gen.go +++ b/generated/v2.29.1/graph_objects/bar_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeBar TraceType = "bar" func (trace *Bar) GetType() TraceType { @@ -25,7 +29,7 @@ type Bar struct { // arrayOK: true // type: any // Sets where the bar base is drawn (in position axis units). In *stack* or *relative* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead. - Base ArrayOK[*interface{}] `json:"base,omitempty"` + Base arrayok.Type[*interface{}] `json:"base,omitempty"` // Basesrc // arrayOK: false @@ -85,7 +89,7 @@ type Bar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*BarHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*BarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -102,7 +106,7 @@ type Bar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -114,7 +118,7 @@ type Bar struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -184,7 +188,7 @@ type Bar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -202,7 +206,7 @@ type Bar struct { // arrayOK: true // type: number // Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead. - Offset ArrayOK[*float64] `json:"offset,omitempty"` + Offset arrayok.Type[*float64] `json:"offset,omitempty"` // Offsetgroup // arrayOK: false @@ -260,7 +264,7 @@ type Bar struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -278,7 +282,7 @@ type Bar struct { // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition ArrayOK[*BarTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*BarTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -296,7 +300,7 @@ type Bar struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `value` and `label`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -338,7 +342,7 @@ type Bar struct { // arrayOK: true // type: number // Sets the bar width (in position axis units). - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -650,7 +654,7 @@ type BarHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -662,7 +666,7 @@ type BarHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -674,7 +678,7 @@ type BarHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -691,7 +695,7 @@ type BarHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*BarHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*BarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -703,7 +707,7 @@ type BarHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -715,7 +719,7 @@ type BarHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -732,7 +736,7 @@ type BarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -748,7 +752,7 @@ type BarInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -760,7 +764,7 @@ type BarInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -772,7 +776,7 @@ type BarInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1226,7 +1230,7 @@ type BarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1256,7 +1260,7 @@ type BarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1272,7 +1276,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -1284,7 +1288,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -1310,7 +1314,7 @@ type BarMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*BarMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*BarMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -1322,7 +1326,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1334,7 +1338,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1380,7 +1384,7 @@ type BarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1420,7 +1424,7 @@ type BarMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1453,7 +1457,7 @@ type BarOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1465,7 +1469,7 @@ type BarOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1477,7 +1481,7 @@ type BarOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1549,7 +1553,7 @@ type BarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1561,7 +1565,7 @@ type BarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1573,7 +1577,7 @@ type BarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/barpolar_gen.go b/generated/v2.29.1/graph_objects/barpolar_gen.go index 602b7d4..be5416b 100644 --- a/generated/v2.29.1/graph_objects/barpolar_gen.go +++ b/generated/v2.29.1/graph_objects/barpolar_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeBarpolar TraceType = "barpolar" func (trace *Barpolar) GetType() TraceType { @@ -19,7 +23,7 @@ type Barpolar struct { // arrayOK: true // type: any // Sets where the bar base is drawn (in radial axis units). In *stack* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead. - Base ArrayOK[*interface{}] `json:"base,omitempty"` + Base arrayok.Type[*interface{}] `json:"base,omitempty"` // Basesrc // arrayOK: false @@ -56,7 +60,7 @@ type Barpolar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*BarpolarHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*BarpolarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -73,7 +77,7 @@ type Barpolar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -85,7 +89,7 @@ type Barpolar struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -143,7 +147,7 @@ type Barpolar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -161,7 +165,7 @@ type Barpolar struct { // arrayOK: true // type: number // Shifts the angular position where the bar is drawn (in *thetatunit* units). - Offset ArrayOK[*float64] `json:"offset,omitempty"` + Offset arrayok.Type[*float64] `json:"offset,omitempty"` // Offsetsrc // arrayOK: false @@ -225,7 +229,7 @@ type Barpolar struct { // arrayOK: true // type: string // Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace's coordinates. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -292,7 +296,7 @@ type Barpolar struct { // arrayOK: true // type: number // Sets the bar angular width (in *thetaunit* units). - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -308,7 +312,7 @@ type BarpolarHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -320,7 +324,7 @@ type BarpolarHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -332,7 +336,7 @@ type BarpolarHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -349,7 +353,7 @@ type BarpolarHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*BarpolarHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*BarpolarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -361,7 +365,7 @@ type BarpolarHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -373,7 +377,7 @@ type BarpolarHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -390,7 +394,7 @@ type BarpolarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -844,7 +848,7 @@ type BarpolarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -874,7 +878,7 @@ type BarpolarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -890,7 +894,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -902,7 +906,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -928,7 +932,7 @@ type BarpolarMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*BarpolarMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*BarpolarMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -940,7 +944,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -952,7 +956,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -998,7 +1002,7 @@ type BarpolarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1032,7 +1036,7 @@ type BarpolarMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/box_gen.go b/generated/v2.29.1/graph_objects/box_gen.go index a0563ec..1e03005 100644 --- a/generated/v2.29.1/graph_objects/box_gen.go +++ b/generated/v2.29.1/graph_objects/box_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeBox TraceType = "box" func (trace *Box) GetType() TraceType { @@ -70,7 +74,7 @@ type Box struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*BoxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*BoxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -94,7 +98,7 @@ type Box struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -106,7 +110,7 @@ type Box struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -211,7 +215,7 @@ type Box struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -362,7 +366,7 @@ type Box struct { // arrayOK: true // type: string // Sets the text elements associated with each sample value. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -544,7 +548,7 @@ type BoxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -556,7 +560,7 @@ type BoxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -568,7 +572,7 @@ type BoxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -585,7 +589,7 @@ type BoxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*BoxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*BoxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -597,7 +601,7 @@ type BoxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -609,7 +613,7 @@ type BoxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -626,7 +630,7 @@ type BoxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/candlestick_gen.go b/generated/v2.29.1/graph_objects/candlestick_gen.go index 3898795..52fe649 100644 --- a/generated/v2.29.1/graph_objects/candlestick_gen.go +++ b/generated/v2.29.1/graph_objects/candlestick_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeCandlestick TraceType = "candlestick" func (trace *Candlestick) GetType() TraceType { @@ -61,7 +65,7 @@ type Candlestick struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*CandlestickHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*CandlestickHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -78,7 +82,7 @@ type Candlestick struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -153,7 +157,7 @@ type Candlestick struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -206,7 +210,7 @@ type Candlestick struct { // arrayOK: true // type: string // Sets hover text elements associated with each sample point. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to this trace's sample points. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -346,7 +350,7 @@ type CandlestickHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -358,7 +362,7 @@ type CandlestickHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -370,7 +374,7 @@ type CandlestickHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -387,7 +391,7 @@ type CandlestickHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*CandlestickHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*CandlestickHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -399,7 +403,7 @@ type CandlestickHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -411,7 +415,7 @@ type CandlestickHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -428,7 +432,7 @@ type CandlestickHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/carpet_gen.go b/generated/v2.29.1/graph_objects/carpet_gen.go index baf4b25..58fefec 100644 --- a/generated/v2.29.1/graph_objects/carpet_gen.go +++ b/generated/v2.29.1/graph_objects/carpet_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeCarpet TraceType = "carpet" func (trace *Carpet) GetType() TraceType { @@ -147,7 +151,7 @@ type Carpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/choropleth_gen.go b/generated/v2.29.1/graph_objects/choropleth_gen.go index 0b560e4..7eafd32 100644 --- a/generated/v2.29.1/graph_objects/choropleth_gen.go +++ b/generated/v2.29.1/graph_objects/choropleth_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeChoropleth TraceType = "choropleth" func (trace *Choropleth) GetType() TraceType { @@ -73,7 +77,7 @@ type Choropleth struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ChoroplethHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ChoroplethHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -90,7 +94,7 @@ type Choropleth struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -102,7 +106,7 @@ type Choropleth struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -179,7 +183,7 @@ type Choropleth struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -231,7 +235,7 @@ type Choropleth struct { // arrayOK: true // type: string // Sets the text elements associated with each location. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -684,7 +688,7 @@ type ChoroplethHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -696,7 +700,7 @@ type ChoroplethHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -708,7 +712,7 @@ type ChoroplethHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -725,7 +729,7 @@ type ChoroplethHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ChoroplethHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ChoroplethHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -737,7 +741,7 @@ type ChoroplethHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -749,7 +753,7 @@ type ChoroplethHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -766,7 +770,7 @@ type ChoroplethHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -819,7 +823,7 @@ type ChoroplethMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -831,7 +835,7 @@ type ChoroplethMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -852,7 +856,7 @@ type ChoroplethMarker struct { // arrayOK: true // type: number // Sets the opacity of the locations. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/choroplethmapbox_gen.go b/generated/v2.29.1/graph_objects/choroplethmapbox_gen.go index 1736558..46bb328 100644 --- a/generated/v2.29.1/graph_objects/choroplethmapbox_gen.go +++ b/generated/v2.29.1/graph_objects/choroplethmapbox_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeChoroplethmapbox TraceType = "choroplethmapbox" func (trace *Choroplethmapbox) GetType() TraceType { @@ -73,7 +77,7 @@ type Choroplethmapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ChoroplethmapboxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ChoroplethmapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -90,7 +94,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `properties` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -102,7 +106,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -172,7 +176,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -230,7 +234,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Sets the text elements associated with each location. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -683,7 +687,7 @@ type ChoroplethmapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -695,7 +699,7 @@ type ChoroplethmapboxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -707,7 +711,7 @@ type ChoroplethmapboxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -724,7 +728,7 @@ type ChoroplethmapboxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ChoroplethmapboxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ChoroplethmapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -736,7 +740,7 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -748,7 +752,7 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -765,7 +769,7 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -818,7 +822,7 @@ type ChoroplethmapboxMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -830,7 +834,7 @@ type ChoroplethmapboxMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -851,7 +855,7 @@ type ChoroplethmapboxMarker struct { // arrayOK: true // type: number // Sets the opacity of the locations. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/cone_gen.go b/generated/v2.29.1/graph_objects/cone_gen.go index 55925b0..bb29b5a 100644 --- a/generated/v2.29.1/graph_objects/cone_gen.go +++ b/generated/v2.29.1/graph_objects/cone_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeCone TraceType = "cone" func (trace *Cone) GetType() TraceType { @@ -86,7 +90,7 @@ type Cone struct { // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ConeHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ConeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -103,7 +107,7 @@ type Cone struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `norm` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -115,7 +119,7 @@ type Cone struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -178,7 +182,7 @@ type Cone struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -244,7 +248,7 @@ type Cone struct { // arrayOK: true // type: string // Sets the text elements associated with the cones. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -758,7 +762,7 @@ type ConeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -770,7 +774,7 @@ type ConeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -782,7 +786,7 @@ type ConeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -799,7 +803,7 @@ type ConeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ConeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ConeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -811,7 +815,7 @@ type ConeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -823,7 +827,7 @@ type ConeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -840,7 +844,7 @@ type ConeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/contour_gen.go b/generated/v2.29.1/graph_objects/contour_gen.go index e9adbd7..946e32e 100644 --- a/generated/v2.29.1/graph_objects/contour_gen.go +++ b/generated/v2.29.1/graph_objects/contour_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeContour TraceType = "contour" func (trace *Contour) GetType() TraceType { @@ -90,7 +94,7 @@ type Contour struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ContourHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ContourHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -113,7 +117,7 @@ type Contour struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -183,7 +187,7 @@ type Contour struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -927,7 +931,7 @@ type ContourHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -939,7 +943,7 @@ type ContourHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -951,7 +955,7 @@ type ContourHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -968,7 +972,7 @@ type ContourHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ContourHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ContourHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -980,7 +984,7 @@ type ContourHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -992,7 +996,7 @@ type ContourHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -1009,7 +1013,7 @@ type ContourHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/contourcarpet_gen.go b/generated/v2.29.1/graph_objects/contourcarpet_gen.go index e04f9aa..2fca842 100644 --- a/generated/v2.29.1/graph_objects/contourcarpet_gen.go +++ b/generated/v2.29.1/graph_objects/contourcarpet_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeContourcarpet TraceType = "contourcarpet" func (trace *Contourcarpet) GetType() TraceType { @@ -197,7 +201,7 @@ type Contourcarpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/densitymapbox_gen.go b/generated/v2.29.1/graph_objects/densitymapbox_gen.go index 38f6b11..ec0b504 100644 --- a/generated/v2.29.1/graph_objects/densitymapbox_gen.go +++ b/generated/v2.29.1/graph_objects/densitymapbox_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeDensitymapbox TraceType = "densitymapbox" func (trace *Densitymapbox) GetType() TraceType { @@ -61,7 +65,7 @@ type Densitymapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*DensitymapboxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*DensitymapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -78,7 +82,7 @@ type Densitymapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -90,7 +94,7 @@ type Densitymapbox struct { // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -167,7 +171,7 @@ type Densitymapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -191,7 +195,7 @@ type Densitymapbox struct { // arrayOK: true // type: number // Sets the radius of influence of one `lon` / `lat` point in pixels. Increasing the value makes the densitymapbox trace smoother, but less detailed. - Radius ArrayOK[*float64] `json:"radius,omitempty"` + Radius arrayok.Type[*float64] `json:"radius,omitempty"` // Radiussrc // arrayOK: false @@ -232,7 +236,7 @@ type Densitymapbox struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -680,7 +684,7 @@ type DensitymapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -692,7 +696,7 @@ type DensitymapboxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -704,7 +708,7 @@ type DensitymapboxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -721,7 +725,7 @@ type DensitymapboxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*DensitymapboxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*DensitymapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -733,7 +737,7 @@ type DensitymapboxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -745,7 +749,7 @@ type DensitymapboxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -762,7 +766,7 @@ type DensitymapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/funnel_gen.go b/generated/v2.29.1/graph_objects/funnel_gen.go index 5751b18..3b3c8de 100644 --- a/generated/v2.29.1/graph_objects/funnel_gen.go +++ b/generated/v2.29.1/graph_objects/funnel_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeFunnel TraceType = "funnel" func (trace *Funnel) GetType() TraceType { @@ -68,7 +72,7 @@ type Funnel struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*FunnelHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*FunnelHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -85,7 +89,7 @@ type Funnel struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `percentInitial`, `percentPrevious` and `percentTotal`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -97,7 +101,7 @@ type Funnel struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -167,7 +171,7 @@ type Funnel struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -232,7 +236,7 @@ type Funnel struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -257,7 +261,7 @@ type Funnel struct { // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition ArrayOK[*FunnelTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*FunnelTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -275,7 +279,7 @@ type Funnel struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `percentInitial`, `percentPrevious`, `percentTotal`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -463,7 +467,7 @@ type FunnelHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -475,7 +479,7 @@ type FunnelHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -487,7 +491,7 @@ type FunnelHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -504,7 +508,7 @@ type FunnelHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*FunnelHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*FunnelHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -516,7 +520,7 @@ type FunnelHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -528,7 +532,7 @@ type FunnelHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -545,7 +549,7 @@ type FunnelHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -561,7 +565,7 @@ type FunnelInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -573,7 +577,7 @@ type FunnelInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -585,7 +589,7 @@ type FunnelInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1039,7 +1043,7 @@ type FunnelMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1069,7 +1073,7 @@ type FunnelMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1115,7 +1119,7 @@ type FunnelMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1149,7 +1153,7 @@ type FunnelMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1177,7 +1181,7 @@ type FunnelOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1189,7 +1193,7 @@ type FunnelOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1201,7 +1205,7 @@ type FunnelOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1233,7 +1237,7 @@ type FunnelTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1245,7 +1249,7 @@ type FunnelTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1257,7 +1261,7 @@ type FunnelTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/funnelarea_gen.go b/generated/v2.29.1/graph_objects/funnelarea_gen.go index 4fd348b..c08cad7 100644 --- a/generated/v2.29.1/graph_objects/funnelarea_gen.go +++ b/generated/v2.29.1/graph_objects/funnelarea_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeFunnelarea TraceType = "funnelarea" func (trace *Funnelarea) GetType() TraceType { @@ -55,7 +59,7 @@ type Funnelarea struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*FunnelareaHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*FunnelareaHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -72,7 +76,7 @@ type Funnelarea struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `text` and `percent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -84,7 +88,7 @@ type Funnelarea struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -165,7 +169,7 @@ type Funnelarea struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -225,7 +229,7 @@ type Funnelarea struct { // default: inside // type: enumerated // Specifies the location of the `textinfo`. - Textposition ArrayOK[*FunnelareaTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*FunnelareaTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -243,7 +247,7 @@ type Funnelarea struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `text` and `percent`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -329,7 +333,7 @@ type FunnelareaHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -341,7 +345,7 @@ type FunnelareaHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -353,7 +357,7 @@ type FunnelareaHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -370,7 +374,7 @@ type FunnelareaHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*FunnelareaHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*FunnelareaHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -382,7 +386,7 @@ type FunnelareaHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -394,7 +398,7 @@ type FunnelareaHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -411,7 +415,7 @@ type FunnelareaHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -427,7 +431,7 @@ type FunnelareaInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -439,7 +443,7 @@ type FunnelareaInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -451,7 +455,7 @@ type FunnelareaInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -504,7 +508,7 @@ type FunnelareaMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -516,7 +520,7 @@ type FunnelareaMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -532,7 +536,7 @@ type FunnelareaMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -544,7 +548,7 @@ type FunnelareaMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -570,7 +574,7 @@ type FunnelareaMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*FunnelareaMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*FunnelareaMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -582,7 +586,7 @@ type FunnelareaMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -594,7 +598,7 @@ type FunnelareaMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -652,7 +656,7 @@ type FunnelareaTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -664,7 +668,7 @@ type FunnelareaTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -676,7 +680,7 @@ type FunnelareaTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -692,7 +696,7 @@ type FunnelareaTitleFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -704,7 +708,7 @@ type FunnelareaTitleFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -716,7 +720,7 @@ type FunnelareaTitleFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/heatmap_gen.go b/generated/v2.29.1/graph_objects/heatmap_gen.go index aaf1f5c..37ea371 100644 --- a/generated/v2.29.1/graph_objects/heatmap_gen.go +++ b/generated/v2.29.1/graph_objects/heatmap_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHeatmap TraceType = "heatmap" func (trace *Heatmap) GetType() TraceType { @@ -73,7 +77,7 @@ type Heatmap struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*HeatmapHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*HeatmapHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -96,7 +100,7 @@ type Heatmap struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -161,7 +165,7 @@ type Heatmap struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -824,7 +828,7 @@ type HeatmapHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -836,7 +840,7 @@ type HeatmapHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -848,7 +852,7 @@ type HeatmapHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -865,7 +869,7 @@ type HeatmapHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*HeatmapHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*HeatmapHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -877,7 +881,7 @@ type HeatmapHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -889,7 +893,7 @@ type HeatmapHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -906,7 +910,7 @@ type HeatmapHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/heatmapgl_gen.go b/generated/v2.29.1/graph_objects/heatmapgl_gen.go index fbe68f3..f2ce8ae 100644 --- a/generated/v2.29.1/graph_objects/heatmapgl_gen.go +++ b/generated/v2.29.1/graph_objects/heatmapgl_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHeatmapgl TraceType = "heatmapgl" func (trace *Heatmapgl) GetType() TraceType { @@ -67,7 +71,7 @@ type Heatmapgl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*HeatmapglHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*HeatmapglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -119,7 +123,7 @@ type Heatmapgl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -683,7 +687,7 @@ type HeatmapglHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -695,7 +699,7 @@ type HeatmapglHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -707,7 +711,7 @@ type HeatmapglHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -724,7 +728,7 @@ type HeatmapglHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*HeatmapglHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*HeatmapglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -736,7 +740,7 @@ type HeatmapglHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -748,7 +752,7 @@ type HeatmapglHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -765,7 +769,7 @@ type HeatmapglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/histogram2d_gen.go b/generated/v2.29.1/graph_objects/histogram2d_gen.go index f6d6fa5..99a45bc 100644 --- a/generated/v2.29.1/graph_objects/histogram2d_gen.go +++ b/generated/v2.29.1/graph_objects/histogram2d_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHistogram2d TraceType = "histogram2d" func (trace *Histogram2d) GetType() TraceType { @@ -87,7 +91,7 @@ type Histogram2d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Histogram2dHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Histogram2dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -104,7 +108,7 @@ type Histogram2d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `z` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -162,7 +166,7 @@ type Histogram2d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -777,7 +781,7 @@ type Histogram2dHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -789,7 +793,7 @@ type Histogram2dHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -801,7 +805,7 @@ type Histogram2dHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -818,7 +822,7 @@ type Histogram2dHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Histogram2dHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Histogram2dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -830,7 +834,7 @@ type Histogram2dHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -842,7 +846,7 @@ type Histogram2dHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -859,7 +863,7 @@ type Histogram2dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/histogram2dcontour_gen.go b/generated/v2.29.1/graph_objects/histogram2dcontour_gen.go index 5bd181d..0b5428c 100644 --- a/generated/v2.29.1/graph_objects/histogram2dcontour_gen.go +++ b/generated/v2.29.1/graph_objects/histogram2dcontour_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHistogram2dcontour TraceType = "histogram2dcontour" func (trace *Histogram2dcontour) GetType() TraceType { @@ -98,7 +102,7 @@ type Histogram2dcontour struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Histogram2dcontourHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Histogram2dcontourHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -115,7 +119,7 @@ type Histogram2dcontour struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `z` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -178,7 +182,7 @@ type Histogram2dcontour struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -874,7 +878,7 @@ type Histogram2dcontourHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -886,7 +890,7 @@ type Histogram2dcontourHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -898,7 +902,7 @@ type Histogram2dcontourHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -915,7 +919,7 @@ type Histogram2dcontourHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Histogram2dcontourHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Histogram2dcontourHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -927,7 +931,7 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -939,7 +943,7 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -956,7 +960,7 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/histogram_gen.go b/generated/v2.29.1/graph_objects/histogram_gen.go index 9aa840c..f065635 100644 --- a/generated/v2.29.1/graph_objects/histogram_gen.go +++ b/generated/v2.29.1/graph_objects/histogram_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHistogram TraceType = "histogram" func (trace *Histogram) GetType() TraceType { @@ -98,7 +102,7 @@ type Histogram struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*HistogramHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*HistogramHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -115,7 +119,7 @@ type Histogram struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `binNumber` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -127,7 +131,7 @@ type Histogram struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -197,7 +201,7 @@ type Histogram struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -273,7 +277,7 @@ type Histogram struct { // arrayOK: true // type: string // Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace's coordinates. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -623,7 +627,7 @@ type HistogramHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -635,7 +639,7 @@ type HistogramHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -647,7 +651,7 @@ type HistogramHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -664,7 +668,7 @@ type HistogramHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*HistogramHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*HistogramHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -676,7 +680,7 @@ type HistogramHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -688,7 +692,7 @@ type HistogramHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -705,7 +709,7 @@ type HistogramHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -1181,7 +1185,7 @@ type HistogramMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1211,7 +1215,7 @@ type HistogramMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1227,7 +1231,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -1239,7 +1243,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -1265,7 +1269,7 @@ type HistogramMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*HistogramMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*HistogramMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -1277,7 +1281,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1289,7 +1293,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1335,7 +1339,7 @@ type HistogramMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1375,7 +1379,7 @@ type HistogramMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/icicle_gen.go b/generated/v2.29.1/graph_objects/icicle_gen.go index 62baa30..29ef8da 100644 --- a/generated/v2.29.1/graph_objects/icicle_gen.go +++ b/generated/v2.29.1/graph_objects/icicle_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeIcicle TraceType = "icicle" func (trace *Icicle) GetType() TraceType { @@ -51,7 +55,7 @@ type Icicle struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*IcicleHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*IcicleHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Icicle struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -80,7 +84,7 @@ type Icicle struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -166,7 +170,7 @@ type Icicle struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -259,7 +263,7 @@ type Icicle struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -345,7 +349,7 @@ type IcicleHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -357,7 +361,7 @@ type IcicleHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -369,7 +373,7 @@ type IcicleHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -386,7 +390,7 @@ type IcicleHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*IcicleHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*IcicleHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -398,7 +402,7 @@ type IcicleHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -410,7 +414,7 @@ type IcicleHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -427,7 +431,7 @@ type IcicleHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -443,7 +447,7 @@ type IcicleInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -455,7 +459,7 @@ type IcicleInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -467,7 +471,7 @@ type IcicleInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -901,7 +905,7 @@ type IcicleMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -913,7 +917,7 @@ type IcicleMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -929,7 +933,7 @@ type IcicleMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -941,7 +945,7 @@ type IcicleMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -967,7 +971,7 @@ type IcicleMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*IcicleMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*IcicleMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -979,7 +983,7 @@ type IcicleMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -991,7 +995,7 @@ type IcicleMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1092,7 +1096,7 @@ type IcicleOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1104,7 +1108,7 @@ type IcicleOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1116,7 +1120,7 @@ type IcicleOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1132,7 +1136,7 @@ type IciclePathbarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1144,7 +1148,7 @@ type IciclePathbarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1156,7 +1160,7 @@ type IciclePathbarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1233,7 +1237,7 @@ type IcicleTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1245,7 +1249,7 @@ type IcicleTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1257,7 +1261,7 @@ type IcicleTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/image_gen.go b/generated/v2.29.1/graph_objects/image_gen.go index 7efe363..80ddc3a 100644 --- a/generated/v2.29.1/graph_objects/image_gen.go +++ b/generated/v2.29.1/graph_objects/image_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeImage TraceType = "image" func (trace *Image) GetType() TraceType { @@ -51,7 +55,7 @@ type Image struct { // default: x+y+z+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ImageHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ImageHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Image struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `z`, `color` and `colormodel`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -127,7 +131,7 @@ type Image struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -252,7 +256,7 @@ type ImageHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -264,7 +268,7 @@ type ImageHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -276,7 +280,7 @@ type ImageHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -293,7 +297,7 @@ type ImageHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ImageHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ImageHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -305,7 +309,7 @@ type ImageHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -317,7 +321,7 @@ type ImageHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -334,7 +338,7 @@ type ImageHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/indicator_gen.go b/generated/v2.29.1/graph_objects/indicator_gen.go index 053bf6e..c08f169 100644 --- a/generated/v2.29.1/graph_objects/indicator_gen.go +++ b/generated/v2.29.1/graph_objects/indicator_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeIndicator TraceType = "indicator" func (trace *Indicator) GetType() TraceType { @@ -88,7 +92,7 @@ type Indicator struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/isosurface_gen.go b/generated/v2.29.1/graph_objects/isosurface_gen.go index 3ce9be8..21ff0df 100644 --- a/generated/v2.29.1/graph_objects/isosurface_gen.go +++ b/generated/v2.29.1/graph_objects/isosurface_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeIsosurface TraceType = "isosurface" func (trace *Isosurface) GetType() TraceType { @@ -95,7 +99,7 @@ type Isosurface struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*IsosurfaceHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*IsosurfaceHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -112,7 +116,7 @@ type Isosurface struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -124,7 +128,7 @@ type Isosurface struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -199,7 +203,7 @@ type Isosurface struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -267,7 +271,7 @@ type Isosurface struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -834,7 +838,7 @@ type IsosurfaceHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -846,7 +850,7 @@ type IsosurfaceHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -858,7 +862,7 @@ type IsosurfaceHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -875,7 +879,7 @@ type IsosurfaceHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*IsosurfaceHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*IsosurfaceHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -887,7 +891,7 @@ type IsosurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -899,7 +903,7 @@ type IsosurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -916,7 +920,7 @@ type IsosurfaceHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/layout_gen.go b/generated/v2.29.1/graph_objects/layout_gen.go index bdcb87a..7428165 100644 --- a/generated/v2.29.1/graph_objects/layout_gen.go +++ b/generated/v2.29.1/graph_objects/layout_gen.go @@ -1,6 +1,12 @@ package grob -// Code generated by go-plotly/generator. DO NOT EDIT.// Layout Plot layout options +// Code generated by go-plotly/generator. DO NOT EDIT. + +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + +// Layout Plot layout options type Layout struct { // Activeselection @@ -281,7 +287,7 @@ type Layout struct { // arrayOK: true // type: any // Assigns extra meta information that can be used in various `text` attributes. Attributes such as the graph, axis and colorbar `title.text`, annotation `text` `trace.name` in legend items, `rangeselector`, `updatemenus` and `sliders` `label` text all support `meta`. One can access `meta` fields using template strings: `%{meta[i]}` where `i` is the index of the `meta` item in question. `meta` can also be an object for example `{key: value}` which can be accessed %{meta[key]}. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -2067,7 +2073,7 @@ type LayoutModebar struct { // arrayOK: true // type: string // Determines which predefined modebar buttons to add. Please note that these buttons will only be shown if they are compatible with all trace types used in a graph. Similar to `config.modeBarButtonsToAdd` option. This may include *v1hovermode*, *hoverclosest*, *hovercompare*, *togglehover*, *togglespikelines*, *drawline*, *drawopenpath*, *drawclosedpath*, *drawcircle*, *drawrect*, *eraseshape*. - Add ArrayOK[*string] `json:"add,omitempty"` + Add arrayok.Type[*string] `json:"add,omitempty"` // Addsrc // arrayOK: false @@ -2098,7 +2104,7 @@ type LayoutModebar struct { // arrayOK: true // type: string // Determines which predefined modebar buttons to remove. Similar to `config.modeBarButtonsToRemove` option. This may include *autoScale2d*, *autoscale*, *editInChartStudio*, *editinchartstudio*, *hoverCompareCartesian*, *hovercompare*, *lasso*, *lasso2d*, *orbitRotation*, *orbitrotation*, *pan*, *pan2d*, *pan3d*, *reset*, *resetCameraDefault3d*, *resetCameraLastSave3d*, *resetGeo*, *resetSankeyGroup*, *resetScale2d*, *resetViewMapbox*, *resetViews*, *resetcameradefault*, *resetcameralastsave*, *resetsankeygroup*, *resetscale*, *resetview*, *resetviews*, *select*, *select2d*, *sendDataToCloud*, *senddatatocloud*, *tableRotation*, *tablerotation*, *toImage*, *toggleHover*, *toggleSpikelines*, *togglehover*, *togglespikelines*, *toimage*, *zoom*, *zoom2d*, *zoom3d*, *zoomIn2d*, *zoomInGeo*, *zoomInMapbox*, *zoomOut2d*, *zoomOutGeo*, *zoomOutMapbox*, *zoomin*, *zoomout*. - Remove ArrayOK[*string] `json:"remove,omitempty"` + Remove arrayok.Type[*string] `json:"remove,omitempty"` // Removesrc // arrayOK: false @@ -2753,7 +2759,7 @@ type LayoutPolarRadialaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false @@ -3398,7 +3404,7 @@ type LayoutSceneXaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false @@ -3865,7 +3871,7 @@ type LayoutSceneYaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false @@ -4332,7 +4338,7 @@ type LayoutSceneZaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false @@ -6447,7 +6453,7 @@ type LayoutXaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false @@ -7351,7 +7357,7 @@ type LayoutYaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/mesh3d_gen.go b/generated/v2.29.1/graph_objects/mesh3d_gen.go index a3459df..0509104 100644 --- a/generated/v2.29.1/graph_objects/mesh3d_gen.go +++ b/generated/v2.29.1/graph_objects/mesh3d_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeMesh3d TraceType = "mesh3d" func (trace *Mesh3d) GetType() TraceType { @@ -121,7 +125,7 @@ type Mesh3d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Mesh3dHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Mesh3dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -138,7 +142,7 @@ type Mesh3d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -150,7 +154,7 @@ type Mesh3d struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -268,7 +272,7 @@ type Mesh3d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -321,7 +325,7 @@ type Mesh3d struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -836,7 +840,7 @@ type Mesh3dHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -848,7 +852,7 @@ type Mesh3dHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -860,7 +864,7 @@ type Mesh3dHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -877,7 +881,7 @@ type Mesh3dHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Mesh3dHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Mesh3dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -889,7 +893,7 @@ type Mesh3dHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -901,7 +905,7 @@ type Mesh3dHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -918,7 +922,7 @@ type Mesh3dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/ohlc_gen.go b/generated/v2.29.1/graph_objects/ohlc_gen.go index 11ddd88..470e82c 100644 --- a/generated/v2.29.1/graph_objects/ohlc_gen.go +++ b/generated/v2.29.1/graph_objects/ohlc_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeOhlc TraceType = "ohlc" func (trace *Ohlc) GetType() TraceType { @@ -61,7 +65,7 @@ type Ohlc struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*OhlcHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*OhlcHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -78,7 +82,7 @@ type Ohlc struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -153,7 +157,7 @@ type Ohlc struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -206,7 +210,7 @@ type Ohlc struct { // arrayOK: true // type: string // Sets hover text elements associated with each sample point. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to this trace's sample points. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -346,7 +350,7 @@ type OhlcHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -358,7 +362,7 @@ type OhlcHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -370,7 +374,7 @@ type OhlcHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -387,7 +391,7 @@ type OhlcHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*OhlcHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*OhlcHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -399,7 +403,7 @@ type OhlcHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -411,7 +415,7 @@ type OhlcHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -428,7 +432,7 @@ type OhlcHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/parcats_gen.go b/generated/v2.29.1/graph_objects/parcats_gen.go index 86f313e..8119335 100644 --- a/generated/v2.29.1/graph_objects/parcats_gen.go +++ b/generated/v2.29.1/graph_objects/parcats_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeParcats TraceType = "parcats" func (trace *Parcats) GetType() TraceType { @@ -32,7 +36,7 @@ type Parcats struct { // arrayOK: true // type: number // The number of observations represented by each state. Defaults to 1 so that each state represents one observation - Counts ArrayOK[*float64] `json:"counts,omitempty"` + Counts arrayok.Type[*float64] `json:"counts,omitempty"` // Countssrc // arrayOK: false @@ -96,7 +100,7 @@ type Parcats struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -648,7 +652,7 @@ type ParcatsLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/parcoords_gen.go b/generated/v2.29.1/graph_objects/parcoords_gen.go index abf7c48..577a3af 100644 --- a/generated/v2.29.1/graph_objects/parcoords_gen.go +++ b/generated/v2.29.1/graph_objects/parcoords_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeParcoords TraceType = "parcoords" func (trace *Parcoords) GetType() TraceType { @@ -100,7 +104,7 @@ type Parcoords struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -655,7 +659,7 @@ type ParcoordsLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/pie_gen.go b/generated/v2.29.1/graph_objects/pie_gen.go index 93021e5..028b0c9 100644 --- a/generated/v2.29.1/graph_objects/pie_gen.go +++ b/generated/v2.29.1/graph_objects/pie_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypePie TraceType = "pie" func (trace *Pie) GetType() TraceType { @@ -62,7 +66,7 @@ type Pie struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*PieHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*PieHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -79,7 +83,7 @@ type Pie struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `percent` and `text`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -91,7 +95,7 @@ type Pie struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -179,7 +183,7 @@ type Pie struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -208,7 +212,7 @@ type Pie struct { // arrayOK: true // type: number // Sets the fraction of larger radius to pull the sectors out from the center. This can be a constant to pull all slices apart from each other equally or an array to highlight one or more slices. - Pull ArrayOK[*float64] `json:"pull,omitempty"` + Pull arrayok.Type[*float64] `json:"pull,omitempty"` // Pullsrc // arrayOK: false @@ -268,7 +272,7 @@ type Pie struct { // default: auto // type: enumerated // Specifies the location of the `textinfo`. - Textposition ArrayOK[*PieTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*PieTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -286,7 +290,7 @@ type Pie struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `percent` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -372,7 +376,7 @@ type PieHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -384,7 +388,7 @@ type PieHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -396,7 +400,7 @@ type PieHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -413,7 +417,7 @@ type PieHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*PieHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*PieHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -425,7 +429,7 @@ type PieHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -437,7 +441,7 @@ type PieHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -454,7 +458,7 @@ type PieHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -470,7 +474,7 @@ type PieInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -482,7 +486,7 @@ type PieInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -494,7 +498,7 @@ type PieInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -547,7 +551,7 @@ type PieMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -559,7 +563,7 @@ type PieMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -575,7 +579,7 @@ type PieMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -587,7 +591,7 @@ type PieMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -613,7 +617,7 @@ type PieMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*PieMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*PieMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -625,7 +629,7 @@ type PieMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -637,7 +641,7 @@ type PieMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -679,7 +683,7 @@ type PieOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -691,7 +695,7 @@ type PieOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -703,7 +707,7 @@ type PieOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -735,7 +739,7 @@ type PieTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -747,7 +751,7 @@ type PieTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -759,7 +763,7 @@ type PieTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -775,7 +779,7 @@ type PieTitleFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -787,7 +791,7 @@ type PieTitleFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -799,7 +803,7 @@ type PieTitleFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/plotly_gen.go b/generated/v2.29.1/graph_objects/plotly_gen.go index f1b563d..692f355 100644 --- a/generated/v2.29.1/graph_objects/plotly_gen.go +++ b/generated/v2.29.1/graph_objects/plotly_gen.go @@ -153,52 +153,3 @@ type ColorList []Color // ColorScale A Plotly colorscale either picked by a name: (any of Greys, YlGnBu, Greens, YlOrRd, Bluered, RdBu, Reds, Blues, Picnic, Rainbow, Portland, Jet, Hot, Blackbody, Earth, Electric, Viridis, Cividis ) customized as an {array} of 2-element {arrays} where the first element is the normalized color level value (starting at *0* and ending at *1*), and the second item is a valid color string. type ColorScale interface{} - -func ArrayOKValue[T any](value T) ArrayOK[*T] { - v := &value - return ArrayOK[*T]{Value: v} -} - -func ArrayOKArray[T any](array ...T) ArrayOK[*T] { - out := make([]*T, len(array)) - for i, v := range array { - value := v - out[i] = &value - } - return ArrayOK[*T]{ - Array: out, - } -} - -// ArrayOK is a type that allows you to define a single value or an array of values, But not both. -// If Array is defined, Value will be ignored. -type ArrayOK[T any] struct { - Value T - Array []T -} - -func (arrayOK *ArrayOK[T]) MarshalJSON() ([]byte, error) { - if arrayOK.Array != nil { - return json.Marshal(arrayOK.Array) - } - return json.Marshal(arrayOK.Value) -} - -func (arrayOK *ArrayOK[T]) UnmarshalJSON(data []byte) error { - arrayOK.Array = nil - - var array []T - err := json.Unmarshal(data, &array) - if err == nil { - arrayOK.Array = array - return nil - } - - var value T - err = json.Unmarshal(data, &value) - if err != nil { - return err - } - arrayOK.Value = value - return nil -} diff --git a/generated/v2.29.1/graph_objects/pointcloud_gen.go b/generated/v2.29.1/graph_objects/pointcloud_gen.go index c99e053..8d6dd81 100644 --- a/generated/v2.29.1/graph_objects/pointcloud_gen.go +++ b/generated/v2.29.1/graph_objects/pointcloud_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypePointcloud TraceType = "pointcloud" func (trace *Pointcloud) GetType() TraceType { @@ -32,7 +36,7 @@ type Pointcloud struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*PointcloudHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*PointcloudHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -107,7 +111,7 @@ type Pointcloud struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -142,7 +146,7 @@ type Pointcloud struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -249,7 +253,7 @@ type PointcloudHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -261,7 +265,7 @@ type PointcloudHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -273,7 +277,7 @@ type PointcloudHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -290,7 +294,7 @@ type PointcloudHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*PointcloudHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*PointcloudHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -302,7 +306,7 @@ type PointcloudHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -314,7 +318,7 @@ type PointcloudHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -331,7 +335,7 @@ type PointcloudHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/sankey_gen.go b/generated/v2.29.1/graph_objects/sankey_gen.go index 3a4b15a..6ab822d 100644 --- a/generated/v2.29.1/graph_objects/sankey_gen.go +++ b/generated/v2.29.1/graph_objects/sankey_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSankey TraceType = "sankey" func (trace *Sankey) GetType() TraceType { @@ -95,7 +99,7 @@ type Sankey struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -204,7 +208,7 @@ type SankeyHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -216,7 +220,7 @@ type SankeyHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -228,7 +232,7 @@ type SankeyHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -245,7 +249,7 @@ type SankeyHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SankeyHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SankeyHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -257,7 +261,7 @@ type SankeyHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -269,7 +273,7 @@ type SankeyHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -286,7 +290,7 @@ type SankeyHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -339,7 +343,7 @@ type SankeyLinkHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -351,7 +355,7 @@ type SankeyLinkHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -363,7 +367,7 @@ type SankeyLinkHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -380,7 +384,7 @@ type SankeyLinkHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SankeyLinkHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SankeyLinkHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -392,7 +396,7 @@ type SankeyLinkHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -404,7 +408,7 @@ type SankeyLinkHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -421,7 +425,7 @@ type SankeyLinkHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -437,7 +441,7 @@ type SankeyLinkLine struct { // arrayOK: true // type: color // Sets the color of the `line` around each `link`. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -449,7 +453,7 @@ type SankeyLinkLine struct { // arrayOK: true // type: number // Sets the width (in px) of the `line` around each `link`. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -471,7 +475,7 @@ type SankeyLink struct { // arrayOK: true // type: color // Sets the `link` color. It can be a single value, or an array for specifying color for each `link`. If `link.color` is omitted, then by default, a translucent grey link will be used. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorscales // It's an items array and what goes inside it's... messy... check the docs @@ -501,7 +505,7 @@ type SankeyLink struct { // arrayOK: true // type: color // Sets the `link` hover color. It can be a single value, or an array for specifying hover colors for each `link`. If `link.hovercolor` is omitted, then by default, links will become slightly more opaque when hovered over. - Hovercolor ArrayOK[*Color] `json:"hovercolor,omitempty"` + Hovercolor arrayok.Type[*Color] `json:"hovercolor,omitempty"` // Hovercolorsrc // arrayOK: false @@ -525,7 +529,7 @@ type SankeyLink struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Variables `source` and `target` are node objects.Finally, the template string has access to variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -594,7 +598,7 @@ type SankeyNodeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -606,7 +610,7 @@ type SankeyNodeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -618,7 +622,7 @@ type SankeyNodeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -635,7 +639,7 @@ type SankeyNodeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SankeyNodeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SankeyNodeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -647,7 +651,7 @@ type SankeyNodeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -659,7 +663,7 @@ type SankeyNodeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -676,7 +680,7 @@ type SankeyNodeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -692,7 +696,7 @@ type SankeyNodeLine struct { // arrayOK: true // type: color // Sets the color of the `line` around each `node`. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -704,7 +708,7 @@ type SankeyNodeLine struct { // arrayOK: true // type: number // Sets the width (in px) of the `line` around each `node`. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -727,7 +731,7 @@ type SankeyNode struct { // arrayOK: true // type: color // Sets the `node` color. It can be a single value, or an array for specifying color for each `node`. If `node.color` is omitted, then the default `Plotly` color palette will be cycled through to have a variety of colors. These defaults are not fully opaque, to allow some visibility of what is beneath the node. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -769,7 +773,7 @@ type SankeyNode struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Variables `sourceLinks` and `targetLinks` are arrays of link objects.Finally, the template string has access to variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scatter3d_gen.go b/generated/v2.29.1/graph_objects/scatter3d_gen.go index b1798dc..5f1a3f1 100644 --- a/generated/v2.29.1/graph_objects/scatter3d_gen.go +++ b/generated/v2.29.1/graph_objects/scatter3d_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatter3d TraceType = "scatter3d" func (trace *Scatter3d) GetType() TraceType { @@ -53,7 +57,7 @@ type Scatter3d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Scatter3dHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Scatter3dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -70,7 +74,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -82,7 +86,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y,z) triplet. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y,z) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -145,7 +149,7 @@ type Scatter3d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -211,7 +215,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y,z) triplet. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y,z) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -223,7 +227,7 @@ type Scatter3d struct { // default: top center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*Scatter3dTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*Scatter3dTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -241,7 +245,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -636,7 +640,7 @@ type Scatter3dHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -648,7 +652,7 @@ type Scatter3dHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -660,7 +664,7 @@ type Scatter3dHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -677,7 +681,7 @@ type Scatter3dHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Scatter3dHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Scatter3dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -689,7 +693,7 @@ type Scatter3dHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -701,7 +705,7 @@ type Scatter3dHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -718,7 +722,7 @@ type Scatter3dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -1172,7 +1176,7 @@ type Scatter3dLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1631,7 +1635,7 @@ type Scatter3dMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1701,7 +1705,7 @@ type Scatter3dMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1753,7 +1757,7 @@ type Scatter3dMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1785,7 +1789,7 @@ type Scatter3dMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. - Symbol ArrayOK[*Scatter3dMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*Scatter3dMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1902,7 +1906,7 @@ type Scatter3dTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1920,7 +1924,7 @@ type Scatter3dTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scatter_gen.go b/generated/v2.29.1/graph_objects/scatter_gen.go index dc6a4e2..a52fdfd 100644 --- a/generated/v2.29.1/graph_objects/scatter_gen.go +++ b/generated/v2.29.1/graph_objects/scatter_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatter TraceType = "scatter" func (trace *Scatter) GetType() TraceType { @@ -97,7 +101,7 @@ type Scatter struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -121,7 +125,7 @@ type Scatter struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -133,7 +137,7 @@ type Scatter struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -196,7 +200,7 @@ type Scatter struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -275,7 +279,7 @@ type Scatter struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -287,7 +291,7 @@ type Scatter struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -305,7 +309,7 @@ type Scatter struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -647,7 +651,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -659,7 +663,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -685,7 +689,7 @@ type ScatterFillpattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*ScatterFillpatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*ScatterFillpatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -697,7 +701,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -709,7 +713,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -725,7 +729,7 @@ type ScatterHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -737,7 +741,7 @@ type ScatterHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -749,7 +753,7 @@ type ScatterHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -766,7 +770,7 @@ type ScatterHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -778,7 +782,7 @@ type ScatterHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -790,7 +794,7 @@ type ScatterHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -807,7 +811,7 @@ type ScatterHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -860,7 +864,7 @@ type ScatterLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -1284,7 +1288,7 @@ type ScatterMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1297,7 +1301,7 @@ type ScatterMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScatterMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScatterMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -1343,7 +1347,7 @@ type ScatterMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1373,7 +1377,7 @@ type ScatterMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1389,7 +1393,7 @@ type ScatterMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1438,7 +1442,7 @@ type ScatterMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1483,7 +1487,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1507,7 +1511,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1538,7 +1542,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1551,7 +1555,7 @@ type ScatterMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1629,7 +1633,7 @@ type ScatterTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1641,7 +1645,7 @@ type ScatterTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1653,7 +1657,7 @@ type ScatterTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scattercarpet_gen.go b/generated/v2.29.1/graph_objects/scattercarpet_gen.go index 588ddae..2c50546 100644 --- a/generated/v2.29.1/graph_objects/scattercarpet_gen.go +++ b/generated/v2.29.1/graph_objects/scattercarpet_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattercarpet TraceType = "scattercarpet" func (trace *Scattercarpet) GetType() TraceType { @@ -81,7 +85,7 @@ type Scattercarpet struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattercarpetHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattercarpetHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -105,7 +109,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -117,7 +121,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Sets hover text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -180,7 +184,7 @@ type Scattercarpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -233,7 +237,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Sets text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -245,7 +249,7 @@ type Scattercarpet struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScattercarpetTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScattercarpetTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -263,7 +267,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `a`, `b` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -321,7 +325,7 @@ type ScattercarpetHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -333,7 +337,7 @@ type ScattercarpetHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -345,7 +349,7 @@ type ScattercarpetHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -362,7 +366,7 @@ type ScattercarpetHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattercarpetHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattercarpetHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -374,7 +378,7 @@ type ScattercarpetHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -386,7 +390,7 @@ type ScattercarpetHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -403,7 +407,7 @@ type ScattercarpetHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -456,7 +460,7 @@ type ScattercarpetLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -874,7 +878,7 @@ type ScattercarpetMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -887,7 +891,7 @@ type ScattercarpetMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScattercarpetMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScattercarpetMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -933,7 +937,7 @@ type ScattercarpetMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -963,7 +967,7 @@ type ScattercarpetMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -979,7 +983,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1028,7 +1032,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1073,7 +1077,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1097,7 +1101,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1128,7 +1132,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1141,7 +1145,7 @@ type ScattercarpetMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScattercarpetMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScattercarpetMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1219,7 +1223,7 @@ type ScattercarpetTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1231,7 +1235,7 @@ type ScattercarpetTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1243,7 +1247,7 @@ type ScattercarpetTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scattergeo_gen.go b/generated/v2.29.1/graph_objects/scattergeo_gen.go index eb616e6..f04c9b4 100644 --- a/generated/v2.29.1/graph_objects/scattergeo_gen.go +++ b/generated/v2.29.1/graph_objects/scattergeo_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattergeo TraceType = "scattergeo" func (trace *Scattergeo) GetType() TraceType { @@ -69,7 +73,7 @@ type Scattergeo struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattergeoHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattergeoHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -86,7 +90,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -98,7 +102,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair or item in `locations`. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) or `locations` coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -204,7 +208,7 @@ type Scattergeo struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -257,7 +261,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair or item in `locations`. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) or `locations` coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -269,7 +273,7 @@ type Scattergeo struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScattergeoTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScattergeoTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -287,7 +291,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `lat`, `lon`, `location` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -333,7 +337,7 @@ type ScattergeoHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -345,7 +349,7 @@ type ScattergeoHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -357,7 +361,7 @@ type ScattergeoHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -374,7 +378,7 @@ type ScattergeoHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattergeoHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattergeoHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -386,7 +390,7 @@ type ScattergeoHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -398,7 +402,7 @@ type ScattergeoHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -415,7 +419,7 @@ type ScattergeoHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -861,7 +865,7 @@ type ScattergeoMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -874,7 +878,7 @@ type ScattergeoMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScattergeoMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScattergeoMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -920,7 +924,7 @@ type ScattergeoMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -950,7 +954,7 @@ type ScattergeoMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -966,7 +970,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1015,7 +1019,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1054,7 +1058,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1078,7 +1082,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1109,7 +1113,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1122,7 +1126,7 @@ type ScattergeoMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScattergeoMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScattergeoMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1200,7 +1204,7 @@ type ScattergeoTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1212,7 +1216,7 @@ type ScattergeoTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1224,7 +1228,7 @@ type ScattergeoTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scattergl_gen.go b/generated/v2.29.1/graph_objects/scattergl_gen.go index d45dff5..8eedcd4 100644 --- a/generated/v2.29.1/graph_objects/scattergl_gen.go +++ b/generated/v2.29.1/graph_objects/scattergl_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattergl TraceType = "scattergl" func (trace *Scattergl) GetType() TraceType { @@ -73,7 +77,7 @@ type Scattergl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterglHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -90,7 +94,7 @@ type Scattergl struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -102,7 +106,7 @@ type Scattergl struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -165,7 +169,7 @@ type Scattergl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -218,7 +222,7 @@ type Scattergl struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -230,7 +234,7 @@ type Scattergl struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterglTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterglTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -248,7 +252,7 @@ type Scattergl struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -590,7 +594,7 @@ type ScatterglHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -602,7 +606,7 @@ type ScatterglHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -614,7 +618,7 @@ type ScatterglHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -631,7 +635,7 @@ type ScatterglHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterglHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -643,7 +647,7 @@ type ScatterglHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -655,7 +659,7 @@ type ScatterglHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -672,7 +676,7 @@ type ScatterglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -1156,7 +1160,7 @@ type ScatterglMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1186,7 +1190,7 @@ type ScatterglMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1202,7 +1206,7 @@ type ScatterglMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -1244,7 +1248,7 @@ type ScatterglMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1278,7 +1282,7 @@ type ScatterglMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1302,7 +1306,7 @@ type ScatterglMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1334,7 +1338,7 @@ type ScatterglMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterglMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterglMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1412,7 +1416,7 @@ type ScatterglTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1424,7 +1428,7 @@ type ScatterglTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1436,7 +1440,7 @@ type ScatterglTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scattermapbox_gen.go b/generated/v2.29.1/graph_objects/scattermapbox_gen.go index aa1a94f..c1fb4db 100644 --- a/generated/v2.29.1/graph_objects/scattermapbox_gen.go +++ b/generated/v2.29.1/graph_objects/scattermapbox_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattermapbox TraceType = "scattermapbox" func (trace *Scattermapbox) GetType() TraceType { @@ -62,7 +66,7 @@ type Scattermapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattermapboxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattermapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -79,7 +83,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -91,7 +95,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -178,7 +182,7 @@ type Scattermapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -237,7 +241,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -261,7 +265,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `lat`, `lon` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -307,7 +311,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: color // Sets the color for each cluster step. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -331,7 +335,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -343,7 +347,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: number // Sets the size for each cluster step. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -355,7 +359,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: number // Sets how many points it takes to create a cluster or advance to the next cluster step. Use this in conjunction with arrays for `size` and / or `color`. If an integer, steps start at multiples of this number. If an array, each step extends from the given value until one less than the next value. - Step ArrayOK[*float64] `json:"step,omitempty"` + Step arrayok.Type[*float64] `json:"step,omitempty"` // Stepsrc // arrayOK: false @@ -371,7 +375,7 @@ type ScattermapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -383,7 +387,7 @@ type ScattermapboxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -395,7 +399,7 @@ type ScattermapboxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -412,7 +416,7 @@ type ScattermapboxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattermapboxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattermapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -424,7 +428,7 @@ type ScattermapboxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -436,7 +440,7 @@ type ScattermapboxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -453,7 +457,7 @@ type ScattermapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -899,7 +903,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker orientation from true North, in degrees clockwise. When using the *auto* default, no rotation would be applied in perspective views which is different from using a zero angle. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -941,7 +945,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -970,7 +974,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -994,7 +998,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1025,7 +1029,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: string // Sets the marker symbol. Full list: https://www.mapbox.com/maki-icons/ Note that the array `marker.color` and `marker.size` are only available for *circle* symbols. - Symbol ArrayOK[*string] `json:"symbol,omitempty"` + Symbol arrayok.Type[*string] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scatterpolar_gen.go b/generated/v2.29.1/graph_objects/scatterpolar_gen.go index 5e06795..aba712d 100644 --- a/generated/v2.29.1/graph_objects/scatterpolar_gen.go +++ b/generated/v2.29.1/graph_objects/scatterpolar_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatterpolar TraceType = "scatterpolar" func (trace *Scatterpolar) GetType() TraceType { @@ -69,7 +73,7 @@ type Scatterpolar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterpolarHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterpolarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -93,7 +97,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -105,7 +109,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -168,7 +172,7 @@ type Scatterpolar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -245,7 +249,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -257,7 +261,7 @@ type Scatterpolar struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterpolarTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterpolarTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -275,7 +279,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `r`, `theta` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -346,7 +350,7 @@ type ScatterpolarHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -358,7 +362,7 @@ type ScatterpolarHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -370,7 +374,7 @@ type ScatterpolarHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -387,7 +391,7 @@ type ScatterpolarHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterpolarHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterpolarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -399,7 +403,7 @@ type ScatterpolarHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -411,7 +415,7 @@ type ScatterpolarHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -428,7 +432,7 @@ type ScatterpolarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -481,7 +485,7 @@ type ScatterpolarLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -899,7 +903,7 @@ type ScatterpolarMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -912,7 +916,7 @@ type ScatterpolarMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScatterpolarMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScatterpolarMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -958,7 +962,7 @@ type ScatterpolarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -988,7 +992,7 @@ type ScatterpolarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1004,7 +1008,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1053,7 +1057,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1098,7 +1102,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1122,7 +1126,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1153,7 +1157,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1166,7 +1170,7 @@ type ScatterpolarMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterpolarMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterpolarMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1244,7 +1248,7 @@ type ScatterpolarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1256,7 +1260,7 @@ type ScatterpolarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1268,7 +1272,7 @@ type ScatterpolarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scatterpolargl_gen.go b/generated/v2.29.1/graph_objects/scatterpolargl_gen.go index e85aa75..ee8db71 100644 --- a/generated/v2.29.1/graph_objects/scatterpolargl_gen.go +++ b/generated/v2.29.1/graph_objects/scatterpolargl_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatterpolargl TraceType = "scatterpolargl" func (trace *Scatterpolargl) GetType() TraceType { @@ -63,7 +67,7 @@ type Scatterpolargl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterpolarglHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterpolarglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -80,7 +84,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -92,7 +96,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -155,7 +159,7 @@ type Scatterpolargl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -232,7 +236,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -244,7 +248,7 @@ type Scatterpolargl struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterpolarglTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterpolarglTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -262,7 +266,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `r`, `theta` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -333,7 +337,7 @@ type ScatterpolarglHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -345,7 +349,7 @@ type ScatterpolarglHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -357,7 +361,7 @@ type ScatterpolarglHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -374,7 +378,7 @@ type ScatterpolarglHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterpolarglHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterpolarglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -386,7 +390,7 @@ type ScatterpolarglHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -398,7 +402,7 @@ type ScatterpolarglHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -415,7 +419,7 @@ type ScatterpolarglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -892,7 +896,7 @@ type ScatterpolarglMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -922,7 +926,7 @@ type ScatterpolarglMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -938,7 +942,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -980,7 +984,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1014,7 +1018,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1038,7 +1042,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1070,7 +1074,7 @@ type ScatterpolarglMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterpolarglMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterpolarglMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1148,7 +1152,7 @@ type ScatterpolarglTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1160,7 +1164,7 @@ type ScatterpolarglTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1172,7 +1176,7 @@ type ScatterpolarglTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scattersmith_gen.go b/generated/v2.29.1/graph_objects/scattersmith_gen.go index 771e712..40ad3a3 100644 --- a/generated/v2.29.1/graph_objects/scattersmith_gen.go +++ b/generated/v2.29.1/graph_objects/scattersmith_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattersmith TraceType = "scattersmith" func (trace *Scattersmith) GetType() TraceType { @@ -57,7 +61,7 @@ type Scattersmith struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattersmithHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattersmithHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -81,7 +85,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -93,7 +97,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -168,7 +172,7 @@ type Scattersmith struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -239,7 +243,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -251,7 +255,7 @@ type Scattersmith struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScattersmithTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScattersmithTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -269,7 +273,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `real`, `imag` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -315,7 +319,7 @@ type ScattersmithHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -327,7 +331,7 @@ type ScattersmithHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -339,7 +343,7 @@ type ScattersmithHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -356,7 +360,7 @@ type ScattersmithHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattersmithHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattersmithHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -368,7 +372,7 @@ type ScattersmithHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -380,7 +384,7 @@ type ScattersmithHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -397,7 +401,7 @@ type ScattersmithHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -450,7 +454,7 @@ type ScattersmithLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -868,7 +872,7 @@ type ScattersmithMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -881,7 +885,7 @@ type ScattersmithMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScattersmithMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScattersmithMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -927,7 +931,7 @@ type ScattersmithMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -957,7 +961,7 @@ type ScattersmithMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -973,7 +977,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1022,7 +1026,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1067,7 +1071,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1091,7 +1095,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1122,7 +1126,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1135,7 +1139,7 @@ type ScattersmithMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScattersmithMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScattersmithMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1213,7 +1217,7 @@ type ScattersmithTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1225,7 +1229,7 @@ type ScattersmithTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1237,7 +1241,7 @@ type ScattersmithTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/scatterternary_gen.go b/generated/v2.29.1/graph_objects/scatterternary_gen.go index 5059355..994812b 100644 --- a/generated/v2.29.1/graph_objects/scatterternary_gen.go +++ b/generated/v2.29.1/graph_objects/scatterternary_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatterternary TraceType = "scatterternary" func (trace *Scatterternary) GetType() TraceType { @@ -93,7 +97,7 @@ type Scatterternary struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterternaryHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterternaryHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -117,7 +121,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -129,7 +133,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Sets hover text elements associated with each (a,b,c) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b,c). To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -192,7 +196,7 @@ type Scatterternary struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -257,7 +261,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Sets text elements associated with each (a,b,c) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b,c). If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -269,7 +273,7 @@ type Scatterternary struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterternaryTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterternaryTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -287,7 +291,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `a`, `b`, `c` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -333,7 +337,7 @@ type ScatterternaryHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -345,7 +349,7 @@ type ScatterternaryHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -357,7 +361,7 @@ type ScatterternaryHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -374,7 +378,7 @@ type ScatterternaryHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterternaryHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterternaryHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -386,7 +390,7 @@ type ScatterternaryHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -398,7 +402,7 @@ type ScatterternaryHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -415,7 +419,7 @@ type ScatterternaryHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -468,7 +472,7 @@ type ScatterternaryLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -886,7 +890,7 @@ type ScatterternaryMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -899,7 +903,7 @@ type ScatterternaryMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScatterternaryMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScatterternaryMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -945,7 +949,7 @@ type ScatterternaryMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -975,7 +979,7 @@ type ScatterternaryMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -991,7 +995,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1040,7 +1044,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1085,7 +1089,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1109,7 +1113,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1140,7 +1144,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1153,7 +1157,7 @@ type ScatterternaryMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterternaryMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterternaryMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1231,7 +1235,7 @@ type ScatterternaryTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1243,7 +1247,7 @@ type ScatterternaryTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1255,7 +1259,7 @@ type ScatterternaryTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/splom_gen.go b/generated/v2.29.1/graph_objects/splom_gen.go index 4594bbd..9d78499 100644 --- a/generated/v2.29.1/graph_objects/splom_gen.go +++ b/generated/v2.29.1/graph_objects/splom_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSplom TraceType = "splom" func (trace *Splom) GetType() TraceType { @@ -43,7 +47,7 @@ type Splom struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*SplomHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*SplomHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -60,7 +64,7 @@ type Splom struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -72,7 +76,7 @@ type Splom struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -130,7 +134,7 @@ type Splom struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -188,7 +192,7 @@ type Splom struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair to appear on hover. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -268,7 +272,7 @@ type SplomHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -280,7 +284,7 @@ type SplomHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -292,7 +296,7 @@ type SplomHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -309,7 +313,7 @@ type SplomHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SplomHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SplomHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -321,7 +325,7 @@ type SplomHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -333,7 +337,7 @@ type SplomHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -350,7 +354,7 @@ type SplomHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -804,7 +808,7 @@ type SplomMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -834,7 +838,7 @@ type SplomMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -850,7 +854,7 @@ type SplomMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -892,7 +896,7 @@ type SplomMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -926,7 +930,7 @@ type SplomMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -950,7 +954,7 @@ type SplomMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -982,7 +986,7 @@ type SplomMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*SplomMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*SplomMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/streamtube_gen.go b/generated/v2.29.1/graph_objects/streamtube_gen.go index b5c9614..ba92a1c 100644 --- a/generated/v2.29.1/graph_objects/streamtube_gen.go +++ b/generated/v2.29.1/graph_objects/streamtube_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeStreamtube TraceType = "streamtube" func (trace *Streamtube) GetType() TraceType { @@ -79,7 +83,7 @@ type Streamtube struct { // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*StreamtubeHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*StreamtubeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -96,7 +100,7 @@ type Streamtube struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `tubex`, `tubey`, `tubez`, `tubeu`, `tubev`, `tubew`, `norm` and `divergence`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -171,7 +175,7 @@ type Streamtube struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -743,7 +747,7 @@ type StreamtubeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -755,7 +759,7 @@ type StreamtubeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -767,7 +771,7 @@ type StreamtubeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -784,7 +788,7 @@ type StreamtubeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*StreamtubeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*StreamtubeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -796,7 +800,7 @@ type StreamtubeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -808,7 +812,7 @@ type StreamtubeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -825,7 +829,7 @@ type StreamtubeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/sunburst_gen.go b/generated/v2.29.1/graph_objects/sunburst_gen.go index 5070ab9..83ebfdc 100644 --- a/generated/v2.29.1/graph_objects/sunburst_gen.go +++ b/generated/v2.29.1/graph_objects/sunburst_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSunburst TraceType = "sunburst" func (trace *Sunburst) GetType() TraceType { @@ -51,7 +55,7 @@ type Sunburst struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*SunburstHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*SunburstHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Sunburst struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -80,7 +84,7 @@ type Sunburst struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -173,7 +177,7 @@ type Sunburst struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -260,7 +264,7 @@ type Sunburst struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -341,7 +345,7 @@ type SunburstHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -353,7 +357,7 @@ type SunburstHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -365,7 +369,7 @@ type SunburstHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -382,7 +386,7 @@ type SunburstHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SunburstHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SunburstHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -394,7 +398,7 @@ type SunburstHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -406,7 +410,7 @@ type SunburstHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -423,7 +427,7 @@ type SunburstHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -439,7 +443,7 @@ type SunburstInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -451,7 +455,7 @@ type SunburstInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -463,7 +467,7 @@ type SunburstInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -897,7 +901,7 @@ type SunburstMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -909,7 +913,7 @@ type SunburstMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -925,7 +929,7 @@ type SunburstMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -937,7 +941,7 @@ type SunburstMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -963,7 +967,7 @@ type SunburstMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*SunburstMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*SunburstMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -975,7 +979,7 @@ type SunburstMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -987,7 +991,7 @@ type SunburstMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1088,7 +1092,7 @@ type SunburstOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1100,7 +1104,7 @@ type SunburstOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1112,7 +1116,7 @@ type SunburstOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1154,7 +1158,7 @@ type SunburstTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1166,7 +1170,7 @@ type SunburstTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1178,7 +1182,7 @@ type SunburstTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/surface_gen.go b/generated/v2.29.1/graph_objects/surface_gen.go index f25d0c6..7de29eb 100644 --- a/generated/v2.29.1/graph_objects/surface_gen.go +++ b/generated/v2.29.1/graph_objects/surface_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSurface TraceType = "surface" func (trace *Surface) GetType() TraceType { @@ -96,7 +100,7 @@ type Surface struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*SurfaceHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*SurfaceHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -113,7 +117,7 @@ type Surface struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -125,7 +129,7 @@ type Surface struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -188,7 +192,7 @@ type Surface struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -259,7 +263,7 @@ type Surface struct { // arrayOK: true // type: string // Sets the text elements associated with each z value. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -1032,7 +1036,7 @@ type SurfaceHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1044,7 +1048,7 @@ type SurfaceHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1056,7 +1060,7 @@ type SurfaceHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1073,7 +1077,7 @@ type SurfaceHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SurfaceHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SurfaceHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -1085,7 +1089,7 @@ type SurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -1097,7 +1101,7 @@ type SurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -1114,7 +1118,7 @@ type SurfaceHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/table_gen.go b/generated/v2.29.1/graph_objects/table_gen.go index 10815de..3ec95d3 100644 --- a/generated/v2.29.1/graph_objects/table_gen.go +++ b/generated/v2.29.1/graph_objects/table_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeTable TraceType = "table" func (trace *Table) GetType() TraceType { @@ -36,7 +40,7 @@ type Table struct { // arrayOK: true // type: number // The width of columns expressed as a ratio. Columns fill the available width in proportion of their specified column widths. - Columnwidth ArrayOK[*float64] `json:"columnwidth,omitempty"` + Columnwidth arrayok.Type[*float64] `json:"columnwidth,omitempty"` // Columnwidthsrc // arrayOK: false @@ -71,7 +75,7 @@ type Table struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*TableHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*TableHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -123,7 +127,7 @@ type Table struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -169,7 +173,7 @@ type TableCellsFill struct { // arrayOK: true // type: color // Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -185,7 +189,7 @@ type TableCellsFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -197,7 +201,7 @@ type TableCellsFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -209,7 +213,7 @@ type TableCellsFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -225,7 +229,7 @@ type TableCellsLine struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -237,7 +241,7 @@ type TableCellsLine struct { // arrayOK: true // type: number // - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -254,7 +258,7 @@ type TableCells struct { // default: center // type: enumerated // Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more
HTML tags) or if an explicit width is set to override the text width. - Align ArrayOK[*TableCellsAlign] `json:"align,omitempty"` + Align arrayok.Type[*TableCellsAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -299,7 +303,7 @@ type TableCells struct { // arrayOK: true // type: string // Prefix for cell values. - Prefix ArrayOK[*string] `json:"prefix,omitempty"` + Prefix arrayok.Type[*string] `json:"prefix,omitempty"` // Prefixsrc // arrayOK: false @@ -311,7 +315,7 @@ type TableCells struct { // arrayOK: true // type: string // Suffix for cell values. - Suffix ArrayOK[*string] `json:"suffix,omitempty"` + Suffix arrayok.Type[*string] `json:"suffix,omitempty"` // Suffixsrc // arrayOK: false @@ -367,7 +371,7 @@ type TableHeaderFill struct { // arrayOK: true // type: color // Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -383,7 +387,7 @@ type TableHeaderFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -395,7 +399,7 @@ type TableHeaderFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -407,7 +411,7 @@ type TableHeaderFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -423,7 +427,7 @@ type TableHeaderLine struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -435,7 +439,7 @@ type TableHeaderLine struct { // arrayOK: true // type: number // - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -452,7 +456,7 @@ type TableHeader struct { // default: center // type: enumerated // Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more
HTML tags) or if an explicit width is set to override the text width. - Align ArrayOK[*TableHeaderAlign] `json:"align,omitempty"` + Align arrayok.Type[*TableHeaderAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -497,7 +501,7 @@ type TableHeader struct { // arrayOK: true // type: string // Prefix for cell values. - Prefix ArrayOK[*string] `json:"prefix,omitempty"` + Prefix arrayok.Type[*string] `json:"prefix,omitempty"` // Prefixsrc // arrayOK: false @@ -509,7 +513,7 @@ type TableHeader struct { // arrayOK: true // type: string // Suffix for cell values. - Suffix ArrayOK[*string] `json:"suffix,omitempty"` + Suffix arrayok.Type[*string] `json:"suffix,omitempty"` // Suffixsrc // arrayOK: false @@ -537,7 +541,7 @@ type TableHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -549,7 +553,7 @@ type TableHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -561,7 +565,7 @@ type TableHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -578,7 +582,7 @@ type TableHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*TableHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*TableHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -590,7 +594,7 @@ type TableHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -602,7 +606,7 @@ type TableHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -619,7 +623,7 @@ type TableHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/treemap_gen.go b/generated/v2.29.1/graph_objects/treemap_gen.go index e3e3e4b..49d0083 100644 --- a/generated/v2.29.1/graph_objects/treemap_gen.go +++ b/generated/v2.29.1/graph_objects/treemap_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeTreemap TraceType = "treemap" func (trace *Treemap) GetType() TraceType { @@ -51,7 +55,7 @@ type Treemap struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*TreemapHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*TreemapHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Treemap struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -80,7 +84,7 @@ type Treemap struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -161,7 +165,7 @@ type Treemap struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -254,7 +258,7 @@ type Treemap struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -340,7 +344,7 @@ type TreemapHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -352,7 +356,7 @@ type TreemapHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -364,7 +368,7 @@ type TreemapHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -381,7 +385,7 @@ type TreemapHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*TreemapHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*TreemapHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -393,7 +397,7 @@ type TreemapHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -405,7 +409,7 @@ type TreemapHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -422,7 +426,7 @@ type TreemapHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -438,7 +442,7 @@ type TreemapInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -450,7 +454,7 @@ type TreemapInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -462,7 +466,7 @@ type TreemapInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -886,7 +890,7 @@ type TreemapMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -898,7 +902,7 @@ type TreemapMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -942,7 +946,7 @@ type TreemapMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -954,7 +958,7 @@ type TreemapMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -980,7 +984,7 @@ type TreemapMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*TreemapMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*TreemapMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -992,7 +996,7 @@ type TreemapMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1004,7 +1008,7 @@ type TreemapMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1123,7 +1127,7 @@ type TreemapOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1135,7 +1139,7 @@ type TreemapOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1147,7 +1151,7 @@ type TreemapOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1163,7 +1167,7 @@ type TreemapPathbarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1175,7 +1179,7 @@ type TreemapPathbarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1187,7 +1191,7 @@ type TreemapPathbarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1264,7 +1268,7 @@ type TreemapTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1276,7 +1280,7 @@ type TreemapTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1288,7 +1292,7 @@ type TreemapTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/violin_gen.go b/generated/v2.29.1/graph_objects/violin_gen.go index e9f4c43..b8a572f 100644 --- a/generated/v2.29.1/graph_objects/violin_gen.go +++ b/generated/v2.29.1/graph_objects/violin_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeViolin TraceType = "violin" func (trace *Violin) GetType() TraceType { @@ -55,7 +59,7 @@ type Violin struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ViolinHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ViolinHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -79,7 +83,7 @@ type Violin struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -91,7 +95,7 @@ type Violin struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -165,7 +169,7 @@ type Violin struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -277,7 +281,7 @@ type Violin struct { // arrayOK: true // type: string // Sets the text elements associated with each sample value. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -432,7 +436,7 @@ type ViolinHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -444,7 +448,7 @@ type ViolinHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -456,7 +460,7 @@ type ViolinHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -473,7 +477,7 @@ type ViolinHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ViolinHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ViolinHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -485,7 +489,7 @@ type ViolinHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -497,7 +501,7 @@ type ViolinHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -514,7 +518,7 @@ type ViolinHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/volume_gen.go b/generated/v2.29.1/graph_objects/volume_gen.go index 170023c..b6c11e7 100644 --- a/generated/v2.29.1/graph_objects/volume_gen.go +++ b/generated/v2.29.1/graph_objects/volume_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeVolume TraceType = "volume" func (trace *Volume) GetType() TraceType { @@ -95,7 +99,7 @@ type Volume struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*VolumeHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*VolumeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -112,7 +116,7 @@ type Volume struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -124,7 +128,7 @@ type Volume struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -199,7 +203,7 @@ type Volume struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -273,7 +277,7 @@ type Volume struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -840,7 +844,7 @@ type VolumeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -852,7 +856,7 @@ type VolumeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -864,7 +868,7 @@ type VolumeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -881,7 +885,7 @@ type VolumeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*VolumeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*VolumeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -893,7 +897,7 @@ type VolumeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -905,7 +909,7 @@ type VolumeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -922,7 +926,7 @@ type VolumeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.29.1/graph_objects/waterfall_gen.go b/generated/v2.29.1/graph_objects/waterfall_gen.go index 14def67..d0c9851 100644 --- a/generated/v2.29.1/graph_objects/waterfall_gen.go +++ b/generated/v2.29.1/graph_objects/waterfall_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeWaterfall TraceType = "waterfall" func (trace *Waterfall) GetType() TraceType { @@ -79,7 +83,7 @@ type Waterfall struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*WaterfallHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*WaterfallHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -96,7 +100,7 @@ type Waterfall struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `initial`, `delta` and `final`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -108,7 +112,7 @@ type Waterfall struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -190,7 +194,7 @@ type Waterfall struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -208,7 +212,7 @@ type Waterfall struct { // arrayOK: true // type: number // Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead. - Offset ArrayOK[*float64] `json:"offset,omitempty"` + Offset arrayok.Type[*float64] `json:"offset,omitempty"` // Offsetgroup // arrayOK: false @@ -261,7 +265,7 @@ type Waterfall struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -286,7 +290,7 @@ type Waterfall struct { // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition ArrayOK[*WaterfallTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*WaterfallTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -304,7 +308,7 @@ type Waterfall struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `initial`, `delta`, `final` and `label`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -346,7 +350,7 @@ type Waterfall struct { // arrayOK: true // type: number // Sets the bar width (in position axis units). - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -544,7 +548,7 @@ type WaterfallHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -556,7 +560,7 @@ type WaterfallHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -568,7 +572,7 @@ type WaterfallHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -585,7 +589,7 @@ type WaterfallHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*WaterfallHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*WaterfallHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -597,7 +601,7 @@ type WaterfallHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -609,7 +613,7 @@ type WaterfallHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -626,7 +630,7 @@ type WaterfallHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -682,7 +686,7 @@ type WaterfallInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -694,7 +698,7 @@ type WaterfallInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -706,7 +710,7 @@ type WaterfallInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -759,7 +763,7 @@ type WaterfallOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -771,7 +775,7 @@ type WaterfallOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -783,7 +787,7 @@ type WaterfallOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -815,7 +819,7 @@ type WaterfallTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -827,7 +831,7 @@ type WaterfallTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -839,7 +843,7 @@ type WaterfallTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/bar_gen.go b/generated/v2.31.1/graph_objects/bar_gen.go index d7cdcca..0732527 100644 --- a/generated/v2.31.1/graph_objects/bar_gen.go +++ b/generated/v2.31.1/graph_objects/bar_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeBar TraceType = "bar" func (trace *Bar) GetType() TraceType { @@ -25,7 +29,7 @@ type Bar struct { // arrayOK: true // type: any // Sets where the bar base is drawn (in position axis units). In *stack* or *relative* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead. - Base ArrayOK[*interface{}] `json:"base,omitempty"` + Base arrayok.Type[*interface{}] `json:"base,omitempty"` // Basesrc // arrayOK: false @@ -85,7 +89,7 @@ type Bar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*BarHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*BarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -102,7 +106,7 @@ type Bar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -114,7 +118,7 @@ type Bar struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -184,7 +188,7 @@ type Bar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -202,7 +206,7 @@ type Bar struct { // arrayOK: true // type: number // Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead. - Offset ArrayOK[*float64] `json:"offset,omitempty"` + Offset arrayok.Type[*float64] `json:"offset,omitempty"` // Offsetgroup // arrayOK: false @@ -260,7 +264,7 @@ type Bar struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -278,7 +282,7 @@ type Bar struct { // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition ArrayOK[*BarTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*BarTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -296,7 +300,7 @@ type Bar struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `value` and `label`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -338,7 +342,7 @@ type Bar struct { // arrayOK: true // type: number // Sets the bar width (in position axis units). - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -656,7 +660,7 @@ type BarHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -668,7 +672,7 @@ type BarHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -680,7 +684,7 @@ type BarHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -697,7 +701,7 @@ type BarHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*BarHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*BarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -709,7 +713,7 @@ type BarHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -721,7 +725,7 @@ type BarHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -738,7 +742,7 @@ type BarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -754,7 +758,7 @@ type BarInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -766,7 +770,7 @@ type BarInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -778,7 +782,7 @@ type BarInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1232,7 +1236,7 @@ type BarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1262,7 +1266,7 @@ type BarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1278,7 +1282,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -1290,7 +1294,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -1316,7 +1320,7 @@ type BarMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*BarMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*BarMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -1328,7 +1332,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1340,7 +1344,7 @@ type BarMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1386,7 +1390,7 @@ type BarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1426,7 +1430,7 @@ type BarMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1459,7 +1463,7 @@ type BarOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1471,7 +1475,7 @@ type BarOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1483,7 +1487,7 @@ type BarOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1555,7 +1559,7 @@ type BarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1567,7 +1571,7 @@ type BarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1579,7 +1583,7 @@ type BarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/barpolar_gen.go b/generated/v2.31.1/graph_objects/barpolar_gen.go index 602b7d4..be5416b 100644 --- a/generated/v2.31.1/graph_objects/barpolar_gen.go +++ b/generated/v2.31.1/graph_objects/barpolar_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeBarpolar TraceType = "barpolar" func (trace *Barpolar) GetType() TraceType { @@ -19,7 +23,7 @@ type Barpolar struct { // arrayOK: true // type: any // Sets where the bar base is drawn (in radial axis units). In *stack* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead. - Base ArrayOK[*interface{}] `json:"base,omitempty"` + Base arrayok.Type[*interface{}] `json:"base,omitempty"` // Basesrc // arrayOK: false @@ -56,7 +60,7 @@ type Barpolar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*BarpolarHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*BarpolarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -73,7 +77,7 @@ type Barpolar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -85,7 +89,7 @@ type Barpolar struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -143,7 +147,7 @@ type Barpolar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -161,7 +165,7 @@ type Barpolar struct { // arrayOK: true // type: number // Shifts the angular position where the bar is drawn (in *thetatunit* units). - Offset ArrayOK[*float64] `json:"offset,omitempty"` + Offset arrayok.Type[*float64] `json:"offset,omitempty"` // Offsetsrc // arrayOK: false @@ -225,7 +229,7 @@ type Barpolar struct { // arrayOK: true // type: string // Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace's coordinates. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -292,7 +296,7 @@ type Barpolar struct { // arrayOK: true // type: number // Sets the bar angular width (in *thetaunit* units). - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -308,7 +312,7 @@ type BarpolarHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -320,7 +324,7 @@ type BarpolarHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -332,7 +336,7 @@ type BarpolarHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -349,7 +353,7 @@ type BarpolarHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*BarpolarHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*BarpolarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -361,7 +365,7 @@ type BarpolarHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -373,7 +377,7 @@ type BarpolarHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -390,7 +394,7 @@ type BarpolarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -844,7 +848,7 @@ type BarpolarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -874,7 +878,7 @@ type BarpolarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -890,7 +894,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -902,7 +906,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -928,7 +932,7 @@ type BarpolarMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*BarpolarMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*BarpolarMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -940,7 +944,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -952,7 +956,7 @@ type BarpolarMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -998,7 +1002,7 @@ type BarpolarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1032,7 +1036,7 @@ type BarpolarMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/box_gen.go b/generated/v2.31.1/graph_objects/box_gen.go index a7c08ae..9584500 100644 --- a/generated/v2.31.1/graph_objects/box_gen.go +++ b/generated/v2.31.1/graph_objects/box_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeBox TraceType = "box" func (trace *Box) GetType() TraceType { @@ -70,7 +74,7 @@ type Box struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*BoxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*BoxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -94,7 +98,7 @@ type Box struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -106,7 +110,7 @@ type Box struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -211,7 +215,7 @@ type Box struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -362,7 +366,7 @@ type Box struct { // arrayOK: true // type: string // Sets the text elements associated with each sample value. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -550,7 +554,7 @@ type BoxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -562,7 +566,7 @@ type BoxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -574,7 +578,7 @@ type BoxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -591,7 +595,7 @@ type BoxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*BoxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*BoxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -603,7 +607,7 @@ type BoxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -615,7 +619,7 @@ type BoxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -632,7 +636,7 @@ type BoxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/candlestick_gen.go b/generated/v2.31.1/graph_objects/candlestick_gen.go index ba6e7a6..83e38d0 100644 --- a/generated/v2.31.1/graph_objects/candlestick_gen.go +++ b/generated/v2.31.1/graph_objects/candlestick_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeCandlestick TraceType = "candlestick" func (trace *Candlestick) GetType() TraceType { @@ -61,7 +65,7 @@ type Candlestick struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*CandlestickHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*CandlestickHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -78,7 +82,7 @@ type Candlestick struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -153,7 +157,7 @@ type Candlestick struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -206,7 +210,7 @@ type Candlestick struct { // arrayOK: true // type: string // Sets hover text elements associated with each sample point. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to this trace's sample points. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -352,7 +356,7 @@ type CandlestickHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -364,7 +368,7 @@ type CandlestickHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -376,7 +380,7 @@ type CandlestickHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -393,7 +397,7 @@ type CandlestickHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*CandlestickHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*CandlestickHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -405,7 +409,7 @@ type CandlestickHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -417,7 +421,7 @@ type CandlestickHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -434,7 +438,7 @@ type CandlestickHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/carpet_gen.go b/generated/v2.31.1/graph_objects/carpet_gen.go index 637930d..0ccef3e 100644 --- a/generated/v2.31.1/graph_objects/carpet_gen.go +++ b/generated/v2.31.1/graph_objects/carpet_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeCarpet TraceType = "carpet" func (trace *Carpet) GetType() TraceType { @@ -147,7 +151,7 @@ type Carpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/choropleth_gen.go b/generated/v2.31.1/graph_objects/choropleth_gen.go index 0b560e4..7eafd32 100644 --- a/generated/v2.31.1/graph_objects/choropleth_gen.go +++ b/generated/v2.31.1/graph_objects/choropleth_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeChoropleth TraceType = "choropleth" func (trace *Choropleth) GetType() TraceType { @@ -73,7 +77,7 @@ type Choropleth struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ChoroplethHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ChoroplethHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -90,7 +94,7 @@ type Choropleth struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -102,7 +106,7 @@ type Choropleth struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -179,7 +183,7 @@ type Choropleth struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -231,7 +235,7 @@ type Choropleth struct { // arrayOK: true // type: string // Sets the text elements associated with each location. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -684,7 +688,7 @@ type ChoroplethHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -696,7 +700,7 @@ type ChoroplethHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -708,7 +712,7 @@ type ChoroplethHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -725,7 +729,7 @@ type ChoroplethHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ChoroplethHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ChoroplethHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -737,7 +741,7 @@ type ChoroplethHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -749,7 +753,7 @@ type ChoroplethHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -766,7 +770,7 @@ type ChoroplethHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -819,7 +823,7 @@ type ChoroplethMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -831,7 +835,7 @@ type ChoroplethMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -852,7 +856,7 @@ type ChoroplethMarker struct { // arrayOK: true // type: number // Sets the opacity of the locations. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/choroplethmapbox_gen.go b/generated/v2.31.1/graph_objects/choroplethmapbox_gen.go index 1736558..46bb328 100644 --- a/generated/v2.31.1/graph_objects/choroplethmapbox_gen.go +++ b/generated/v2.31.1/graph_objects/choroplethmapbox_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeChoroplethmapbox TraceType = "choroplethmapbox" func (trace *Choroplethmapbox) GetType() TraceType { @@ -73,7 +77,7 @@ type Choroplethmapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ChoroplethmapboxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ChoroplethmapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -90,7 +94,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `properties` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -102,7 +106,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -172,7 +176,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -230,7 +234,7 @@ type Choroplethmapbox struct { // arrayOK: true // type: string // Sets the text elements associated with each location. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -683,7 +687,7 @@ type ChoroplethmapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -695,7 +699,7 @@ type ChoroplethmapboxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -707,7 +711,7 @@ type ChoroplethmapboxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -724,7 +728,7 @@ type ChoroplethmapboxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ChoroplethmapboxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ChoroplethmapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -736,7 +740,7 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -748,7 +752,7 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -765,7 +769,7 @@ type ChoroplethmapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -818,7 +822,7 @@ type ChoroplethmapboxMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -830,7 +834,7 @@ type ChoroplethmapboxMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -851,7 +855,7 @@ type ChoroplethmapboxMarker struct { // arrayOK: true // type: number // Sets the opacity of the locations. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/cone_gen.go b/generated/v2.31.1/graph_objects/cone_gen.go index 349fa4e..77ede3b 100644 --- a/generated/v2.31.1/graph_objects/cone_gen.go +++ b/generated/v2.31.1/graph_objects/cone_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeCone TraceType = "cone" func (trace *Cone) GetType() TraceType { @@ -86,7 +90,7 @@ type Cone struct { // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ConeHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ConeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -103,7 +107,7 @@ type Cone struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `norm` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -115,7 +119,7 @@ type Cone struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -178,7 +182,7 @@ type Cone struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -244,7 +248,7 @@ type Cone struct { // arrayOK: true // type: string // Sets the text elements associated with the cones. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -758,7 +762,7 @@ type ConeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -770,7 +774,7 @@ type ConeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -782,7 +786,7 @@ type ConeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -799,7 +803,7 @@ type ConeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ConeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ConeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -811,7 +815,7 @@ type ConeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -823,7 +827,7 @@ type ConeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -840,7 +844,7 @@ type ConeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/contour_gen.go b/generated/v2.31.1/graph_objects/contour_gen.go index e5a4f3a..893a217 100644 --- a/generated/v2.31.1/graph_objects/contour_gen.go +++ b/generated/v2.31.1/graph_objects/contour_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeContour TraceType = "contour" func (trace *Contour) GetType() TraceType { @@ -90,7 +94,7 @@ type Contour struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ContourHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ContourHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -113,7 +117,7 @@ type Contour struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -183,7 +187,7 @@ type Contour struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -933,7 +937,7 @@ type ContourHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -945,7 +949,7 @@ type ContourHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -957,7 +961,7 @@ type ContourHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -974,7 +978,7 @@ type ContourHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ContourHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ContourHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -986,7 +990,7 @@ type ContourHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -998,7 +1002,7 @@ type ContourHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -1015,7 +1019,7 @@ type ContourHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/contourcarpet_gen.go b/generated/v2.31.1/graph_objects/contourcarpet_gen.go index f0ab0e4..f45d182 100644 --- a/generated/v2.31.1/graph_objects/contourcarpet_gen.go +++ b/generated/v2.31.1/graph_objects/contourcarpet_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeContourcarpet TraceType = "contourcarpet" func (trace *Contourcarpet) GetType() TraceType { @@ -197,7 +201,7 @@ type Contourcarpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/densitymapbox_gen.go b/generated/v2.31.1/graph_objects/densitymapbox_gen.go index 38f6b11..ec0b504 100644 --- a/generated/v2.31.1/graph_objects/densitymapbox_gen.go +++ b/generated/v2.31.1/graph_objects/densitymapbox_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeDensitymapbox TraceType = "densitymapbox" func (trace *Densitymapbox) GetType() TraceType { @@ -61,7 +65,7 @@ type Densitymapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*DensitymapboxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*DensitymapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -78,7 +82,7 @@ type Densitymapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -90,7 +94,7 @@ type Densitymapbox struct { // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -167,7 +171,7 @@ type Densitymapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -191,7 +195,7 @@ type Densitymapbox struct { // arrayOK: true // type: number // Sets the radius of influence of one `lon` / `lat` point in pixels. Increasing the value makes the densitymapbox trace smoother, but less detailed. - Radius ArrayOK[*float64] `json:"radius,omitempty"` + Radius arrayok.Type[*float64] `json:"radius,omitempty"` // Radiussrc // arrayOK: false @@ -232,7 +236,7 @@ type Densitymapbox struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -680,7 +684,7 @@ type DensitymapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -692,7 +696,7 @@ type DensitymapboxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -704,7 +708,7 @@ type DensitymapboxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -721,7 +725,7 @@ type DensitymapboxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*DensitymapboxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*DensitymapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -733,7 +737,7 @@ type DensitymapboxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -745,7 +749,7 @@ type DensitymapboxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -762,7 +766,7 @@ type DensitymapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/funnel_gen.go b/generated/v2.31.1/graph_objects/funnel_gen.go index d988308..d044602 100644 --- a/generated/v2.31.1/graph_objects/funnel_gen.go +++ b/generated/v2.31.1/graph_objects/funnel_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeFunnel TraceType = "funnel" func (trace *Funnel) GetType() TraceType { @@ -68,7 +72,7 @@ type Funnel struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*FunnelHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*FunnelHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -85,7 +89,7 @@ type Funnel struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `percentInitial`, `percentPrevious` and `percentTotal`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -97,7 +101,7 @@ type Funnel struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -167,7 +171,7 @@ type Funnel struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -232,7 +236,7 @@ type Funnel struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -257,7 +261,7 @@ type Funnel struct { // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition ArrayOK[*FunnelTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*FunnelTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -275,7 +279,7 @@ type Funnel struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `percentInitial`, `percentPrevious`, `percentTotal`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -469,7 +473,7 @@ type FunnelHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -481,7 +485,7 @@ type FunnelHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -493,7 +497,7 @@ type FunnelHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -510,7 +514,7 @@ type FunnelHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*FunnelHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*FunnelHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -522,7 +526,7 @@ type FunnelHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -534,7 +538,7 @@ type FunnelHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -551,7 +555,7 @@ type FunnelHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -567,7 +571,7 @@ type FunnelInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -579,7 +583,7 @@ type FunnelInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -591,7 +595,7 @@ type FunnelInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1045,7 +1049,7 @@ type FunnelMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1075,7 +1079,7 @@ type FunnelMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1121,7 +1125,7 @@ type FunnelMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1155,7 +1159,7 @@ type FunnelMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1183,7 +1187,7 @@ type FunnelOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1195,7 +1199,7 @@ type FunnelOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1207,7 +1211,7 @@ type FunnelOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1239,7 +1243,7 @@ type FunnelTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1251,7 +1255,7 @@ type FunnelTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1263,7 +1267,7 @@ type FunnelTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/funnelarea_gen.go b/generated/v2.31.1/graph_objects/funnelarea_gen.go index 4fd348b..c08cad7 100644 --- a/generated/v2.31.1/graph_objects/funnelarea_gen.go +++ b/generated/v2.31.1/graph_objects/funnelarea_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeFunnelarea TraceType = "funnelarea" func (trace *Funnelarea) GetType() TraceType { @@ -55,7 +59,7 @@ type Funnelarea struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*FunnelareaHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*FunnelareaHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -72,7 +76,7 @@ type Funnelarea struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `text` and `percent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -84,7 +88,7 @@ type Funnelarea struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -165,7 +169,7 @@ type Funnelarea struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -225,7 +229,7 @@ type Funnelarea struct { // default: inside // type: enumerated // Specifies the location of the `textinfo`. - Textposition ArrayOK[*FunnelareaTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*FunnelareaTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -243,7 +247,7 @@ type Funnelarea struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `text` and `percent`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -329,7 +333,7 @@ type FunnelareaHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -341,7 +345,7 @@ type FunnelareaHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -353,7 +357,7 @@ type FunnelareaHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -370,7 +374,7 @@ type FunnelareaHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*FunnelareaHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*FunnelareaHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -382,7 +386,7 @@ type FunnelareaHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -394,7 +398,7 @@ type FunnelareaHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -411,7 +415,7 @@ type FunnelareaHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -427,7 +431,7 @@ type FunnelareaInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -439,7 +443,7 @@ type FunnelareaInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -451,7 +455,7 @@ type FunnelareaInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -504,7 +508,7 @@ type FunnelareaMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -516,7 +520,7 @@ type FunnelareaMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -532,7 +536,7 @@ type FunnelareaMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -544,7 +548,7 @@ type FunnelareaMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -570,7 +574,7 @@ type FunnelareaMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*FunnelareaMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*FunnelareaMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -582,7 +586,7 @@ type FunnelareaMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -594,7 +598,7 @@ type FunnelareaMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -652,7 +656,7 @@ type FunnelareaTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -664,7 +668,7 @@ type FunnelareaTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -676,7 +680,7 @@ type FunnelareaTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -692,7 +696,7 @@ type FunnelareaTitleFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -704,7 +708,7 @@ type FunnelareaTitleFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -716,7 +720,7 @@ type FunnelareaTitleFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/heatmap_gen.go b/generated/v2.31.1/graph_objects/heatmap_gen.go index 9e1687c..49971e8 100644 --- a/generated/v2.31.1/graph_objects/heatmap_gen.go +++ b/generated/v2.31.1/graph_objects/heatmap_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHeatmap TraceType = "heatmap" func (trace *Heatmap) GetType() TraceType { @@ -73,7 +77,7 @@ type Heatmap struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*HeatmapHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*HeatmapHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -96,7 +100,7 @@ type Heatmap struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -161,7 +165,7 @@ type Heatmap struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -830,7 +834,7 @@ type HeatmapHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -842,7 +846,7 @@ type HeatmapHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -854,7 +858,7 @@ type HeatmapHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -871,7 +875,7 @@ type HeatmapHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*HeatmapHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*HeatmapHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -883,7 +887,7 @@ type HeatmapHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -895,7 +899,7 @@ type HeatmapHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -912,7 +916,7 @@ type HeatmapHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/heatmapgl_gen.go b/generated/v2.31.1/graph_objects/heatmapgl_gen.go index fbe68f3..f2ce8ae 100644 --- a/generated/v2.31.1/graph_objects/heatmapgl_gen.go +++ b/generated/v2.31.1/graph_objects/heatmapgl_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHeatmapgl TraceType = "heatmapgl" func (trace *Heatmapgl) GetType() TraceType { @@ -67,7 +71,7 @@ type Heatmapgl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*HeatmapglHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*HeatmapglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -119,7 +123,7 @@ type Heatmapgl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -683,7 +687,7 @@ type HeatmapglHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -695,7 +699,7 @@ type HeatmapglHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -707,7 +711,7 @@ type HeatmapglHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -724,7 +728,7 @@ type HeatmapglHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*HeatmapglHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*HeatmapglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -736,7 +740,7 @@ type HeatmapglHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -748,7 +752,7 @@ type HeatmapglHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -765,7 +769,7 @@ type HeatmapglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/histogram2d_gen.go b/generated/v2.31.1/graph_objects/histogram2d_gen.go index f6d6fa5..99a45bc 100644 --- a/generated/v2.31.1/graph_objects/histogram2d_gen.go +++ b/generated/v2.31.1/graph_objects/histogram2d_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHistogram2d TraceType = "histogram2d" func (trace *Histogram2d) GetType() TraceType { @@ -87,7 +91,7 @@ type Histogram2d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Histogram2dHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Histogram2dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -104,7 +108,7 @@ type Histogram2d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `z` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -162,7 +166,7 @@ type Histogram2d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -777,7 +781,7 @@ type Histogram2dHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -789,7 +793,7 @@ type Histogram2dHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -801,7 +805,7 @@ type Histogram2dHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -818,7 +822,7 @@ type Histogram2dHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Histogram2dHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Histogram2dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -830,7 +834,7 @@ type Histogram2dHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -842,7 +846,7 @@ type Histogram2dHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -859,7 +863,7 @@ type Histogram2dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/histogram2dcontour_gen.go b/generated/v2.31.1/graph_objects/histogram2dcontour_gen.go index 5bd181d..0b5428c 100644 --- a/generated/v2.31.1/graph_objects/histogram2dcontour_gen.go +++ b/generated/v2.31.1/graph_objects/histogram2dcontour_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHistogram2dcontour TraceType = "histogram2dcontour" func (trace *Histogram2dcontour) GetType() TraceType { @@ -98,7 +102,7 @@ type Histogram2dcontour struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Histogram2dcontourHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Histogram2dcontourHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -115,7 +119,7 @@ type Histogram2dcontour struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `z` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -178,7 +182,7 @@ type Histogram2dcontour struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -874,7 +878,7 @@ type Histogram2dcontourHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -886,7 +890,7 @@ type Histogram2dcontourHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -898,7 +902,7 @@ type Histogram2dcontourHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -915,7 +919,7 @@ type Histogram2dcontourHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Histogram2dcontourHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Histogram2dcontourHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -927,7 +931,7 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -939,7 +943,7 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -956,7 +960,7 @@ type Histogram2dcontourHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/histogram_gen.go b/generated/v2.31.1/graph_objects/histogram_gen.go index 09dafb5..6cb958b 100644 --- a/generated/v2.31.1/graph_objects/histogram_gen.go +++ b/generated/v2.31.1/graph_objects/histogram_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeHistogram TraceType = "histogram" func (trace *Histogram) GetType() TraceType { @@ -98,7 +102,7 @@ type Histogram struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*HistogramHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*HistogramHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -115,7 +119,7 @@ type Histogram struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variable `binNumber` Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -127,7 +131,7 @@ type Histogram struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -197,7 +201,7 @@ type Histogram struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -273,7 +277,7 @@ type Histogram struct { // arrayOK: true // type: string // Sets hover text elements associated with each bar. If a single string, the same string appears over all bars. If an array of string, the items are mapped in order to the this trace's coordinates. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -629,7 +633,7 @@ type HistogramHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -641,7 +645,7 @@ type HistogramHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -653,7 +657,7 @@ type HistogramHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -670,7 +674,7 @@ type HistogramHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*HistogramHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*HistogramHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -682,7 +686,7 @@ type HistogramHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -694,7 +698,7 @@ type HistogramHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -711,7 +715,7 @@ type HistogramHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -1187,7 +1191,7 @@ type HistogramMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1217,7 +1221,7 @@ type HistogramMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1233,7 +1237,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -1245,7 +1249,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -1271,7 +1275,7 @@ type HistogramMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*HistogramMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*HistogramMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -1283,7 +1287,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1295,7 +1299,7 @@ type HistogramMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1341,7 +1345,7 @@ type HistogramMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1381,7 +1385,7 @@ type HistogramMarker struct { // arrayOK: true // type: number // Sets the opacity of the bars. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/icicle_gen.go b/generated/v2.31.1/graph_objects/icicle_gen.go index 62baa30..29ef8da 100644 --- a/generated/v2.31.1/graph_objects/icicle_gen.go +++ b/generated/v2.31.1/graph_objects/icicle_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeIcicle TraceType = "icicle" func (trace *Icicle) GetType() TraceType { @@ -51,7 +55,7 @@ type Icicle struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*IcicleHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*IcicleHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Icicle struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -80,7 +84,7 @@ type Icicle struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -166,7 +170,7 @@ type Icicle struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -259,7 +263,7 @@ type Icicle struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -345,7 +349,7 @@ type IcicleHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -357,7 +361,7 @@ type IcicleHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -369,7 +373,7 @@ type IcicleHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -386,7 +390,7 @@ type IcicleHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*IcicleHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*IcicleHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -398,7 +402,7 @@ type IcicleHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -410,7 +414,7 @@ type IcicleHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -427,7 +431,7 @@ type IcicleHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -443,7 +447,7 @@ type IcicleInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -455,7 +459,7 @@ type IcicleInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -467,7 +471,7 @@ type IcicleInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -901,7 +905,7 @@ type IcicleMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -913,7 +917,7 @@ type IcicleMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -929,7 +933,7 @@ type IcicleMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -941,7 +945,7 @@ type IcicleMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -967,7 +971,7 @@ type IcicleMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*IcicleMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*IcicleMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -979,7 +983,7 @@ type IcicleMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -991,7 +995,7 @@ type IcicleMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1092,7 +1096,7 @@ type IcicleOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1104,7 +1108,7 @@ type IcicleOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1116,7 +1120,7 @@ type IcicleOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1132,7 +1136,7 @@ type IciclePathbarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1144,7 +1148,7 @@ type IciclePathbarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1156,7 +1160,7 @@ type IciclePathbarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1233,7 +1237,7 @@ type IcicleTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1245,7 +1249,7 @@ type IcicleTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1257,7 +1261,7 @@ type IcicleTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/image_gen.go b/generated/v2.31.1/graph_objects/image_gen.go index d5d8c64..93296a0 100644 --- a/generated/v2.31.1/graph_objects/image_gen.go +++ b/generated/v2.31.1/graph_objects/image_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeImage TraceType = "image" func (trace *Image) GetType() TraceType { @@ -51,7 +55,7 @@ type Image struct { // default: x+y+z+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ImageHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ImageHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Image struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `z`, `color` and `colormodel`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -127,7 +131,7 @@ type Image struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -258,7 +262,7 @@ type ImageHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -270,7 +274,7 @@ type ImageHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -282,7 +286,7 @@ type ImageHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -299,7 +303,7 @@ type ImageHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ImageHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ImageHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -311,7 +315,7 @@ type ImageHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -323,7 +327,7 @@ type ImageHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -340,7 +344,7 @@ type ImageHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/indicator_gen.go b/generated/v2.31.1/graph_objects/indicator_gen.go index 053bf6e..c08f169 100644 --- a/generated/v2.31.1/graph_objects/indicator_gen.go +++ b/generated/v2.31.1/graph_objects/indicator_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeIndicator TraceType = "indicator" func (trace *Indicator) GetType() TraceType { @@ -88,7 +92,7 @@ type Indicator struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/isosurface_gen.go b/generated/v2.31.1/graph_objects/isosurface_gen.go index 3ce9be8..21ff0df 100644 --- a/generated/v2.31.1/graph_objects/isosurface_gen.go +++ b/generated/v2.31.1/graph_objects/isosurface_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeIsosurface TraceType = "isosurface" func (trace *Isosurface) GetType() TraceType { @@ -95,7 +99,7 @@ type Isosurface struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*IsosurfaceHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*IsosurfaceHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -112,7 +116,7 @@ type Isosurface struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -124,7 +128,7 @@ type Isosurface struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -199,7 +203,7 @@ type Isosurface struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -267,7 +271,7 @@ type Isosurface struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -834,7 +838,7 @@ type IsosurfaceHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -846,7 +850,7 @@ type IsosurfaceHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -858,7 +862,7 @@ type IsosurfaceHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -875,7 +879,7 @@ type IsosurfaceHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*IsosurfaceHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*IsosurfaceHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -887,7 +891,7 @@ type IsosurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -899,7 +903,7 @@ type IsosurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -916,7 +920,7 @@ type IsosurfaceHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/layout_gen.go b/generated/v2.31.1/graph_objects/layout_gen.go index a0e48ca..4cc1060 100644 --- a/generated/v2.31.1/graph_objects/layout_gen.go +++ b/generated/v2.31.1/graph_objects/layout_gen.go @@ -1,6 +1,12 @@ package grob -// Code generated by go-plotly/generator. DO NOT EDIT.// Layout Plot layout options +// Code generated by go-plotly/generator. DO NOT EDIT. + +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + +// Layout Plot layout options type Layout struct { // Activeselection @@ -288,7 +294,7 @@ type Layout struct { // arrayOK: true // type: any // Assigns extra meta information that can be used in various `text` attributes. Attributes such as the graph, axis and colorbar `title.text`, annotation `text` `trace.name` in legend items, `rangeselector`, `updatemenus` and `sliders` `label` text all support `meta`. One can access `meta` fields using template strings: `%{meta[i]}` where `i` is the index of the `meta` item in question. `meta` can also be an object for example `{key: value}` which can be accessed %{meta[key]}. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -2080,7 +2086,7 @@ type LayoutModebar struct { // arrayOK: true // type: string // Determines which predefined modebar buttons to add. Please note that these buttons will only be shown if they are compatible with all trace types used in a graph. Similar to `config.modeBarButtonsToAdd` option. This may include *v1hovermode*, *hoverclosest*, *hovercompare*, *togglehover*, *togglespikelines*, *drawline*, *drawopenpath*, *drawclosedpath*, *drawcircle*, *drawrect*, *eraseshape*. - Add ArrayOK[*string] `json:"add,omitempty"` + Add arrayok.Type[*string] `json:"add,omitempty"` // Addsrc // arrayOK: false @@ -2111,7 +2117,7 @@ type LayoutModebar struct { // arrayOK: true // type: string // Determines which predefined modebar buttons to remove. Similar to `config.modeBarButtonsToRemove` option. This may include *autoScale2d*, *autoscale*, *editInChartStudio*, *editinchartstudio*, *hoverCompareCartesian*, *hovercompare*, *lasso*, *lasso2d*, *orbitRotation*, *orbitrotation*, *pan*, *pan2d*, *pan3d*, *reset*, *resetCameraDefault3d*, *resetCameraLastSave3d*, *resetGeo*, *resetSankeyGroup*, *resetScale2d*, *resetViewMapbox*, *resetViews*, *resetcameradefault*, *resetcameralastsave*, *resetsankeygroup*, *resetscale*, *resetview*, *resetviews*, *select*, *select2d*, *sendDataToCloud*, *senddatatocloud*, *tableRotation*, *tablerotation*, *toImage*, *toggleHover*, *toggleSpikelines*, *togglehover*, *togglespikelines*, *toimage*, *zoom*, *zoom2d*, *zoom3d*, *zoomIn2d*, *zoomInGeo*, *zoomInMapbox*, *zoomOut2d*, *zoomOutGeo*, *zoomOutMapbox*, *zoomin*, *zoomout*. - Remove ArrayOK[*string] `json:"remove,omitempty"` + Remove arrayok.Type[*string] `json:"remove,omitempty"` // Removesrc // arrayOK: false @@ -2766,7 +2772,7 @@ type LayoutPolarRadialaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false @@ -3411,7 +3417,7 @@ type LayoutSceneXaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false @@ -3878,7 +3884,7 @@ type LayoutSceneYaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false @@ -4345,7 +4351,7 @@ type LayoutSceneZaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false @@ -6460,7 +6466,7 @@ type LayoutXaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false @@ -7364,7 +7370,7 @@ type LayoutYaxisAutorangeoptions struct { // arrayOK: true // type: any // Ensure this value is included in autorange. - Include ArrayOK[*interface{}] `json:"include,omitempty"` + Include arrayok.Type[*interface{}] `json:"include,omitempty"` // Includesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/mesh3d_gen.go b/generated/v2.31.1/graph_objects/mesh3d_gen.go index a3459df..0509104 100644 --- a/generated/v2.31.1/graph_objects/mesh3d_gen.go +++ b/generated/v2.31.1/graph_objects/mesh3d_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeMesh3d TraceType = "mesh3d" func (trace *Mesh3d) GetType() TraceType { @@ -121,7 +125,7 @@ type Mesh3d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Mesh3dHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Mesh3dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -138,7 +142,7 @@ type Mesh3d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -150,7 +154,7 @@ type Mesh3d struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -268,7 +272,7 @@ type Mesh3d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -321,7 +325,7 @@ type Mesh3d struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -836,7 +840,7 @@ type Mesh3dHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -848,7 +852,7 @@ type Mesh3dHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -860,7 +864,7 @@ type Mesh3dHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -877,7 +881,7 @@ type Mesh3dHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Mesh3dHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Mesh3dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -889,7 +893,7 @@ type Mesh3dHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -901,7 +905,7 @@ type Mesh3dHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -918,7 +922,7 @@ type Mesh3dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/ohlc_gen.go b/generated/v2.31.1/graph_objects/ohlc_gen.go index 2a61fb6..b7ee81f 100644 --- a/generated/v2.31.1/graph_objects/ohlc_gen.go +++ b/generated/v2.31.1/graph_objects/ohlc_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeOhlc TraceType = "ohlc" func (trace *Ohlc) GetType() TraceType { @@ -61,7 +65,7 @@ type Ohlc struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*OhlcHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*OhlcHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -78,7 +82,7 @@ type Ohlc struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -153,7 +157,7 @@ type Ohlc struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -206,7 +210,7 @@ type Ohlc struct { // arrayOK: true // type: string // Sets hover text elements associated with each sample point. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to this trace's sample points. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -352,7 +356,7 @@ type OhlcHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -364,7 +368,7 @@ type OhlcHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -376,7 +380,7 @@ type OhlcHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -393,7 +397,7 @@ type OhlcHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*OhlcHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*OhlcHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -405,7 +409,7 @@ type OhlcHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -417,7 +421,7 @@ type OhlcHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -434,7 +438,7 @@ type OhlcHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/parcats_gen.go b/generated/v2.31.1/graph_objects/parcats_gen.go index 86f313e..8119335 100644 --- a/generated/v2.31.1/graph_objects/parcats_gen.go +++ b/generated/v2.31.1/graph_objects/parcats_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeParcats TraceType = "parcats" func (trace *Parcats) GetType() TraceType { @@ -32,7 +36,7 @@ type Parcats struct { // arrayOK: true // type: number // The number of observations represented by each state. Defaults to 1 so that each state represents one observation - Counts ArrayOK[*float64] `json:"counts,omitempty"` + Counts arrayok.Type[*float64] `json:"counts,omitempty"` // Countssrc // arrayOK: false @@ -96,7 +100,7 @@ type Parcats struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -648,7 +652,7 @@ type ParcatsLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/parcoords_gen.go b/generated/v2.31.1/graph_objects/parcoords_gen.go index abf7c48..577a3af 100644 --- a/generated/v2.31.1/graph_objects/parcoords_gen.go +++ b/generated/v2.31.1/graph_objects/parcoords_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeParcoords TraceType = "parcoords" func (trace *Parcoords) GetType() TraceType { @@ -100,7 +104,7 @@ type Parcoords struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -655,7 +659,7 @@ type ParcoordsLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/pie_gen.go b/generated/v2.31.1/graph_objects/pie_gen.go index 93021e5..028b0c9 100644 --- a/generated/v2.31.1/graph_objects/pie_gen.go +++ b/generated/v2.31.1/graph_objects/pie_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypePie TraceType = "pie" func (trace *Pie) GetType() TraceType { @@ -62,7 +66,7 @@ type Pie struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*PieHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*PieHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -79,7 +83,7 @@ type Pie struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `percent` and `text`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -91,7 +95,7 @@ type Pie struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -179,7 +183,7 @@ type Pie struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -208,7 +212,7 @@ type Pie struct { // arrayOK: true // type: number // Sets the fraction of larger radius to pull the sectors out from the center. This can be a constant to pull all slices apart from each other equally or an array to highlight one or more slices. - Pull ArrayOK[*float64] `json:"pull,omitempty"` + Pull arrayok.Type[*float64] `json:"pull,omitempty"` // Pullsrc // arrayOK: false @@ -268,7 +272,7 @@ type Pie struct { // default: auto // type: enumerated // Specifies the location of the `textinfo`. - Textposition ArrayOK[*PieTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*PieTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -286,7 +290,7 @@ type Pie struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `label`, `color`, `value`, `percent` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -372,7 +376,7 @@ type PieHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -384,7 +388,7 @@ type PieHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -396,7 +400,7 @@ type PieHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -413,7 +417,7 @@ type PieHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*PieHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*PieHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -425,7 +429,7 @@ type PieHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -437,7 +441,7 @@ type PieHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -454,7 +458,7 @@ type PieHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -470,7 +474,7 @@ type PieInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -482,7 +486,7 @@ type PieInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -494,7 +498,7 @@ type PieInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -547,7 +551,7 @@ type PieMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -559,7 +563,7 @@ type PieMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -575,7 +579,7 @@ type PieMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -587,7 +591,7 @@ type PieMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -613,7 +617,7 @@ type PieMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*PieMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*PieMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -625,7 +629,7 @@ type PieMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -637,7 +641,7 @@ type PieMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -679,7 +683,7 @@ type PieOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -691,7 +695,7 @@ type PieOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -703,7 +707,7 @@ type PieOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -735,7 +739,7 @@ type PieTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -747,7 +751,7 @@ type PieTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -759,7 +763,7 @@ type PieTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -775,7 +779,7 @@ type PieTitleFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -787,7 +791,7 @@ type PieTitleFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -799,7 +803,7 @@ type PieTitleFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/plotly_gen.go b/generated/v2.31.1/graph_objects/plotly_gen.go index f1b563d..692f355 100644 --- a/generated/v2.31.1/graph_objects/plotly_gen.go +++ b/generated/v2.31.1/graph_objects/plotly_gen.go @@ -153,52 +153,3 @@ type ColorList []Color // ColorScale A Plotly colorscale either picked by a name: (any of Greys, YlGnBu, Greens, YlOrRd, Bluered, RdBu, Reds, Blues, Picnic, Rainbow, Portland, Jet, Hot, Blackbody, Earth, Electric, Viridis, Cividis ) customized as an {array} of 2-element {arrays} where the first element is the normalized color level value (starting at *0* and ending at *1*), and the second item is a valid color string. type ColorScale interface{} - -func ArrayOKValue[T any](value T) ArrayOK[*T] { - v := &value - return ArrayOK[*T]{Value: v} -} - -func ArrayOKArray[T any](array ...T) ArrayOK[*T] { - out := make([]*T, len(array)) - for i, v := range array { - value := v - out[i] = &value - } - return ArrayOK[*T]{ - Array: out, - } -} - -// ArrayOK is a type that allows you to define a single value or an array of values, But not both. -// If Array is defined, Value will be ignored. -type ArrayOK[T any] struct { - Value T - Array []T -} - -func (arrayOK *ArrayOK[T]) MarshalJSON() ([]byte, error) { - if arrayOK.Array != nil { - return json.Marshal(arrayOK.Array) - } - return json.Marshal(arrayOK.Value) -} - -func (arrayOK *ArrayOK[T]) UnmarshalJSON(data []byte) error { - arrayOK.Array = nil - - var array []T - err := json.Unmarshal(data, &array) - if err == nil { - arrayOK.Array = array - return nil - } - - var value T - err = json.Unmarshal(data, &value) - if err != nil { - return err - } - arrayOK.Value = value - return nil -} diff --git a/generated/v2.31.1/graph_objects/pointcloud_gen.go b/generated/v2.31.1/graph_objects/pointcloud_gen.go index c99e053..8d6dd81 100644 --- a/generated/v2.31.1/graph_objects/pointcloud_gen.go +++ b/generated/v2.31.1/graph_objects/pointcloud_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypePointcloud TraceType = "pointcloud" func (trace *Pointcloud) GetType() TraceType { @@ -32,7 +36,7 @@ type Pointcloud struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*PointcloudHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*PointcloudHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -107,7 +111,7 @@ type Pointcloud struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -142,7 +146,7 @@ type Pointcloud struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -249,7 +253,7 @@ type PointcloudHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -261,7 +265,7 @@ type PointcloudHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -273,7 +277,7 @@ type PointcloudHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -290,7 +294,7 @@ type PointcloudHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*PointcloudHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*PointcloudHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -302,7 +306,7 @@ type PointcloudHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -314,7 +318,7 @@ type PointcloudHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -331,7 +335,7 @@ type PointcloudHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/sankey_gen.go b/generated/v2.31.1/graph_objects/sankey_gen.go index 3a4b15a..6ab822d 100644 --- a/generated/v2.31.1/graph_objects/sankey_gen.go +++ b/generated/v2.31.1/graph_objects/sankey_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSankey TraceType = "sankey" func (trace *Sankey) GetType() TraceType { @@ -95,7 +99,7 @@ type Sankey struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -204,7 +208,7 @@ type SankeyHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -216,7 +220,7 @@ type SankeyHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -228,7 +232,7 @@ type SankeyHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -245,7 +249,7 @@ type SankeyHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SankeyHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SankeyHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -257,7 +261,7 @@ type SankeyHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -269,7 +273,7 @@ type SankeyHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -286,7 +290,7 @@ type SankeyHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -339,7 +343,7 @@ type SankeyLinkHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -351,7 +355,7 @@ type SankeyLinkHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -363,7 +367,7 @@ type SankeyLinkHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -380,7 +384,7 @@ type SankeyLinkHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SankeyLinkHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SankeyLinkHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -392,7 +396,7 @@ type SankeyLinkHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -404,7 +408,7 @@ type SankeyLinkHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -421,7 +425,7 @@ type SankeyLinkHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -437,7 +441,7 @@ type SankeyLinkLine struct { // arrayOK: true // type: color // Sets the color of the `line` around each `link`. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -449,7 +453,7 @@ type SankeyLinkLine struct { // arrayOK: true // type: number // Sets the width (in px) of the `line` around each `link`. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -471,7 +475,7 @@ type SankeyLink struct { // arrayOK: true // type: color // Sets the `link` color. It can be a single value, or an array for specifying color for each `link`. If `link.color` is omitted, then by default, a translucent grey link will be used. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorscales // It's an items array and what goes inside it's... messy... check the docs @@ -501,7 +505,7 @@ type SankeyLink struct { // arrayOK: true // type: color // Sets the `link` hover color. It can be a single value, or an array for specifying hover colors for each `link`. If `link.hovercolor` is omitted, then by default, links will become slightly more opaque when hovered over. - Hovercolor ArrayOK[*Color] `json:"hovercolor,omitempty"` + Hovercolor arrayok.Type[*Color] `json:"hovercolor,omitempty"` // Hovercolorsrc // arrayOK: false @@ -525,7 +529,7 @@ type SankeyLink struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Variables `source` and `target` are node objects.Finally, the template string has access to variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -594,7 +598,7 @@ type SankeyNodeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -606,7 +610,7 @@ type SankeyNodeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -618,7 +622,7 @@ type SankeyNodeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -635,7 +639,7 @@ type SankeyNodeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SankeyNodeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SankeyNodeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -647,7 +651,7 @@ type SankeyNodeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -659,7 +663,7 @@ type SankeyNodeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -676,7 +680,7 @@ type SankeyNodeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -692,7 +696,7 @@ type SankeyNodeLine struct { // arrayOK: true // type: color // Sets the color of the `line` around each `node`. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -704,7 +708,7 @@ type SankeyNodeLine struct { // arrayOK: true // type: number // Sets the width (in px) of the `line` around each `node`. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -727,7 +731,7 @@ type SankeyNode struct { // arrayOK: true // type: color // Sets the `node` color. It can be a single value, or an array for specifying color for each `node`. If `node.color` is omitted, then the default `Plotly` color palette will be cycled through to have a variety of colors. These defaults are not fully opaque, to allow some visibility of what is beneath the node. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -769,7 +773,7 @@ type SankeyNode struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Variables `sourceLinks` and `targetLinks` are arrays of link objects.Finally, the template string has access to variables `value` and `label`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scatter3d_gen.go b/generated/v2.31.1/graph_objects/scatter3d_gen.go index b1798dc..5f1a3f1 100644 --- a/generated/v2.31.1/graph_objects/scatter3d_gen.go +++ b/generated/v2.31.1/graph_objects/scatter3d_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatter3d TraceType = "scatter3d" func (trace *Scatter3d) GetType() TraceType { @@ -53,7 +57,7 @@ type Scatter3d struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*Scatter3dHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*Scatter3dHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -70,7 +74,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -82,7 +86,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y,z) triplet. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y,z) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -145,7 +149,7 @@ type Scatter3d struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -211,7 +215,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y,z) triplet. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y,z) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -223,7 +227,7 @@ type Scatter3d struct { // default: top center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*Scatter3dTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*Scatter3dTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -241,7 +245,7 @@ type Scatter3d struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -636,7 +640,7 @@ type Scatter3dHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -648,7 +652,7 @@ type Scatter3dHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -660,7 +664,7 @@ type Scatter3dHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -677,7 +681,7 @@ type Scatter3dHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*Scatter3dHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*Scatter3dHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -689,7 +693,7 @@ type Scatter3dHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -701,7 +705,7 @@ type Scatter3dHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -718,7 +722,7 @@ type Scatter3dHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -1172,7 +1176,7 @@ type Scatter3dLine struct { // arrayOK: true // type: color // Sets the line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `line.cmin` and `line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1631,7 +1635,7 @@ type Scatter3dMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1701,7 +1705,7 @@ type Scatter3dMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1753,7 +1757,7 @@ type Scatter3dMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1785,7 +1789,7 @@ type Scatter3dMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. - Symbol ArrayOK[*Scatter3dMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*Scatter3dMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1902,7 +1906,7 @@ type Scatter3dTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1920,7 +1924,7 @@ type Scatter3dTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scatter_gen.go b/generated/v2.31.1/graph_objects/scatter_gen.go index 0bea0de..4115fba 100644 --- a/generated/v2.31.1/graph_objects/scatter_gen.go +++ b/generated/v2.31.1/graph_objects/scatter_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatter TraceType = "scatter" func (trace *Scatter) GetType() TraceType { @@ -102,7 +106,7 @@ type Scatter struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -126,7 +130,7 @@ type Scatter struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -138,7 +142,7 @@ type Scatter struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -201,7 +205,7 @@ type Scatter struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -280,7 +284,7 @@ type Scatter struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -292,7 +296,7 @@ type Scatter struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -310,7 +314,7 @@ type Scatter struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -687,7 +691,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -699,7 +703,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -725,7 +729,7 @@ type ScatterFillpattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*ScatterFillpatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*ScatterFillpatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -737,7 +741,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -749,7 +753,7 @@ type ScatterFillpattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -765,7 +769,7 @@ type ScatterHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -777,7 +781,7 @@ type ScatterHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -789,7 +793,7 @@ type ScatterHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -806,7 +810,7 @@ type ScatterHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -818,7 +822,7 @@ type ScatterHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -830,7 +834,7 @@ type ScatterHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -847,7 +851,7 @@ type ScatterHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -900,7 +904,7 @@ type ScatterLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -1324,7 +1328,7 @@ type ScatterMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1337,7 +1341,7 @@ type ScatterMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScatterMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScatterMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -1383,7 +1387,7 @@ type ScatterMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1413,7 +1417,7 @@ type ScatterMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1429,7 +1433,7 @@ type ScatterMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1478,7 +1482,7 @@ type ScatterMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1523,7 +1527,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1547,7 +1551,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1578,7 +1582,7 @@ type ScatterMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1591,7 +1595,7 @@ type ScatterMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1669,7 +1673,7 @@ type ScatterTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1681,7 +1685,7 @@ type ScatterTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1693,7 +1697,7 @@ type ScatterTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scattercarpet_gen.go b/generated/v2.31.1/graph_objects/scattercarpet_gen.go index 390eac3..677861b 100644 --- a/generated/v2.31.1/graph_objects/scattercarpet_gen.go +++ b/generated/v2.31.1/graph_objects/scattercarpet_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattercarpet TraceType = "scattercarpet" func (trace *Scattercarpet) GetType() TraceType { @@ -81,7 +85,7 @@ type Scattercarpet struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattercarpetHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattercarpetHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -105,7 +109,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -117,7 +121,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Sets hover text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -180,7 +184,7 @@ type Scattercarpet struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -233,7 +237,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Sets text elements associated with each (a,b) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b). If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -245,7 +249,7 @@ type Scattercarpet struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScattercarpetTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScattercarpetTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -263,7 +267,7 @@ type Scattercarpet struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `a`, `b` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -327,7 +331,7 @@ type ScattercarpetHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -339,7 +343,7 @@ type ScattercarpetHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -351,7 +355,7 @@ type ScattercarpetHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -368,7 +372,7 @@ type ScattercarpetHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattercarpetHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattercarpetHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -380,7 +384,7 @@ type ScattercarpetHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -392,7 +396,7 @@ type ScattercarpetHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -409,7 +413,7 @@ type ScattercarpetHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -462,7 +466,7 @@ type ScattercarpetLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -880,7 +884,7 @@ type ScattercarpetMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -893,7 +897,7 @@ type ScattercarpetMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScattercarpetMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScattercarpetMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -939,7 +943,7 @@ type ScattercarpetMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -969,7 +973,7 @@ type ScattercarpetMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -985,7 +989,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1034,7 +1038,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1079,7 +1083,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1103,7 +1107,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1134,7 +1138,7 @@ type ScattercarpetMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1147,7 +1151,7 @@ type ScattercarpetMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScattercarpetMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScattercarpetMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1225,7 +1229,7 @@ type ScattercarpetTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1237,7 +1241,7 @@ type ScattercarpetTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1249,7 +1253,7 @@ type ScattercarpetTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scattergeo_gen.go b/generated/v2.31.1/graph_objects/scattergeo_gen.go index eb616e6..f04c9b4 100644 --- a/generated/v2.31.1/graph_objects/scattergeo_gen.go +++ b/generated/v2.31.1/graph_objects/scattergeo_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattergeo TraceType = "scattergeo" func (trace *Scattergeo) GetType() TraceType { @@ -69,7 +73,7 @@ type Scattergeo struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattergeoHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattergeoHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -86,7 +90,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -98,7 +102,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair or item in `locations`. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) or `locations` coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -204,7 +208,7 @@ type Scattergeo struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -257,7 +261,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair or item in `locations`. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) or `locations` coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -269,7 +273,7 @@ type Scattergeo struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScattergeoTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScattergeoTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -287,7 +291,7 @@ type Scattergeo struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `lat`, `lon`, `location` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -333,7 +337,7 @@ type ScattergeoHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -345,7 +349,7 @@ type ScattergeoHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -357,7 +361,7 @@ type ScattergeoHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -374,7 +378,7 @@ type ScattergeoHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattergeoHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattergeoHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -386,7 +390,7 @@ type ScattergeoHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -398,7 +402,7 @@ type ScattergeoHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -415,7 +419,7 @@ type ScattergeoHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -861,7 +865,7 @@ type ScattergeoMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -874,7 +878,7 @@ type ScattergeoMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScattergeoMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScattergeoMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -920,7 +924,7 @@ type ScattergeoMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -950,7 +954,7 @@ type ScattergeoMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -966,7 +970,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1015,7 +1019,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1054,7 +1058,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1078,7 +1082,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1109,7 +1113,7 @@ type ScattergeoMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1122,7 +1126,7 @@ type ScattergeoMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScattergeoMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScattergeoMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1200,7 +1204,7 @@ type ScattergeoTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1212,7 +1216,7 @@ type ScattergeoTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1224,7 +1228,7 @@ type ScattergeoTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scattergl_gen.go b/generated/v2.31.1/graph_objects/scattergl_gen.go index d45dff5..8eedcd4 100644 --- a/generated/v2.31.1/graph_objects/scattergl_gen.go +++ b/generated/v2.31.1/graph_objects/scattergl_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattergl TraceType = "scattergl" func (trace *Scattergl) GetType() TraceType { @@ -73,7 +77,7 @@ type Scattergl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterglHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -90,7 +94,7 @@ type Scattergl struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -102,7 +106,7 @@ type Scattergl struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -165,7 +169,7 @@ type Scattergl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -218,7 +222,7 @@ type Scattergl struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -230,7 +234,7 @@ type Scattergl struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterglTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterglTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -248,7 +252,7 @@ type Scattergl struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -590,7 +594,7 @@ type ScatterglHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -602,7 +606,7 @@ type ScatterglHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -614,7 +618,7 @@ type ScatterglHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -631,7 +635,7 @@ type ScatterglHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterglHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -643,7 +647,7 @@ type ScatterglHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -655,7 +659,7 @@ type ScatterglHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -672,7 +676,7 @@ type ScatterglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -1156,7 +1160,7 @@ type ScatterglMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1186,7 +1190,7 @@ type ScatterglMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1202,7 +1206,7 @@ type ScatterglMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -1244,7 +1248,7 @@ type ScatterglMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1278,7 +1282,7 @@ type ScatterglMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1302,7 +1306,7 @@ type ScatterglMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1334,7 +1338,7 @@ type ScatterglMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterglMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterglMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1412,7 +1416,7 @@ type ScatterglTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1424,7 +1428,7 @@ type ScatterglTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1436,7 +1440,7 @@ type ScatterglTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scattermapbox_gen.go b/generated/v2.31.1/graph_objects/scattermapbox_gen.go index aa1a94f..c1fb4db 100644 --- a/generated/v2.31.1/graph_objects/scattermapbox_gen.go +++ b/generated/v2.31.1/graph_objects/scattermapbox_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattermapbox TraceType = "scattermapbox" func (trace *Scattermapbox) GetType() TraceType { @@ -62,7 +66,7 @@ type Scattermapbox struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattermapboxHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattermapboxHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -79,7 +83,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -91,7 +95,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Sets hover text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -178,7 +182,7 @@ type Scattermapbox struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -237,7 +241,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Sets text elements associated with each (lon,lat) pair If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (lon,lat) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -261,7 +265,7 @@ type Scattermapbox struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `lat`, `lon` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -307,7 +311,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: color // Sets the color for each cluster step. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -331,7 +335,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -343,7 +347,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: number // Sets the size for each cluster step. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -355,7 +359,7 @@ type ScattermapboxCluster struct { // arrayOK: true // type: number // Sets how many points it takes to create a cluster or advance to the next cluster step. Use this in conjunction with arrays for `size` and / or `color`. If an integer, steps start at multiples of this number. If an array, each step extends from the given value until one less than the next value. - Step ArrayOK[*float64] `json:"step,omitempty"` + Step arrayok.Type[*float64] `json:"step,omitempty"` // Stepsrc // arrayOK: false @@ -371,7 +375,7 @@ type ScattermapboxHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -383,7 +387,7 @@ type ScattermapboxHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -395,7 +399,7 @@ type ScattermapboxHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -412,7 +416,7 @@ type ScattermapboxHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattermapboxHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattermapboxHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -424,7 +428,7 @@ type ScattermapboxHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -436,7 +440,7 @@ type ScattermapboxHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -453,7 +457,7 @@ type ScattermapboxHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -899,7 +903,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker orientation from true North, in degrees clockwise. When using the *auto* default, no rotation would be applied in perspective views which is different from using a zero angle. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -941,7 +945,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -970,7 +974,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -994,7 +998,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1025,7 +1029,7 @@ type ScattermapboxMarker struct { // arrayOK: true // type: string // Sets the marker symbol. Full list: https://www.mapbox.com/maki-icons/ Note that the array `marker.color` and `marker.size` are only available for *circle* symbols. - Symbol ArrayOK[*string] `json:"symbol,omitempty"` + Symbol arrayok.Type[*string] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scatterpolar_gen.go b/generated/v2.31.1/graph_objects/scatterpolar_gen.go index 5e06795..aba712d 100644 --- a/generated/v2.31.1/graph_objects/scatterpolar_gen.go +++ b/generated/v2.31.1/graph_objects/scatterpolar_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatterpolar TraceType = "scatterpolar" func (trace *Scatterpolar) GetType() TraceType { @@ -69,7 +73,7 @@ type Scatterpolar struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterpolarHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterpolarHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -93,7 +97,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -105,7 +109,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -168,7 +172,7 @@ type Scatterpolar struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -245,7 +249,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -257,7 +261,7 @@ type Scatterpolar struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterpolarTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterpolarTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -275,7 +279,7 @@ type Scatterpolar struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `r`, `theta` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -346,7 +350,7 @@ type ScatterpolarHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -358,7 +362,7 @@ type ScatterpolarHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -370,7 +374,7 @@ type ScatterpolarHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -387,7 +391,7 @@ type ScatterpolarHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterpolarHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterpolarHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -399,7 +403,7 @@ type ScatterpolarHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -411,7 +415,7 @@ type ScatterpolarHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -428,7 +432,7 @@ type ScatterpolarHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -481,7 +485,7 @@ type ScatterpolarLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -899,7 +903,7 @@ type ScatterpolarMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -912,7 +916,7 @@ type ScatterpolarMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScatterpolarMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScatterpolarMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -958,7 +962,7 @@ type ScatterpolarMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -988,7 +992,7 @@ type ScatterpolarMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -1004,7 +1008,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1053,7 +1057,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1098,7 +1102,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1122,7 +1126,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1153,7 +1157,7 @@ type ScatterpolarMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1166,7 +1170,7 @@ type ScatterpolarMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterpolarMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterpolarMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1244,7 +1248,7 @@ type ScatterpolarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1256,7 +1260,7 @@ type ScatterpolarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1268,7 +1272,7 @@ type ScatterpolarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scatterpolargl_gen.go b/generated/v2.31.1/graph_objects/scatterpolargl_gen.go index e85aa75..ee8db71 100644 --- a/generated/v2.31.1/graph_objects/scatterpolargl_gen.go +++ b/generated/v2.31.1/graph_objects/scatterpolargl_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatterpolargl TraceType = "scatterpolargl" func (trace *Scatterpolargl) GetType() TraceType { @@ -63,7 +67,7 @@ type Scatterpolargl struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterpolarglHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterpolarglHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -80,7 +84,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -92,7 +96,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -155,7 +159,7 @@ type Scatterpolargl struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -232,7 +236,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -244,7 +248,7 @@ type Scatterpolargl struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterpolarglTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterpolarglTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -262,7 +266,7 @@ type Scatterpolargl struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `r`, `theta` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -333,7 +337,7 @@ type ScatterpolarglHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -345,7 +349,7 @@ type ScatterpolarglHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -357,7 +361,7 @@ type ScatterpolarglHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -374,7 +378,7 @@ type ScatterpolarglHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterpolarglHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterpolarglHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -386,7 +390,7 @@ type ScatterpolarglHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -398,7 +402,7 @@ type ScatterpolarglHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -415,7 +419,7 @@ type ScatterpolarglHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -892,7 +896,7 @@ type ScatterpolarglMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -922,7 +926,7 @@ type ScatterpolarglMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -938,7 +942,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -980,7 +984,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1014,7 +1018,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1038,7 +1042,7 @@ type ScatterpolarglMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1070,7 +1074,7 @@ type ScatterpolarglMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterpolarglMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterpolarglMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1148,7 +1152,7 @@ type ScatterpolarglTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1160,7 +1164,7 @@ type ScatterpolarglTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1172,7 +1176,7 @@ type ScatterpolarglTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scattersmith_gen.go b/generated/v2.31.1/graph_objects/scattersmith_gen.go index 771e712..40ad3a3 100644 --- a/generated/v2.31.1/graph_objects/scattersmith_gen.go +++ b/generated/v2.31.1/graph_objects/scattersmith_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScattersmith TraceType = "scattersmith" func (trace *Scattersmith) GetType() TraceType { @@ -57,7 +61,7 @@ type Scattersmith struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScattersmithHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScattersmithHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -81,7 +85,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -93,7 +97,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -168,7 +172,7 @@ type Scattersmith struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -239,7 +243,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -251,7 +255,7 @@ type Scattersmith struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScattersmithTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScattersmithTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -269,7 +273,7 @@ type Scattersmith struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `real`, `imag` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -315,7 +319,7 @@ type ScattersmithHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -327,7 +331,7 @@ type ScattersmithHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -339,7 +343,7 @@ type ScattersmithHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -356,7 +360,7 @@ type ScattersmithHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScattersmithHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScattersmithHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -368,7 +372,7 @@ type ScattersmithHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -380,7 +384,7 @@ type ScattersmithHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -397,7 +401,7 @@ type ScattersmithHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -450,7 +454,7 @@ type ScattersmithLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -868,7 +872,7 @@ type ScattersmithMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -881,7 +885,7 @@ type ScattersmithMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScattersmithMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScattersmithMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -927,7 +931,7 @@ type ScattersmithMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -957,7 +961,7 @@ type ScattersmithMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -973,7 +977,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1022,7 +1026,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1067,7 +1071,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1091,7 +1095,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1122,7 +1126,7 @@ type ScattersmithMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1135,7 +1139,7 @@ type ScattersmithMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScattersmithMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScattersmithMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1213,7 +1217,7 @@ type ScattersmithTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1225,7 +1229,7 @@ type ScattersmithTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1237,7 +1241,7 @@ type ScattersmithTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/scatterternary_gen.go b/generated/v2.31.1/graph_objects/scatterternary_gen.go index 5059355..994812b 100644 --- a/generated/v2.31.1/graph_objects/scatterternary_gen.go +++ b/generated/v2.31.1/graph_objects/scatterternary_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeScatterternary TraceType = "scatterternary" func (trace *Scatterternary) GetType() TraceType { @@ -93,7 +97,7 @@ type Scatterternary struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ScatterternaryHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ScatterternaryHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -117,7 +121,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -129,7 +133,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Sets hover text elements associated with each (a,b,c) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b,c). To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -192,7 +196,7 @@ type Scatterternary struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -257,7 +261,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Sets text elements associated with each (a,b,c) point. If a single string, the same string appears over all the data points. If an array of strings, the items are mapped in order to the the data points in (a,b,c). If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textfont // arrayOK: false @@ -269,7 +273,7 @@ type Scatterternary struct { // default: middle center // type: enumerated // Sets the positions of the `text` elements with respects to the (x,y) coordinates. - Textposition ArrayOK[*ScatterternaryTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*ScatterternaryTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -287,7 +291,7 @@ type Scatterternary struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `a`, `b`, `c` and `text`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -333,7 +337,7 @@ type ScatterternaryHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -345,7 +349,7 @@ type ScatterternaryHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -357,7 +361,7 @@ type ScatterternaryHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -374,7 +378,7 @@ type ScatterternaryHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ScatterternaryHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ScatterternaryHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -386,7 +390,7 @@ type ScatterternaryHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -398,7 +402,7 @@ type ScatterternaryHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -415,7 +419,7 @@ type ScatterternaryHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -468,7 +472,7 @@ type ScatterternaryLine struct { // arrayOK: true // type: number // Sets the line back off from the end point of the nth line segment (in px). This option is useful e.g. to avoid overlap with arrowhead markers. With *auto* the lines would trim before markers if `marker.angleref` is set to *previous*. - Backoff ArrayOK[*float64] `json:"backoff,omitempty"` + Backoff arrayok.Type[*float64] `json:"backoff,omitempty"` // Backoffsrc // arrayOK: false @@ -886,7 +890,7 @@ type ScatterternaryMarkerGradient struct { // arrayOK: true // type: color // Sets the final color of the gradient fill: the center color for radial, the right for horizontal, or the bottom for vertical. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -899,7 +903,7 @@ type ScatterternaryMarkerGradient struct { // default: none // type: enumerated // Sets the type of gradient used to fill the markers - Type ArrayOK[*ScatterternaryMarkerGradientType] `json:"type,omitempty"` + Type arrayok.Type[*ScatterternaryMarkerGradientType] `json:"type,omitempty"` // Typesrc // arrayOK: false @@ -945,7 +949,7 @@ type ScatterternaryMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -975,7 +979,7 @@ type ScatterternaryMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -991,7 +995,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Angleref // arrayOK: false @@ -1040,7 +1044,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -1085,7 +1089,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -1109,7 +1113,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -1140,7 +1144,7 @@ type ScatterternaryMarker struct { // arrayOK: true // type: number // Moves the marker away from the data point in the direction of `angle` (in px). This can be useful for example if you have another marker at this location and you want to point an arrowhead marker at it. - Standoff ArrayOK[*float64] `json:"standoff,omitempty"` + Standoff arrayok.Type[*float64] `json:"standoff,omitempty"` // Standoffsrc // arrayOK: false @@ -1153,7 +1157,7 @@ type ScatterternaryMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*ScatterternaryMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*ScatterternaryMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false @@ -1231,7 +1235,7 @@ type ScatterternaryTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1243,7 +1247,7 @@ type ScatterternaryTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1255,7 +1259,7 @@ type ScatterternaryTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/splom_gen.go b/generated/v2.31.1/graph_objects/splom_gen.go index 4594bbd..9d78499 100644 --- a/generated/v2.31.1/graph_objects/splom_gen.go +++ b/generated/v2.31.1/graph_objects/splom_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSplom TraceType = "splom" func (trace *Splom) GetType() TraceType { @@ -43,7 +47,7 @@ type Splom struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*SplomHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*SplomHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -60,7 +64,7 @@ type Splom struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -72,7 +76,7 @@ type Splom struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -130,7 +134,7 @@ type Splom struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -188,7 +192,7 @@ type Splom struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair to appear on hover. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -268,7 +272,7 @@ type SplomHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -280,7 +284,7 @@ type SplomHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -292,7 +296,7 @@ type SplomHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -309,7 +313,7 @@ type SplomHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SplomHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SplomHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -321,7 +325,7 @@ type SplomHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -333,7 +337,7 @@ type SplomHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -350,7 +354,7 @@ type SplomHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -804,7 +808,7 @@ type SplomMarkerLine struct { // arrayOK: true // type: color // Sets the marker.line color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.line.cmin` and `marker.line.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -834,7 +838,7 @@ type SplomMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the lines bounding the marker points. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -850,7 +854,7 @@ type SplomMarker struct { // arrayOK: true // type: angle // Sets the marker angle in respect to `angleref`. - Angle ArrayOK[*float64] `json:"angle,omitempty"` + Angle arrayok.Type[*float64] `json:"angle,omitempty"` // Anglesrc // arrayOK: false @@ -892,7 +896,7 @@ type SplomMarker struct { // arrayOK: true // type: color // Sets the marker color. It accepts either a specific color or an array of numbers that are mapped to the colorscale relative to the max and min values of the array or relative to `marker.cmin` and `marker.cmax` if set. - Color ArrayOK[*ColorWithColorScale] `json:"color,omitempty"` + Color arrayok.Type[*ColorWithColorScale] `json:"color,omitempty"` // Coloraxis // arrayOK: false @@ -926,7 +930,7 @@ type SplomMarker struct { // arrayOK: true // type: number // Sets the marker opacity. - Opacity ArrayOK[*float64] `json:"opacity,omitempty"` + Opacity arrayok.Type[*float64] `json:"opacity,omitempty"` // Opacitysrc // arrayOK: false @@ -950,7 +954,7 @@ type SplomMarker struct { // arrayOK: true // type: number // Sets the marker size (in px). - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizemin // arrayOK: false @@ -982,7 +986,7 @@ type SplomMarker struct { // default: circle // type: enumerated // Sets the marker symbol type. Adding 100 is equivalent to appending *-open* to a symbol name. Adding 200 is equivalent to appending *-dot* to a symbol name. Adding 300 is equivalent to appending *-open-dot* or *dot-open* to a symbol name. - Symbol ArrayOK[*SplomMarkerSymbol] `json:"symbol,omitempty"` + Symbol arrayok.Type[*SplomMarkerSymbol] `json:"symbol,omitempty"` // Symbolsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/streamtube_gen.go b/generated/v2.31.1/graph_objects/streamtube_gen.go index b5c9614..ba92a1c 100644 --- a/generated/v2.31.1/graph_objects/streamtube_gen.go +++ b/generated/v2.31.1/graph_objects/streamtube_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeStreamtube TraceType = "streamtube" func (trace *Streamtube) GetType() TraceType { @@ -79,7 +83,7 @@ type Streamtube struct { // default: x+y+z+norm+text+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*StreamtubeHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*StreamtubeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -96,7 +100,7 @@ type Streamtube struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `tubex`, `tubey`, `tubez`, `tubeu`, `tubev`, `tubew`, `norm` and `divergence`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -171,7 +175,7 @@ type Streamtube struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -743,7 +747,7 @@ type StreamtubeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -755,7 +759,7 @@ type StreamtubeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -767,7 +771,7 @@ type StreamtubeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -784,7 +788,7 @@ type StreamtubeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*StreamtubeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*StreamtubeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -796,7 +800,7 @@ type StreamtubeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -808,7 +812,7 @@ type StreamtubeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -825,7 +829,7 @@ type StreamtubeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/sunburst_gen.go b/generated/v2.31.1/graph_objects/sunburst_gen.go index 5070ab9..83ebfdc 100644 --- a/generated/v2.31.1/graph_objects/sunburst_gen.go +++ b/generated/v2.31.1/graph_objects/sunburst_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSunburst TraceType = "sunburst" func (trace *Sunburst) GetType() TraceType { @@ -51,7 +55,7 @@ type Sunburst struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*SunburstHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*SunburstHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Sunburst struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -80,7 +84,7 @@ type Sunburst struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -173,7 +177,7 @@ type Sunburst struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -260,7 +264,7 @@ type Sunburst struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -341,7 +345,7 @@ type SunburstHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -353,7 +357,7 @@ type SunburstHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -365,7 +369,7 @@ type SunburstHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -382,7 +386,7 @@ type SunburstHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SunburstHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SunburstHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -394,7 +398,7 @@ type SunburstHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -406,7 +410,7 @@ type SunburstHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -423,7 +427,7 @@ type SunburstHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -439,7 +443,7 @@ type SunburstInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -451,7 +455,7 @@ type SunburstInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -463,7 +467,7 @@ type SunburstInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -897,7 +901,7 @@ type SunburstMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -909,7 +913,7 @@ type SunburstMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -925,7 +929,7 @@ type SunburstMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -937,7 +941,7 @@ type SunburstMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -963,7 +967,7 @@ type SunburstMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*SunburstMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*SunburstMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -975,7 +979,7 @@ type SunburstMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -987,7 +991,7 @@ type SunburstMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1088,7 +1092,7 @@ type SunburstOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1100,7 +1104,7 @@ type SunburstOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1112,7 +1116,7 @@ type SunburstOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1154,7 +1158,7 @@ type SunburstTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1166,7 +1170,7 @@ type SunburstTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1178,7 +1182,7 @@ type SunburstTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/surface_gen.go b/generated/v2.31.1/graph_objects/surface_gen.go index f25d0c6..7de29eb 100644 --- a/generated/v2.31.1/graph_objects/surface_gen.go +++ b/generated/v2.31.1/graph_objects/surface_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeSurface TraceType = "surface" func (trace *Surface) GetType() TraceType { @@ -96,7 +100,7 @@ type Surface struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*SurfaceHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*SurfaceHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -113,7 +117,7 @@ type Surface struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -125,7 +129,7 @@ type Surface struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -188,7 +192,7 @@ type Surface struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -259,7 +263,7 @@ type Surface struct { // arrayOK: true // type: string // Sets the text elements associated with each z value. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -1032,7 +1036,7 @@ type SurfaceHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1044,7 +1048,7 @@ type SurfaceHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1056,7 +1060,7 @@ type SurfaceHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1073,7 +1077,7 @@ type SurfaceHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*SurfaceHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*SurfaceHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -1085,7 +1089,7 @@ type SurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -1097,7 +1101,7 @@ type SurfaceHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -1114,7 +1118,7 @@ type SurfaceHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/table_gen.go b/generated/v2.31.1/graph_objects/table_gen.go index 10815de..3ec95d3 100644 --- a/generated/v2.31.1/graph_objects/table_gen.go +++ b/generated/v2.31.1/graph_objects/table_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeTable TraceType = "table" func (trace *Table) GetType() TraceType { @@ -36,7 +40,7 @@ type Table struct { // arrayOK: true // type: number // The width of columns expressed as a ratio. Columns fill the available width in proportion of their specified column widths. - Columnwidth ArrayOK[*float64] `json:"columnwidth,omitempty"` + Columnwidth arrayok.Type[*float64] `json:"columnwidth,omitempty"` // Columnwidthsrc // arrayOK: false @@ -71,7 +75,7 @@ type Table struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*TableHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*TableHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -123,7 +127,7 @@ type Table struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -169,7 +173,7 @@ type TableCellsFill struct { // arrayOK: true // type: color // Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -185,7 +189,7 @@ type TableCellsFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -197,7 +201,7 @@ type TableCellsFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -209,7 +213,7 @@ type TableCellsFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -225,7 +229,7 @@ type TableCellsLine struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -237,7 +241,7 @@ type TableCellsLine struct { // arrayOK: true // type: number // - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -254,7 +258,7 @@ type TableCells struct { // default: center // type: enumerated // Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more
HTML tags) or if an explicit width is set to override the text width. - Align ArrayOK[*TableCellsAlign] `json:"align,omitempty"` + Align arrayok.Type[*TableCellsAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -299,7 +303,7 @@ type TableCells struct { // arrayOK: true // type: string // Prefix for cell values. - Prefix ArrayOK[*string] `json:"prefix,omitempty"` + Prefix arrayok.Type[*string] `json:"prefix,omitempty"` // Prefixsrc // arrayOK: false @@ -311,7 +315,7 @@ type TableCells struct { // arrayOK: true // type: string // Suffix for cell values. - Suffix ArrayOK[*string] `json:"suffix,omitempty"` + Suffix arrayok.Type[*string] `json:"suffix,omitempty"` // Suffixsrc // arrayOK: false @@ -367,7 +371,7 @@ type TableHeaderFill struct { // arrayOK: true // type: color // Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D array of colors. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -383,7 +387,7 @@ type TableHeaderFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -395,7 +399,7 @@ type TableHeaderFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -407,7 +411,7 @@ type TableHeaderFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -423,7 +427,7 @@ type TableHeaderLine struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -435,7 +439,7 @@ type TableHeaderLine struct { // arrayOK: true // type: number // - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -452,7 +456,7 @@ type TableHeader struct { // default: center // type: enumerated // Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` spans two or more lines (i.e. `text` contains one or more
HTML tags) or if an explicit width is set to override the text width. - Align ArrayOK[*TableHeaderAlign] `json:"align,omitempty"` + Align arrayok.Type[*TableHeaderAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -497,7 +501,7 @@ type TableHeader struct { // arrayOK: true // type: string // Prefix for cell values. - Prefix ArrayOK[*string] `json:"prefix,omitempty"` + Prefix arrayok.Type[*string] `json:"prefix,omitempty"` // Prefixsrc // arrayOK: false @@ -509,7 +513,7 @@ type TableHeader struct { // arrayOK: true // type: string // Suffix for cell values. - Suffix ArrayOK[*string] `json:"suffix,omitempty"` + Suffix arrayok.Type[*string] `json:"suffix,omitempty"` // Suffixsrc // arrayOK: false @@ -537,7 +541,7 @@ type TableHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -549,7 +553,7 @@ type TableHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -561,7 +565,7 @@ type TableHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -578,7 +582,7 @@ type TableHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*TableHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*TableHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -590,7 +594,7 @@ type TableHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -602,7 +606,7 @@ type TableHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -619,7 +623,7 @@ type TableHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/treemap_gen.go b/generated/v2.31.1/graph_objects/treemap_gen.go index e3e3e4b..49d0083 100644 --- a/generated/v2.31.1/graph_objects/treemap_gen.go +++ b/generated/v2.31.1/graph_objects/treemap_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeTreemap TraceType = "treemap" func (trace *Treemap) GetType() TraceType { @@ -51,7 +55,7 @@ type Treemap struct { // default: label+text+value+name // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*TreemapHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*TreemapHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -68,7 +72,7 @@ type Treemap struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry` and `percentParent`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -80,7 +84,7 @@ type Treemap struct { // arrayOK: true // type: string // Sets hover text elements associated with each sector. If a single string, the same string appears for all data points. If an array of string, the items are mapped in order of this trace's sectors. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -161,7 +165,7 @@ type Treemap struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -254,7 +258,7 @@ type Treemap struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `currentPath`, `root`, `entry`, `percentRoot`, `percentEntry`, `percentParent`, `label` and `value`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -340,7 +344,7 @@ type TreemapHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -352,7 +356,7 @@ type TreemapHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -364,7 +368,7 @@ type TreemapHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -381,7 +385,7 @@ type TreemapHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*TreemapHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*TreemapHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -393,7 +397,7 @@ type TreemapHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -405,7 +409,7 @@ type TreemapHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -422,7 +426,7 @@ type TreemapHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -438,7 +442,7 @@ type TreemapInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -450,7 +454,7 @@ type TreemapInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -462,7 +466,7 @@ type TreemapInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -886,7 +890,7 @@ type TreemapMarkerLine struct { // arrayOK: true // type: color // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -898,7 +902,7 @@ type TreemapMarkerLine struct { // arrayOK: true // type: number // Sets the width (in px) of the line enclosing each sector. - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -942,7 +946,7 @@ type TreemapMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background. - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -954,7 +958,7 @@ type TreemapMarkerPattern struct { // arrayOK: true // type: color // When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`. - Fgcolor ArrayOK[*Color] `json:"fgcolor,omitempty"` + Fgcolor arrayok.Type[*Color] `json:"fgcolor,omitempty"` // Fgcolorsrc // arrayOK: false @@ -980,7 +984,7 @@ type TreemapMarkerPattern struct { // default: // type: enumerated // Sets the shape of the pattern fill. By default, no pattern is used for filling the area. - Shape ArrayOK[*TreemapMarkerPatternShape] `json:"shape,omitempty"` + Shape arrayok.Type[*TreemapMarkerPatternShape] `json:"shape,omitempty"` // Shapesrc // arrayOK: false @@ -992,7 +996,7 @@ type TreemapMarkerPattern struct { // arrayOK: true // type: number // Sets the size of unit squares of the pattern fill in pixels, which corresponds to the interval of repetition of the pattern. - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1004,7 +1008,7 @@ type TreemapMarkerPattern struct { // arrayOK: true // type: number // Sets the solidity of the pattern fill. Solidity is roughly the fraction of the area filled by the pattern. Solidity of 0 shows only the background color without pattern and solidty of 1 shows only the foreground color without pattern. - Solidity ArrayOK[*float64] `json:"solidity,omitempty"` + Solidity arrayok.Type[*float64] `json:"solidity,omitempty"` // Soliditysrc // arrayOK: false @@ -1123,7 +1127,7 @@ type TreemapOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1135,7 +1139,7 @@ type TreemapOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1147,7 +1151,7 @@ type TreemapOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1163,7 +1167,7 @@ type TreemapPathbarTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1175,7 +1179,7 @@ type TreemapPathbarTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1187,7 +1191,7 @@ type TreemapPathbarTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -1264,7 +1268,7 @@ type TreemapTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -1276,7 +1280,7 @@ type TreemapTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -1288,7 +1292,7 @@ type TreemapTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/violin_gen.go b/generated/v2.31.1/graph_objects/violin_gen.go index ec404e2..062829b 100644 --- a/generated/v2.31.1/graph_objects/violin_gen.go +++ b/generated/v2.31.1/graph_objects/violin_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeViolin TraceType = "violin" func (trace *Violin) GetType() TraceType { @@ -55,7 +59,7 @@ type Violin struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*ViolinHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*ViolinHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -79,7 +83,7 @@ type Violin struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -91,7 +95,7 @@ type Violin struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -165,7 +169,7 @@ type Violin struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -277,7 +281,7 @@ type Violin struct { // arrayOK: true // type: string // Sets the text elements associated with each sample value. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -438,7 +442,7 @@ type ViolinHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -450,7 +454,7 @@ type ViolinHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -462,7 +466,7 @@ type ViolinHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -479,7 +483,7 @@ type ViolinHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*ViolinHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*ViolinHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -491,7 +495,7 @@ type ViolinHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -503,7 +507,7 @@ type ViolinHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -520,7 +524,7 @@ type ViolinHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/volume_gen.go b/generated/v2.31.1/graph_objects/volume_gen.go index 170023c..b6c11e7 100644 --- a/generated/v2.31.1/graph_objects/volume_gen.go +++ b/generated/v2.31.1/graph_objects/volume_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeVolume TraceType = "volume" func (trace *Volume) GetType() TraceType { @@ -95,7 +99,7 @@ type Volume struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*VolumeHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*VolumeHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -112,7 +116,7 @@ type Volume struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -124,7 +128,7 @@ type Volume struct { // arrayOK: true // type: string // Same as `text`. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -199,7 +203,7 @@ type Volume struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -273,7 +277,7 @@ type Volume struct { // arrayOK: true // type: string // Sets the text elements associated with the vertices. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textsrc // arrayOK: false @@ -840,7 +844,7 @@ type VolumeHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -852,7 +856,7 @@ type VolumeHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -864,7 +868,7 @@ type VolumeHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -881,7 +885,7 @@ type VolumeHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*VolumeHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*VolumeHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -893,7 +897,7 @@ type VolumeHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -905,7 +909,7 @@ type VolumeHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -922,7 +926,7 @@ type VolumeHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false diff --git a/generated/v2.31.1/graph_objects/waterfall_gen.go b/generated/v2.31.1/graph_objects/waterfall_gen.go index 8cb7a46..5c30701 100644 --- a/generated/v2.31.1/graph_objects/waterfall_gen.go +++ b/generated/v2.31.1/graph_objects/waterfall_gen.go @@ -2,6 +2,10 @@ package grob // Code generated by go-plotly/generator. DO NOT EDIT. +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + var TraceTypeWaterfall TraceType = "waterfall" func (trace *Waterfall) GetType() TraceType { @@ -79,7 +83,7 @@ type Waterfall struct { // default: all // type: flaglist // Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired. - Hoverinfo ArrayOK[*WaterfallHoverinfo] `json:"hoverinfo,omitempty"` + Hoverinfo arrayok.Type[*WaterfallHoverinfo] `json:"hoverinfo,omitempty"` // Hoverinfosrc // arrayOK: false @@ -96,7 +100,7 @@ type Waterfall struct { // arrayOK: true // type: string // Template string used for rendering the information that appear on hover box. Note that this will override `hoverinfo`. Variables are inserted using %{variable}, for example "y: %{y}" as well as %{xother}, {%_xother}, {%_xother_}, {%xother_}. When showing info for several points, *xother* will be added to those with different x positions from the first point. An underscore before or after *(x|y)other* will add a space on that side, only when this field is shown. Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. The variables available in `hovertemplate` are the ones emitted as event data described at this link https://plotly.com/javascript/plotlyjs-events/#event-data. Additionally, every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `initial`, `delta` and `final`. Anything contained in tag `` is displayed in the secondary box, for example "{fullData.name}". To hide the secondary box completely, use an empty tag ``. - Hovertemplate ArrayOK[*string] `json:"hovertemplate,omitempty"` + Hovertemplate arrayok.Type[*string] `json:"hovertemplate,omitempty"` // Hovertemplatesrc // arrayOK: false @@ -108,7 +112,7 @@ type Waterfall struct { // arrayOK: true // type: string // Sets hover text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. To be seen, trace `hoverinfo` must contain a *text* flag. - Hovertext ArrayOK[*string] `json:"hovertext,omitempty"` + Hovertext arrayok.Type[*string] `json:"hovertext,omitempty"` // Hovertextsrc // arrayOK: false @@ -190,7 +194,7 @@ type Waterfall struct { // arrayOK: true // type: any // Assigns extra meta information associated with this trace that can be used in various text attributes. Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text` `rangeselector`, `updatemenues` and `sliders` `label` text all support `meta`. To access the trace `meta` values in an attribute in the same trace, simply use `%{meta[i]}` where `i` is the index or key of the `meta` item in question. To access trace `meta` in layout attributes, use `%{data[n[.meta[i]}` where `i` is the index or key of the `meta` and `n` is the trace index. - Meta ArrayOK[*interface{}] `json:"meta,omitempty"` + Meta arrayok.Type[*interface{}] `json:"meta,omitempty"` // Metasrc // arrayOK: false @@ -208,7 +212,7 @@ type Waterfall struct { // arrayOK: true // type: number // Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead. - Offset ArrayOK[*float64] `json:"offset,omitempty"` + Offset arrayok.Type[*float64] `json:"offset,omitempty"` // Offsetgroup // arrayOK: false @@ -261,7 +265,7 @@ type Waterfall struct { // arrayOK: true // type: string // Sets text elements associated with each (x,y) pair. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y) coordinates. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels. - Text ArrayOK[*string] `json:"text,omitempty"` + Text arrayok.Type[*string] `json:"text,omitempty"` // Textangle // arrayOK: false @@ -286,7 +290,7 @@ type Waterfall struct { // default: auto // type: enumerated // Specifies the location of the `text`. *inside* positions `text` inside, next to the bar end (rotated and scaled if needed). *outside* positions `text` outside, next to the bar end (scaled if needed), unless there is another bar stacked on this one, then the text gets pushed inside. *auto* tries to position `text` inside the bar, but if the bar is too small and no bar is stacked on this one the text is moved outside. If *none*, no text appears. - Textposition ArrayOK[*WaterfallTextposition] `json:"textposition,omitempty"` + Textposition arrayok.Type[*WaterfallTextposition] `json:"textposition,omitempty"` // Textpositionsrc // arrayOK: false @@ -304,7 +308,7 @@ type Waterfall struct { // arrayOK: true // type: string // Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-format/tree/v1.4.5#d3-format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format for details on the date formatting syntax. Every attributes that can be specified per-point (the ones that are `arrayOk: true`) are available. Finally, the template string has access to variables `initial`, `delta`, `final` and `label`. - Texttemplate ArrayOK[*string] `json:"texttemplate,omitempty"` + Texttemplate arrayok.Type[*string] `json:"texttemplate,omitempty"` // Texttemplatesrc // arrayOK: false @@ -346,7 +350,7 @@ type Waterfall struct { // arrayOK: true // type: number // Sets the bar width (in position axis units). - Width ArrayOK[*float64] `json:"width,omitempty"` + Width arrayok.Type[*float64] `json:"width,omitempty"` // Widthsrc // arrayOK: false @@ -550,7 +554,7 @@ type WaterfallHoverlabelFont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -562,7 +566,7 @@ type WaterfallHoverlabelFont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -574,7 +578,7 @@ type WaterfallHoverlabelFont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -591,7 +595,7 @@ type WaterfallHoverlabel struct { // default: auto // type: enumerated // Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines - Align ArrayOK[*WaterfallHoverlabelAlign] `json:"align,omitempty"` + Align arrayok.Type[*WaterfallHoverlabelAlign] `json:"align,omitempty"` // Alignsrc // arrayOK: false @@ -603,7 +607,7 @@ type WaterfallHoverlabel struct { // arrayOK: true // type: color // Sets the background color of the hover labels for this trace - Bgcolor ArrayOK[*Color] `json:"bgcolor,omitempty"` + Bgcolor arrayok.Type[*Color] `json:"bgcolor,omitempty"` // Bgcolorsrc // arrayOK: false @@ -615,7 +619,7 @@ type WaterfallHoverlabel struct { // arrayOK: true // type: color // Sets the border color of the hover labels for this trace. - Bordercolor ArrayOK[*Color] `json:"bordercolor,omitempty"` + Bordercolor arrayok.Type[*Color] `json:"bordercolor,omitempty"` // Bordercolorsrc // arrayOK: false @@ -632,7 +636,7 @@ type WaterfallHoverlabel struct { // arrayOK: true // type: integer // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name if it is less than that many characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. - Namelength ArrayOK[*int64] `json:"namelength,omitempty"` + Namelength arrayok.Type[*int64] `json:"namelength,omitempty"` // Namelengthsrc // arrayOK: false @@ -688,7 +692,7 @@ type WaterfallInsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -700,7 +704,7 @@ type WaterfallInsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -712,7 +716,7 @@ type WaterfallInsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -765,7 +769,7 @@ type WaterfallOutsidetextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -777,7 +781,7 @@ type WaterfallOutsidetextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -789,7 +793,7 @@ type WaterfallOutsidetextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false @@ -821,7 +825,7 @@ type WaterfallTextfont struct { // arrayOK: true // type: color // - Color ArrayOK[*Color] `json:"color,omitempty"` + Color arrayok.Type[*Color] `json:"color,omitempty"` // Colorsrc // arrayOK: false @@ -833,7 +837,7 @@ type WaterfallTextfont struct { // arrayOK: true // type: string // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*. - Family ArrayOK[*string] `json:"family,omitempty"` + Family arrayok.Type[*string] `json:"family,omitempty"` // Familysrc // arrayOK: false @@ -845,7 +849,7 @@ type WaterfallTextfont struct { // arrayOK: true // type: number // - Size ArrayOK[*float64] `json:"size,omitempty"` + Size arrayok.Type[*float64] `json:"size,omitempty"` // Sizesrc // arrayOK: false diff --git a/generator/renderer.go b/generator/renderer.go index e3cd706..8b74fe7 100644 --- a/generator/renderer.go +++ b/generator/renderer.go @@ -185,22 +185,19 @@ func (r *Renderer) WriteTrace(traceName string, w io.Writer) error { } traceFile.MainType.Fields = append(traceFile.MainType.Fields, fields...) - fmt.Fprintf(w, `package grob - -%s - -var TraceType%s TraceType = "%s" - -func (trace *%s) GetType() TraceType { - return TraceType%s -} -`, - doNotEdit, - traceFile.MainType.Name, - traceName, - traceFile.MainType.Name, - traceFile.MainType.Name, - ) + tmplData := struct { + DoNotEdit string + TraceTypeName string + TraceName string + }{ + DoNotEdit: doNotEdit, + TraceTypeName: traceFile.MainType.Name, + TraceName: traceName, + } + err = r.tmpl.ExecuteTemplate(w, "trace_base.tmpl", tmplData) + if err != nil { + return fmt.Errorf("Failed to render trace_base.tmpl, %w", err) + } err = r.tmpl.ExecuteTemplate(w, "trace.tmpl", traceFile.MainType) if err != nil { @@ -339,7 +336,10 @@ func (r *Renderer) WriteLayout(w io.Writer) error { } } - fmt.Fprint(w, "package grob\n\n", doNotEdit) + err = r.tmpl.ExecuteTemplate(w, "layout_base.tmpl", doNotEdit) + if err != nil { + return fmt.Errorf("Failed to render layout_base.tmpl, %w", err) + } err = r.tmpl.ExecuteTemplate(w, "trace.tmpl", traceFile.MainType) if err != nil { diff --git a/generator/templates/layout_base.tmpl b/generator/templates/layout_base.tmpl new file mode 100644 index 0000000..de69917 --- /dev/null +++ b/generator/templates/layout_base.tmpl @@ -0,0 +1,7 @@ +package grob + +{{ . }} + +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) diff --git a/generator/templates/plotly.go b/generator/templates/plotly.go index f1b563d..692f355 100644 --- a/generator/templates/plotly.go +++ b/generator/templates/plotly.go @@ -153,52 +153,3 @@ type ColorList []Color // ColorScale A Plotly colorscale either picked by a name: (any of Greys, YlGnBu, Greens, YlOrRd, Bluered, RdBu, Reds, Blues, Picnic, Rainbow, Portland, Jet, Hot, Blackbody, Earth, Electric, Viridis, Cividis ) customized as an {array} of 2-element {arrays} where the first element is the normalized color level value (starting at *0* and ending at *1*), and the second item is a valid color string. type ColorScale interface{} - -func ArrayOKValue[T any](value T) ArrayOK[*T] { - v := &value - return ArrayOK[*T]{Value: v} -} - -func ArrayOKArray[T any](array ...T) ArrayOK[*T] { - out := make([]*T, len(array)) - for i, v := range array { - value := v - out[i] = &value - } - return ArrayOK[*T]{ - Array: out, - } -} - -// ArrayOK is a type that allows you to define a single value or an array of values, But not both. -// If Array is defined, Value will be ignored. -type ArrayOK[T any] struct { - Value T - Array []T -} - -func (arrayOK *ArrayOK[T]) MarshalJSON() ([]byte, error) { - if arrayOK.Array != nil { - return json.Marshal(arrayOK.Array) - } - return json.Marshal(arrayOK.Value) -} - -func (arrayOK *ArrayOK[T]) UnmarshalJSON(data []byte) error { - arrayOK.Array = nil - - var array []T - err := json.Unmarshal(data, &array) - if err == nil { - arrayOK.Array = array - return nil - } - - var value T - err = json.Unmarshal(data, &value) - if err != nil { - return err - } - arrayOK.Value = value - return nil -} diff --git a/generator/templates/trace_base.tmpl b/generator/templates/trace_base.tmpl new file mode 100644 index 0000000..a0acdca --- /dev/null +++ b/generator/templates/trace_base.tmpl @@ -0,0 +1,14 @@ +package grob + +{{ .DoNotEdit }} + +import ( + "github.com/MetalBlueberry/go-plotly/types/arrayok" +) + +var TraceType{{ .TraceTypeName }} TraceType = "{{ .TraceName }}" + +func (trace *{{ .TraceTypeName }}) GetType() TraceType { + return TraceType{{ .TraceTypeName }} +} + diff --git a/generator/typefile.go b/generator/typefile.go index 506c5a1..a69553b 100644 --- a/generator/typefile.go +++ b/generator/typefile.go @@ -108,7 +108,7 @@ func (file *typeFile) parseAttributes(namePrefix string, typePrefix string, attr } typeName := "*" + name if attr.ArrayOK { - typeName = fmt.Sprintf("ArrayOK[*%s]", typeName) + typeName = fmt.Sprintf("arrayok.Type[*%s]", typeName) } fields = append(fields, structField{ Name: xstrings.ToCamelCase(attr.Name), @@ -128,7 +128,7 @@ func (file *typeFile) parseAttributes(namePrefix string, typePrefix string, attr } typeName := typePrefix + xstrings.ToCamelCase(attr.Name) if attr.ArrayOK { - typeName = fmt.Sprintf("ArrayOK[*%s]", typeName) + typeName = fmt.Sprintf("arrayok.Type[*%s]", typeName) } fields = append(fields, structField{ Name: xstrings.ToCamelCase(attr.Name), @@ -150,7 +150,7 @@ func (file *typeFile) parseAttributes(namePrefix string, typePrefix string, attr return nil, fmt.Errorf("cannot parse enum %s, %w", typeName, err) } if attr.ArrayOK { - typeName = fmt.Sprintf("ArrayOK[*%s]", typeName) + typeName = fmt.Sprintf("arrayok.Type[*%s]", typeName) } fields = append(fields, structField{ Name: xstrings.ToCamelCase(attr.Name), @@ -177,20 +177,20 @@ func (file *typeFile) parseAttributes(namePrefix string, typePrefix string, attr }) default: - ty := valTypeMap[attr.ValType] + typeName := valTypeMap[attr.ValType] // Special case, the attribute color may also be a ColorScale if attr.ValType == ValTypeColor && attr.Name == "color" && attrs["colorscale"] != nil { - ty = "ColorWithColorScale" + typeName = "ColorWithColorScale" } if attr.ArrayOK { - ty = fmt.Sprintf("ArrayOK[*%s]", ty) + typeName = fmt.Sprintf("arrayok.Type[*%s]", typeName) } fields = append(fields, structField{ Name: xstrings.ToCamelCase(attr.Name), JSONName: attr.Name, - Type: ty, + Type: typeName, Description: []string{ fmt.Sprintf("arrayOK: %t", attr.ArrayOK), fmt.Sprintf("type: %s", attr.ValType), diff --git a/types/arrayok.go b/types/arrayok/arrayok.go similarity index 58% rename from types/arrayok.go rename to types/arrayok/arrayok.go index ee8d7be..5da8550 100644 --- a/types/arrayok.go +++ b/types/arrayok/arrayok.go @@ -1,40 +1,40 @@ -package types +package arrayok import ( "encoding/json" ) -func ArrayOKValue[T any](value T) ArrayOK[*T] { +func Value[T any](value T) Type[*T] { v := &value - return ArrayOK[*T]{Value: v} + return Type[*T]{Value: v} } -func ArrayOKArray[T any](array ...T) ArrayOK[*T] { +func Array[T any](array ...T) Type[*T] { out := make([]*T, len(array)) for i, v := range array { value := v out[i] = &value } - return ArrayOK[*T]{ + return Type[*T]{ Array: out, } } -// ArrayOK is a type that allows you to define a single value or an array of values, But not both. +// Type is a type that allows you to define a single value or an array of values, But not both. // If Array is defined, Value will be ignored. -type ArrayOK[T any] struct { +type Type[T any] struct { Value T Array []T } -func (arrayOK *ArrayOK[T]) MarshalJSON() ([]byte, error) { +func (arrayOK *Type[T]) MarshalJSON() ([]byte, error) { if arrayOK.Array != nil { return json.Marshal(arrayOK.Array) } return json.Marshal(arrayOK.Value) } -func (arrayOK *ArrayOK[T]) UnmarshalJSON(data []byte) error { +func (arrayOK *Type[T]) UnmarshalJSON(data []byte) error { arrayOK.Array = nil var array []T diff --git a/types/arrayok_test.go b/types/arrayok/arrayok_test.go similarity index 77% rename from types/arrayok_test.go rename to types/arrayok/arrayok_test.go index 1f91cf4..68b58f7 100644 --- a/types/arrayok_test.go +++ b/types/arrayok/arrayok_test.go @@ -1,16 +1,16 @@ -package types_test +package arrayok_test import ( "encoding/json" "testing" - "github.com/MetalBlueberry/go-plotly/types" + "github.com/MetalBlueberry/go-plotly/types/arrayok" . "github.com/onsi/gomega" ) type TestMarshallScenario[T any] struct { Name string - Input types.ArrayOK[T] + Input arrayok.Type[T] Expected string } @@ -20,28 +20,28 @@ func TestFloat64Marshal(t *testing.T) { scenarios := []TestMarshallScenario[*float64]{ { Name: "A single number", - Input: types.ArrayOKValue(12.3), + Input: arrayok.Value(12.3), Expected: "12.3", }, { Name: "A single number in a list", - Input: types.ArrayOKArray(12.3), + Input: arrayok.Array(12.3), Expected: "[12.3]", }, { Name: "Multiple values", - Input: types.ArrayOKArray(1, 2, 3, 4.5), + Input: arrayok.Array(1, 2, 3, 4.5), Expected: "[1,2,3,4.5]", }, { Name: "Nil Value", - Input: types.ArrayOK[*float64]{}, + Input: arrayok.Type[*float64]{}, Expected: "null", }, { Name: "Nil Array", - Input: func() types.ArrayOK[*float64] { - original := types.ArrayOKArray(1.2, 0, 3.4) + Input: func() arrayok.Type[*float64] { + original := arrayok.Array(1.2, 0, 3.4) original.Array[1] = nil return original }(), @@ -64,28 +64,28 @@ func TestStringMarshal(t *testing.T) { scenarios := []TestMarshallScenario[*string]{ { Name: "A single string", - Input: types.ArrayOKValue("hello"), + Input: arrayok.Value("hello"), Expected: `"hello"`, }, { Name: "A single string in a list", - Input: types.ArrayOKArray("hello"), + Input: arrayok.Array("hello"), Expected: `["hello"]`, }, { Name: "Multiple strings", - Input: types.ArrayOKArray("hello", "world", "foo", "bar"), + Input: arrayok.Array("hello", "world", "foo", "bar"), Expected: `["hello","world","foo","bar"]`, }, { Name: "Nil Value", - Input: types.ArrayOK[*string]{}, + Input: arrayok.Type[*string]{}, Expected: "null", }, { Name: "Nil Array", - Input: func() types.ArrayOK[*string] { - original := types.ArrayOKArray("hello", "", "world") + Input: func() arrayok.Type[*string] { + original := arrayok.Array("hello", "", "world") original.Array[1] = nil return original }(), @@ -105,7 +105,7 @@ func TestStringMarshal(t *testing.T) { type TestUnmarshalScenario[T any] struct { Name string Input string - Expected types.ArrayOK[T] + Expected arrayok.Type[T] } func TestFloat64Unmarshal(t *testing.T) { @@ -115,28 +115,28 @@ func TestFloat64Unmarshal(t *testing.T) { { Name: "A single number", Input: "12.3", - Expected: types.ArrayOKValue(12.3), + Expected: arrayok.Value(12.3), }, { Name: "A single number in a list", Input: "[12.3]", - Expected: types.ArrayOKArray(12.3), + Expected: arrayok.Array(12.3), }, { Name: "Multiple values", Input: "[1,2,3,4.5]", - Expected: types.ArrayOKArray(1, 2, 3, 4.5), + Expected: arrayok.Array(1, 2, 3, 4.5), }, { Name: "Nil Value", Input: "null", - Expected: types.ArrayOK[*float64]{}, + Expected: arrayok.Type[*float64]{}, }, { Name: "Nil Array", Input: "[1.2,null,3.4]", - Expected: func() types.ArrayOK[*float64] { - original := types.ArrayOKArray(1.2, 0, 3.4) + Expected: func() arrayok.Type[*float64] { + original := arrayok.Array(1.2, 0, 3.4) original.Array[1] = nil return original }(), @@ -145,7 +145,7 @@ func TestFloat64Unmarshal(t *testing.T) { for _, tt := range scenarios { t.Run(tt.Name, func(t *testing.T) { - result := types.ArrayOK[*float64]{} + result := arrayok.Type[*float64]{} err := json.Unmarshal([]byte(tt.Input), &result) Expect(err).To(BeNil()) Expect(result).To(Equal(tt.Expected)) @@ -160,28 +160,28 @@ func TestStringUnmarshal(t *testing.T) { { Name: "A single string", Input: `"hello"`, - Expected: types.ArrayOKValue("hello"), + Expected: arrayok.Value("hello"), }, { Name: "A single string in a list", Input: `["hello"]`, - Expected: types.ArrayOKArray("hello"), + Expected: arrayok.Array("hello"), }, { Name: "Multiple strings", Input: `["hello","world","foo","bar"]`, - Expected: types.ArrayOKArray("hello", "world", "foo", "bar"), + Expected: arrayok.Array("hello", "world", "foo", "bar"), }, { Name: "Nil Value", Input: "null", - Expected: types.ArrayOK[*string]{}, + Expected: arrayok.Type[*string]{}, }, { Name: "Nil Array", Input: `["hello",null,"world"]`, - Expected: func() types.ArrayOK[*string] { - original := types.ArrayOKArray("hello", "", "world") + Expected: func() arrayok.Type[*string] { + original := arrayok.Array("hello", "", "world") original.Array[1] = nil return original }(), @@ -190,7 +190,7 @@ func TestStringUnmarshal(t *testing.T) { for _, tt := range scenarios { t.Run(tt.Name, func(t *testing.T) { - result := types.ArrayOK[*string]{} + result := arrayok.Type[*string]{} err := json.Unmarshal([]byte(tt.Input), &result) Expect(err).To(BeNil()) Expect(result).To(Equal(tt.Expected)) @@ -211,19 +211,19 @@ func TestColorUnmarshal(t *testing.T) { { Name: "A single color", Input: `{"red": 255, "green": 255, "blue": 255}`, - Expected: types.ArrayOKValue(Color{Red: 255, Green: 255, Blue: 255}), + Expected: arrayok.Value(Color{Red: 255, Green: 255, Blue: 255}), }, { Name: "A single color in a list", Input: `[{"red": 255, "green": 255, "blue": 255}]`, - Expected: types.ArrayOK[*Color]{ + Expected: arrayok.Type[*Color]{ Array: []*Color{{Red: 255, Green: 255, Blue: 255}}, }, }, { Name: "Multiple colors", Input: `[{"red": 255, "green": 255, "blue": 255}, {"red": 0, "green": 0, "blue": 0}, {"red": 0, "green": 255, "blue": 0}]`, - Expected: types.ArrayOK[*Color]{ + Expected: arrayok.Type[*Color]{ Array: []*Color{ {Red: 255, Green: 255, Blue: 255}, {Red: 0, Green: 0, Blue: 0}, @@ -234,12 +234,12 @@ func TestColorUnmarshal(t *testing.T) { { Name: "Nil Value", Input: "null", - Expected: types.ArrayOK[*Color]{}, + Expected: arrayok.Type[*Color]{}, }, { Name: "Nil Array", Input: `[{"red": 255, "green": 255, "blue": 255}, null, {"red": 0, "green": 0, "blue": 0}]`, - Expected: types.ArrayOK[*Color]{ + Expected: arrayok.Type[*Color]{ Array: []*Color{ {Red: 255, Green: 255, Blue: 255}, nil, @@ -251,7 +251,7 @@ func TestColorUnmarshal(t *testing.T) { for _, tt := range scenarios { t.Run(tt.Name, func(t *testing.T) { - result := types.ArrayOK[*Color]{} + result := arrayok.Type[*Color]{} err := json.Unmarshal([]byte(tt.Input), &result) Expect(err).To(BeNil()) Expect(result).To(Equal(tt.Expected)) @@ -265,19 +265,19 @@ func TestColorMarshal(t *testing.T) { scenarios := []TestMarshallScenario[*Color]{ { Name: "A single color", - Input: types.ArrayOKValue(Color{Red: 255, Green: 255, Blue: 255}), + Input: arrayok.Value(Color{Red: 255, Green: 255, Blue: 255}), Expected: `{"red":255,"green":255,"blue":255}`, }, { Name: "A single color in a list", - Input: types.ArrayOK[*Color]{ + Input: arrayok.Type[*Color]{ Array: []*Color{{Red: 255, Green: 255, Blue: 255}}, }, Expected: `[{"red":255,"green":255,"blue":255}]`, }, { Name: "Multiple colors", - Input: types.ArrayOK[*Color]{ + Input: arrayok.Type[*Color]{ Array: []*Color{ {Red: 255, Green: 255, Blue: 255}, {Red: 0, Green: 0, Blue: 0}, @@ -288,12 +288,12 @@ func TestColorMarshal(t *testing.T) { }, { Name: "Nil Value", - Input: types.ArrayOK[*Color]{}, + Input: arrayok.Type[*Color]{}, Expected: "null", }, { Name: "Nil Array", - Input: types.ArrayOK[*Color]{ + Input: arrayok.Type[*Color]{ Array: []*Color{ {Red: 255, Green: 255, Blue: 255}, nil, @@ -328,11 +328,11 @@ func TestNestedArrayOKUnmarshal(t *testing.T) { { Name: "Nested ArrayOK within another struct", Input: struct { - Name string `json:"name"` - Colors *types.ArrayOK[Color] `json:"colors"` + Name string `json:"name"` + Colors *arrayok.Type[Color] `json:"colors"` }{ Name: "Test", - Colors: &types.ArrayOK[Color]{ + Colors: &arrayok.Type[Color]{ Array: []Color{ {Red: 255, Green: 255, Blue: 255}, {Red: 0, Green: 0, Blue: 0}, @@ -345,8 +345,8 @@ func TestNestedArrayOKUnmarshal(t *testing.T) { { Name: "Nested ArrayOK within another struct with nil Colors", Input: struct { - Name string `json:"name"` - Colors *types.ArrayOK[Color] `json:"colors"` + Name string `json:"name"` + Colors *arrayok.Type[Color] `json:"colors"` }{ Name: "Test", Colors: nil, @@ -377,11 +377,11 @@ func TestNestedArrayOKMarshal(t *testing.T) { { Name: "Marshal ArrayOK nested within another struct with actual value", Input: struct { - Name string `json:"name"` - Colors *types.ArrayOK[Color] `json:"colors"` + Name string `json:"name"` + Colors *arrayok.Type[Color] `json:"colors"` }{ Name: "Test", - Colors: &types.ArrayOK[Color]{ + Colors: &arrayok.Type[Color]{ Array: []Color{ {Red: 255, Green: 255, Blue: 255}, {Red: 0, Green: 0, Blue: 0}, @@ -394,8 +394,8 @@ func TestNestedArrayOKMarshal(t *testing.T) { { Name: "Marshal ArrayOK nested within another struct with nil value", Input: struct { - Name string `json:"name"` - Colors *types.ArrayOK[Color] `json:"colors"` + Name string `json:"name"` + Colors *arrayok.Type[Color] `json:"colors"` }{ Name: "Test", Colors: nil,