diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index a6c42fa..74a9aea 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -18,10 +18,13 @@ jobs:
with:
go-version: "1.22"
- - name: Test
- run: go test -v ./...
-
- name: Check Generated Schema
run: |
go generate ./...
git diff --exit-code
+
+ - name: Test
+ run: go test -v ./...
+
+ - name: Build all packages
+ run: go build -v ./...
diff --git a/README.md b/README.md
index 37f0ce6..ef29db2 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@ The good thing about this package is that it's **automatically generated** based
package main
import (
- grob "github.com/MetalBlueberry/go-plotly/graph_objects"
+ grob "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/graph_objects"
"github.com/MetalBlueberry/go-plotly/offline"
)
@@ -57,6 +57,10 @@ See the examples dir for more examples.
## Structure
+To keep the plotly.js independent of the version of this package, the generated directory contains a directory per plotly version supported. The plan is to support all minor releases and update as patches are released. But because I can not do it myself, I will accept PRs if anyone wants any specific version.
+
+Updates to the package will affect all schemas. This will be done as we improve the generator.
+
Each trace type has its own file on **graph_objecs (grob)** package. The file contains the main structure and all the needed nested objects. Files ending with **_gen** are automatically generated files running `go generate`. This is executing the code in **generator** package to generate the structures from the plotly schema. The types are documented, but you can find more examples and extended documentation at [Plotly's documentation](https://plotly.com/python/).
The values that can hold single values or arrays are defined as custom types that are a type definition of `interfaces{}`. Most common case are X and Y values. You can pass any number slice and it will work (`[]float64`,`[]int`,`[]int64`...). In case of Hovertext, you can provide a `[]string` to display a text for each point, a `string` to display the same for all or `[]int` to display a number.
@@ -113,6 +117,63 @@ For strings... This is a little bit more complicated, In AWS package they are us
For numbers... It's similar to strings, Right now you cannot create plots with integer/float numbers with 0 value. I've only encounter problems when trying to remove the margin and can be workaround with an small value like `0.001`. I would like to avoid using interface{} or defining types again to keep the package interface as simple as possible.
+### Go Plotly Update to any json schema version
+
+#### Update the config to add a new version
+
+To add a new version, add a new entry in: [schemas.yaml](schemas.yaml)
+
+The documentation for each field can be found in [schema.go](generator%2Fschema.go)
+
+Example entry:
+```yaml
+ - Name: Plotly 2.31.1
+ Tag: v2.31.1
+ URL: https://raw.githubusercontent.com/plotly/plotly.js/v2.31.1/test/plot-schema.json
+ Path: schemas/v2.31.1/plot-schema.json
+ Generated: generated/v2.31.1
+ CDN: https://cdn.plot.ly/plotly-2.31.1.min.js
+```
+
+The local paths are relative to the project root.
+
+#### run download and regeneration
+
+> [!TIP]
+> Use this script for easier download of plotly json schemas.
+> ```shell
+> go run generator/cmd/downloader/main.go --config="schemas.yaml"
+> ```
+> Then run the generator, which will clean up the generated files in **graph_objects** folder of each version and regenerate the new graph objects. DO NOT REMOVE **graph_objects/plotly.go**
+> ```shell
+> go run generator/cmd/generator/main.go --config="schemas.yaml"
+> ```
+> Alternatively, you can also generate the go package using following command from the project root:
+> ```shell
+> go generate ./...
+> ```
+
+#### Missing Files?
+
+if in doubt whether all types and traces have been generated, you can use the jsonviewer tool to introspect the json:
+https://jsonviewer.stack.hu/
+
+Or use `jq` tool for quick introspection into the json files.
+Example:
+Display all traces in the schema.json file.
+```shell
+jq '.schema.traces | keys' schema.json --sort-keys | less
+```
+
+More on the `jq` tool on: https://jqlang.github.io/jq/manual/
+
+### plotly online editor sandbox
+http://plotly-json-editor.getforge.io/
+
## Star History
-[![Star History Chart](https://api.star-history.com/svg?repos=Metalblueberry/go-plotly&type=Date)](https://star-history.com/#Metalblueberry/go-plotly&Date)
\ No newline at end of file
+[![Star History Chart](https://api.star-history.com/svg?repos=Metalblueberry/go-plotly&type=Date)](https://star-history.com/#Metalblueberry/go-plotly&Date)
+
+
+## Official Plotly Release Notes
+For detailed changes please follow the release notes of the original JS repo: https://github.com/plotly/plotly.js/releases
\ No newline at end of file
diff --git a/examples/bar/bar.html b/examples/bar/bar.html
index cf99295..d5a0cba 100755
--- a/examples/bar/bar.html
+++ b/examples/bar/bar.html
@@ -1,12 +1,12 @@
-
+
-
-
+
\ No newline at end of file
diff --git a/examples/bar/main.go b/examples/bar/main.go
index 0742b8a..101f167 100644
--- a/examples/bar/main.go
+++ b/examples/bar/main.go
@@ -1,8 +1,8 @@
package main
import (
- grob "github.com/MetalBlueberry/go-plotly/graph_objects"
- "github.com/MetalBlueberry/go-plotly/offline"
+ grob "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/graph_objects"
+ "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/offline"
)
func main() {
diff --git a/examples/bar_custom/bar_custom.html b/examples/bar_custom/bar_custom.html
index 00e59b0..fa8bc61 100755
--- a/examples/bar_custom/bar_custom.html
+++ b/examples/bar_custom/bar_custom.html
@@ -1,12 +1,12 @@
-
+
-
-
+
\ No newline at end of file
diff --git a/examples/bar_custom/main.go b/examples/bar_custom/main.go
index 528f0eb..ccd611e 100644
--- a/examples/bar_custom/main.go
+++ b/examples/bar_custom/main.go
@@ -4,9 +4,10 @@ import (
"image/color"
"strconv"
- grob "github.com/MetalBlueberry/go-plotly/graph_objects"
- "github.com/MetalBlueberry/go-plotly/offline"
"github.com/lucasb-eyer/go-colorful"
+
+ grob "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/graph_objects"
+ "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/offline"
)
func main() {
diff --git a/examples/colorscale/main.go b/examples/colorscale/main.go
index b3986e9..f66347a 100644
--- a/examples/colorscale/main.go
+++ b/examples/colorscale/main.go
@@ -4,8 +4,8 @@ import (
"encoding/json"
"math"
- grob "github.com/MetalBlueberry/go-plotly/graph_objects"
- "github.com/MetalBlueberry/go-plotly/offline"
+ grob "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/graph_objects"
+ "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/offline"
)
type ColorScale struct {
diff --git a/examples/go.mod b/examples/go.mod
index d239373..cb748db 100644
--- a/examples/go.mod
+++ b/examples/go.mod
@@ -1,13 +1,18 @@
module github.com/metalblueberry/plotly/examples
-go 1.14
+go 1.22
require (
- github.com/MetalBlueberry/go-plotly v0.0.0-20200503142240-1276ab260dcb
- github.com/go-gota/gota v0.10.1
+ github.com/MetalBlueberry/go-plotly v0.4.0
+ github.com/go-gota/gota v0.12.0
github.com/lucasb-eyer/go-colorful v1.2.0
- github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4
- gonum.org/v1/gonum v0.7.0 // indirect
+ github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c
+)
+
+require (
+ golang.org/x/net v0.25.0 // indirect
+ golang.org/x/sys v0.20.0 // indirect
+ gonum.org/v1/gonum v0.15.0 // indirect
)
replace github.com/MetalBlueberry/go-plotly => ./../
diff --git a/examples/go.sum b/examples/go.sum
index 632adc6..8a5ce5a 100644
--- a/examples/go.sum
+++ b/examples/go.sum
@@ -1,295 +1,83 @@
+dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
+gioui.org v0.0.0-20210308172011-57750fc8a0a6/go.mod h1:RSH6KIUZ0p2xy5zHDxgAM4zumjgTw83q2ge/PI+yyw8=
+github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw=
-github.com/chromedp/cdproto v0.0.0-20230802225258-3cf4e6d46a89/go.mod h1:GKljq0VrfU4D5yc+2qA6OVr8pmO/MBbPEWqWQ/oqGEs=
-github.com/chromedp/chromedp v0.9.2/go.mod h1:LkSXJKONWTCHAfQasKFUZI+mxqS4tZqhmtGzzhLsnLs=
-github.com/chromedp/sysutil v1.0.0/go.mod h1:kgWmDdq8fTzXYcKIBqIYvRRTnYb9aNS9moAV0xufSww=
-github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
-github.com/chzyer/logex v1.2.1/go.mod h1:JLbx6lG2kDbNRFnfkgvh4eRJRPX1QCoOIWomwysCBrQ=
-github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
-github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObkaSkeBlk=
-github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
-github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38GC8=
+github.com/boombuler/barcode v1.0.0/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
-github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k=
-github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
-github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
-github.com/go-gota/gota v0.10.1 h1:BWci+R5dE28GnXoD1EWoQqe7WCQHAPJ996mK7LZrB4U=
-github.com/go-gota/gota v0.10.1/go.mod h1:NZLQccXn0rABmkXjsaugRY6l+UH2dDZSgIgF8E2ipmA=
-github.com/go-logr/logr v1.2.3/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
-github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
-github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
-github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE=
-github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls=
-github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8=
-github.com/gobwas/httphead v0.1.0/go.mod h1:O/RXo79gxV8G+RqlR/otEwx4Q36zl9rqC5u12GKvMCM=
-github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw=
-github.com/gobwas/ws v1.2.1/go.mod h1:hRKAFb8wOxFROYNsT1bqfWnhX+b5MFeJM9r2ZSwg/KY=
+github.com/fogleman/gg v1.3.0/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k=
+github.com/go-fonts/dejavu v0.1.0/go.mod h1:4Wt4I4OU2Nq9asgDCteaAaWZOV24E+0/Pwo0gppep4g=
+github.com/go-fonts/latin-modern v0.2.0/go.mod h1:rQVLdDMK+mK1xscDwsqM5J8U2jrRa3T0ecnM9pNujks=
+github.com/go-fonts/liberation v0.1.1/go.mod h1:K6qoJYypsmfVjWg8KOVDQhLc8UDgIK2HYqyqAO9z7GY=
+github.com/go-fonts/stix v0.1.0/go.mod h1:w/c1f0ldAUlJmLBvlbkvVXLAD+tAMqobIIQpmnUIzUY=
+github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
+github.com/go-gota/gota v0.12.0 h1:T5BDg1hTf5fZ/CO+T/N0E+DDqUhvoKBl+UVckgcAAQg=
+github.com/go-gota/gota v0.12.0/go.mod h1:UT+NsWpZC/FhaOyWb9Hui0jXg0Iq8e/YugZHTbyW/34=
+github.com/go-latex/latex v0.0.0-20210118124228-b3d85cf34e07/go.mod h1:CO1AlKB2CSIqUrmQPqA0gdRIlnLEY0gK5JGjh37zN5U=
github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k=
-github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8=
-github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
-github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
-github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
-github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
-github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
-github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
-github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
-github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
-github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
-github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
-github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
-github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
-github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
-github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
-github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
-github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
-github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
-github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
-github.com/google/pprof v0.0.0-20240424215950-a892ee059fd6/go.mod h1:kf6iHlnVGwgKolg33glAes7Yg/8iWP8ukqeldJSO7jw=
-github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
-github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
-github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
-github.com/ianlancetaylor/demangle v0.0.0-20240312041847-bd984b5ce465/go.mod h1:gx7rwoVhcfuVKG5uya9Hs3Sxj7EIvldVofAWIUtGouw=
-github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y=
+github.com/jung-kurt/gofpdf v1.0.0/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes=
github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes=
-github.com/ledongthuc/pdf v0.0.0-20220302134840-0c2507a12d80/go.mod h1:imJHygn/1yfhB7XSJJKlFZKl/J+dCPAknuiaGOshXAs=
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
-github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=
-github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A=
-github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU=
-github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
-github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
-github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0=
-github.com/onsi/ginkgo/v2 v2.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c=
-github.com/onsi/ginkgo/v2 v2.1.4/go.mod h1:um6tUpWM/cxCK3/FK8BXqEiUMUwRgSM4JXG47RKZmLU=
-github.com/onsi/ginkgo/v2 v2.1.6/go.mod h1:MEH45j8TBi6u9BMogfbp0stKC5cdGjumZj5Y7AG4VIk=
-github.com/onsi/ginkgo/v2 v2.3.0/go.mod h1:Eew0uilEqZmIEZr8JrvYlvOM7Rr6xzTmMV8AyFNU9d0=
-github.com/onsi/ginkgo/v2 v2.4.0/go.mod h1:iHkDK1fKGcBoEHT5W7YBq4RFWaQulw+caOMkAt4OrFo=
-github.com/onsi/ginkgo/v2 v2.5.0/go.mod h1:Luc4sArBICYCS8THh8v3i3i5CuSZO+RaQRaJoeNwomw=
-github.com/onsi/ginkgo/v2 v2.7.0/go.mod h1:yjiuMwPokqY1XauOgju45q3sJt6VzQ/Fict1LFVcsAo=
-github.com/onsi/ginkgo/v2 v2.8.1/go.mod h1:N1/NbDngAFcSLdyZ+/aYTYGSlq9qMCS/cNKGJjy+csc=
-github.com/onsi/ginkgo/v2 v2.9.0/go.mod h1:4xkjoL/tZv4SMWeww56BU5kAt19mVB47gTWxmrTcxyk=
-github.com/onsi/ginkgo/v2 v2.9.1/go.mod h1:FEcmzVcCHl+4o9bQZVab+4dC9+j+91t2FHSzmGAPfuo=
-github.com/onsi/ginkgo/v2 v2.9.2/go.mod h1:WHcJJG2dIlcCqVfBAwUCrJxSPFb6v4azBwgxeMeDuts=
-github.com/onsi/ginkgo/v2 v2.9.5/go.mod h1:tvAoo1QUJwNEU2ITftXTpR7R1RbCzoZUOs3RonqW57k=
-github.com/onsi/ginkgo/v2 v2.9.7/go.mod h1:cxrmXWykAwTwhQsJOPfdIDiJ+l2RYq7U8hFU+M/1uw0=
-github.com/onsi/ginkgo/v2 v2.11.0/go.mod h1:ZhrRA5XmEE3x3rhlzamx/JJvujdZoJ2uvgI7kR0iZvM=
-github.com/onsi/ginkgo/v2 v2.13.0/go.mod h1:TE309ZR8s5FsKKpuB1YAQYBzCaAfUgatB/xlT/ETL/o=
-github.com/onsi/ginkgo/v2 v2.17.1/go.mod h1:llBI3WDLL9Z6taip6f33H76YcWtJv+7R3HigUjbIBOs=
-github.com/onsi/ginkgo/v2 v2.17.2/go.mod h1:nP2DPOQoNsQmsVyv5rDA8JkXQoCs6goXIvr/PRJ1eCc=
-github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
-github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
-github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY=
-github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro=
-github.com/onsi/gomega v1.20.1/go.mod h1:DtrZpjmvpn2mPm4YWQa0/ALMDj9v4YxLgojwPeREyVo=
-github.com/onsi/gomega v1.21.1/go.mod h1:iYAIXgPSaDHak0LCMA+AWBpIKBr8WZicMxnE8luStNc=
-github.com/onsi/gomega v1.22.1/go.mod h1:x6n7VNe4hw0vkyYUM4mjIXx3JbLiPaBPNgB7PRQ1tuM=
-github.com/onsi/gomega v1.24.0/go.mod h1:Z/NWtiqwBrwUt4/2loMmHL63EDLnYHmVbuBpDr2vQAg=
-github.com/onsi/gomega v1.24.1/go.mod h1:3AOiACssS3/MajrniINInwbfOOtfZvplPzuRSmvt1jM=
-github.com/onsi/gomega v1.26.0/go.mod h1:r+zV744Re+DiYCIPRlYOTxn0YkOLcAnW8k1xXdMPGhM=
-github.com/onsi/gomega v1.27.1/go.mod h1:aHX5xOykVYzWOV4WqQy0sy8BQptgukenXpCXfadcIAw=
-github.com/onsi/gomega v1.27.3/go.mod h1:5vG284IBtfDAmDyrK+eGyZmUgUlmi+Wngqo557cZ6Gw=
-github.com/onsi/gomega v1.27.4/go.mod h1:riYq/GJKh8hhoM01HN6Vmuy93AarCXCBGpvFDK3q3fQ=
-github.com/onsi/gomega v1.27.6/go.mod h1:PIQNjfQwkP3aQAH7lf7j87O/5FiNr+ZR8+ipb+qQlhg=
-github.com/onsi/gomega v1.27.7/go.mod h1:1p8OOlwo2iUUDsHnOrjE5UKYJ+e3W8eQ3qSlRahPmr4=
-github.com/onsi/gomega v1.27.8/go.mod h1:2J8vzI/s+2shY9XHRApDkdgPo1TKT7P2u6fXeJKFnNQ=
-github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M=
-github.com/onsi/gomega v1.30.0/go.mod h1:9sxs+SwGrKI0+PWe4Fxa9tFQQBG5xSsSbMXOI8PPpoQ=
-github.com/onsi/gomega v1.33.0/go.mod h1:+925n5YtiFsLzzafLUHzVMBpvvRAzrydIBiSIxjX3wY=
-github.com/orisano/pixelmatch v0.0.0-20220722002657-fb0b55479cde/go.mod h1:nZgzbfBr3hhjoZnS66nKrHmduYNpc34ny7RK4z5/HM0=
-github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4 h1:49lOXmGaUpV9Fz3gd7TFZY106KVlPVa5jcYD1gaQf98=
-github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA=
+github.com/phpdave11/gofpdf v1.4.2/go.mod h1:zpO6xFn9yxo3YLyMvW8HcKWVdbNqgIfOOp2dXMnm1mY=
+github.com/phpdave11/gofpdi v1.0.12/go.mod h1:vBmVV0Do6hSBHC8uKUQ71JGW+ZGQq74llk/7bXwjDoI=
+github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ=
+github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU=
+github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
-github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
-github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
-github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
-github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
-github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
-github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
-github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
-github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
-github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
-github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
-github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
+github.com/ruudk/golang-pdf417 v0.0.0-20181029194003-1af4ab5afa58/go.mod h1:6lfFZQK844Gfx8o5WFuvpxWRwnSoipWe/p622j1v06w=
+github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
-golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
-golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
-golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
-golang.org/x/crypto v0.1.0/go.mod h1:RecgLatLF4+eUMCP1PoPZQb+cVrJcOPbHkTkbkB9sbw=
-golang.org/x/crypto v0.11.0/go.mod h1:xgJhtzW8F9jGdVFWZESrid1U1bjeNy4zgy5cRr/CIio=
-golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw=
-golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliYc=
-golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4=
-golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg=
-golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=
-golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs=
-golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M=
+golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
-golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2 h1:y102fOLFqhV41b+4GPiJoa0k/x+pJcEi2/HB1Y5T6fU=
golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
+golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
+golang.org/x/exp v0.0.0-20191002040644-a1355ae1e2c3/go.mod h1:NOZ3BPKG0ec/BKJQgnvsSFpcKLM5xXVWnvZS97DWHgE=
+golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa h1:FRnLl4eNAQl8hwxVVC17teOw8kdjVDVAiFMtgUdTSRQ=
+golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa/go.mod h1:zk2irFbV9DP96SEBUUAy67IdHUaZuSnrz1n472HUCLE=
golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs=
-golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
-golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY=
-golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
-golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI=
-golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
-golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
-golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
-golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
-golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
-golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
-golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
-golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
-golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
+golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
+golang.org/x/image v0.0.0-20190910094157-69e4b8554b2a/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
+golang.org/x/image v0.0.0-20200119044424-58c23975cae1/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
+golang.org/x/image v0.0.0-20200430140353-33d19683fad8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
+golang.org/x/image v0.0.0-20200618115811-c13761719519/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
+golang.org/x/image v0.0.0-20201208152932-35266b937fa6/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
+golang.org/x/image v0.0.0-20210216034530-4410531fe030/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
+golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=
+golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
-golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
-golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
-golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
-golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk=
-golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
-golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
-golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
-golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
-golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco=
-golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY=
-golang.org/x/net v0.3.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE=
-golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws=
-golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
-golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
-golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
-golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
-golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA=
-golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI=
-golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk=
-golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE=
-golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY=
-golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
-golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
-golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8=
-golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/net v0.0.0-20210423184538-5f58ad60dda6/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk=
+golang.org/x/net v0.25.0 h1:d/OCCoBEUq33pjydKrGQhw7IlUPI2Oylr+8qLx49kac=
+golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.2.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
-golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y=
-golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
-golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
-golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210304124612-50617c2ba197/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220422013727-9388b58f7150/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.4.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
-golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
-golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
-golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
-golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
-golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE=
+golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y=
+golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
-golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
-golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
-golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc=
-golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA=
-golang.org/x/term v0.4.0/go.mod h1:9P2UbLfCdcvo3p/nzKvsmas4TnlujnuoV9hGgYzW1lQ=
-golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
-golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
-golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
-golang.org/x/term v0.10.0/go.mod h1:lpqdcUyK/oCiQxvxVrppt5ggO2KCZ5QblwqPnfZ6d5o=
-golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU=
-golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU=
-golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U=
-golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY=
-golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk=
-golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58=
-golang.org/x/term v0.19.0/go.mod h1:2CuTdWZ7KHSQwUzKva0cbMg6q2DMI3Mmxp+gKJbskEk=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
-golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
-golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
-golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
-golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
-golang.org/x/text v0.6.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
-golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
-golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
-golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
-golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
-golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
-golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
-golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
-golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
-golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E=
-golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
-golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA=
-golang.org/x/tools v0.4.0/go.mod h1:UE5sM2OK9E/d67R0ANs2xJizIymRP5gJU295PvKXxjQ=
-golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
-golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s=
-golang.org/x/tools v0.9.1/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc=
-golang.org/x/tools v0.9.3/go.mod h1:owI94Op576fPu3cIGQeHs3joujW/2Oc6MtlxbF5dfNc=
-golang.org/x/tools v0.12.0/go.mod h1:Sc0INKfu04TlqNoRA1hgpFZbhYXHPr4V5DzpSBTPqQM=
-golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58=
-golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps=
-golang.org/x/tools v0.20.0/go.mod h1:WvitBU7JJf6A4jOdg4S1tviW9bhUxkgeCui/0JHctQg=
+golang.org/x/tools v0.0.0-20190927191325-030b2cf1153e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
-golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo=
-gonum.org/v1/gonum v0.7.0 h1:Hdks0L0hgznZLG9nzXb8vZ0rRvqNvAcgAp84y7Mwkgw=
-gonum.org/v1/gonum v0.7.0/go.mod h1:L02bwd0sqlsvRv41G7wGWFCsVNZFv/k1xzGIxeANHGM=
-gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0 h1:OE9mWmgKkjJyEmDAAtGMPjXu+YNeGvK9VTSHY6+Qihc=
+gonum.org/v1/gonum v0.8.2/go.mod h1:oe/vMfY3deqTw+1EZJhuvEW2iwGF1bW9wwu7XCu0+v0=
+gonum.org/v1/gonum v0.9.1/go.mod h1:TZumC3NeyVQskjXqmyWt4S3bINhy7B4eYwW69EbyX+0=
+gonum.org/v1/gonum v0.15.0 h1:2lYxjRbTYyxkJxlhC+LvJIx3SsANPdRybu1tGj9/OrQ=
+gonum.org/v1/gonum v0.15.0/go.mod h1:xzZVBJBtS+Mz4q0Yl2LJTk+OxOg4jiXZ7qBoM0uISGo=
gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw=
gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc=
-google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
-google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
-google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
-google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
-google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
-google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
-google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
-google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
-google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
-google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
-gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
-gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
-gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
-gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
-gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
-gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gonum.org/v1/plot v0.9.0/go.mod h1:3Pcqqmp6RHvJI72kgb8fThyUnav364FOsdDo2aGW5lY=
rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4=
diff --git a/examples/range_slider/main.go b/examples/range_slider/main.go
index 827b8f2..6c388f2 100644
--- a/examples/range_slider/main.go
+++ b/examples/range_slider/main.go
@@ -4,9 +4,10 @@ import (
"net/http"
"strings"
- grob "github.com/MetalBlueberry/go-plotly/graph_objects"
- "github.com/MetalBlueberry/go-plotly/offline"
"github.com/go-gota/gota/dataframe"
+
+ grob "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/graph_objects"
+ "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/offline"
)
func main() {
diff --git a/examples/range_slider/range_slider.html b/examples/range_slider/range_slider.html
index 8d1d147..00fc030 100755
--- a/examples/range_slider/range_slider.html
+++ b/examples/range_slider/range_slider.html
@@ -1,12 +1,12 @@
-
+
-
-
+
\ No newline at end of file
diff --git a/examples/responsive/bar.html b/examples/responsive/bar.html
index b4ad8f8..22ea5ba 100755
--- a/examples/responsive/bar.html
+++ b/examples/responsive/bar.html
@@ -1,12 +1,12 @@
-
+
-
-
+
\ No newline at end of file
diff --git a/examples/responsive/main.go b/examples/responsive/main.go
index 2bc8146..d6c703c 100644
--- a/examples/responsive/main.go
+++ b/examples/responsive/main.go
@@ -1,8 +1,8 @@
package main
import (
- grob "github.com/MetalBlueberry/go-plotly/graph_objects"
- "github.com/MetalBlueberry/go-plotly/offline"
+ grob "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/graph_objects"
+ "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/offline"
)
func main() {
diff --git a/examples/scatter/main.go b/examples/scatter/main.go
index 6ae717c..9645bc3 100644
--- a/examples/scatter/main.go
+++ b/examples/scatter/main.go
@@ -3,8 +3,8 @@ package main
import (
"math"
- grob "github.com/MetalBlueberry/go-plotly/graph_objects"
- "github.com/MetalBlueberry/go-plotly/offline"
+ grob "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/graph_objects"
+ "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/offline"
)
func main() {
diff --git a/examples/scatter/scatter.html b/examples/scatter/scatter.html
index 24616c0..deca9e8 100755
--- a/examples/scatter/scatter.html
+++ b/examples/scatter/scatter.html
@@ -1,12 +1,12 @@
-
+
-
-
+
\ No newline at end of file
diff --git a/examples/scatter3d/main.go b/examples/scatter3d/main.go
index f1a05b8..952122f 100644
--- a/examples/scatter3d/main.go
+++ b/examples/scatter3d/main.go
@@ -3,8 +3,8 @@ package main
import (
"math"
- grob "github.com/MetalBlueberry/go-plotly/graph_objects"
- "github.com/MetalBlueberry/go-plotly/offline"
+ grob "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/graph_objects"
+ "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/offline"
)
func main() {
diff --git a/examples/scatter3d/scatter3d.html b/examples/scatter3d/scatter3d.html
index 4bdcbb1..759f4c9 100755
--- a/examples/scatter3d/scatter3d.html
+++ b/examples/scatter3d/scatter3d.html
@@ -1,12 +1,12 @@
-
+
-
-
+
\ No newline at end of file
diff --git a/examples/shapes/bar.html b/examples/shapes/bar.html
index 1cf76a1..e68cfad 100755
--- a/examples/shapes/bar.html
+++ b/examples/shapes/bar.html
@@ -1,12 +1,12 @@
-
+
-
-
+
\ No newline at end of file
diff --git a/examples/shapes/main.go b/examples/shapes/main.go
index 0c80fe1..ad707dd 100644
--- a/examples/shapes/main.go
+++ b/examples/shapes/main.go
@@ -1,8 +1,8 @@
package main
import (
- grob "github.com/MetalBlueberry/go-plotly/graph_objects"
- "github.com/MetalBlueberry/go-plotly/offline"
+ grob "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/graph_objects"
+ "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/offline"
)
func main() {
diff --git a/examples/stargazers/main.go b/examples/stargazers/main.go
index 6047fb1..0c7d30a 100644
--- a/examples/stargazers/main.go
+++ b/examples/stargazers/main.go
@@ -10,8 +10,9 @@ import (
"text/template"
"time"
- grob "github.com/MetalBlueberry/go-plotly/graph_objects"
"github.com/pkg/browser"
+
+ grob "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/graph_objects"
)
type User struct {
@@ -97,7 +98,7 @@ func main() {
var page = `
-
+
-
+
\ No newline at end of file
diff --git a/examples/transforms/bar.html b/examples/transforms/bar.html
index cf99295..d5a0cba 100755
--- a/examples/transforms/bar.html
+++ b/examples/transforms/bar.html
@@ -1,12 +1,12 @@
-
+
-
-
+
\ No newline at end of file
diff --git a/examples/transforms/main.go b/examples/transforms/main.go
index 0742b8a..101f167 100644
--- a/examples/transforms/main.go
+++ b/examples/transforms/main.go
@@ -1,8 +1,8 @@
package main
import (
- grob "github.com/MetalBlueberry/go-plotly/graph_objects"
- "github.com/MetalBlueberry/go-plotly/offline"
+ grob "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/graph_objects"
+ "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/offline"
)
func main() {
diff --git a/examples/unmarshal/main.go b/examples/unmarshal/main.go
index db12ea4..0be7cf7 100644
--- a/examples/unmarshal/main.go
+++ b/examples/unmarshal/main.go
@@ -4,8 +4,8 @@ import (
"encoding/json"
"math"
- grob "github.com/MetalBlueberry/go-plotly/graph_objects"
- "github.com/MetalBlueberry/go-plotly/offline"
+ grob "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/graph_objects"
+ "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/offline"
)
func main() {
diff --git a/examples/wasm/main.go b/examples/wasm/main.go
index d0cbbd5..122762e 100644
--- a/examples/wasm/main.go
+++ b/examples/wasm/main.go
@@ -4,16 +4,18 @@ import (
"encoding/json"
"syscall/js"
- grob "github.com/MetalBlueberry/go-plotly/graph_objects"
+ grob "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/graph_objects"
)
+// to run this, wasm need to be set: GOOS=js GOARCH=wasm go build -o main.wasm
+
func plot(this js.Value, inputs []js.Value) interface{} {
fig := &grob.Fig{
Data: grob.Traces{
&grob.Choropleth{
Type: grob.TraceTypeChoropleth,
Autocolorscale: grob.True,
- Locationmode: grob.ChoroplethLocationmodeUsaStates,
+ Locationmode: grob.ChoroplethLocationmodeUSAStates,
},
},
Layout: &grob.Layout{
diff --git a/examples/waterfall_bar_chart/main.go b/examples/waterfall_bar_chart/main.go
index abfc8d8..de13ed0 100644
--- a/examples/waterfall_bar_chart/main.go
+++ b/examples/waterfall_bar_chart/main.go
@@ -1,8 +1,8 @@
package main
import (
- grob "github.com/MetalBlueberry/go-plotly/graph_objects"
- "github.com/MetalBlueberry/go-plotly/offline"
+ grob "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/graph_objects"
+ "github.com/MetalBlueberry/go-plotly/generated/v2.31.1/offline"
)
func main() {
diff --git a/examples/waterfall_bar_chart/waterfall.html b/examples/waterfall_bar_chart/waterfall.html
index 4fe633b..4fcf7ac 100755
--- a/examples/waterfall_bar_chart/waterfall.html
+++ b/examples/waterfall_bar_chart/waterfall.html
@@ -1,12 +1,12 @@
-
+
-
-
+
\ No newline at end of file
diff --git a/graph_objects/bar_gen.go b/generated/v2.19.0/graph_objects/bar_gen.go
similarity index 75%
rename from graph_objects/bar_gen.go
rename to generated/v2.19.0/graph_objects/bar_gen.go
index fd8479e..91a9839 100644
--- a/graph_objects/bar_gen.go
+++ b/generated/v2.19.0/graph_objects/bar_gen.go
@@ -30,7 +30,7 @@ type Bar struct {
// Basesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for base .
+ // Sets the source reference on Chart Studio Cloud for `base`.
Basesrc String `json:"basesrc,omitempty"`
// Cliponaxis
@@ -54,7 +54,7 @@ type Bar struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Dx
@@ -86,7 +86,7 @@ type Bar struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -96,13 +96,13 @@ type Bar struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -114,7 +114,7 @@ type Bar struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -126,7 +126,7 @@ type Bar struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Insidetextanchor
@@ -145,6 +145,22 @@ type Bar struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *BarLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Marker
// role: Object
Marker *BarMarker `json:"marker,omitempty"`
@@ -158,7 +174,7 @@ type Bar struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -182,7 +198,7 @@ type Bar struct {
// Offsetsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for offset .
+ // Sets the source reference on Chart Studio Cloud for `offset`.
Offsetsrc String `json:"offsetsrc,omitempty"`
// Opacity
@@ -201,18 +217,6 @@ type Bar struct {
// role: Object
Outsidetextfont *BarOutsidetextfont `json:"outsidetextfont,omitempty"`
- // R
- // arrayOK: false
- // type: data_array
- // r coordinates in scatter traces are deprecated!Please switch to the *scatterpolar* trace type.Sets the radial coordinatesfor legacy polar chart only.
- R interface{} `json:"r,omitempty"`
-
- // Rsrc
- // arrayOK: false
- // type: string
- // Sets the source reference on Chart Studio Cloud for r .
- Rsrc String `json:"rsrc,omitempty"`
-
// Selected
// role: Object
Selected *BarSelected `json:"selected,omitempty"`
@@ -233,12 +237,6 @@ type Bar struct {
// role: Object
Stream *BarStream `json:"stream,omitempty"`
- // T
- // arrayOK: false
- // type: data_array
- // t coordinates in scatter traces are deprecated!Please switch to the *scatterpolar* trace type.Sets the angular coordinatesfor legacy polar chart only.
- T interface{} `json:"t,omitempty"`
-
// Text
// arrayOK: true
// type: string
@@ -256,33 +254,33 @@ type Bar struct {
Textfont *BarTextfont `json:"textfont,omitempty"`
// Textposition
- // default: none
+ // 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.
+ // 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"`
// Textpositionsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for textposition .
+ // Sets the source reference on Chart Studio Cloud for `textposition`.
Textpositionsrc String `json:"textpositionsrc,omitempty"`
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
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-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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`.
+ // 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"`
// Texttemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for texttemplate .
+ // Sets the source reference on Chart Studio Cloud for `texttemplate`.
Texttemplatesrc String `json:"texttemplatesrc,omitempty"`
// Transforms
@@ -291,12 +289,6 @@ type Bar struct {
// just raise an issue before you start so we do not overlap
Transforms interface{} `json:"transforms,omitempty"`
- // Tsrc
- // arrayOK: false
- // type: string
- // Sets the source reference on Chart Studio Cloud for t .
- Tsrc String `json:"tsrc,omitempty"`
-
// Uid
// arrayOK: false
// type: string
@@ -328,7 +320,7 @@ type Bar struct {
// Widthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for width .
+ // Sets the source reference on Chart Studio Cloud for `width`.
Widthsrc String `json:"widthsrc,omitempty"`
// X
@@ -355,6 +347,12 @@ type Bar struct {
// Sets the calendar system to use with `x` date data.
Xcalendar BarXcalendar `json:"xcalendar,omitempty"`
+ // Xhoverformat
+ // 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"`
+
// Xperiod
// arrayOK: false
// type: any
@@ -376,7 +374,7 @@ type Bar struct {
// Xsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for x .
+ // Sets the source reference on Chart Studio Cloud for `x`.
Xsrc String `json:"xsrc,omitempty"`
// Y
@@ -403,6 +401,12 @@ type Bar struct {
// Sets the calendar system to use with `y` date data.
Ycalendar BarYcalendar `json:"ycalendar,omitempty"`
+ // Yhoverformat
+ // 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"`
+
// Yperiod
// arrayOK: false
// type: any
@@ -424,7 +428,7 @@ type Bar struct {
// Ysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for y .
+ // Sets the source reference on Chart Studio Cloud for `y`.
Ysrc String `json:"ysrc,omitempty"`
}
@@ -446,13 +450,13 @@ type BarErrorX struct {
// Arrayminussrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for arrayminus .
+ // Sets the source reference on Chart Studio Cloud for `arrayminus`.
Arrayminussrc String `json:"arrayminussrc,omitempty"`
// Arraysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for array .
+ // Sets the source reference on Chart Studio Cloud for `array`.
Arraysrc String `json:"arraysrc,omitempty"`
// Color
@@ -540,13 +544,13 @@ type BarErrorY struct {
// Arrayminussrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for arrayminus .
+ // Sets the source reference on Chart Studio Cloud for `arrayminus`.
Arrayminussrc String `json:"arrayminussrc,omitempty"`
// Arraysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for array .
+ // Sets the source reference on Chart Studio Cloud for `array`.
Arraysrc String `json:"arraysrc,omitempty"`
// Color
@@ -622,7 +626,7 @@ type BarHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -634,7 +638,7 @@ type BarHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -646,7 +650,7 @@ type BarHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -662,7 +666,7 @@ type BarHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -674,7 +678,7 @@ type BarHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -686,7 +690,7 @@ type BarHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -702,7 +706,7 @@ type BarHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
@@ -718,7 +722,7 @@ type BarInsidetextfont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -730,7 +734,7 @@ type BarInsidetextfont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -742,10 +746,46 @@ type BarInsidetextfont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
+// BarLegendgrouptitleFont Sets this legend group's title font.
+type BarLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// BarLegendgrouptitle
+type BarLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *BarLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// BarMarkerColorbarTickfont Sets the color bar's tick label font
type BarMarkerColorbarTickfont struct {
@@ -798,9 +838,9 @@ type BarMarkerColorbarTitle struct {
Font *BarMarkerColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side BarMarkerColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -843,6 +883,12 @@ type BarMarkerColorbar struct {
// 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.
Exponentformat BarMarkerColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -867,6 +913,12 @@ type BarMarkerColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation BarMarkerColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -946,7 +998,7 @@ type BarMarkerColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -955,12 +1007,24 @@ type BarMarkerColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition BarMarkerColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -1000,7 +1064,7 @@ type BarMarkerColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -1012,7 +1076,7 @@ type BarMarkerColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -1028,13 +1092,13 @@ type BarMarkerColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor BarMarkerColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -1046,13 +1110,13 @@ type BarMarkerColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor BarMarkerColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -1068,37 +1132,37 @@ type BarMarkerLine struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color`is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color` is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarker.linecolor. 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.
+ // 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"`
// Coloraxis
@@ -1110,19 +1174,19 @@ type BarMarkerLine struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.line.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.line.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.line.color`is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.line.color` is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Width
@@ -1134,47 +1198,123 @@ type BarMarkerLine struct {
// Widthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for width .
+ // Sets the source reference on Chart Studio Cloud for `width`.
Widthsrc String `json:"widthsrc,omitempty"`
}
+// BarMarkerPattern Sets the pattern within the marker.
+type BarMarkerPattern struct {
+
+ // Bgcolor
+ // 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"`
+
+ // Bgcolorsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
+ 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"`
+
+ // Fgcolorsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `fgcolor`.
+ Fgcolorsrc String `json:"fgcolorsrc,omitempty"`
+
+ // Fgopacity
+ // arrayOK: false
+ // type: number
+ // Sets the opacity of the foreground pattern fill. Defaults to a 0.5 when `fillmode` is *overlay*. Otherwise, defaults to 1.
+ Fgopacity float64 `json:"fgopacity,omitempty"`
+
+ // Fillmode
+ // 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
+ // 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"`
+
+ // Shapesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `shape`.
+ 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"`
+
+ // Sizesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `size`.
+ 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"`
+
+ // Soliditysrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `solidity`.
+ Soliditysrc String `json:"soliditysrc,omitempty"`
+}
+
// BarMarker
type BarMarker struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color` is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarkercolor. 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.
+ // 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"`
// Coloraxis
@@ -1190,13 +1330,13 @@ type BarMarker struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Line
@@ -1212,19 +1352,23 @@ type BarMarker struct {
// Opacitysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for opacity .
+ // Sets the source reference on Chart Studio Cloud for `opacity`.
Opacitysrc String `json:"opacitysrc,omitempty"`
+ // Pattern
+ // role: Object
+ Pattern *BarMarkerPattern `json:"pattern,omitempty"`
+
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.color`is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.color` is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Showscale
// arrayOK: false
// type: boolean
- // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array.
+ // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color` is set to a numerical array.
Showscale Bool `json:"showscale,omitempty"`
}
@@ -1240,7 +1384,7 @@ type BarOutsidetextfont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -1252,7 +1396,7 @@ type BarOutsidetextfont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -1264,7 +1408,7 @@ type BarOutsidetextfont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -1334,7 +1478,7 @@ type BarTextfont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -1346,7 +1490,7 @@ type BarTextfont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -1358,7 +1502,7 @@ type BarTextfont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -1456,7 +1600,7 @@ const (
BarMarkerColorbarExponentformatE1 BarMarkerColorbarExponentformat = "e"
BarMarkerColorbarExponentformatE2 BarMarkerColorbarExponentformat = "E"
BarMarkerColorbarExponentformatPower BarMarkerColorbarExponentformat = "power"
- BarMarkerColorbarExponentformatSi BarMarkerColorbarExponentformat = "SI"
+ BarMarkerColorbarExponentformatSI BarMarkerColorbarExponentformat = "SI"
BarMarkerColorbarExponentformatB BarMarkerColorbarExponentformat = "B"
)
@@ -1468,6 +1612,14 @@ const (
BarMarkerColorbarLenmodePixels BarMarkerColorbarLenmode = "pixels"
)
+// BarMarkerColorbarOrientation Sets the orientation of the colorbar.
+type BarMarkerColorbarOrientation string
+
+const (
+ BarMarkerColorbarOrientationH BarMarkerColorbarOrientation = "h"
+ BarMarkerColorbarOrientationV BarMarkerColorbarOrientation = "v"
+)
+
// BarMarkerColorbarShowexponent 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.
type BarMarkerColorbarShowexponent string
@@ -1506,7 +1658,16 @@ const (
BarMarkerColorbarThicknessmodePixels BarMarkerColorbarThicknessmode = "pixels"
)
-// BarMarkerColorbarTicklabelposition Determines where tick labels are drawn.
+// BarMarkerColorbarTicklabeloverflow 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*.
+type BarMarkerColorbarTicklabeloverflow string
+
+const (
+ BarMarkerColorbarTicklabeloverflowAllow BarMarkerColorbarTicklabeloverflow = "allow"
+ BarMarkerColorbarTicklabeloverflowHidePastDiv BarMarkerColorbarTicklabeloverflow = "hide past div"
+ BarMarkerColorbarTicklabeloverflowHidePastDomain BarMarkerColorbarTicklabeloverflow = "hide past domain"
+)
+
+// BarMarkerColorbarTicklabelposition 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*.
type BarMarkerColorbarTicklabelposition string
const (
@@ -1514,6 +1675,10 @@ const (
BarMarkerColorbarTicklabelpositionInside BarMarkerColorbarTicklabelposition = "inside"
BarMarkerColorbarTicklabelpositionOutsideTop BarMarkerColorbarTicklabelposition = "outside top"
BarMarkerColorbarTicklabelpositionInsideTop BarMarkerColorbarTicklabelposition = "inside top"
+ BarMarkerColorbarTicklabelpositionOutsideLeft BarMarkerColorbarTicklabelposition = "outside left"
+ BarMarkerColorbarTicklabelpositionInsideLeft BarMarkerColorbarTicklabelposition = "inside left"
+ BarMarkerColorbarTicklabelpositionOutsideRight BarMarkerColorbarTicklabelposition = "outside right"
+ BarMarkerColorbarTicklabelpositionInsideRight BarMarkerColorbarTicklabelposition = "inside right"
BarMarkerColorbarTicklabelpositionOutsideBottom BarMarkerColorbarTicklabelposition = "outside bottom"
BarMarkerColorbarTicklabelpositionInsideBottom BarMarkerColorbarTicklabelposition = "inside bottom"
)
@@ -1536,7 +1701,7 @@ const (
BarMarkerColorbarTicksEmpty BarMarkerColorbarTicks = ""
)
-// BarMarkerColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// BarMarkerColorbarTitleSide 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.
type BarMarkerColorbarTitleSide string
const (
@@ -1545,7 +1710,7 @@ const (
BarMarkerColorbarTitleSideBottom BarMarkerColorbarTitleSide = "bottom"
)
-// BarMarkerColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// BarMarkerColorbarXanchor 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*.
type BarMarkerColorbarXanchor string
const (
@@ -1554,7 +1719,7 @@ const (
BarMarkerColorbarXanchorRight BarMarkerColorbarXanchor = "right"
)
-// BarMarkerColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// BarMarkerColorbarYanchor 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*.
type BarMarkerColorbarYanchor string
const (
@@ -1563,6 +1728,28 @@ const (
BarMarkerColorbarYanchorBottom BarMarkerColorbarYanchor = "bottom"
)
+// BarMarkerPatternFillmode Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`.
+type BarMarkerPatternFillmode string
+
+const (
+ BarMarkerPatternFillmodeReplace BarMarkerPatternFillmode = "replace"
+ BarMarkerPatternFillmodeOverlay BarMarkerPatternFillmode = "overlay"
+)
+
+// BarMarkerPatternShape Sets the shape of the pattern fill. By default, no pattern is used for filling the area.
+type BarMarkerPatternShape string
+
+const (
+ BarMarkerPatternShapeEmpty BarMarkerPatternShape = ""
+ BarMarkerPatternShapeSlash BarMarkerPatternShape = "/"
+ BarMarkerPatternShapeDoublebackslash BarMarkerPatternShape = "\\"
+ BarMarkerPatternShapeX BarMarkerPatternShape = "x"
+ BarMarkerPatternShapeHyphenHyphen BarMarkerPatternShape = "-"
+ BarMarkerPatternShapeOr BarMarkerPatternShape = "|"
+ BarMarkerPatternShapePlus BarMarkerPatternShape = "+"
+ BarMarkerPatternShapeDot BarMarkerPatternShape = "."
+)
+
// BarOrientation Sets the orientation of the bars. With *v* (*h*), the value of the each bar spans along the vertical (horizontal).
type BarOrientation string
@@ -1571,7 +1758,7 @@ const (
BarOrientationH BarOrientation = "h"
)
-// BarTextposition 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.
+// BarTextposition 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.
type BarTextposition string
const (
@@ -1594,19 +1781,19 @@ var (
type BarXcalendar string
const (
- BarXcalendarGregorian BarXcalendar = "gregorian"
BarXcalendarChinese BarXcalendar = "chinese"
BarXcalendarCoptic BarXcalendar = "coptic"
BarXcalendarDiscworld BarXcalendar = "discworld"
BarXcalendarEthiopian BarXcalendar = "ethiopian"
+ BarXcalendarGregorian BarXcalendar = "gregorian"
BarXcalendarHebrew BarXcalendar = "hebrew"
BarXcalendarIslamic BarXcalendar = "islamic"
+ BarXcalendarJalali BarXcalendar = "jalali"
BarXcalendarJulian BarXcalendar = "julian"
BarXcalendarMayan BarXcalendar = "mayan"
BarXcalendarNanakshahi BarXcalendar = "nanakshahi"
BarXcalendarNepali BarXcalendar = "nepali"
BarXcalendarPersian BarXcalendar = "persian"
- BarXcalendarJalali BarXcalendar = "jalali"
BarXcalendarTaiwan BarXcalendar = "taiwan"
BarXcalendarThai BarXcalendar = "thai"
BarXcalendarUmmalqura BarXcalendar = "ummalqura"
@@ -1625,19 +1812,19 @@ const (
type BarYcalendar string
const (
- BarYcalendarGregorian BarYcalendar = "gregorian"
BarYcalendarChinese BarYcalendar = "chinese"
BarYcalendarCoptic BarYcalendar = "coptic"
BarYcalendarDiscworld BarYcalendar = "discworld"
BarYcalendarEthiopian BarYcalendar = "ethiopian"
+ BarYcalendarGregorian BarYcalendar = "gregorian"
BarYcalendarHebrew BarYcalendar = "hebrew"
BarYcalendarIslamic BarYcalendar = "islamic"
+ BarYcalendarJalali BarYcalendar = "jalali"
BarYcalendarJulian BarYcalendar = "julian"
BarYcalendarMayan BarYcalendar = "mayan"
BarYcalendarNanakshahi BarYcalendar = "nanakshahi"
BarYcalendarNepali BarYcalendar = "nepali"
BarYcalendarPersian BarYcalendar = "persian"
- BarYcalendarJalali BarYcalendar = "jalali"
BarYcalendarTaiwan BarYcalendar = "taiwan"
BarYcalendarThai BarYcalendar = "thai"
BarYcalendarUmmalqura BarYcalendar = "ummalqura"
diff --git a/graph_objects/barpolar_gen.go b/generated/v2.19.0/graph_objects/barpolar_gen.go
similarity index 70%
rename from graph_objects/barpolar_gen.go
rename to generated/v2.19.0/graph_objects/barpolar_gen.go
index 6cb23d0..6ffaa48 100644
--- a/graph_objects/barpolar_gen.go
+++ b/generated/v2.19.0/graph_objects/barpolar_gen.go
@@ -24,7 +24,7 @@ type Barpolar struct {
// Basesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for base .
+ // Sets the source reference on Chart Studio Cloud for `base`.
Basesrc String `json:"basesrc,omitempty"`
// Customdata
@@ -36,7 +36,7 @@ type Barpolar struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Dr
@@ -60,7 +60,7 @@ type Barpolar struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -70,13 +70,13 @@ type Barpolar struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -88,7 +88,7 @@ type Barpolar struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -100,7 +100,7 @@ type Barpolar struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Legendgroup
@@ -109,6 +109,22 @@ type Barpolar struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *BarpolarLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Marker
// role: Object
Marker *BarpolarMarker `json:"marker,omitempty"`
@@ -122,7 +138,7 @@ type Barpolar struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -140,7 +156,7 @@ type Barpolar struct {
// Offsetsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for offset .
+ // Sets the source reference on Chart Studio Cloud for `offset`.
Offsetsrc String `json:"offsetsrc,omitempty"`
// Opacity
@@ -164,7 +180,7 @@ type Barpolar struct {
// Rsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for r .
+ // Sets the source reference on Chart Studio Cloud for `r`.
Rsrc String `json:"rsrc,omitempty"`
// Selected
@@ -202,7 +218,7 @@ type Barpolar struct {
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
Textsrc String `json:"textsrc,omitempty"`
// Theta
@@ -220,7 +236,7 @@ type Barpolar struct {
// Thetasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for theta .
+ // Sets the source reference on Chart Studio Cloud for `theta`.
Thetasrc String `json:"thetasrc,omitempty"`
// Thetaunit
@@ -266,7 +282,7 @@ type Barpolar struct {
// Widthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for width .
+ // Sets the source reference on Chart Studio Cloud for `width`.
Widthsrc String `json:"widthsrc,omitempty"`
}
@@ -282,7 +298,7 @@ type BarpolarHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -294,7 +310,7 @@ type BarpolarHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -306,7 +322,7 @@ type BarpolarHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -322,7 +338,7 @@ type BarpolarHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -334,7 +350,7 @@ type BarpolarHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -346,7 +362,7 @@ type BarpolarHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -362,10 +378,46 @@ type BarpolarHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// BarpolarLegendgrouptitleFont Sets this legend group's title font.
+type BarpolarLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// BarpolarLegendgrouptitle
+type BarpolarLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *BarpolarLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// BarpolarMarkerColorbarTickfont Sets the color bar's tick label font
type BarpolarMarkerColorbarTickfont struct {
@@ -418,9 +470,9 @@ type BarpolarMarkerColorbarTitle struct {
Font *BarpolarMarkerColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side BarpolarMarkerColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -463,6 +515,12 @@ type BarpolarMarkerColorbar struct {
// 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.
Exponentformat BarpolarMarkerColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -487,6 +545,12 @@ type BarpolarMarkerColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation BarpolarMarkerColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -566,7 +630,7 @@ type BarpolarMarkerColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -575,12 +639,24 @@ type BarpolarMarkerColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition BarpolarMarkerColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -620,7 +696,7 @@ type BarpolarMarkerColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -632,7 +708,7 @@ type BarpolarMarkerColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -648,13 +724,13 @@ type BarpolarMarkerColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor BarpolarMarkerColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -666,13 +742,13 @@ type BarpolarMarkerColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor BarpolarMarkerColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -688,37 +764,37 @@ type BarpolarMarkerLine struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color`is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color` is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarker.linecolor. 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.
+ // 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"`
// Coloraxis
@@ -730,19 +806,19 @@ type BarpolarMarkerLine struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.line.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.line.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.line.color`is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.line.color` is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Width
@@ -754,47 +830,123 @@ type BarpolarMarkerLine struct {
// Widthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for width .
+ // Sets the source reference on Chart Studio Cloud for `width`.
Widthsrc String `json:"widthsrc,omitempty"`
}
+// BarpolarMarkerPattern Sets the pattern within the marker.
+type BarpolarMarkerPattern struct {
+
+ // Bgcolor
+ // 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"`
+
+ // Bgcolorsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
+ 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"`
+
+ // Fgcolorsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `fgcolor`.
+ Fgcolorsrc String `json:"fgcolorsrc,omitempty"`
+
+ // Fgopacity
+ // arrayOK: false
+ // type: number
+ // Sets the opacity of the foreground pattern fill. Defaults to a 0.5 when `fillmode` is *overlay*. Otherwise, defaults to 1.
+ Fgopacity float64 `json:"fgopacity,omitempty"`
+
+ // Fillmode
+ // 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
+ // 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"`
+
+ // Shapesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `shape`.
+ 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"`
+
+ // Sizesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `size`.
+ 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"`
+
+ // Soliditysrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `solidity`.
+ Soliditysrc String `json:"soliditysrc,omitempty"`
+}
+
// BarpolarMarker
type BarpolarMarker struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color` is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarkercolor. 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.
+ // 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"`
// Coloraxis
@@ -810,13 +962,13 @@ type BarpolarMarker struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Line
@@ -832,19 +984,23 @@ type BarpolarMarker struct {
// Opacitysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for opacity .
+ // Sets the source reference on Chart Studio Cloud for `opacity`.
Opacitysrc String `json:"opacitysrc,omitempty"`
+ // Pattern
+ // role: Object
+ Pattern *BarpolarMarkerPattern `json:"pattern,omitempty"`
+
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.color`is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.color` is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Showscale
// arrayOK: false
// type: boolean
- // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array.
+ // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color` is set to a numerical array.
Showscale Bool `json:"showscale,omitempty"`
}
@@ -957,7 +1113,7 @@ const (
BarpolarMarkerColorbarExponentformatE1 BarpolarMarkerColorbarExponentformat = "e"
BarpolarMarkerColorbarExponentformatE2 BarpolarMarkerColorbarExponentformat = "E"
BarpolarMarkerColorbarExponentformatPower BarpolarMarkerColorbarExponentformat = "power"
- BarpolarMarkerColorbarExponentformatSi BarpolarMarkerColorbarExponentformat = "SI"
+ BarpolarMarkerColorbarExponentformatSI BarpolarMarkerColorbarExponentformat = "SI"
BarpolarMarkerColorbarExponentformatB BarpolarMarkerColorbarExponentformat = "B"
)
@@ -969,6 +1125,14 @@ const (
BarpolarMarkerColorbarLenmodePixels BarpolarMarkerColorbarLenmode = "pixels"
)
+// BarpolarMarkerColorbarOrientation Sets the orientation of the colorbar.
+type BarpolarMarkerColorbarOrientation string
+
+const (
+ BarpolarMarkerColorbarOrientationH BarpolarMarkerColorbarOrientation = "h"
+ BarpolarMarkerColorbarOrientationV BarpolarMarkerColorbarOrientation = "v"
+)
+
// BarpolarMarkerColorbarShowexponent 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.
type BarpolarMarkerColorbarShowexponent string
@@ -1007,7 +1171,16 @@ const (
BarpolarMarkerColorbarThicknessmodePixels BarpolarMarkerColorbarThicknessmode = "pixels"
)
-// BarpolarMarkerColorbarTicklabelposition Determines where tick labels are drawn.
+// BarpolarMarkerColorbarTicklabeloverflow 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*.
+type BarpolarMarkerColorbarTicklabeloverflow string
+
+const (
+ BarpolarMarkerColorbarTicklabeloverflowAllow BarpolarMarkerColorbarTicklabeloverflow = "allow"
+ BarpolarMarkerColorbarTicklabeloverflowHidePastDiv BarpolarMarkerColorbarTicklabeloverflow = "hide past div"
+ BarpolarMarkerColorbarTicklabeloverflowHidePastDomain BarpolarMarkerColorbarTicklabeloverflow = "hide past domain"
+)
+
+// BarpolarMarkerColorbarTicklabelposition 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*.
type BarpolarMarkerColorbarTicklabelposition string
const (
@@ -1015,6 +1188,10 @@ const (
BarpolarMarkerColorbarTicklabelpositionInside BarpolarMarkerColorbarTicklabelposition = "inside"
BarpolarMarkerColorbarTicklabelpositionOutsideTop BarpolarMarkerColorbarTicklabelposition = "outside top"
BarpolarMarkerColorbarTicklabelpositionInsideTop BarpolarMarkerColorbarTicklabelposition = "inside top"
+ BarpolarMarkerColorbarTicklabelpositionOutsideLeft BarpolarMarkerColorbarTicklabelposition = "outside left"
+ BarpolarMarkerColorbarTicklabelpositionInsideLeft BarpolarMarkerColorbarTicklabelposition = "inside left"
+ BarpolarMarkerColorbarTicklabelpositionOutsideRight BarpolarMarkerColorbarTicklabelposition = "outside right"
+ BarpolarMarkerColorbarTicklabelpositionInsideRight BarpolarMarkerColorbarTicklabelposition = "inside right"
BarpolarMarkerColorbarTicklabelpositionOutsideBottom BarpolarMarkerColorbarTicklabelposition = "outside bottom"
BarpolarMarkerColorbarTicklabelpositionInsideBottom BarpolarMarkerColorbarTicklabelposition = "inside bottom"
)
@@ -1037,7 +1214,7 @@ const (
BarpolarMarkerColorbarTicksEmpty BarpolarMarkerColorbarTicks = ""
)
-// BarpolarMarkerColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// BarpolarMarkerColorbarTitleSide 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.
type BarpolarMarkerColorbarTitleSide string
const (
@@ -1046,7 +1223,7 @@ const (
BarpolarMarkerColorbarTitleSideBottom BarpolarMarkerColorbarTitleSide = "bottom"
)
-// BarpolarMarkerColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// BarpolarMarkerColorbarXanchor 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*.
type BarpolarMarkerColorbarXanchor string
const (
@@ -1055,7 +1232,7 @@ const (
BarpolarMarkerColorbarXanchorRight BarpolarMarkerColorbarXanchor = "right"
)
-// BarpolarMarkerColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// BarpolarMarkerColorbarYanchor 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*.
type BarpolarMarkerColorbarYanchor string
const (
@@ -1064,6 +1241,28 @@ const (
BarpolarMarkerColorbarYanchorBottom BarpolarMarkerColorbarYanchor = "bottom"
)
+// BarpolarMarkerPatternFillmode Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`.
+type BarpolarMarkerPatternFillmode string
+
+const (
+ BarpolarMarkerPatternFillmodeReplace BarpolarMarkerPatternFillmode = "replace"
+ BarpolarMarkerPatternFillmodeOverlay BarpolarMarkerPatternFillmode = "overlay"
+)
+
+// BarpolarMarkerPatternShape Sets the shape of the pattern fill. By default, no pattern is used for filling the area.
+type BarpolarMarkerPatternShape string
+
+const (
+ BarpolarMarkerPatternShapeEmpty BarpolarMarkerPatternShape = ""
+ BarpolarMarkerPatternShapeSlash BarpolarMarkerPatternShape = "/"
+ BarpolarMarkerPatternShapeDoublebackslash BarpolarMarkerPatternShape = "\\"
+ BarpolarMarkerPatternShapeX BarpolarMarkerPatternShape = "x"
+ BarpolarMarkerPatternShapeHyphenHyphen BarpolarMarkerPatternShape = "-"
+ BarpolarMarkerPatternShapeOr BarpolarMarkerPatternShape = "|"
+ BarpolarMarkerPatternShapePlus BarpolarMarkerPatternShape = "+"
+ BarpolarMarkerPatternShapeDot BarpolarMarkerPatternShape = "."
+)
+
// BarpolarThetaunit Sets the unit of input *theta* values. Has an effect only when on *linear* angular axes.
type BarpolarThetaunit string
diff --git a/graph_objects/box_gen.go b/generated/v2.19.0/graph_objects/box_gen.go
similarity index 88%
rename from graph_objects/box_gen.go
rename to generated/v2.19.0/graph_objects/box_gen.go
index 59eae61..dd134e5 100644
--- a/graph_objects/box_gen.go
+++ b/generated/v2.19.0/graph_objects/box_gen.go
@@ -42,7 +42,7 @@ type Box struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Dx
@@ -72,7 +72,7 @@ type Box struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -88,13 +88,13 @@ type Box struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -106,7 +106,7 @@ type Box struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -118,7 +118,7 @@ type Box struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Jitter
@@ -133,6 +133,22 @@ type Box struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *BoxLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Line
// role: Object
Line *BoxLine `json:"line,omitempty"`
@@ -146,7 +162,7 @@ type Box struct {
// Lowerfencesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for lowerfence .
+ // Sets the source reference on Chart Studio Cloud for `lowerfence`.
Lowerfencesrc String `json:"lowerfencesrc,omitempty"`
// Marker
@@ -162,7 +178,7 @@ type Box struct {
// Meansrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for mean .
+ // Sets the source reference on Chart Studio Cloud for `mean`.
Meansrc String `json:"meansrc,omitempty"`
// Median
@@ -174,7 +190,7 @@ type Box struct {
// Mediansrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for median .
+ // Sets the source reference on Chart Studio Cloud for `median`.
Mediansrc String `json:"mediansrc,omitempty"`
// Meta
@@ -186,7 +202,7 @@ type Box struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -210,7 +226,7 @@ type Box struct {
// Notchspansrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for notchspan .
+ // Sets the source reference on Chart Studio Cloud for `notchspan`.
Notchspansrc String `json:"notchspansrc,omitempty"`
// Notchwidth
@@ -252,7 +268,7 @@ type Box struct {
// Q1src
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for q1 .
+ // Sets the source reference on Chart Studio Cloud for `q1`.
Q1src String `json:"q1src,omitempty"`
// Q3
@@ -264,13 +280,13 @@ type Box struct {
// Q3src
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for q3 .
+ // Sets the source reference on Chart Studio Cloud for `q3`.
Q3src String `json:"q3src,omitempty"`
// Quartilemethod
// 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://www.amstat.org/publications/jse/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.
+ // 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.
Quartilemethod BoxQuartilemethod `json:"quartilemethod,omitempty"`
// Sd
@@ -282,7 +298,7 @@ type Box struct {
// Sdsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for sd .
+ // Sets the source reference on Chart Studio Cloud for `sd`.
Sdsrc String `json:"sdsrc,omitempty"`
// Selected
@@ -314,7 +330,7 @@ type Box struct {
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
Textsrc String `json:"textsrc,omitempty"`
// Transforms
@@ -348,7 +364,7 @@ type Box struct {
// Upperfencesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for upperfence .
+ // Sets the source reference on Chart Studio Cloud for `upperfence`.
Upperfencesrc String `json:"upperfencesrc,omitempty"`
// Visible
@@ -393,6 +409,12 @@ type Box struct {
// Sets the calendar system to use with `x` date data.
Xcalendar BoxXcalendar `json:"xcalendar,omitempty"`
+ // Xhoverformat
+ // 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"`
+
// Xperiod
// arrayOK: false
// type: any
@@ -414,7 +436,7 @@ type Box struct {
// Xsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for x .
+ // Sets the source reference on Chart Studio Cloud for `x`.
Xsrc String `json:"xsrc,omitempty"`
// Y
@@ -441,6 +463,12 @@ type Box struct {
// Sets the calendar system to use with `y` date data.
Ycalendar BoxYcalendar `json:"ycalendar,omitempty"`
+ // Yhoverformat
+ // 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"`
+
// Yperiod
// arrayOK: false
// type: any
@@ -462,7 +490,7 @@ type Box struct {
// Ysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for y .
+ // Sets the source reference on Chart Studio Cloud for `y`.
Ysrc String `json:"ysrc,omitempty"`
}
@@ -478,7 +506,7 @@ type BoxHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -490,7 +518,7 @@ type BoxHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -502,7 +530,7 @@ type BoxHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -518,7 +546,7 @@ type BoxHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -530,7 +558,7 @@ type BoxHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -542,7 +570,7 @@ type BoxHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -558,10 +586,46 @@ type BoxHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// BoxLegendgrouptitleFont Sets this legend group's title font.
+type BoxLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// BoxLegendgrouptitle
+type BoxLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *BoxLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// BoxLine
type BoxLine struct {
@@ -584,7 +648,7 @@ type BoxMarkerLine struct {
// Color
// arrayOK: false
// type: color
- // Sets themarker.linecolor. 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.
+ // 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"`
// Outliercolor
@@ -609,10 +673,16 @@ type BoxMarkerLine struct {
// BoxMarker
type BoxMarker struct {
+ // Angle
+ // arrayOK: false
+ // type: angle
+ // Sets the marker angle in respect to `angleref`.
+ Angle float64 `json:"angle,omitempty"`
+
// Color
// arrayOK: false
// type: color
- // Sets themarkercolor. 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.
+ // 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"`
// Line
@@ -1226,6 +1296,18 @@ var (
BoxMarkerSymbolNumber152 BoxMarkerSymbol = 152
BoxMarkerSymbol152 BoxMarkerSymbol = "152"
BoxMarkerSymbolArrowBarRightOpen BoxMarkerSymbol = "arrow-bar-right-open"
+ BoxMarkerSymbolNumber53 BoxMarkerSymbol = 53
+ BoxMarkerSymbol53 BoxMarkerSymbol = "53"
+ BoxMarkerSymbolArrow BoxMarkerSymbol = "arrow"
+ BoxMarkerSymbolNumber153 BoxMarkerSymbol = 153
+ BoxMarkerSymbol153 BoxMarkerSymbol = "153"
+ BoxMarkerSymbolArrowOpen BoxMarkerSymbol = "arrow-open"
+ BoxMarkerSymbolNumber54 BoxMarkerSymbol = 54
+ BoxMarkerSymbol54 BoxMarkerSymbol = "54"
+ BoxMarkerSymbolArrowWide BoxMarkerSymbol = "arrow-wide"
+ BoxMarkerSymbolNumber154 BoxMarkerSymbol = 154
+ BoxMarkerSymbol154 BoxMarkerSymbol = "154"
+ BoxMarkerSymbolArrowWideOpen BoxMarkerSymbol = "arrow-wide-open"
)
// BoxOrientation Sets the orientation of the box(es). If *v* (*h*), the distribution is visualized along the vertical (horizontal).
@@ -1236,7 +1318,7 @@ const (
BoxOrientationH BoxOrientation = "h"
)
-// BoxQuartilemethod 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://www.amstat.org/publications/jse/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.
+// BoxQuartilemethod 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.
type BoxQuartilemethod string
const (
@@ -1258,19 +1340,19 @@ var (
type BoxXcalendar string
const (
- BoxXcalendarGregorian BoxXcalendar = "gregorian"
BoxXcalendarChinese BoxXcalendar = "chinese"
BoxXcalendarCoptic BoxXcalendar = "coptic"
BoxXcalendarDiscworld BoxXcalendar = "discworld"
BoxXcalendarEthiopian BoxXcalendar = "ethiopian"
+ BoxXcalendarGregorian BoxXcalendar = "gregorian"
BoxXcalendarHebrew BoxXcalendar = "hebrew"
BoxXcalendarIslamic BoxXcalendar = "islamic"
+ BoxXcalendarJalali BoxXcalendar = "jalali"
BoxXcalendarJulian BoxXcalendar = "julian"
BoxXcalendarMayan BoxXcalendar = "mayan"
BoxXcalendarNanakshahi BoxXcalendar = "nanakshahi"
BoxXcalendarNepali BoxXcalendar = "nepali"
BoxXcalendarPersian BoxXcalendar = "persian"
- BoxXcalendarJalali BoxXcalendar = "jalali"
BoxXcalendarTaiwan BoxXcalendar = "taiwan"
BoxXcalendarThai BoxXcalendar = "thai"
BoxXcalendarUmmalqura BoxXcalendar = "ummalqura"
@@ -1289,19 +1371,19 @@ const (
type BoxYcalendar string
const (
- BoxYcalendarGregorian BoxYcalendar = "gregorian"
BoxYcalendarChinese BoxYcalendar = "chinese"
BoxYcalendarCoptic BoxYcalendar = "coptic"
BoxYcalendarDiscworld BoxYcalendar = "discworld"
BoxYcalendarEthiopian BoxYcalendar = "ethiopian"
+ BoxYcalendarGregorian BoxYcalendar = "gregorian"
BoxYcalendarHebrew BoxYcalendar = "hebrew"
BoxYcalendarIslamic BoxYcalendar = "islamic"
+ BoxYcalendarJalali BoxYcalendar = "jalali"
BoxYcalendarJulian BoxYcalendar = "julian"
BoxYcalendarMayan BoxYcalendar = "mayan"
BoxYcalendarNanakshahi BoxYcalendar = "nanakshahi"
BoxYcalendarNepali BoxYcalendar = "nepali"
BoxYcalendarPersian BoxYcalendar = "persian"
- BoxYcalendarJalali BoxYcalendar = "jalali"
BoxYcalendarTaiwan BoxYcalendar = "taiwan"
BoxYcalendarThai BoxYcalendar = "thai"
BoxYcalendarUmmalqura BoxYcalendar = "ummalqura"
diff --git a/graph_objects/candlestick_gen.go b/generated/v2.19.0/graph_objects/candlestick_gen.go
similarity index 79%
rename from graph_objects/candlestick_gen.go
rename to generated/v2.19.0/graph_objects/candlestick_gen.go
index 84e1d31..2436227 100644
--- a/graph_objects/candlestick_gen.go
+++ b/generated/v2.19.0/graph_objects/candlestick_gen.go
@@ -24,7 +24,7 @@ type Candlestick struct {
// Closesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for close .
+ // Sets the source reference on Chart Studio Cloud for `close`.
Closesrc String `json:"closesrc,omitempty"`
// Customdata
@@ -36,7 +36,7 @@ type Candlestick struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Decreasing
@@ -52,7 +52,7 @@ type Candlestick struct {
// Highsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for high .
+ // Sets the source reference on Chart Studio Cloud for `high`.
Highsrc String `json:"highsrc,omitempty"`
// Hoverinfo
@@ -64,7 +64,7 @@ type Candlestick struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -80,7 +80,7 @@ type Candlestick struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -92,7 +92,7 @@ type Candlestick struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Increasing
@@ -105,6 +105,22 @@ type Candlestick struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *CandlestickLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Line
// role: Object
Line *CandlestickLine `json:"line,omitempty"`
@@ -118,7 +134,7 @@ type Candlestick struct {
// Lowsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for low .
+ // Sets the source reference on Chart Studio Cloud for `low`.
Lowsrc String `json:"lowsrc,omitempty"`
// Meta
@@ -130,7 +146,7 @@ type Candlestick struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -154,7 +170,7 @@ type Candlestick struct {
// Opensrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for open .
+ // Sets the source reference on Chart Studio Cloud for `open`.
Opensrc String `json:"opensrc,omitempty"`
// Selectedpoints
@@ -182,7 +198,7 @@ type Candlestick struct {
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
Textsrc String `json:"textsrc,omitempty"`
// Transforms
@@ -233,6 +249,12 @@ type Candlestick struct {
// Sets the calendar system to use with `x` date data.
Xcalendar CandlestickXcalendar `json:"xcalendar,omitempty"`
+ // Xhoverformat
+ // 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"`
+
// Xperiod
// arrayOK: false
// type: any
@@ -254,7 +276,7 @@ type Candlestick struct {
// Xsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for x .
+ // Sets the source reference on Chart Studio Cloud for `x`.
Xsrc String `json:"xsrc,omitempty"`
// Yaxis
@@ -262,6 +284,12 @@ type Candlestick struct {
// type: subplotid
// Sets a reference between this trace's y coordinates and a 2D cartesian y axis. If *y* (the default value), the y coordinates refer to `layout.yaxis`. If *y2*, the y coordinates refer to `layout.yaxis2`, and so on.
Yaxis String `json:"yaxis,omitempty"`
+
+ // Yhoverformat
+ // 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"`
}
// CandlestickDecreasingLine
@@ -306,7 +334,7 @@ type CandlestickHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -318,7 +346,7 @@ type CandlestickHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -330,7 +358,7 @@ type CandlestickHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -346,7 +374,7 @@ type CandlestickHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -358,7 +386,7 @@ type CandlestickHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -370,7 +398,7 @@ type CandlestickHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -386,7 +414,7 @@ type CandlestickHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
// Split
@@ -426,6 +454,42 @@ type CandlestickIncreasing struct {
Line *CandlestickIncreasingLine `json:"line,omitempty"`
}
+// CandlestickLegendgrouptitleFont Sets this legend group's title font.
+type CandlestickLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// CandlestickLegendgrouptitle
+type CandlestickLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *CandlestickLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// CandlestickLine
type CandlestickLine struct {
@@ -474,19 +538,19 @@ var (
type CandlestickXcalendar string
const (
- CandlestickXcalendarGregorian CandlestickXcalendar = "gregorian"
CandlestickXcalendarChinese CandlestickXcalendar = "chinese"
CandlestickXcalendarCoptic CandlestickXcalendar = "coptic"
CandlestickXcalendarDiscworld CandlestickXcalendar = "discworld"
CandlestickXcalendarEthiopian CandlestickXcalendar = "ethiopian"
+ CandlestickXcalendarGregorian CandlestickXcalendar = "gregorian"
CandlestickXcalendarHebrew CandlestickXcalendar = "hebrew"
CandlestickXcalendarIslamic CandlestickXcalendar = "islamic"
+ CandlestickXcalendarJalali CandlestickXcalendar = "jalali"
CandlestickXcalendarJulian CandlestickXcalendar = "julian"
CandlestickXcalendarMayan CandlestickXcalendar = "mayan"
CandlestickXcalendarNanakshahi CandlestickXcalendar = "nanakshahi"
CandlestickXcalendarNepali CandlestickXcalendar = "nepali"
CandlestickXcalendarPersian CandlestickXcalendar = "persian"
- CandlestickXcalendarJalali CandlestickXcalendar = "jalali"
CandlestickXcalendarTaiwan CandlestickXcalendar = "taiwan"
CandlestickXcalendarThai CandlestickXcalendar = "thai"
CandlestickXcalendarUmmalqura CandlestickXcalendar = "ummalqura"
diff --git a/graph_objects/carpet_gen.go b/generated/v2.19.0/graph_objects/carpet_gen.go
similarity index 89%
rename from graph_objects/carpet_gen.go
rename to generated/v2.19.0/graph_objects/carpet_gen.go
index c770780..9a7e6ab 100644
--- a/graph_objects/carpet_gen.go
+++ b/generated/v2.19.0/graph_objects/carpet_gen.go
@@ -34,7 +34,7 @@ type Carpet struct {
// Asrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for a .
+ // Sets the source reference on Chart Studio Cloud for `a`.
Asrc String `json:"asrc,omitempty"`
// B
@@ -56,7 +56,7 @@ type Carpet struct {
// Bsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for b .
+ // Sets the source reference on Chart Studio Cloud for `b`.
Bsrc String `json:"bsrc,omitempty"`
// Carpet
@@ -86,7 +86,7 @@ type Carpet struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Da
@@ -114,9 +114,25 @@ type Carpet struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *CarpetLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Meta
// arrayOK: true
// type: any
@@ -126,7 +142,7 @@ type Carpet struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -178,7 +194,7 @@ type Carpet struct {
// Xsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for x .
+ // Sets the source reference on Chart Studio Cloud for `x`.
Xsrc String `json:"xsrc,omitempty"`
// Y
@@ -196,7 +212,7 @@ type Carpet struct {
// Ysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for y .
+ // Sets the source reference on Chart Studio Cloud for `y`.
Ysrc String `json:"ysrc,omitempty"`
}
@@ -300,7 +316,7 @@ type CarpetAaxis struct {
// Categoryarraysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for categoryarray .
+ // Sets the source reference on Chart Studio Cloud for `categoryarray`.
Categoryarraysrc String `json:"categoryarraysrc,omitempty"`
// Categoryorder
@@ -363,12 +379,24 @@ type CarpetAaxis struct {
// Sets the axis line color.
Gridcolor Color `json:"gridcolor,omitempty"`
+ // Griddash
+ // 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"`
+
// Gridwidth
// arrayOK: false
// type: number
// Sets the width (in px) of the axis line.
Gridwidth float64 `json:"gridwidth,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Labelpadding
// arrayOK: false
// type: integer
@@ -417,6 +445,12 @@ type CarpetAaxis struct {
// Sets the number of minor grid ticks per major grid tick
Minorgridcount int64 `json:"minorgridcount,omitempty"`
+ // Minorgriddash
+ // 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"`
+
// Minorgridwidth
// arrayOK: false
// type: number
@@ -526,7 +560,7 @@ type CarpetAaxis struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -562,7 +596,7 @@ type CarpetAaxis struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -574,7 +608,7 @@ type CarpetAaxis struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Title
@@ -688,7 +722,7 @@ type CarpetBaxis struct {
// Categoryarraysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for categoryarray .
+ // Sets the source reference on Chart Studio Cloud for `categoryarray`.
Categoryarraysrc String `json:"categoryarraysrc,omitempty"`
// Categoryorder
@@ -751,12 +785,24 @@ type CarpetBaxis struct {
// Sets the axis line color.
Gridcolor Color `json:"gridcolor,omitempty"`
+ // Griddash
+ // 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"`
+
// Gridwidth
// arrayOK: false
// type: number
// Sets the width (in px) of the axis line.
Gridwidth float64 `json:"gridwidth,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Labelpadding
// arrayOK: false
// type: integer
@@ -805,6 +851,12 @@ type CarpetBaxis struct {
// Sets the number of minor grid ticks per major grid tick
Minorgridcount int64 `json:"minorgridcount,omitempty"`
+ // Minorgriddash
+ // 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"`
+
// Minorgridwidth
// arrayOK: false
// type: number
@@ -914,7 +966,7 @@ type CarpetBaxis struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -950,7 +1002,7 @@ type CarpetBaxis struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -962,7 +1014,7 @@ type CarpetBaxis struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Title
@@ -998,6 +1050,42 @@ type CarpetFont struct {
Size float64 `json:"size,omitempty"`
}
+// CarpetLegendgrouptitleFont Sets this legend group's title font.
+type CarpetLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// CarpetLegendgrouptitle
+type CarpetLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *CarpetLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// CarpetStream
type CarpetStream struct {
@@ -1057,7 +1145,7 @@ const (
CarpetAaxisExponentformatE1 CarpetAaxisExponentformat = "e"
CarpetAaxisExponentformatE2 CarpetAaxisExponentformat = "E"
CarpetAaxisExponentformatPower CarpetAaxisExponentformat = "power"
- CarpetAaxisExponentformatSi CarpetAaxisExponentformat = "SI"
+ CarpetAaxisExponentformatSI CarpetAaxisExponentformat = "SI"
CarpetAaxisExponentformatB CarpetAaxisExponentformat = "B"
)
@@ -1171,7 +1259,7 @@ const (
CarpetBaxisExponentformatE1 CarpetBaxisExponentformat = "e"
CarpetBaxisExponentformatE2 CarpetBaxisExponentformat = "E"
CarpetBaxisExponentformatPower CarpetBaxisExponentformat = "power"
- CarpetBaxisExponentformatSi CarpetBaxisExponentformat = "SI"
+ CarpetBaxisExponentformatSI CarpetBaxisExponentformat = "SI"
CarpetBaxisExponentformatB CarpetBaxisExponentformat = "B"
)
diff --git a/graph_objects/choropleth_gen.go b/generated/v2.19.0/graph_objects/choropleth_gen.go
similarity index 78%
rename from graph_objects/choropleth_gen.go
rename to generated/v2.19.0/graph_objects/choropleth_gen.go
index 1e94a30..68e304c 100644
--- a/graph_objects/choropleth_gen.go
+++ b/generated/v2.19.0/graph_objects/choropleth_gen.go
@@ -18,7 +18,7 @@ type Choropleth struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Coloraxis
@@ -34,7 +34,7 @@ type Choropleth struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`zmin` and `zmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `zmin` and `zmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Customdata
@@ -46,7 +46,7 @@ type Choropleth struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Featureidkey
@@ -76,7 +76,7 @@ type Choropleth struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -86,13 +86,13 @@ type Choropleth struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -104,7 +104,7 @@ type Choropleth struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -116,7 +116,7 @@ type Choropleth struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Legendgroup
@@ -125,6 +125,22 @@ type Choropleth struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *ChoroplethLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Locationmode
// default: ISO-3
// type: enumerated
@@ -140,7 +156,7 @@ type Choropleth struct {
// Locationssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for locations .
+ // Sets the source reference on Chart Studio Cloud for `locations`.
Locationssrc String `json:"locationssrc,omitempty"`
// Marker
@@ -156,7 +172,7 @@ type Choropleth struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -206,7 +222,7 @@ type Choropleth struct {
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
Textsrc String `json:"textsrc,omitempty"`
// Transforms
@@ -246,7 +262,7 @@ type Choropleth struct {
// Zauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user.
Zauto Bool `json:"zauto,omitempty"`
// Zmax
@@ -270,7 +286,7 @@ type Choropleth struct {
// Zsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for z .
+ // Sets the source reference on Chart Studio Cloud for `z`.
Zsrc String `json:"zsrc,omitempty"`
}
@@ -326,9 +342,9 @@ type ChoroplethColorbarTitle struct {
Font *ChoroplethColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side ChoroplethColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -371,6 +387,12 @@ type ChoroplethColorbar struct {
// 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.
Exponentformat ChoroplethColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -395,6 +417,12 @@ type ChoroplethColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation ChoroplethColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -474,7 +502,7 @@ type ChoroplethColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -483,12 +511,24 @@ type ChoroplethColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition ChoroplethColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -528,7 +568,7 @@ type ChoroplethColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -540,7 +580,7 @@ type ChoroplethColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -556,13 +596,13 @@ type ChoroplethColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor ChoroplethColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -574,13 +614,13 @@ type ChoroplethColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor ChoroplethColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -602,7 +642,7 @@ type ChoroplethHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -614,7 +654,7 @@ type ChoroplethHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -626,7 +666,7 @@ type ChoroplethHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -642,7 +682,7 @@ type ChoroplethHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -654,7 +694,7 @@ type ChoroplethHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -666,7 +706,7 @@ type ChoroplethHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -682,23 +722,59 @@ type ChoroplethHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// ChoroplethLegendgrouptitleFont Sets this legend group's title font.
+type ChoroplethLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// ChoroplethLegendgrouptitle
+type ChoroplethLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *ChoroplethLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// ChoroplethMarkerLine
type ChoroplethMarkerLine struct {
// Color
// arrayOK: true
// type: color
- // Sets themarker.linecolor. 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.
+ // 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"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Width
@@ -710,7 +786,7 @@ type ChoroplethMarkerLine struct {
// Widthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for width .
+ // Sets the source reference on Chart Studio Cloud for `width`.
Widthsrc String `json:"widthsrc,omitempty"`
}
@@ -730,7 +806,7 @@ type ChoroplethMarker struct {
// Opacitysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for opacity .
+ // Sets the source reference on Chart Studio Cloud for `opacity`.
Opacitysrc String `json:"opacitysrc,omitempty"`
}
@@ -794,7 +870,7 @@ const (
ChoroplethColorbarExponentformatE1 ChoroplethColorbarExponentformat = "e"
ChoroplethColorbarExponentformatE2 ChoroplethColorbarExponentformat = "E"
ChoroplethColorbarExponentformatPower ChoroplethColorbarExponentformat = "power"
- ChoroplethColorbarExponentformatSi ChoroplethColorbarExponentformat = "SI"
+ ChoroplethColorbarExponentformatSI ChoroplethColorbarExponentformat = "SI"
ChoroplethColorbarExponentformatB ChoroplethColorbarExponentformat = "B"
)
@@ -806,6 +882,14 @@ const (
ChoroplethColorbarLenmodePixels ChoroplethColorbarLenmode = "pixels"
)
+// ChoroplethColorbarOrientation Sets the orientation of the colorbar.
+type ChoroplethColorbarOrientation string
+
+const (
+ ChoroplethColorbarOrientationH ChoroplethColorbarOrientation = "h"
+ ChoroplethColorbarOrientationV ChoroplethColorbarOrientation = "v"
+)
+
// ChoroplethColorbarShowexponent 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.
type ChoroplethColorbarShowexponent string
@@ -844,7 +928,16 @@ const (
ChoroplethColorbarThicknessmodePixels ChoroplethColorbarThicknessmode = "pixels"
)
-// ChoroplethColorbarTicklabelposition Determines where tick labels are drawn.
+// ChoroplethColorbarTicklabeloverflow 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*.
+type ChoroplethColorbarTicklabeloverflow string
+
+const (
+ ChoroplethColorbarTicklabeloverflowAllow ChoroplethColorbarTicklabeloverflow = "allow"
+ ChoroplethColorbarTicklabeloverflowHidePastDiv ChoroplethColorbarTicklabeloverflow = "hide past div"
+ ChoroplethColorbarTicklabeloverflowHidePastDomain ChoroplethColorbarTicklabeloverflow = "hide past domain"
+)
+
+// ChoroplethColorbarTicklabelposition 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*.
type ChoroplethColorbarTicklabelposition string
const (
@@ -852,6 +945,10 @@ const (
ChoroplethColorbarTicklabelpositionInside ChoroplethColorbarTicklabelposition = "inside"
ChoroplethColorbarTicklabelpositionOutsideTop ChoroplethColorbarTicklabelposition = "outside top"
ChoroplethColorbarTicklabelpositionInsideTop ChoroplethColorbarTicklabelposition = "inside top"
+ ChoroplethColorbarTicklabelpositionOutsideLeft ChoroplethColorbarTicklabelposition = "outside left"
+ ChoroplethColorbarTicklabelpositionInsideLeft ChoroplethColorbarTicklabelposition = "inside left"
+ ChoroplethColorbarTicklabelpositionOutsideRight ChoroplethColorbarTicklabelposition = "outside right"
+ ChoroplethColorbarTicklabelpositionInsideRight ChoroplethColorbarTicklabelposition = "inside right"
ChoroplethColorbarTicklabelpositionOutsideBottom ChoroplethColorbarTicklabelposition = "outside bottom"
ChoroplethColorbarTicklabelpositionInsideBottom ChoroplethColorbarTicklabelposition = "inside bottom"
)
@@ -874,7 +971,7 @@ const (
ChoroplethColorbarTicksEmpty ChoroplethColorbarTicks = ""
)
-// ChoroplethColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// ChoroplethColorbarTitleSide 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.
type ChoroplethColorbarTitleSide string
const (
@@ -883,7 +980,7 @@ const (
ChoroplethColorbarTitleSideBottom ChoroplethColorbarTitleSide = "bottom"
)
-// ChoroplethColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// ChoroplethColorbarXanchor 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*.
type ChoroplethColorbarXanchor string
const (
@@ -892,7 +989,7 @@ const (
ChoroplethColorbarXanchorRight ChoroplethColorbarXanchor = "right"
)
-// ChoroplethColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// ChoroplethColorbarYanchor 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*.
type ChoroplethColorbarYanchor string
const (
@@ -914,8 +1011,8 @@ const (
type ChoroplethLocationmode string
const (
- ChoroplethLocationmodeIso3 ChoroplethLocationmode = "ISO-3"
- ChoroplethLocationmodeUsaStates ChoroplethLocationmode = "USA-states"
+ ChoroplethLocationmodeISO3 ChoroplethLocationmode = "ISO-3"
+ ChoroplethLocationmodeUSAStates ChoroplethLocationmode = "USA-states"
ChoroplethLocationmodeCountryNames ChoroplethLocationmode = "country names"
ChoroplethLocationmodeGeojsonId ChoroplethLocationmode = "geojson-id"
)
diff --git a/graph_objects/choroplethmapbox_gen.go b/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go
similarity index 78%
rename from graph_objects/choroplethmapbox_gen.go
rename to generated/v2.19.0/graph_objects/choroplethmapbox_gen.go
index 0340e8c..0e82db1 100644
--- a/graph_objects/choroplethmapbox_gen.go
+++ b/generated/v2.19.0/graph_objects/choroplethmapbox_gen.go
@@ -18,7 +18,7 @@ type Choroplethmapbox struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Below
@@ -40,7 +40,7 @@ type Choroplethmapbox struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`zmin` and `zmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `zmin` and `zmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Customdata
@@ -52,7 +52,7 @@ type Choroplethmapbox struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Featureidkey
@@ -76,7 +76,7 @@ type Choroplethmapbox struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -86,13 +86,13 @@ type Choroplethmapbox struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -104,7 +104,7 @@ type Choroplethmapbox struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -116,7 +116,7 @@ type Choroplethmapbox struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Legendgroup
@@ -125,6 +125,22 @@ type Choroplethmapbox struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *ChoroplethmapboxLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Locations
// arrayOK: false
// type: data_array
@@ -134,7 +150,7 @@ type Choroplethmapbox struct {
// Locationssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for locations .
+ // Sets the source reference on Chart Studio Cloud for `locations`.
Locationssrc String `json:"locationssrc,omitempty"`
// Marker
@@ -150,7 +166,7 @@ type Choroplethmapbox struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -206,7 +222,7 @@ type Choroplethmapbox struct {
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
Textsrc String `json:"textsrc,omitempty"`
// Transforms
@@ -246,7 +262,7 @@ type Choroplethmapbox struct {
// Zauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user.
Zauto Bool `json:"zauto,omitempty"`
// Zmax
@@ -270,7 +286,7 @@ type Choroplethmapbox struct {
// Zsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for z .
+ // Sets the source reference on Chart Studio Cloud for `z`.
Zsrc String `json:"zsrc,omitempty"`
}
@@ -326,9 +342,9 @@ type ChoroplethmapboxColorbarTitle struct {
Font *ChoroplethmapboxColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side ChoroplethmapboxColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -371,6 +387,12 @@ type ChoroplethmapboxColorbar struct {
// 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.
Exponentformat ChoroplethmapboxColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -395,6 +417,12 @@ type ChoroplethmapboxColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation ChoroplethmapboxColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -474,7 +502,7 @@ type ChoroplethmapboxColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -483,12 +511,24 @@ type ChoroplethmapboxColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition ChoroplethmapboxColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -528,7 +568,7 @@ type ChoroplethmapboxColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -540,7 +580,7 @@ type ChoroplethmapboxColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -556,13 +596,13 @@ type ChoroplethmapboxColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor ChoroplethmapboxColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -574,13 +614,13 @@ type ChoroplethmapboxColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor ChoroplethmapboxColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -602,7 +642,7 @@ type ChoroplethmapboxHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -614,7 +654,7 @@ type ChoroplethmapboxHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -626,7 +666,7 @@ type ChoroplethmapboxHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -642,7 +682,7 @@ type ChoroplethmapboxHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -654,7 +694,7 @@ type ChoroplethmapboxHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -666,7 +706,7 @@ type ChoroplethmapboxHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -682,23 +722,59 @@ type ChoroplethmapboxHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// ChoroplethmapboxLegendgrouptitleFont Sets this legend group's title font.
+type ChoroplethmapboxLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// ChoroplethmapboxLegendgrouptitle
+type ChoroplethmapboxLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *ChoroplethmapboxLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// ChoroplethmapboxMarkerLine
type ChoroplethmapboxMarkerLine struct {
// Color
// arrayOK: true
// type: color
- // Sets themarker.linecolor. 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.
+ // 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"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Width
@@ -710,7 +786,7 @@ type ChoroplethmapboxMarkerLine struct {
// Widthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for width .
+ // Sets the source reference on Chart Studio Cloud for `width`.
Widthsrc String `json:"widthsrc,omitempty"`
}
@@ -730,7 +806,7 @@ type ChoroplethmapboxMarker struct {
// Opacitysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for opacity .
+ // Sets the source reference on Chart Studio Cloud for `opacity`.
Opacitysrc String `json:"opacitysrc,omitempty"`
}
@@ -794,7 +870,7 @@ const (
ChoroplethmapboxColorbarExponentformatE1 ChoroplethmapboxColorbarExponentformat = "e"
ChoroplethmapboxColorbarExponentformatE2 ChoroplethmapboxColorbarExponentformat = "E"
ChoroplethmapboxColorbarExponentformatPower ChoroplethmapboxColorbarExponentformat = "power"
- ChoroplethmapboxColorbarExponentformatSi ChoroplethmapboxColorbarExponentformat = "SI"
+ ChoroplethmapboxColorbarExponentformatSI ChoroplethmapboxColorbarExponentformat = "SI"
ChoroplethmapboxColorbarExponentformatB ChoroplethmapboxColorbarExponentformat = "B"
)
@@ -806,6 +882,14 @@ const (
ChoroplethmapboxColorbarLenmodePixels ChoroplethmapboxColorbarLenmode = "pixels"
)
+// ChoroplethmapboxColorbarOrientation Sets the orientation of the colorbar.
+type ChoroplethmapboxColorbarOrientation string
+
+const (
+ ChoroplethmapboxColorbarOrientationH ChoroplethmapboxColorbarOrientation = "h"
+ ChoroplethmapboxColorbarOrientationV ChoroplethmapboxColorbarOrientation = "v"
+)
+
// ChoroplethmapboxColorbarShowexponent 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.
type ChoroplethmapboxColorbarShowexponent string
@@ -844,7 +928,16 @@ const (
ChoroplethmapboxColorbarThicknessmodePixels ChoroplethmapboxColorbarThicknessmode = "pixels"
)
-// ChoroplethmapboxColorbarTicklabelposition Determines where tick labels are drawn.
+// ChoroplethmapboxColorbarTicklabeloverflow 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*.
+type ChoroplethmapboxColorbarTicklabeloverflow string
+
+const (
+ ChoroplethmapboxColorbarTicklabeloverflowAllow ChoroplethmapboxColorbarTicklabeloverflow = "allow"
+ ChoroplethmapboxColorbarTicklabeloverflowHidePastDiv ChoroplethmapboxColorbarTicklabeloverflow = "hide past div"
+ ChoroplethmapboxColorbarTicklabeloverflowHidePastDomain ChoroplethmapboxColorbarTicklabeloverflow = "hide past domain"
+)
+
+// ChoroplethmapboxColorbarTicklabelposition 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*.
type ChoroplethmapboxColorbarTicklabelposition string
const (
@@ -852,6 +945,10 @@ const (
ChoroplethmapboxColorbarTicklabelpositionInside ChoroplethmapboxColorbarTicklabelposition = "inside"
ChoroplethmapboxColorbarTicklabelpositionOutsideTop ChoroplethmapboxColorbarTicklabelposition = "outside top"
ChoroplethmapboxColorbarTicklabelpositionInsideTop ChoroplethmapboxColorbarTicklabelposition = "inside top"
+ ChoroplethmapboxColorbarTicklabelpositionOutsideLeft ChoroplethmapboxColorbarTicklabelposition = "outside left"
+ ChoroplethmapboxColorbarTicklabelpositionInsideLeft ChoroplethmapboxColorbarTicklabelposition = "inside left"
+ ChoroplethmapboxColorbarTicklabelpositionOutsideRight ChoroplethmapboxColorbarTicklabelposition = "outside right"
+ ChoroplethmapboxColorbarTicklabelpositionInsideRight ChoroplethmapboxColorbarTicklabelposition = "inside right"
ChoroplethmapboxColorbarTicklabelpositionOutsideBottom ChoroplethmapboxColorbarTicklabelposition = "outside bottom"
ChoroplethmapboxColorbarTicklabelpositionInsideBottom ChoroplethmapboxColorbarTicklabelposition = "inside bottom"
)
@@ -874,7 +971,7 @@ const (
ChoroplethmapboxColorbarTicksEmpty ChoroplethmapboxColorbarTicks = ""
)
-// ChoroplethmapboxColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// ChoroplethmapboxColorbarTitleSide 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.
type ChoroplethmapboxColorbarTitleSide string
const (
@@ -883,7 +980,7 @@ const (
ChoroplethmapboxColorbarTitleSideBottom ChoroplethmapboxColorbarTitleSide = "bottom"
)
-// ChoroplethmapboxColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// ChoroplethmapboxColorbarXanchor 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*.
type ChoroplethmapboxColorbarXanchor string
const (
@@ -892,7 +989,7 @@ const (
ChoroplethmapboxColorbarXanchorRight ChoroplethmapboxColorbarXanchor = "right"
)
-// ChoroplethmapboxColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// ChoroplethmapboxColorbarYanchor 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*.
type ChoroplethmapboxColorbarYanchor string
const (
diff --git a/graph_objects/cone_gen.go b/generated/v2.19.0/graph_objects/cone_gen.go
similarity index 74%
rename from graph_objects/cone_gen.go
rename to generated/v2.19.0/graph_objects/cone_gen.go
index 5d131d7..36ce302 100644
--- a/graph_objects/cone_gen.go
+++ b/generated/v2.19.0/graph_objects/cone_gen.go
@@ -24,13 +24,13 @@ type Cone struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here u/v/w norm) or the bounds set in `cmin` and `cmax` Defaults to `false` when `cmin` and `cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here u/v/w norm) or the bounds set in `cmin` and `cmax` Defaults to `false` when `cmin` and `cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
@@ -64,7 +64,7 @@ type Cone struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`cmin` and `cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `cmin` and `cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Customdata
@@ -76,7 +76,7 @@ type Cone struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Hoverinfo
@@ -88,7 +88,7 @@ type Cone struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -98,13 +98,13 @@ type Cone struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -116,7 +116,7 @@ type Cone struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -128,7 +128,7 @@ type Cone struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Legendgroup
@@ -137,6 +137,22 @@ type Cone struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *ConeLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Lighting
// role: Object
Lighting *ConeLighting `json:"lighting,omitempty"`
@@ -154,7 +170,7 @@ type Cone struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -218,7 +234,7 @@ type Cone struct {
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
Textsrc String `json:"textsrc,omitempty"`
// U
@@ -227,6 +243,12 @@ type Cone struct {
// Sets the x components of the vector field.
U interface{} `json:"u,omitempty"`
+ // Uhoverformat
+ // 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"`
+
// Uid
// arrayOK: false
// type: string
@@ -242,7 +264,7 @@ type Cone struct {
// Usrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for u .
+ // Sets the source reference on Chart Studio Cloud for `u`.
Usrc String `json:"usrc,omitempty"`
// V
@@ -251,6 +273,12 @@ type Cone struct {
// Sets the y components of the vector field.
V interface{} `json:"v,omitempty"`
+ // Vhoverformat
+ // 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"`
+
// Visible
// default: %!s(bool=true)
// type: enumerated
@@ -260,7 +288,7 @@ type Cone struct {
// Vsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for v .
+ // Sets the source reference on Chart Studio Cloud for `v`.
Vsrc String `json:"vsrc,omitempty"`
// W
@@ -269,10 +297,16 @@ type Cone struct {
// Sets the z components of the vector field.
W interface{} `json:"w,omitempty"`
+ // Whoverformat
+ // 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"`
+
// Wsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for w .
+ // Sets the source reference on Chart Studio Cloud for `w`.
Wsrc String `json:"wsrc,omitempty"`
// X
@@ -281,10 +315,16 @@ type Cone struct {
// Sets the x coordinates of the vector field and of the displayed cones.
X interface{} `json:"x,omitempty"`
+ // Xhoverformat
+ // 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"`
+
// Xsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for x .
+ // Sets the source reference on Chart Studio Cloud for `x`.
Xsrc String `json:"xsrc,omitempty"`
// Y
@@ -293,10 +333,16 @@ type Cone struct {
// Sets the y coordinates of the vector field and of the displayed cones.
Y interface{} `json:"y,omitempty"`
+ // Yhoverformat
+ // 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"`
+
// Ysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for y .
+ // Sets the source reference on Chart Studio Cloud for `y`.
Ysrc String `json:"ysrc,omitempty"`
// Z
@@ -305,10 +351,16 @@ type Cone struct {
// Sets the z coordinates of the vector field and of the displayed cones.
Z interface{} `json:"z,omitempty"`
+ // Zhoverformat
+ // 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"`
+
// Zsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for z .
+ // Sets the source reference on Chart Studio Cloud for `z`.
Zsrc String `json:"zsrc,omitempty"`
}
@@ -364,9 +416,9 @@ type ConeColorbarTitle struct {
Font *ConeColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side ConeColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -409,6 +461,12 @@ type ConeColorbar struct {
// 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.
Exponentformat ConeColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -433,6 +491,12 @@ type ConeColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation ConeColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -512,7 +576,7 @@ type ConeColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -521,12 +585,24 @@ type ConeColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition ConeColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -566,7 +642,7 @@ type ConeColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -578,7 +654,7 @@ type ConeColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -594,13 +670,13 @@ type ConeColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor ConeColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -612,13 +688,13 @@ type ConeColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor ConeColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -640,7 +716,7 @@ type ConeHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -652,7 +728,7 @@ type ConeHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -664,7 +740,7 @@ type ConeHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -680,7 +756,7 @@ type ConeHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -692,7 +768,7 @@ type ConeHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -704,7 +780,7 @@ type ConeHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -720,10 +796,46 @@ type ConeHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// ConeLegendgrouptitleFont Sets this legend group's title font.
+type ConeLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// ConeLegendgrouptitle
+type ConeLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *ConeLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// ConeLighting
type ConeLighting struct {
@@ -826,7 +938,7 @@ const (
ConeColorbarExponentformatE1 ConeColorbarExponentformat = "e"
ConeColorbarExponentformatE2 ConeColorbarExponentformat = "E"
ConeColorbarExponentformatPower ConeColorbarExponentformat = "power"
- ConeColorbarExponentformatSi ConeColorbarExponentformat = "SI"
+ ConeColorbarExponentformatSI ConeColorbarExponentformat = "SI"
ConeColorbarExponentformatB ConeColorbarExponentformat = "B"
)
@@ -838,6 +950,14 @@ const (
ConeColorbarLenmodePixels ConeColorbarLenmode = "pixels"
)
+// ConeColorbarOrientation Sets the orientation of the colorbar.
+type ConeColorbarOrientation string
+
+const (
+ ConeColorbarOrientationH ConeColorbarOrientation = "h"
+ ConeColorbarOrientationV ConeColorbarOrientation = "v"
+)
+
// ConeColorbarShowexponent 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.
type ConeColorbarShowexponent string
@@ -876,7 +996,16 @@ const (
ConeColorbarThicknessmodePixels ConeColorbarThicknessmode = "pixels"
)
-// ConeColorbarTicklabelposition Determines where tick labels are drawn.
+// ConeColorbarTicklabeloverflow 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*.
+type ConeColorbarTicklabeloverflow string
+
+const (
+ ConeColorbarTicklabeloverflowAllow ConeColorbarTicklabeloverflow = "allow"
+ ConeColorbarTicklabeloverflowHidePastDiv ConeColorbarTicklabeloverflow = "hide past div"
+ ConeColorbarTicklabeloverflowHidePastDomain ConeColorbarTicklabeloverflow = "hide past domain"
+)
+
+// ConeColorbarTicklabelposition 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*.
type ConeColorbarTicklabelposition string
const (
@@ -884,6 +1013,10 @@ const (
ConeColorbarTicklabelpositionInside ConeColorbarTicklabelposition = "inside"
ConeColorbarTicklabelpositionOutsideTop ConeColorbarTicklabelposition = "outside top"
ConeColorbarTicklabelpositionInsideTop ConeColorbarTicklabelposition = "inside top"
+ ConeColorbarTicklabelpositionOutsideLeft ConeColorbarTicklabelposition = "outside left"
+ ConeColorbarTicklabelpositionInsideLeft ConeColorbarTicklabelposition = "inside left"
+ ConeColorbarTicklabelpositionOutsideRight ConeColorbarTicklabelposition = "outside right"
+ ConeColorbarTicklabelpositionInsideRight ConeColorbarTicklabelposition = "inside right"
ConeColorbarTicklabelpositionOutsideBottom ConeColorbarTicklabelposition = "outside bottom"
ConeColorbarTicklabelpositionInsideBottom ConeColorbarTicklabelposition = "inside bottom"
)
@@ -906,7 +1039,7 @@ const (
ConeColorbarTicksEmpty ConeColorbarTicks = ""
)
-// ConeColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// ConeColorbarTitleSide 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.
type ConeColorbarTitleSide string
const (
@@ -915,7 +1048,7 @@ const (
ConeColorbarTitleSideBottom ConeColorbarTitleSide = "bottom"
)
-// ConeColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// ConeColorbarXanchor 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*.
type ConeColorbarXanchor string
const (
@@ -924,7 +1057,7 @@ const (
ConeColorbarXanchorRight ConeColorbarXanchor = "right"
)
-// ConeColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// ConeColorbarYanchor 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*.
type ConeColorbarYanchor string
const (
diff --git a/graph_objects/config_gen.go b/generated/v2.19.0/graph_objects/config_gen.go
similarity index 69%
rename from graph_objects/config_gen.go
rename to generated/v2.19.0/graph_objects/config_gen.go
index 172fa68..4f14501 100644
--- a/graph_objects/config_gen.go
+++ b/generated/v2.19.0/graph_objects/config_gen.go
@@ -9,11 +9,11 @@ type Config struct {
// Determines whether the graphs are plotted with respect to layout.autosize:true and infer its container size.
Autosizable Bool `json:"autosizable,omitempty"`
- // Displaymodebar
+ // DisplayModeBar
// 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.
- Displaymodebar ConfigDisplaymodebar `json:"displayModeBar,omitempty"`
+ DisplayModeBar ConfigDisplayModeBar `json:"displayModeBar,omitempty"`
// Displaylogo
// arrayOK: false
@@ -21,17 +21,23 @@ type Config struct {
// Determines whether or not the plotly logo is displayed on the end of the mode bar.
Displaylogo Bool `json:"displaylogo,omitempty"`
- // Doubleclick
+ // DoubleClick
// 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.
- Doubleclick ConfigDoubleclick `json:"doubleClick,omitempty"`
+ DoubleClick ConfigDoubleClick `json:"doubleClick,omitempty"`
- // Doubleclickdelay
+ // DoubleClickDelay
// arrayOK: false
// type: number
// Sets the delay for registering a double-click in ms. This is the time interval (in ms) between first mousedown and 2nd mouseup to constitute a double-click. This setting propagates to all on-subplot double clicks (except for geo and mapbox) and on-legend double clicks.
- Doubleclickdelay float64 `json:"doubleClickDelay,omitempty"`
+ DoubleClickDelay float64 `json:"doubleClickDelay,omitempty"`
+
+ // EditSelection
+ // arrayOK: false
+ // type: boolean
+ // Enables moving selections.
+ EditSelection Bool `json:"editSelection,omitempty"`
// Editable
// arrayOK: false
@@ -43,29 +49,29 @@ type Config struct {
// role: Object
Edits *ConfigEdits `json:"edits,omitempty"`
- // Fillframe
+ // FillFrame
// arrayOK: false
// type: boolean
// When `layout.autosize` is turned on, determines whether the graph fills the container (the default) or the screen (if set to *true*).
- Fillframe Bool `json:"fillFrame,omitempty"`
+ FillFrame Bool `json:"fillFrame,omitempty"`
- // Framemargins
+ // FrameMargins
// arrayOK: false
// type: number
// When `layout.autosize` is turned on, set the frame margins in fraction of the graph size.
- Framemargins float64 `json:"frameMargins,omitempty"`
+ FrameMargins float64 `json:"frameMargins,omitempty"`
- // Globaltransforms
+ // GlobalTransforms
// arrayOK: false
// type: any
// Set global transform to be applied to all traces with no specification needed
- Globaltransforms interface{} `json:"globalTransforms,omitempty"`
+ GlobalTransforms interface{} `json:"globalTransforms,omitempty"`
- // Linktext
+ // LinkText
// 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
@@ -85,137 +91,143 @@ type Config struct {
// Turn all console logging on or off (errors will be thrown) This should ONLY be set via Plotly.setPlotConfig Available levels: 0: no logs 1: warnings and errors, but not informational messages 2: verbose logs
Logging int64 `json:"logging,omitempty"`
- // Mapboxaccesstoken
+ // MapboxAccessToken
// 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
+ // ModeBarButtons
// arrayOK: false
// type: any
// Define fully custom mode bar buttons as nested array, where the outer arrays represents button groups, and the inner arrays have buttons config objects or names of default buttons See ./components/modebar/buttons.js for more info.
- Modebarbuttons interface{} `json:"modeBarButtons,omitempty"`
+ ModeBarButtons interface{} `json:"modeBarButtons,omitempty"`
- // Modebarbuttonstoadd
+ // ModeBarButtonsToAdd
// arrayOK: false
// type: any
- // Add mode bar button using config objects See ./components/modebar/buttons.js for list of arguments.
- Modebarbuttonstoadd interface{} `json:"modeBarButtonsToAdd,omitempty"`
+ // Add mode bar button using config objects See ./components/modebar/buttons.js for list of arguments. To enable predefined modebar buttons e.g. shape drawing, hover and spikelines, simply provide their string name(s). This could include: *v1hovermode*, *hoverclosest*, *hovercompare*, *togglehover*, *togglespikelines*, *drawline*, *drawopenpath*, *drawclosedpath*, *drawcircle*, *drawrect* and *eraseshape*. Please note that these predefined buttons will only be shown if they are compatible with all trace types used in a graph.
+ ModeBarButtonsToAdd interface{} `json:"modeBarButtonsToAdd,omitempty"`
- // Modebarbuttonstoremove
+ // ModeBarButtonsToRemove
// arrayOK: false
// type: any
// Remove mode bar buttons by name. See ./components/modebar/buttons.js for the list of names.
- Modebarbuttonstoremove interface{} `json:"modeBarButtonsToRemove,omitempty"`
+ ModeBarButtonsToRemove interface{} `json:"modeBarButtonsToRemove,omitempty"`
- // Notifyonlogging
+ // NotifyOnLogging
// arrayOK: false
// type: integer
// Set on-graph logging (notifier) level This should ONLY be set via Plotly.setPlotConfig Available levels: 0: no on-graph logs 1: warnings and errors, but not informational messages 2: verbose logs
- Notifyonlogging int64 `json:"notifyOnLogging,omitempty"`
+ NotifyOnLogging int64 `json:"notifyOnLogging,omitempty"`
- // Plotglpixelratio
+ // PlotGlPixelRatio
// arrayOK: false
// type: number
// Set the pixel ratio during WebGL image export. This config option was formerly named `plot3dPixelRatio` which is now deprecated.
- Plotglpixelratio float64 `json:"plotGlPixelRatio,omitempty"`
+ PlotGlPixelRatio float64 `json:"plotGlPixelRatio,omitempty"`
- // Plotlyserverurl
+ // PlotlyServerURL
// 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
+ // QueueLength
// arrayOK: false
// type: integer
// Sets the length of the undo/redo queue.
- Queuelength int64 `json:"queueLength,omitempty"`
+ QueueLength int64 `json:"queueLength,omitempty"`
// Responsive
// arrayOK: false
// type: boolean
- // Determines whether to change the layout size when window is resized. In v2, this option will be removed and will always be true.
+ // Determines whether to change the layout size when window is resized. In v3, this option will be removed and will always be true.
Responsive Bool `json:"responsive,omitempty"`
- // Scrollzoom
+ // ScrollZoom
// 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.
- Scrollzoom ConfigScrollzoom `json:"scrollZoom,omitempty"`
+ ScrollZoom ConfigScrollZoom `json:"scrollZoom,omitempty"`
- // Senddata
+ // SendData
// arrayOK: false
// type: boolean
// If *showLink* is true, does it contain data just link to a Chart Studio Cloud file?
- Senddata Bool `json:"sendData,omitempty"`
+ SendData Bool `json:"sendData,omitempty"`
- // Setbackground
+ // SetBackground
// arrayOK: false
// type: any
// Set function to add the background color (i.e. `layout.paper_color`) to a different container. This function take the graph div as first argument and the current background color as second argument. Alternatively, set to string *opaque* to ensure there is white behind it.
- Setbackground interface{} `json:"setBackground,omitempty"`
+ SetBackground interface{} `json:"setBackground,omitempty"`
- // Showaxisdraghandles
+ // ShowAxisDragHandles
// arrayOK: false
// type: boolean
// Set to *false* to omit cartesian axis pan/zoom drag handles.
- Showaxisdraghandles Bool `json:"showAxisDragHandles,omitempty"`
+ ShowAxisDragHandles Bool `json:"showAxisDragHandles,omitempty"`
- // Showaxisrangeentryboxes
+ // ShowAxisRangeEntryBoxes
// arrayOK: false
// type: boolean
// Set to *false* to omit direct range entry at the pan/zoom drag points, note that `showAxisDragHandles` must be enabled to have an effect.
- Showaxisrangeentryboxes Bool `json:"showAxisRangeEntryBoxes,omitempty"`
+ ShowAxisRangeEntryBoxes Bool `json:"showAxisRangeEntryBoxes,omitempty"`
- // Showeditinchartstudio
+ // ShowEditInChartStudio
// arrayOK: false
// type: boolean
// Same as `showSendToCloud`, but use a pencil icon instead of a floppy-disk. Note that if both `showSendToCloud` and `showEditInChartStudio` are turned, only `showEditInChartStudio` will be honored.
- Showeditinchartstudio Bool `json:"showEditInChartStudio,omitempty"`
+ ShowEditInChartStudio Bool `json:"showEditInChartStudio,omitempty"`
- // Showlink
+ // ShowLink
// arrayOK: false
// type: boolean
// Determines whether a link to Chart Studio Cloud is displayed at the bottom right corner of resulting graphs. Use with `sendData` and `linkText`.
- Showlink Bool `json:"showLink,omitempty"`
+ ShowLink Bool `json:"showLink,omitempty"`
- // Showsendtocloud
+ // ShowSendToCloud
// arrayOK: false
// type: boolean
// Should we include a ModeBar button, labeled "Edit in Chart Studio", that sends this chart to chart-studio.plotly.com (formerly plot.ly) or another plotly server as specified by `plotlyServerURL` for editing, export, etc? Prior to version 1.43.0 this button was included by default, now it is opt-in using this flag. Note that this button can (depending on `plotlyServerURL` being set) send your data to an external server. However that server does not persist your data until you arrive at the Chart Studio and explicitly click "Save".
- Showsendtocloud Bool `json:"showSendToCloud,omitempty"`
+ ShowSendToCloud Bool `json:"showSendToCloud,omitempty"`
- // Showsources
+ // ShowSources
// arrayOK: false
// type: any
// Adds a source-displaying function to show sources on the resulting graphs.
- Showsources interface{} `json:"showSources,omitempty"`
+ ShowSources interface{} `json:"showSources,omitempty"`
- // Showtips
+ // ShowTips
// arrayOK: false
// type: boolean
// Determines whether or not tips are shown while interacting with the resulting graphs.
- Showtips Bool `json:"showTips,omitempty"`
+ ShowTips Bool `json:"showTips,omitempty"`
- // Staticplot
+ // StaticPlot
// arrayOK: false
// type: boolean
// Determines whether the graphs are interactive or not. If *false*, no interactivity, for export or image generation.
- Staticplot Bool `json:"staticPlot,omitempty"`
+ StaticPlot Bool `json:"staticPlot,omitempty"`
- // Toimagebuttonoptions
+ // ToImageButtonOptions
// arrayOK: false
// type: any
// Statically override options for toImage modebar button allowed keys are format, filename, width, height, scale see ../components/modebar/buttons.js
- Toimagebuttonoptions interface{} `json:"toImageButtonOptions,omitempty"`
+ ToImageButtonOptions interface{} `json:"toImageButtonOptions,omitempty"`
- // Topojsonurl
+ // TopojsonURL
// 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
+ // type: boolean
+ // Determines whether math should be typeset or not, when MathJax (either v2 or v3) is present on the page.
+ TypesetMath Bool `json:"typesetMath,omitempty"`
// Watermark
// arrayOK: false
@@ -227,97 +239,97 @@ type Config struct {
// ConfigEdits
type ConfigEdits struct {
- // Annotationposition
+ // AnnotationPosition
// arrayOK: false
// type: boolean
// Determines if the main anchor of the annotation is editable. The main anchor corresponds to the text (if no arrow) or the arrow (which drags the whole thing leaving the arrow length & direction unchanged).
- Annotationposition Bool `json:"annotationPosition,omitempty"`
+ AnnotationPosition Bool `json:"annotationPosition,omitempty"`
- // Annotationtail
+ // AnnotationTail
// arrayOK: false
// type: boolean
// Has only an effect for annotations with arrows. Enables changing the length and direction of the arrow.
- Annotationtail Bool `json:"annotationTail,omitempty"`
+ AnnotationTail Bool `json:"annotationTail,omitempty"`
- // Annotationtext
+ // AnnotationText
// arrayOK: false
// type: boolean
// Enables editing annotation text.
- Annotationtext Bool `json:"annotationText,omitempty"`
+ AnnotationText Bool `json:"annotationText,omitempty"`
- // Axistitletext
+ // AxisTitleText
// arrayOK: false
// type: boolean
// Enables editing axis title text.
- Axistitletext Bool `json:"axisTitleText,omitempty"`
+ AxisTitleText Bool `json:"axisTitleText,omitempty"`
- // Colorbarposition
+ // ColorbarPosition
// arrayOK: false
// type: boolean
// Enables moving colorbars.
- Colorbarposition Bool `json:"colorbarPosition,omitempty"`
+ ColorbarPosition Bool `json:"colorbarPosition,omitempty"`
- // Colorbartitletext
+ // ColorbarTitleText
// arrayOK: false
// type: boolean
// Enables editing colorbar title text.
- Colorbartitletext Bool `json:"colorbarTitleText,omitempty"`
+ ColorbarTitleText Bool `json:"colorbarTitleText,omitempty"`
- // Legendposition
+ // LegendPosition
// arrayOK: false
// type: boolean
// Enables moving the legend.
- Legendposition Bool `json:"legendPosition,omitempty"`
+ LegendPosition Bool `json:"legendPosition,omitempty"`
- // Legendtext
+ // LegendText
// arrayOK: false
// type: boolean
// Enables editing the trace name fields from the legend
- Legendtext Bool `json:"legendText,omitempty"`
+ LegendText Bool `json:"legendText,omitempty"`
- // Shapeposition
+ // ShapePosition
// arrayOK: false
// type: boolean
// Enables moving shapes.
- Shapeposition Bool `json:"shapePosition,omitempty"`
+ ShapePosition Bool `json:"shapePosition,omitempty"`
- // Titletext
+ // TitleText
// arrayOK: false
// type: boolean
// Enables editing the global layout title.
- Titletext Bool `json:"titleText,omitempty"`
+ TitleText Bool `json:"titleText,omitempty"`
}
-// ConfigDisplaymodebar 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.
-type ConfigDisplaymodebar interface{}
+// ConfigDisplayModeBar 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.
+type ConfigDisplayModeBar interface{}
var (
- ConfigDisplaymodebarHover ConfigDisplaymodebar = "hover"
- ConfigDisplaymodebarTrue ConfigDisplaymodebar = true
- ConfigDisplaymodebarFalse ConfigDisplaymodebar = false
+ ConfigDisplayModeBarHover ConfigDisplayModeBar = "hover"
+ ConfigDisplayModeBarTrue ConfigDisplayModeBar = true
+ ConfigDisplayModeBarFalse ConfigDisplayModeBar = false
)
-// ConfigDoubleclick 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.
-type ConfigDoubleclick interface{}
+// ConfigDoubleClick 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.
+type ConfigDoubleClick interface{}
var (
- ConfigDoubleclickFalse ConfigDoubleclick = false
- ConfigDoubleclickReset ConfigDoubleclick = "reset"
- ConfigDoubleclickAutosize ConfigDoubleclick = "autosize"
- ConfigDoubleclickResetPlusautosize ConfigDoubleclick = "reset+autosize"
+ ConfigDoubleClickFalse ConfigDoubleClick = false
+ ConfigDoubleClickReset ConfigDoubleClick = "reset"
+ ConfigDoubleClickAutosize ConfigDoubleClick = "autosize"
+ ConfigDoubleClickResetPlusautosize ConfigDoubleClick = "reset+autosize"
)
-// ConfigScrollzoom 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.
-type ConfigScrollzoom interface{}
+// ConfigScrollZoom 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.
+type ConfigScrollZoom interface{}
var (
// Flags
- ConfigScrollzoomCartesian ConfigScrollzoom = "cartesian"
- ConfigScrollzoomGl3d ConfigScrollzoom = "gl3d"
- ConfigScrollzoomGeo ConfigScrollzoom = "geo"
- ConfigScrollzoomMapbox ConfigScrollzoom = "mapbox"
+ ConfigScrollZoomCartesian ConfigScrollZoom = "cartesian"
+ ConfigScrollZoomGl3d ConfigScrollZoom = "gl3d"
+ ConfigScrollZoomGeo ConfigScrollZoom = "geo"
+ ConfigScrollZoomMapbox ConfigScrollZoom = "mapbox"
// Extra
- ConfigScrollzoomTrue ConfigScrollzoom = true
- ConfigScrollzoomFalse ConfigScrollzoom = false
+ ConfigScrollZoomTrue ConfigScrollZoom = true
+ ConfigScrollZoomFalse ConfigScrollZoom = false
)
diff --git a/graph_objects/contour_gen.go b/generated/v2.19.0/graph_objects/contour_gen.go
similarity index 78%
rename from graph_objects/contour_gen.go
rename to generated/v2.19.0/graph_objects/contour_gen.go
index ab25035..aa1fafd 100644
--- a/graph_objects/contour_gen.go
+++ b/generated/v2.19.0/graph_objects/contour_gen.go
@@ -18,7 +18,7 @@ type Contour struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Autocontour
@@ -40,7 +40,7 @@ type Contour struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`zmin` and `zmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `zmin` and `zmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Connectgaps
@@ -62,7 +62,7 @@ type Contour struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Dx
@@ -92,7 +92,7 @@ type Contour struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -108,13 +108,13 @@ type Contour struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -126,7 +126,7 @@ type Contour struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -138,7 +138,7 @@ type Contour struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Legendgroup
@@ -147,6 +147,22 @@ type Contour struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *ContourLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Line
// role: Object
Line *ContourLine `json:"line,omitempty"`
@@ -160,7 +176,7 @@ type Contour struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -209,12 +225,22 @@ type Contour struct {
// Sets the text elements associated with each z value.
Text interface{} `json:"text,omitempty"`
+ // Textfont
+ // role: Object
+ Textfont *ContourTextfont `json:"textfont,omitempty"`
+
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
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"`
+
// Transforms
// It's an items array and what goes inside it's... messy... check the docs
// I will be happy if you want to contribute by implementing this
@@ -269,6 +295,12 @@ type Contour struct {
// Sets the calendar system to use with `x` date data.
Xcalendar ContourXcalendar `json:"xcalendar,omitempty"`
+ // Xhoverformat
+ // 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"`
+
// Xperiod
// arrayOK: false
// type: any
@@ -290,7 +322,7 @@ type Contour struct {
// Xsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for x .
+ // Sets the source reference on Chart Studio Cloud for `x`.
Xsrc String `json:"xsrc,omitempty"`
// Xtype
@@ -323,6 +355,12 @@ type Contour struct {
// Sets the calendar system to use with `y` date data.
Ycalendar ContourYcalendar `json:"ycalendar,omitempty"`
+ // Yhoverformat
+ // 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"`
+
// Yperiod
// arrayOK: false
// type: any
@@ -344,7 +382,7 @@ type Contour struct {
// Ysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for y .
+ // Sets the source reference on Chart Studio Cloud for `y`.
Ysrc String `json:"ysrc,omitempty"`
// Ytype
@@ -362,13 +400,13 @@ type Contour struct {
// Zauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user.
Zauto Bool `json:"zauto,omitempty"`
// Zhoverformat
// arrayOK: false
// type: string
- // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. See: https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format
+ // 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"`
// Zmax
@@ -392,7 +430,7 @@ type Contour struct {
// Zsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for z .
+ // Sets the source reference on Chart Studio Cloud for `z`.
Zsrc String `json:"zsrc,omitempty"`
}
@@ -448,9 +486,9 @@ type ContourColorbarTitle struct {
Font *ContourColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side ContourColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -493,6 +531,12 @@ type ContourColorbar struct {
// 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.
Exponentformat ContourColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -517,6 +561,12 @@ type ContourColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation ContourColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -596,7 +646,7 @@ type ContourColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -605,12 +655,24 @@ type ContourColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition ContourColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -650,7 +712,7 @@ type ContourColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -662,7 +724,7 @@ type ContourColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -678,13 +740,13 @@ type ContourColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor ContourColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -696,13 +758,13 @@ type ContourColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor ContourColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -756,7 +818,7 @@ type ContourContours struct {
// Labelformat
// arrayOK: false
// type: string
- // Sets the contour label formatting rule using d3 formatting mini-language which is very similar to Python, see: https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format
+ // 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"`
// Operation
@@ -814,7 +876,7 @@ type ContourHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -826,7 +888,7 @@ type ContourHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -838,7 +900,7 @@ type ContourHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -854,7 +916,7 @@ type ContourHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -866,7 +928,7 @@ type ContourHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -878,7 +940,7 @@ type ContourHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -894,10 +956,46 @@ type ContourHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// ContourLegendgrouptitleFont Sets this legend group's title font.
+type ContourLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// ContourLegendgrouptitle
+type ContourLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *ContourLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// ContourLine
type ContourLine struct {
@@ -942,6 +1040,28 @@ type ContourStream struct {
Token String `json:"token,omitempty"`
}
+// ContourTextfont For this trace it only has an effect if `coloring` is set to *heatmap*. Sets the text font.
+type ContourTextfont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
// ContourColorbarExponentformat 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.
type ContourColorbarExponentformat string
@@ -950,7 +1070,7 @@ const (
ContourColorbarExponentformatE1 ContourColorbarExponentformat = "e"
ContourColorbarExponentformatE2 ContourColorbarExponentformat = "E"
ContourColorbarExponentformatPower ContourColorbarExponentformat = "power"
- ContourColorbarExponentformatSi ContourColorbarExponentformat = "SI"
+ ContourColorbarExponentformatSI ContourColorbarExponentformat = "SI"
ContourColorbarExponentformatB ContourColorbarExponentformat = "B"
)
@@ -962,6 +1082,14 @@ const (
ContourColorbarLenmodePixels ContourColorbarLenmode = "pixels"
)
+// ContourColorbarOrientation Sets the orientation of the colorbar.
+type ContourColorbarOrientation string
+
+const (
+ ContourColorbarOrientationH ContourColorbarOrientation = "h"
+ ContourColorbarOrientationV ContourColorbarOrientation = "v"
+)
+
// ContourColorbarShowexponent 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.
type ContourColorbarShowexponent string
@@ -1000,7 +1128,16 @@ const (
ContourColorbarThicknessmodePixels ContourColorbarThicknessmode = "pixels"
)
-// ContourColorbarTicklabelposition Determines where tick labels are drawn.
+// ContourColorbarTicklabeloverflow 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*.
+type ContourColorbarTicklabeloverflow string
+
+const (
+ ContourColorbarTicklabeloverflowAllow ContourColorbarTicklabeloverflow = "allow"
+ ContourColorbarTicklabeloverflowHidePastDiv ContourColorbarTicklabeloverflow = "hide past div"
+ ContourColorbarTicklabeloverflowHidePastDomain ContourColorbarTicklabeloverflow = "hide past domain"
+)
+
+// ContourColorbarTicklabelposition 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*.
type ContourColorbarTicklabelposition string
const (
@@ -1008,6 +1145,10 @@ const (
ContourColorbarTicklabelpositionInside ContourColorbarTicklabelposition = "inside"
ContourColorbarTicklabelpositionOutsideTop ContourColorbarTicklabelposition = "outside top"
ContourColorbarTicklabelpositionInsideTop ContourColorbarTicklabelposition = "inside top"
+ ContourColorbarTicklabelpositionOutsideLeft ContourColorbarTicklabelposition = "outside left"
+ ContourColorbarTicklabelpositionInsideLeft ContourColorbarTicklabelposition = "inside left"
+ ContourColorbarTicklabelpositionOutsideRight ContourColorbarTicklabelposition = "outside right"
+ ContourColorbarTicklabelpositionInsideRight ContourColorbarTicklabelposition = "inside right"
ContourColorbarTicklabelpositionOutsideBottom ContourColorbarTicklabelposition = "outside bottom"
ContourColorbarTicklabelpositionInsideBottom ContourColorbarTicklabelposition = "inside bottom"
)
@@ -1030,7 +1171,7 @@ const (
ContourColorbarTicksEmpty ContourColorbarTicks = ""
)
-// ContourColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// ContourColorbarTitleSide 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.
type ContourColorbarTitleSide string
const (
@@ -1039,7 +1180,7 @@ const (
ContourColorbarTitleSideBottom ContourColorbarTitleSide = "bottom"
)
-// ContourColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// ContourColorbarXanchor 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*.
type ContourColorbarXanchor string
const (
@@ -1048,7 +1189,7 @@ const (
ContourColorbarXanchorRight ContourColorbarXanchor = "right"
)
-// ContourColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// ContourColorbarYanchor 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*.
type ContourColorbarYanchor string
const (
@@ -1116,19 +1257,19 @@ var (
type ContourXcalendar string
const (
- ContourXcalendarGregorian ContourXcalendar = "gregorian"
ContourXcalendarChinese ContourXcalendar = "chinese"
ContourXcalendarCoptic ContourXcalendar = "coptic"
ContourXcalendarDiscworld ContourXcalendar = "discworld"
ContourXcalendarEthiopian ContourXcalendar = "ethiopian"
+ ContourXcalendarGregorian ContourXcalendar = "gregorian"
ContourXcalendarHebrew ContourXcalendar = "hebrew"
ContourXcalendarIslamic ContourXcalendar = "islamic"
+ ContourXcalendarJalali ContourXcalendar = "jalali"
ContourXcalendarJulian ContourXcalendar = "julian"
ContourXcalendarMayan ContourXcalendar = "mayan"
ContourXcalendarNanakshahi ContourXcalendar = "nanakshahi"
ContourXcalendarNepali ContourXcalendar = "nepali"
ContourXcalendarPersian ContourXcalendar = "persian"
- ContourXcalendarJalali ContourXcalendar = "jalali"
ContourXcalendarTaiwan ContourXcalendar = "taiwan"
ContourXcalendarThai ContourXcalendar = "thai"
ContourXcalendarUmmalqura ContourXcalendar = "ummalqura"
@@ -1155,19 +1296,19 @@ const (
type ContourYcalendar string
const (
- ContourYcalendarGregorian ContourYcalendar = "gregorian"
ContourYcalendarChinese ContourYcalendar = "chinese"
ContourYcalendarCoptic ContourYcalendar = "coptic"
ContourYcalendarDiscworld ContourYcalendar = "discworld"
ContourYcalendarEthiopian ContourYcalendar = "ethiopian"
+ ContourYcalendarGregorian ContourYcalendar = "gregorian"
ContourYcalendarHebrew ContourYcalendar = "hebrew"
ContourYcalendarIslamic ContourYcalendar = "islamic"
+ ContourYcalendarJalali ContourYcalendar = "jalali"
ContourYcalendarJulian ContourYcalendar = "julian"
ContourYcalendarMayan ContourYcalendar = "mayan"
ContourYcalendarNanakshahi ContourYcalendar = "nanakshahi"
ContourYcalendarNepali ContourYcalendar = "nepali"
ContourYcalendarPersian ContourYcalendar = "persian"
- ContourYcalendarJalali ContourYcalendar = "jalali"
ContourYcalendarTaiwan ContourYcalendar = "taiwan"
ContourYcalendarThai ContourYcalendar = "thai"
ContourYcalendarUmmalqura ContourYcalendar = "ummalqura"
diff --git a/graph_objects/contourcarpet_gen.go b/generated/v2.19.0/graph_objects/contourcarpet_gen.go
similarity index 82%
rename from graph_objects/contourcarpet_gen.go
rename to generated/v2.19.0/graph_objects/contourcarpet_gen.go
index 9b1e27d..09066a0 100644
--- a/graph_objects/contourcarpet_gen.go
+++ b/generated/v2.19.0/graph_objects/contourcarpet_gen.go
@@ -30,7 +30,7 @@ type Contourcarpet struct {
// Asrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for a .
+ // Sets the source reference on Chart Studio Cloud for `a`.
Asrc String `json:"asrc,omitempty"`
// Atype
@@ -42,7 +42,7 @@ type Contourcarpet struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Autocontour
@@ -66,7 +66,7 @@ type Contourcarpet struct {
// Bsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for b .
+ // Sets the source reference on Chart Studio Cloud for `b`.
Bsrc String `json:"bsrc,omitempty"`
// Btype
@@ -94,7 +94,7 @@ type Contourcarpet struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`zmin` and `zmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `zmin` and `zmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Contours
@@ -110,7 +110,7 @@ type Contourcarpet struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Da
@@ -140,7 +140,7 @@ type Contourcarpet struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -152,7 +152,7 @@ type Contourcarpet struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Legendgroup
@@ -161,6 +161,22 @@ type Contourcarpet struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *ContourcarpetLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Line
// role: Object
Line *ContourcarpetLine `json:"line,omitempty"`
@@ -174,7 +190,7 @@ type Contourcarpet struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -226,7 +242,7 @@ type Contourcarpet struct {
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
Textsrc String `json:"textsrc,omitempty"`
// Transpose
@@ -274,7 +290,7 @@ type Contourcarpet struct {
// Zauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user.
Zauto Bool `json:"zauto,omitempty"`
// Zmax
@@ -298,7 +314,7 @@ type Contourcarpet struct {
// Zsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for z .
+ // Sets the source reference on Chart Studio Cloud for `z`.
Zsrc String `json:"zsrc,omitempty"`
}
@@ -354,9 +370,9 @@ type ContourcarpetColorbarTitle struct {
Font *ContourcarpetColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side ContourcarpetColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -399,6 +415,12 @@ type ContourcarpetColorbar struct {
// 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.
Exponentformat ContourcarpetColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -423,6 +445,12 @@ type ContourcarpetColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation ContourcarpetColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -502,7 +530,7 @@ type ContourcarpetColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -511,12 +539,24 @@ type ContourcarpetColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition ContourcarpetColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -556,7 +596,7 @@ type ContourcarpetColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -568,7 +608,7 @@ type ContourcarpetColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -584,13 +624,13 @@ type ContourcarpetColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor ContourcarpetColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -602,13 +642,13 @@ type ContourcarpetColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor ContourcarpetColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -662,7 +702,7 @@ type ContourcarpetContours struct {
// Labelformat
// arrayOK: false
// type: string
- // Sets the contour label formatting rule using d3 formatting mini-language which is very similar to Python, see: https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format
+ // 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"`
// Operation
@@ -708,6 +748,42 @@ type ContourcarpetContours struct {
Value interface{} `json:"value,omitempty"`
}
+// ContourcarpetLegendgrouptitleFont Sets this legend group's title font.
+type ContourcarpetLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// ContourcarpetLegendgrouptitle
+type ContourcarpetLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *ContourcarpetLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// ContourcarpetLine
type ContourcarpetLine struct {
@@ -776,7 +852,7 @@ const (
ContourcarpetColorbarExponentformatE1 ContourcarpetColorbarExponentformat = "e"
ContourcarpetColorbarExponentformatE2 ContourcarpetColorbarExponentformat = "E"
ContourcarpetColorbarExponentformatPower ContourcarpetColorbarExponentformat = "power"
- ContourcarpetColorbarExponentformatSi ContourcarpetColorbarExponentformat = "SI"
+ ContourcarpetColorbarExponentformatSI ContourcarpetColorbarExponentformat = "SI"
ContourcarpetColorbarExponentformatB ContourcarpetColorbarExponentformat = "B"
)
@@ -788,6 +864,14 @@ const (
ContourcarpetColorbarLenmodePixels ContourcarpetColorbarLenmode = "pixels"
)
+// ContourcarpetColorbarOrientation Sets the orientation of the colorbar.
+type ContourcarpetColorbarOrientation string
+
+const (
+ ContourcarpetColorbarOrientationH ContourcarpetColorbarOrientation = "h"
+ ContourcarpetColorbarOrientationV ContourcarpetColorbarOrientation = "v"
+)
+
// ContourcarpetColorbarShowexponent 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.
type ContourcarpetColorbarShowexponent string
@@ -826,7 +910,16 @@ const (
ContourcarpetColorbarThicknessmodePixels ContourcarpetColorbarThicknessmode = "pixels"
)
-// ContourcarpetColorbarTicklabelposition Determines where tick labels are drawn.
+// ContourcarpetColorbarTicklabeloverflow 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*.
+type ContourcarpetColorbarTicklabeloverflow string
+
+const (
+ ContourcarpetColorbarTicklabeloverflowAllow ContourcarpetColorbarTicklabeloverflow = "allow"
+ ContourcarpetColorbarTicklabeloverflowHidePastDiv ContourcarpetColorbarTicklabeloverflow = "hide past div"
+ ContourcarpetColorbarTicklabeloverflowHidePastDomain ContourcarpetColorbarTicklabeloverflow = "hide past domain"
+)
+
+// ContourcarpetColorbarTicklabelposition 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*.
type ContourcarpetColorbarTicklabelposition string
const (
@@ -834,6 +927,10 @@ const (
ContourcarpetColorbarTicklabelpositionInside ContourcarpetColorbarTicklabelposition = "inside"
ContourcarpetColorbarTicklabelpositionOutsideTop ContourcarpetColorbarTicklabelposition = "outside top"
ContourcarpetColorbarTicklabelpositionInsideTop ContourcarpetColorbarTicklabelposition = "inside top"
+ ContourcarpetColorbarTicklabelpositionOutsideLeft ContourcarpetColorbarTicklabelposition = "outside left"
+ ContourcarpetColorbarTicklabelpositionInsideLeft ContourcarpetColorbarTicklabelposition = "inside left"
+ ContourcarpetColorbarTicklabelpositionOutsideRight ContourcarpetColorbarTicklabelposition = "outside right"
+ ContourcarpetColorbarTicklabelpositionInsideRight ContourcarpetColorbarTicklabelposition = "inside right"
ContourcarpetColorbarTicklabelpositionOutsideBottom ContourcarpetColorbarTicklabelposition = "outside bottom"
ContourcarpetColorbarTicklabelpositionInsideBottom ContourcarpetColorbarTicklabelposition = "inside bottom"
)
@@ -856,7 +953,7 @@ const (
ContourcarpetColorbarTicksEmpty ContourcarpetColorbarTicks = ""
)
-// ContourcarpetColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// ContourcarpetColorbarTitleSide 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.
type ContourcarpetColorbarTitleSide string
const (
@@ -865,7 +962,7 @@ const (
ContourcarpetColorbarTitleSideBottom ContourcarpetColorbarTitleSide = "bottom"
)
-// ContourcarpetColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// ContourcarpetColorbarXanchor 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*.
type ContourcarpetColorbarXanchor string
const (
@@ -874,7 +971,7 @@ const (
ContourcarpetColorbarXanchorRight ContourcarpetColorbarXanchor = "right"
)
-// ContourcarpetColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// ContourcarpetColorbarYanchor 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*.
type ContourcarpetColorbarYanchor string
const (
diff --git a/graph_objects/densitymapbox_gen.go b/generated/v2.19.0/graph_objects/densitymapbox_gen.go
similarity index 77%
rename from graph_objects/densitymapbox_gen.go
rename to generated/v2.19.0/graph_objects/densitymapbox_gen.go
index c5ec34e..21699df 100644
--- a/graph_objects/densitymapbox_gen.go
+++ b/generated/v2.19.0/graph_objects/densitymapbox_gen.go
@@ -18,7 +18,7 @@ type Densitymapbox struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Below
@@ -40,7 +40,7 @@ type Densitymapbox struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`zmin` and `zmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `zmin` and `zmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Customdata
@@ -52,7 +52,7 @@ type Densitymapbox struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Hoverinfo
@@ -64,7 +64,7 @@ type Densitymapbox struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -74,13 +74,13 @@ type Densitymapbox struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -92,7 +92,7 @@ type Densitymapbox struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -104,7 +104,7 @@ type Densitymapbox struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Lat
@@ -116,7 +116,7 @@ type Densitymapbox struct {
// Latsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for lat .
+ // Sets the source reference on Chart Studio Cloud for `lat`.
Latsrc String `json:"latsrc,omitempty"`
// Legendgroup
@@ -125,6 +125,22 @@ type Densitymapbox struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *DensitymapboxLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Lon
// arrayOK: false
// type: data_array
@@ -134,7 +150,7 @@ type Densitymapbox struct {
// Lonsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for lon .
+ // Sets the source reference on Chart Studio Cloud for `lon`.
Lonsrc String `json:"lonsrc,omitempty"`
// Meta
@@ -146,7 +162,7 @@ type Densitymapbox struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -170,7 +186,7 @@ type Densitymapbox struct {
// Radiussrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for radius .
+ // Sets the source reference on Chart Studio Cloud for `radius`.
Radiussrc String `json:"radiussrc,omitempty"`
// Reversescale
@@ -210,7 +226,7 @@ type Densitymapbox struct {
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
Textsrc String `json:"textsrc,omitempty"`
// Transforms
@@ -246,7 +262,7 @@ type Densitymapbox struct {
// Zauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user.
Zauto Bool `json:"zauto,omitempty"`
// Zmax
@@ -270,7 +286,7 @@ type Densitymapbox struct {
// Zsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for z .
+ // Sets the source reference on Chart Studio Cloud for `z`.
Zsrc String `json:"zsrc,omitempty"`
}
@@ -326,9 +342,9 @@ type DensitymapboxColorbarTitle struct {
Font *DensitymapboxColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side DensitymapboxColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -371,6 +387,12 @@ type DensitymapboxColorbar struct {
// 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.
Exponentformat DensitymapboxColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -395,6 +417,12 @@ type DensitymapboxColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation DensitymapboxColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -474,7 +502,7 @@ type DensitymapboxColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -483,12 +511,24 @@ type DensitymapboxColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition DensitymapboxColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -528,7 +568,7 @@ type DensitymapboxColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -540,7 +580,7 @@ type DensitymapboxColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -556,13 +596,13 @@ type DensitymapboxColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor DensitymapboxColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -574,13 +614,13 @@ type DensitymapboxColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor DensitymapboxColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -602,7 +642,7 @@ type DensitymapboxHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -614,7 +654,7 @@ type DensitymapboxHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -626,7 +666,7 @@ type DensitymapboxHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -642,7 +682,7 @@ type DensitymapboxHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -654,7 +694,7 @@ type DensitymapboxHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -666,7 +706,7 @@ type DensitymapboxHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -682,10 +722,46 @@ type DensitymapboxHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// DensitymapboxLegendgrouptitleFont Sets this legend group's title font.
+type DensitymapboxLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// DensitymapboxLegendgrouptitle
+type DensitymapboxLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *DensitymapboxLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// DensitymapboxStream
type DensitymapboxStream struct {
@@ -710,7 +786,7 @@ const (
DensitymapboxColorbarExponentformatE1 DensitymapboxColorbarExponentformat = "e"
DensitymapboxColorbarExponentformatE2 DensitymapboxColorbarExponentformat = "E"
DensitymapboxColorbarExponentformatPower DensitymapboxColorbarExponentformat = "power"
- DensitymapboxColorbarExponentformatSi DensitymapboxColorbarExponentformat = "SI"
+ DensitymapboxColorbarExponentformatSI DensitymapboxColorbarExponentformat = "SI"
DensitymapboxColorbarExponentformatB DensitymapboxColorbarExponentformat = "B"
)
@@ -722,6 +798,14 @@ const (
DensitymapboxColorbarLenmodePixels DensitymapboxColorbarLenmode = "pixels"
)
+// DensitymapboxColorbarOrientation Sets the orientation of the colorbar.
+type DensitymapboxColorbarOrientation string
+
+const (
+ DensitymapboxColorbarOrientationH DensitymapboxColorbarOrientation = "h"
+ DensitymapboxColorbarOrientationV DensitymapboxColorbarOrientation = "v"
+)
+
// DensitymapboxColorbarShowexponent 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.
type DensitymapboxColorbarShowexponent string
@@ -760,7 +844,16 @@ const (
DensitymapboxColorbarThicknessmodePixels DensitymapboxColorbarThicknessmode = "pixels"
)
-// DensitymapboxColorbarTicklabelposition Determines where tick labels are drawn.
+// DensitymapboxColorbarTicklabeloverflow 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*.
+type DensitymapboxColorbarTicklabeloverflow string
+
+const (
+ DensitymapboxColorbarTicklabeloverflowAllow DensitymapboxColorbarTicklabeloverflow = "allow"
+ DensitymapboxColorbarTicklabeloverflowHidePastDiv DensitymapboxColorbarTicklabeloverflow = "hide past div"
+ DensitymapboxColorbarTicklabeloverflowHidePastDomain DensitymapboxColorbarTicklabeloverflow = "hide past domain"
+)
+
+// DensitymapboxColorbarTicklabelposition 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*.
type DensitymapboxColorbarTicklabelposition string
const (
@@ -768,6 +861,10 @@ const (
DensitymapboxColorbarTicklabelpositionInside DensitymapboxColorbarTicklabelposition = "inside"
DensitymapboxColorbarTicklabelpositionOutsideTop DensitymapboxColorbarTicklabelposition = "outside top"
DensitymapboxColorbarTicklabelpositionInsideTop DensitymapboxColorbarTicklabelposition = "inside top"
+ DensitymapboxColorbarTicklabelpositionOutsideLeft DensitymapboxColorbarTicklabelposition = "outside left"
+ DensitymapboxColorbarTicklabelpositionInsideLeft DensitymapboxColorbarTicklabelposition = "inside left"
+ DensitymapboxColorbarTicklabelpositionOutsideRight DensitymapboxColorbarTicklabelposition = "outside right"
+ DensitymapboxColorbarTicklabelpositionInsideRight DensitymapboxColorbarTicklabelposition = "inside right"
DensitymapboxColorbarTicklabelpositionOutsideBottom DensitymapboxColorbarTicklabelposition = "outside bottom"
DensitymapboxColorbarTicklabelpositionInsideBottom DensitymapboxColorbarTicklabelposition = "inside bottom"
)
@@ -790,7 +887,7 @@ const (
DensitymapboxColorbarTicksEmpty DensitymapboxColorbarTicks = ""
)
-// DensitymapboxColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// DensitymapboxColorbarTitleSide 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.
type DensitymapboxColorbarTitleSide string
const (
@@ -799,7 +896,7 @@ const (
DensitymapboxColorbarTitleSideBottom DensitymapboxColorbarTitleSide = "bottom"
)
-// DensitymapboxColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// DensitymapboxColorbarXanchor 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*.
type DensitymapboxColorbarXanchor string
const (
@@ -808,7 +905,7 @@ const (
DensitymapboxColorbarXanchorRight DensitymapboxColorbarXanchor = "right"
)
-// DensitymapboxColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// DensitymapboxColorbarYanchor 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*.
type DensitymapboxColorbarYanchor string
const (
diff --git a/graph_objects/funnel_gen.go b/generated/v2.19.0/graph_objects/funnel_gen.go
similarity index 76%
rename from graph_objects/funnel_gen.go
rename to generated/v2.19.0/graph_objects/funnel_gen.go
index a9bda6c..11f9103 100644
--- a/graph_objects/funnel_gen.go
+++ b/generated/v2.19.0/graph_objects/funnel_gen.go
@@ -46,7 +46,7 @@ type Funnel struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Dx
@@ -70,7 +70,7 @@ type Funnel struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -80,13 +80,13 @@ type Funnel struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -98,7 +98,7 @@ type Funnel struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -110,7 +110,7 @@ type Funnel struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Insidetextanchor
@@ -129,6 +129,22 @@ type Funnel struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *FunnelLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Marker
// role: Object
Marker *FunnelMarker `json:"marker,omitempty"`
@@ -142,7 +158,7 @@ type Funnel struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -220,31 +236,31 @@ type Funnel struct {
// Textposition
// 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.
+ // 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"`
// Textpositionsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for textposition .
+ // Sets the source reference on Chart Studio Cloud for `textposition`.
Textpositionsrc String `json:"textpositionsrc,omitempty"`
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
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-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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`.
+ // 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"`
// Texttemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for texttemplate .
+ // Sets the source reference on Chart Studio Cloud for `texttemplate`.
Texttemplatesrc String `json:"texttemplatesrc,omitempty"`
// Transforms
@@ -295,6 +311,12 @@ type Funnel struct {
// Sets a reference between this trace's x coordinates and a 2D cartesian x axis. If *x* (the default value), the x coordinates refer to `layout.xaxis`. If *x2*, the x coordinates refer to `layout.xaxis2`, and so on.
Xaxis String `json:"xaxis,omitempty"`
+ // Xhoverformat
+ // 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"`
+
// Xperiod
// arrayOK: false
// type: any
@@ -316,7 +338,7 @@ type Funnel struct {
// Xsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for x .
+ // Sets the source reference on Chart Studio Cloud for `x`.
Xsrc String `json:"xsrc,omitempty"`
// Y
@@ -337,6 +359,12 @@ type Funnel struct {
// Sets a reference between this trace's y coordinates and a 2D cartesian y axis. If *y* (the default value), the y coordinates refer to `layout.yaxis`. If *y2*, the y coordinates refer to `layout.yaxis2`, and so on.
Yaxis String `json:"yaxis,omitempty"`
+ // Yhoverformat
+ // 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"`
+
// Yperiod
// arrayOK: false
// type: any
@@ -358,7 +386,7 @@ type Funnel struct {
// Ysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for y .
+ // Sets the source reference on Chart Studio Cloud for `y`.
Ysrc String `json:"ysrc,omitempty"`
}
@@ -416,7 +444,7 @@ type FunnelHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -428,7 +456,7 @@ type FunnelHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -440,7 +468,7 @@ type FunnelHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -456,7 +484,7 @@ type FunnelHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -468,7 +496,7 @@ type FunnelHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -480,7 +508,7 @@ type FunnelHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -496,7 +524,7 @@ type FunnelHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
@@ -512,7 +540,7 @@ type FunnelInsidetextfont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -524,7 +552,7 @@ type FunnelInsidetextfont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -536,10 +564,46 @@ type FunnelInsidetextfont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
+// FunnelLegendgrouptitleFont Sets this legend group's title font.
+type FunnelLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// FunnelLegendgrouptitle
+type FunnelLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *FunnelLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// FunnelMarkerColorbarTickfont Sets the color bar's tick label font
type FunnelMarkerColorbarTickfont struct {
@@ -592,9 +656,9 @@ type FunnelMarkerColorbarTitle struct {
Font *FunnelMarkerColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side FunnelMarkerColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -637,6 +701,12 @@ type FunnelMarkerColorbar struct {
// 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.
Exponentformat FunnelMarkerColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -661,6 +731,12 @@ type FunnelMarkerColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation FunnelMarkerColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -740,7 +816,7 @@ type FunnelMarkerColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -749,12 +825,24 @@ type FunnelMarkerColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition FunnelMarkerColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -794,7 +882,7 @@ type FunnelMarkerColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -806,7 +894,7 @@ type FunnelMarkerColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -822,13 +910,13 @@ type FunnelMarkerColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor FunnelMarkerColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -840,13 +928,13 @@ type FunnelMarkerColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor FunnelMarkerColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -862,37 +950,37 @@ type FunnelMarkerLine struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color`is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color` is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarker.linecolor. 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.
+ // 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"`
// Coloraxis
@@ -904,19 +992,19 @@ type FunnelMarkerLine struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.line.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.line.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.line.color`is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.line.color` is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Width
@@ -928,7 +1016,7 @@ type FunnelMarkerLine struct {
// Widthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for width .
+ // Sets the source reference on Chart Studio Cloud for `width`.
Widthsrc String `json:"widthsrc,omitempty"`
}
@@ -938,37 +1026,37 @@ type FunnelMarker struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color` is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarkercolor. 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.
+ // 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"`
// Coloraxis
@@ -984,13 +1072,13 @@ type FunnelMarker struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Line
@@ -1006,19 +1094,19 @@ type FunnelMarker struct {
// Opacitysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for opacity .
+ // Sets the source reference on Chart Studio Cloud for `opacity`.
Opacitysrc String `json:"opacitysrc,omitempty"`
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.color`is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.color` is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Showscale
// arrayOK: false
// type: boolean
- // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array.
+ // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color` is set to a numerical array.
Showscale Bool `json:"showscale,omitempty"`
}
@@ -1034,7 +1122,7 @@ type FunnelOutsidetextfont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -1046,7 +1134,7 @@ type FunnelOutsidetextfont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -1058,7 +1146,7 @@ type FunnelOutsidetextfont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -1090,7 +1178,7 @@ type FunnelTextfont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -1102,7 +1190,7 @@ type FunnelTextfont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -1114,7 +1202,7 @@ type FunnelTextfont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -1154,7 +1242,7 @@ const (
FunnelMarkerColorbarExponentformatE1 FunnelMarkerColorbarExponentformat = "e"
FunnelMarkerColorbarExponentformatE2 FunnelMarkerColorbarExponentformat = "E"
FunnelMarkerColorbarExponentformatPower FunnelMarkerColorbarExponentformat = "power"
- FunnelMarkerColorbarExponentformatSi FunnelMarkerColorbarExponentformat = "SI"
+ FunnelMarkerColorbarExponentformatSI FunnelMarkerColorbarExponentformat = "SI"
FunnelMarkerColorbarExponentformatB FunnelMarkerColorbarExponentformat = "B"
)
@@ -1166,6 +1254,14 @@ const (
FunnelMarkerColorbarLenmodePixels FunnelMarkerColorbarLenmode = "pixels"
)
+// FunnelMarkerColorbarOrientation Sets the orientation of the colorbar.
+type FunnelMarkerColorbarOrientation string
+
+const (
+ FunnelMarkerColorbarOrientationH FunnelMarkerColorbarOrientation = "h"
+ FunnelMarkerColorbarOrientationV FunnelMarkerColorbarOrientation = "v"
+)
+
// FunnelMarkerColorbarShowexponent 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.
type FunnelMarkerColorbarShowexponent string
@@ -1204,7 +1300,16 @@ const (
FunnelMarkerColorbarThicknessmodePixels FunnelMarkerColorbarThicknessmode = "pixels"
)
-// FunnelMarkerColorbarTicklabelposition Determines where tick labels are drawn.
+// FunnelMarkerColorbarTicklabeloverflow 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*.
+type FunnelMarkerColorbarTicklabeloverflow string
+
+const (
+ FunnelMarkerColorbarTicklabeloverflowAllow FunnelMarkerColorbarTicklabeloverflow = "allow"
+ FunnelMarkerColorbarTicklabeloverflowHidePastDiv FunnelMarkerColorbarTicklabeloverflow = "hide past div"
+ FunnelMarkerColorbarTicklabeloverflowHidePastDomain FunnelMarkerColorbarTicklabeloverflow = "hide past domain"
+)
+
+// FunnelMarkerColorbarTicklabelposition 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*.
type FunnelMarkerColorbarTicklabelposition string
const (
@@ -1212,6 +1317,10 @@ const (
FunnelMarkerColorbarTicklabelpositionInside FunnelMarkerColorbarTicklabelposition = "inside"
FunnelMarkerColorbarTicklabelpositionOutsideTop FunnelMarkerColorbarTicklabelposition = "outside top"
FunnelMarkerColorbarTicklabelpositionInsideTop FunnelMarkerColorbarTicklabelposition = "inside top"
+ FunnelMarkerColorbarTicklabelpositionOutsideLeft FunnelMarkerColorbarTicklabelposition = "outside left"
+ FunnelMarkerColorbarTicklabelpositionInsideLeft FunnelMarkerColorbarTicklabelposition = "inside left"
+ FunnelMarkerColorbarTicklabelpositionOutsideRight FunnelMarkerColorbarTicklabelposition = "outside right"
+ FunnelMarkerColorbarTicklabelpositionInsideRight FunnelMarkerColorbarTicklabelposition = "inside right"
FunnelMarkerColorbarTicklabelpositionOutsideBottom FunnelMarkerColorbarTicklabelposition = "outside bottom"
FunnelMarkerColorbarTicklabelpositionInsideBottom FunnelMarkerColorbarTicklabelposition = "inside bottom"
)
@@ -1234,7 +1343,7 @@ const (
FunnelMarkerColorbarTicksEmpty FunnelMarkerColorbarTicks = ""
)
-// FunnelMarkerColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// FunnelMarkerColorbarTitleSide 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.
type FunnelMarkerColorbarTitleSide string
const (
@@ -1243,7 +1352,7 @@ const (
FunnelMarkerColorbarTitleSideBottom FunnelMarkerColorbarTitleSide = "bottom"
)
-// FunnelMarkerColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// FunnelMarkerColorbarXanchor 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*.
type FunnelMarkerColorbarXanchor string
const (
@@ -1252,7 +1361,7 @@ const (
FunnelMarkerColorbarXanchorRight FunnelMarkerColorbarXanchor = "right"
)
-// FunnelMarkerColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// FunnelMarkerColorbarYanchor 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*.
type FunnelMarkerColorbarYanchor string
const (
@@ -1269,7 +1378,7 @@ const (
FunnelOrientationH FunnelOrientation = "h"
)
-// FunnelTextposition 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.
+// FunnelTextposition 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.
type FunnelTextposition string
const (
diff --git a/graph_objects/funnelarea_gen.go b/generated/v2.19.0/graph_objects/funnelarea_gen.go
similarity index 79%
rename from graph_objects/funnelarea_gen.go
rename to generated/v2.19.0/graph_objects/funnelarea_gen.go
index 3e499d1..58e3e1f 100644
--- a/graph_objects/funnelarea_gen.go
+++ b/generated/v2.19.0/graph_objects/funnelarea_gen.go
@@ -36,7 +36,7 @@ type Funnelarea struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Dlabel
@@ -58,7 +58,7 @@ type Funnelarea struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -68,13 +68,13 @@ type Funnelarea struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -86,7 +86,7 @@ type Funnelarea struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -98,7 +98,7 @@ type Funnelarea struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Insidetextfont
@@ -120,7 +120,7 @@ type Funnelarea struct {
// Labelssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for labels .
+ // Sets the source reference on Chart Studio Cloud for `labels`.
Labelssrc String `json:"labelssrc,omitempty"`
// Legendgroup
@@ -129,6 +129,22 @@ type Funnelarea struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *FunnelareaLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Marker
// role: Object
Marker *FunnelareaMarker `json:"marker,omitempty"`
@@ -142,7 +158,7 @@ type Funnelarea struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -198,25 +214,25 @@ type Funnelarea struct {
// Textpositionsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for textposition .
+ // Sets the source reference on Chart Studio Cloud for `textposition`.
Textpositionsrc String `json:"textpositionsrc,omitempty"`
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
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-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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`.
+ // 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"`
// Texttemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for texttemplate .
+ // Sets the source reference on Chart Studio Cloud for `texttemplate`.
Texttemplatesrc String `json:"texttemplatesrc,omitempty"`
// Title
@@ -250,7 +266,7 @@ type Funnelarea struct {
// Valuessrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for values .
+ // Sets the source reference on Chart Studio Cloud for `values`.
Valuessrc String `json:"valuessrc,omitempty"`
// Visible
@@ -300,7 +316,7 @@ type FunnelareaHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -312,7 +328,7 @@ type FunnelareaHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -324,7 +340,7 @@ type FunnelareaHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -340,7 +356,7 @@ type FunnelareaHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -352,7 +368,7 @@ type FunnelareaHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -364,7 +380,7 @@ type FunnelareaHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -380,7 +396,7 @@ type FunnelareaHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
@@ -396,7 +412,7 @@ type FunnelareaInsidetextfont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -408,7 +424,7 @@ type FunnelareaInsidetextfont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -420,10 +436,46 @@ type FunnelareaInsidetextfont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
+// FunnelareaLegendgrouptitleFont Sets this legend group's title font.
+type FunnelareaLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// FunnelareaLegendgrouptitle
+type FunnelareaLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *FunnelareaLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// FunnelareaMarkerLine
type FunnelareaMarkerLine struct {
@@ -436,7 +488,7 @@ type FunnelareaMarkerLine struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Width
@@ -448,7 +500,7 @@ type FunnelareaMarkerLine struct {
// Widthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for width .
+ // Sets the source reference on Chart Studio Cloud for `width`.
Widthsrc String `json:"widthsrc,omitempty"`
}
@@ -464,7 +516,7 @@ type FunnelareaMarker struct {
// Colorssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for colors .
+ // Sets the source reference on Chart Studio Cloud for `colors`.
Colorssrc String `json:"colorssrc,omitempty"`
// Line
@@ -500,7 +552,7 @@ type FunnelareaTextfont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -512,7 +564,7 @@ type FunnelareaTextfont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -524,7 +576,7 @@ type FunnelareaTextfont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -540,7 +592,7 @@ type FunnelareaTitleFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -552,7 +604,7 @@ type FunnelareaTitleFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -564,7 +616,7 @@ type FunnelareaTitleFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
diff --git a/graph_objects/heatmap_gen.go b/generated/v2.19.0/graph_objects/heatmap_gen.go
similarity index 76%
rename from graph_objects/heatmap_gen.go
rename to generated/v2.19.0/graph_objects/heatmap_gen.go
index 1d1fa00..af04e8c 100644
--- a/graph_objects/heatmap_gen.go
+++ b/generated/v2.19.0/graph_objects/heatmap_gen.go
@@ -18,7 +18,7 @@ type Heatmap struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Coloraxis
@@ -34,7 +34,7 @@ type Heatmap struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`zmin` and `zmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `zmin` and `zmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Connectgaps
@@ -52,7 +52,7 @@ type Heatmap struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Dx
@@ -76,7 +76,7 @@ type Heatmap struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -92,13 +92,13 @@ type Heatmap struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -110,7 +110,7 @@ type Heatmap struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -122,7 +122,7 @@ type Heatmap struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Legendgroup
@@ -131,6 +131,22 @@ type Heatmap struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *HeatmapLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Meta
// arrayOK: true
// type: any
@@ -140,7 +156,7 @@ type Heatmap struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -183,12 +199,22 @@ type Heatmap struct {
// Sets the text elements associated with each z value.
Text interface{} `json:"text,omitempty"`
+ // Textfont
+ // role: Object
+ Textfont *HeatmapTextfont `json:"textfont,omitempty"`
+
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
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"`
+
// Transforms
// It's an items array and what goes inside it's... messy... check the docs
// I will be happy if you want to contribute by implementing this
@@ -249,6 +275,12 @@ type Heatmap struct {
// Sets the horizontal gap (in pixels) between bricks.
Xgap float64 `json:"xgap,omitempty"`
+ // Xhoverformat
+ // 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"`
+
// Xperiod
// arrayOK: false
// type: any
@@ -270,7 +302,7 @@ type Heatmap struct {
// Xsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for x .
+ // Sets the source reference on Chart Studio Cloud for `x`.
Xsrc String `json:"xsrc,omitempty"`
// Xtype
@@ -309,6 +341,12 @@ type Heatmap struct {
// Sets the vertical gap (in pixels) between bricks.
Ygap float64 `json:"ygap,omitempty"`
+ // Yhoverformat
+ // 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"`
+
// Yperiod
// arrayOK: false
// type: any
@@ -330,7 +368,7 @@ type Heatmap struct {
// Ysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for y .
+ // Sets the source reference on Chart Studio Cloud for `y`.
Ysrc String `json:"ysrc,omitempty"`
// Ytype
@@ -348,13 +386,13 @@ type Heatmap struct {
// Zauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user.
Zauto Bool `json:"zauto,omitempty"`
// Zhoverformat
// arrayOK: false
// type: string
- // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. See: https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format
+ // 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"`
// Zmax
@@ -384,7 +422,7 @@ type Heatmap struct {
// Zsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for z .
+ // Sets the source reference on Chart Studio Cloud for `z`.
Zsrc String `json:"zsrc,omitempty"`
}
@@ -440,9 +478,9 @@ type HeatmapColorbarTitle struct {
Font *HeatmapColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side HeatmapColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -485,6 +523,12 @@ type HeatmapColorbar struct {
// 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.
Exponentformat HeatmapColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -509,6 +553,12 @@ type HeatmapColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation HeatmapColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -588,7 +638,7 @@ type HeatmapColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -597,12 +647,24 @@ type HeatmapColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition HeatmapColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -642,7 +704,7 @@ type HeatmapColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -654,7 +716,7 @@ type HeatmapColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -670,13 +732,13 @@ type HeatmapColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor HeatmapColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -688,13 +750,13 @@ type HeatmapColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor HeatmapColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -716,7 +778,7 @@ type HeatmapHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -728,7 +790,7 @@ type HeatmapHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -740,7 +802,7 @@ type HeatmapHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -756,7 +818,7 @@ type HeatmapHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -768,7 +830,7 @@ type HeatmapHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -780,7 +842,7 @@ type HeatmapHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -796,10 +858,46 @@ type HeatmapHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// HeatmapLegendgrouptitleFont Sets this legend group's title font.
+type HeatmapLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// HeatmapLegendgrouptitle
+type HeatmapLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *HeatmapLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// HeatmapStream
type HeatmapStream struct {
@@ -816,6 +914,28 @@ type HeatmapStream struct {
Token String `json:"token,omitempty"`
}
+// HeatmapTextfont Sets the text font.
+type HeatmapTextfont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
// HeatmapColorbarExponentformat 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.
type HeatmapColorbarExponentformat string
@@ -824,7 +944,7 @@ const (
HeatmapColorbarExponentformatE1 HeatmapColorbarExponentformat = "e"
HeatmapColorbarExponentformatE2 HeatmapColorbarExponentformat = "E"
HeatmapColorbarExponentformatPower HeatmapColorbarExponentformat = "power"
- HeatmapColorbarExponentformatSi HeatmapColorbarExponentformat = "SI"
+ HeatmapColorbarExponentformatSI HeatmapColorbarExponentformat = "SI"
HeatmapColorbarExponentformatB HeatmapColorbarExponentformat = "B"
)
@@ -836,6 +956,14 @@ const (
HeatmapColorbarLenmodePixels HeatmapColorbarLenmode = "pixels"
)
+// HeatmapColorbarOrientation Sets the orientation of the colorbar.
+type HeatmapColorbarOrientation string
+
+const (
+ HeatmapColorbarOrientationH HeatmapColorbarOrientation = "h"
+ HeatmapColorbarOrientationV HeatmapColorbarOrientation = "v"
+)
+
// HeatmapColorbarShowexponent 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.
type HeatmapColorbarShowexponent string
@@ -874,7 +1002,16 @@ const (
HeatmapColorbarThicknessmodePixels HeatmapColorbarThicknessmode = "pixels"
)
-// HeatmapColorbarTicklabelposition Determines where tick labels are drawn.
+// HeatmapColorbarTicklabeloverflow 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*.
+type HeatmapColorbarTicklabeloverflow string
+
+const (
+ HeatmapColorbarTicklabeloverflowAllow HeatmapColorbarTicklabeloverflow = "allow"
+ HeatmapColorbarTicklabeloverflowHidePastDiv HeatmapColorbarTicklabeloverflow = "hide past div"
+ HeatmapColorbarTicklabeloverflowHidePastDomain HeatmapColorbarTicklabeloverflow = "hide past domain"
+)
+
+// HeatmapColorbarTicklabelposition 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*.
type HeatmapColorbarTicklabelposition string
const (
@@ -882,6 +1019,10 @@ const (
HeatmapColorbarTicklabelpositionInside HeatmapColorbarTicklabelposition = "inside"
HeatmapColorbarTicklabelpositionOutsideTop HeatmapColorbarTicklabelposition = "outside top"
HeatmapColorbarTicklabelpositionInsideTop HeatmapColorbarTicklabelposition = "inside top"
+ HeatmapColorbarTicklabelpositionOutsideLeft HeatmapColorbarTicklabelposition = "outside left"
+ HeatmapColorbarTicklabelpositionInsideLeft HeatmapColorbarTicklabelposition = "inside left"
+ HeatmapColorbarTicklabelpositionOutsideRight HeatmapColorbarTicklabelposition = "outside right"
+ HeatmapColorbarTicklabelpositionInsideRight HeatmapColorbarTicklabelposition = "inside right"
HeatmapColorbarTicklabelpositionOutsideBottom HeatmapColorbarTicklabelposition = "outside bottom"
HeatmapColorbarTicklabelpositionInsideBottom HeatmapColorbarTicklabelposition = "inside bottom"
)
@@ -904,7 +1045,7 @@ const (
HeatmapColorbarTicksEmpty HeatmapColorbarTicks = ""
)
-// HeatmapColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// HeatmapColorbarTitleSide 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.
type HeatmapColorbarTitleSide string
const (
@@ -913,7 +1054,7 @@ const (
HeatmapColorbarTitleSideBottom HeatmapColorbarTitleSide = "bottom"
)
-// HeatmapColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// HeatmapColorbarXanchor 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*.
type HeatmapColorbarXanchor string
const (
@@ -922,7 +1063,7 @@ const (
HeatmapColorbarXanchorRight HeatmapColorbarXanchor = "right"
)
-// HeatmapColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// HeatmapColorbarYanchor 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*.
type HeatmapColorbarYanchor string
const (
@@ -953,19 +1094,19 @@ var (
type HeatmapXcalendar string
const (
- HeatmapXcalendarGregorian HeatmapXcalendar = "gregorian"
HeatmapXcalendarChinese HeatmapXcalendar = "chinese"
HeatmapXcalendarCoptic HeatmapXcalendar = "coptic"
HeatmapXcalendarDiscworld HeatmapXcalendar = "discworld"
HeatmapXcalendarEthiopian HeatmapXcalendar = "ethiopian"
+ HeatmapXcalendarGregorian HeatmapXcalendar = "gregorian"
HeatmapXcalendarHebrew HeatmapXcalendar = "hebrew"
HeatmapXcalendarIslamic HeatmapXcalendar = "islamic"
+ HeatmapXcalendarJalali HeatmapXcalendar = "jalali"
HeatmapXcalendarJulian HeatmapXcalendar = "julian"
HeatmapXcalendarMayan HeatmapXcalendar = "mayan"
HeatmapXcalendarNanakshahi HeatmapXcalendar = "nanakshahi"
HeatmapXcalendarNepali HeatmapXcalendar = "nepali"
HeatmapXcalendarPersian HeatmapXcalendar = "persian"
- HeatmapXcalendarJalali HeatmapXcalendar = "jalali"
HeatmapXcalendarTaiwan HeatmapXcalendar = "taiwan"
HeatmapXcalendarThai HeatmapXcalendar = "thai"
HeatmapXcalendarUmmalqura HeatmapXcalendar = "ummalqura"
@@ -992,19 +1133,19 @@ const (
type HeatmapYcalendar string
const (
- HeatmapYcalendarGregorian HeatmapYcalendar = "gregorian"
HeatmapYcalendarChinese HeatmapYcalendar = "chinese"
HeatmapYcalendarCoptic HeatmapYcalendar = "coptic"
HeatmapYcalendarDiscworld HeatmapYcalendar = "discworld"
HeatmapYcalendarEthiopian HeatmapYcalendar = "ethiopian"
+ HeatmapYcalendarGregorian HeatmapYcalendar = "gregorian"
HeatmapYcalendarHebrew HeatmapYcalendar = "hebrew"
HeatmapYcalendarIslamic HeatmapYcalendar = "islamic"
+ HeatmapYcalendarJalali HeatmapYcalendar = "jalali"
HeatmapYcalendarJulian HeatmapYcalendar = "julian"
HeatmapYcalendarMayan HeatmapYcalendar = "mayan"
HeatmapYcalendarNanakshahi HeatmapYcalendar = "nanakshahi"
HeatmapYcalendarNepali HeatmapYcalendar = "nepali"
HeatmapYcalendarPersian HeatmapYcalendar = "persian"
- HeatmapYcalendarJalali HeatmapYcalendar = "jalali"
HeatmapYcalendarTaiwan HeatmapYcalendar = "taiwan"
HeatmapYcalendarThai HeatmapYcalendar = "thai"
HeatmapYcalendarUmmalqura HeatmapYcalendar = "ummalqura"
diff --git a/graph_objects/heatmapgl_gen.go b/generated/v2.19.0/graph_objects/heatmapgl_gen.go
similarity index 80%
rename from graph_objects/heatmapgl_gen.go
rename to generated/v2.19.0/graph_objects/heatmapgl_gen.go
index 9e8345f..d581134 100644
--- a/graph_objects/heatmapgl_gen.go
+++ b/generated/v2.19.0/graph_objects/heatmapgl_gen.go
@@ -8,7 +8,7 @@ func (trace *Heatmapgl) GetType() TraceType {
return TraceTypeHeatmapgl
}
-// Heatmapgl WebGL version of the heatmap trace type.
+// Heatmapgl *heatmapgl* trace is deprecated! Please consider switching to the *heatmap* or *image* trace types. Alternatively you could contribute/sponsor rewriting this trace type based on cartesian features and using regl framework. WebGL version of the heatmap trace type.
type Heatmapgl struct {
// Type
@@ -18,7 +18,7 @@ type Heatmapgl struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Coloraxis
@@ -34,7 +34,7 @@ type Heatmapgl struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`zmin` and `zmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `zmin` and `zmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Customdata
@@ -46,7 +46,7 @@ type Heatmapgl struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Dx
@@ -70,7 +70,7 @@ type Heatmapgl struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -86,9 +86,25 @@ type Heatmapgl struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *HeatmapglLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Meta
// arrayOK: true
// type: any
@@ -98,7 +114,7 @@ type Heatmapgl struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -138,7 +154,7 @@ type Heatmapgl struct {
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
Textsrc String `json:"textsrc,omitempty"`
// Transforms
@@ -192,7 +208,7 @@ type Heatmapgl struct {
// Xsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for x .
+ // Sets the source reference on Chart Studio Cloud for `x`.
Xsrc String `json:"xsrc,omitempty"`
// Xtype
@@ -222,7 +238,7 @@ type Heatmapgl struct {
// Ysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for y .
+ // Sets the source reference on Chart Studio Cloud for `y`.
Ysrc String `json:"ysrc,omitempty"`
// Ytype
@@ -240,7 +256,7 @@ type Heatmapgl struct {
// Zauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user.
Zauto Bool `json:"zauto,omitempty"`
// Zmax
@@ -270,7 +286,7 @@ type Heatmapgl struct {
// Zsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for z .
+ // Sets the source reference on Chart Studio Cloud for `z`.
Zsrc String `json:"zsrc,omitempty"`
}
@@ -326,9 +342,9 @@ type HeatmapglColorbarTitle struct {
Font *HeatmapglColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side HeatmapglColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -371,6 +387,12 @@ type HeatmapglColorbar struct {
// 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.
Exponentformat HeatmapglColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -395,6 +417,12 @@ type HeatmapglColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation HeatmapglColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -474,7 +502,7 @@ type HeatmapglColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -483,12 +511,24 @@ type HeatmapglColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition HeatmapglColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -528,7 +568,7 @@ type HeatmapglColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -540,7 +580,7 @@ type HeatmapglColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -556,13 +596,13 @@ type HeatmapglColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor HeatmapglColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -574,13 +614,13 @@ type HeatmapglColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor HeatmapglColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -602,7 +642,7 @@ type HeatmapglHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -614,7 +654,7 @@ type HeatmapglHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -626,7 +666,7 @@ type HeatmapglHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -642,7 +682,7 @@ type HeatmapglHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -654,7 +694,7 @@ type HeatmapglHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -666,7 +706,7 @@ type HeatmapglHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -682,10 +722,46 @@ type HeatmapglHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// HeatmapglLegendgrouptitleFont Sets this legend group's title font.
+type HeatmapglLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// HeatmapglLegendgrouptitle
+type HeatmapglLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *HeatmapglLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// HeatmapglStream
type HeatmapglStream struct {
@@ -710,7 +786,7 @@ const (
HeatmapglColorbarExponentformatE1 HeatmapglColorbarExponentformat = "e"
HeatmapglColorbarExponentformatE2 HeatmapglColorbarExponentformat = "E"
HeatmapglColorbarExponentformatPower HeatmapglColorbarExponentformat = "power"
- HeatmapglColorbarExponentformatSi HeatmapglColorbarExponentformat = "SI"
+ HeatmapglColorbarExponentformatSI HeatmapglColorbarExponentformat = "SI"
HeatmapglColorbarExponentformatB HeatmapglColorbarExponentformat = "B"
)
@@ -722,6 +798,14 @@ const (
HeatmapglColorbarLenmodePixels HeatmapglColorbarLenmode = "pixels"
)
+// HeatmapglColorbarOrientation Sets the orientation of the colorbar.
+type HeatmapglColorbarOrientation string
+
+const (
+ HeatmapglColorbarOrientationH HeatmapglColorbarOrientation = "h"
+ HeatmapglColorbarOrientationV HeatmapglColorbarOrientation = "v"
+)
+
// HeatmapglColorbarShowexponent 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.
type HeatmapglColorbarShowexponent string
@@ -760,7 +844,16 @@ const (
HeatmapglColorbarThicknessmodePixels HeatmapglColorbarThicknessmode = "pixels"
)
-// HeatmapglColorbarTicklabelposition Determines where tick labels are drawn.
+// HeatmapglColorbarTicklabeloverflow 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*.
+type HeatmapglColorbarTicklabeloverflow string
+
+const (
+ HeatmapglColorbarTicklabeloverflowAllow HeatmapglColorbarTicklabeloverflow = "allow"
+ HeatmapglColorbarTicklabeloverflowHidePastDiv HeatmapglColorbarTicklabeloverflow = "hide past div"
+ HeatmapglColorbarTicklabeloverflowHidePastDomain HeatmapglColorbarTicklabeloverflow = "hide past domain"
+)
+
+// HeatmapglColorbarTicklabelposition 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*.
type HeatmapglColorbarTicklabelposition string
const (
@@ -768,6 +861,10 @@ const (
HeatmapglColorbarTicklabelpositionInside HeatmapglColorbarTicklabelposition = "inside"
HeatmapglColorbarTicklabelpositionOutsideTop HeatmapglColorbarTicklabelposition = "outside top"
HeatmapglColorbarTicklabelpositionInsideTop HeatmapglColorbarTicklabelposition = "inside top"
+ HeatmapglColorbarTicklabelpositionOutsideLeft HeatmapglColorbarTicklabelposition = "outside left"
+ HeatmapglColorbarTicklabelpositionInsideLeft HeatmapglColorbarTicklabelposition = "inside left"
+ HeatmapglColorbarTicklabelpositionOutsideRight HeatmapglColorbarTicklabelposition = "outside right"
+ HeatmapglColorbarTicklabelpositionInsideRight HeatmapglColorbarTicklabelposition = "inside right"
HeatmapglColorbarTicklabelpositionOutsideBottom HeatmapglColorbarTicklabelposition = "outside bottom"
HeatmapglColorbarTicklabelpositionInsideBottom HeatmapglColorbarTicklabelposition = "inside bottom"
)
@@ -790,7 +887,7 @@ const (
HeatmapglColorbarTicksEmpty HeatmapglColorbarTicks = ""
)
-// HeatmapglColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// HeatmapglColorbarTitleSide 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.
type HeatmapglColorbarTitleSide string
const (
@@ -799,7 +896,7 @@ const (
HeatmapglColorbarTitleSideBottom HeatmapglColorbarTitleSide = "bottom"
)
-// HeatmapglColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// HeatmapglColorbarXanchor 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*.
type HeatmapglColorbarXanchor string
const (
@@ -808,7 +905,7 @@ const (
HeatmapglColorbarXanchorRight HeatmapglColorbarXanchor = "right"
)
-// HeatmapglColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// HeatmapglColorbarYanchor 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*.
type HeatmapglColorbarYanchor string
const (
diff --git a/graph_objects/histogram2d_gen.go b/generated/v2.19.0/graph_objects/histogram2d_gen.go
similarity index 77%
rename from graph_objects/histogram2d_gen.go
rename to generated/v2.19.0/graph_objects/histogram2d_gen.go
index f11a99c..163eea1 100644
--- a/graph_objects/histogram2d_gen.go
+++ b/generated/v2.19.0/graph_objects/histogram2d_gen.go
@@ -30,7 +30,7 @@ type Histogram2d struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Bingroup
@@ -52,7 +52,7 @@ type Histogram2d struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`zmin` and `zmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `zmin` and `zmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Customdata
@@ -64,7 +64,7 @@ type Histogram2d struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Histfunc
@@ -88,7 +88,7 @@ type Histogram2d struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -98,13 +98,13 @@ type Histogram2d struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Ids
@@ -116,7 +116,7 @@ type Histogram2d struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Legendgroup
@@ -125,6 +125,22 @@ type Histogram2d struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *Histogram2dLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Marker
// role: Object
Marker *Histogram2dMarker `json:"marker,omitempty"`
@@ -138,7 +154,7 @@ type Histogram2d struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -187,6 +203,16 @@ type Histogram2d struct {
// role: Object
Stream *Histogram2dStream `json:"stream,omitempty"`
+ // Textfont
+ // role: Object
+ Textfont *Histogram2dTextfont `json:"textfont,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. variable `z`
+ Texttemplate String `json:"texttemplate,omitempty"`
+
// Transforms
// It's an items array and what goes inside it's... messy... check the docs
// I will be happy if you want to contribute by implementing this
@@ -245,10 +271,16 @@ type Histogram2d struct {
// Sets the horizontal gap (in pixels) between bricks.
Xgap float64 `json:"xgap,omitempty"`
+ // Xhoverformat
+ // 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"`
+
// Xsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for x .
+ // Sets the source reference on Chart Studio Cloud for `x`.
Xsrc String `json:"xsrc,omitempty"`
// Y
@@ -285,10 +317,16 @@ type Histogram2d struct {
// Sets the vertical gap (in pixels) between bricks.
Ygap float64 `json:"ygap,omitempty"`
+ // Yhoverformat
+ // 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"`
+
// Ysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for y .
+ // Sets the source reference on Chart Studio Cloud for `y`.
Ysrc String `json:"ysrc,omitempty"`
// Z
@@ -300,13 +338,13 @@ type Histogram2d struct {
// Zauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user.
Zauto Bool `json:"zauto,omitempty"`
// Zhoverformat
// arrayOK: false
// type: string
- // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. See: https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format
+ // 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"`
// Zmax
@@ -336,7 +374,7 @@ type Histogram2d struct {
// Zsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for z .
+ // Sets the source reference on Chart Studio Cloud for `z`.
Zsrc String `json:"zsrc,omitempty"`
}
@@ -392,9 +430,9 @@ type Histogram2dColorbarTitle struct {
Font *Histogram2dColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side Histogram2dColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -437,6 +475,12 @@ type Histogram2dColorbar struct {
// 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.
Exponentformat Histogram2dColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -461,6 +505,12 @@ type Histogram2dColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation Histogram2dColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -540,7 +590,7 @@ type Histogram2dColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -549,12 +599,24 @@ type Histogram2dColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition Histogram2dColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -594,7 +656,7 @@ type Histogram2dColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -606,7 +668,7 @@ type Histogram2dColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -622,13 +684,13 @@ type Histogram2dColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor Histogram2dColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -640,13 +702,13 @@ type Histogram2dColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor Histogram2dColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -668,7 +730,7 @@ type Histogram2dHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -680,7 +742,7 @@ type Histogram2dHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -692,7 +754,7 @@ type Histogram2dHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -708,7 +770,7 @@ type Histogram2dHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -720,7 +782,7 @@ type Histogram2dHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -732,7 +794,7 @@ type Histogram2dHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -748,10 +810,46 @@ type Histogram2dHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// Histogram2dLegendgrouptitleFont Sets this legend group's title font.
+type Histogram2dLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// Histogram2dLegendgrouptitle
+type Histogram2dLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *Histogram2dLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// Histogram2dMarker
type Histogram2dMarker struct {
@@ -764,7 +862,7 @@ type Histogram2dMarker struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
}
@@ -784,6 +882,28 @@ type Histogram2dStream struct {
Token String `json:"token,omitempty"`
}
+// Histogram2dTextfont Sets the text font.
+type Histogram2dTextfont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
// Histogram2dXbins
type Histogram2dXbins struct {
@@ -836,7 +956,7 @@ const (
Histogram2dColorbarExponentformatE1 Histogram2dColorbarExponentformat = "e"
Histogram2dColorbarExponentformatE2 Histogram2dColorbarExponentformat = "E"
Histogram2dColorbarExponentformatPower Histogram2dColorbarExponentformat = "power"
- Histogram2dColorbarExponentformatSi Histogram2dColorbarExponentformat = "SI"
+ Histogram2dColorbarExponentformatSI Histogram2dColorbarExponentformat = "SI"
Histogram2dColorbarExponentformatB Histogram2dColorbarExponentformat = "B"
)
@@ -848,6 +968,14 @@ const (
Histogram2dColorbarLenmodePixels Histogram2dColorbarLenmode = "pixels"
)
+// Histogram2dColorbarOrientation Sets the orientation of the colorbar.
+type Histogram2dColorbarOrientation string
+
+const (
+ Histogram2dColorbarOrientationH Histogram2dColorbarOrientation = "h"
+ Histogram2dColorbarOrientationV Histogram2dColorbarOrientation = "v"
+)
+
// Histogram2dColorbarShowexponent 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.
type Histogram2dColorbarShowexponent string
@@ -886,7 +1014,16 @@ const (
Histogram2dColorbarThicknessmodePixels Histogram2dColorbarThicknessmode = "pixels"
)
-// Histogram2dColorbarTicklabelposition Determines where tick labels are drawn.
+// Histogram2dColorbarTicklabeloverflow 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*.
+type Histogram2dColorbarTicklabeloverflow string
+
+const (
+ Histogram2dColorbarTicklabeloverflowAllow Histogram2dColorbarTicklabeloverflow = "allow"
+ Histogram2dColorbarTicklabeloverflowHidePastDiv Histogram2dColorbarTicklabeloverflow = "hide past div"
+ Histogram2dColorbarTicklabeloverflowHidePastDomain Histogram2dColorbarTicklabeloverflow = "hide past domain"
+)
+
+// Histogram2dColorbarTicklabelposition 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*.
type Histogram2dColorbarTicklabelposition string
const (
@@ -894,6 +1031,10 @@ const (
Histogram2dColorbarTicklabelpositionInside Histogram2dColorbarTicklabelposition = "inside"
Histogram2dColorbarTicklabelpositionOutsideTop Histogram2dColorbarTicklabelposition = "outside top"
Histogram2dColorbarTicklabelpositionInsideTop Histogram2dColorbarTicklabelposition = "inside top"
+ Histogram2dColorbarTicklabelpositionOutsideLeft Histogram2dColorbarTicklabelposition = "outside left"
+ Histogram2dColorbarTicklabelpositionInsideLeft Histogram2dColorbarTicklabelposition = "inside left"
+ Histogram2dColorbarTicklabelpositionOutsideRight Histogram2dColorbarTicklabelposition = "outside right"
+ Histogram2dColorbarTicklabelpositionInsideRight Histogram2dColorbarTicklabelposition = "inside right"
Histogram2dColorbarTicklabelpositionOutsideBottom Histogram2dColorbarTicklabelposition = "outside bottom"
Histogram2dColorbarTicklabelpositionInsideBottom Histogram2dColorbarTicklabelposition = "inside bottom"
)
@@ -916,7 +1057,7 @@ const (
Histogram2dColorbarTicksEmpty Histogram2dColorbarTicks = ""
)
-// Histogram2dColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// Histogram2dColorbarTitleSide 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.
type Histogram2dColorbarTitleSide string
const (
@@ -925,7 +1066,7 @@ const (
Histogram2dColorbarTitleSideBottom Histogram2dColorbarTitleSide = "bottom"
)
-// Histogram2dColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// Histogram2dColorbarXanchor 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*.
type Histogram2dColorbarXanchor string
const (
@@ -934,7 +1075,7 @@ const (
Histogram2dColorbarXanchorRight Histogram2dColorbarXanchor = "right"
)
-// Histogram2dColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// Histogram2dColorbarYanchor 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*.
type Histogram2dColorbarYanchor string
const (
@@ -987,19 +1128,19 @@ var (
type Histogram2dXcalendar string
const (
- Histogram2dXcalendarGregorian Histogram2dXcalendar = "gregorian"
Histogram2dXcalendarChinese Histogram2dXcalendar = "chinese"
Histogram2dXcalendarCoptic Histogram2dXcalendar = "coptic"
Histogram2dXcalendarDiscworld Histogram2dXcalendar = "discworld"
Histogram2dXcalendarEthiopian Histogram2dXcalendar = "ethiopian"
+ Histogram2dXcalendarGregorian Histogram2dXcalendar = "gregorian"
Histogram2dXcalendarHebrew Histogram2dXcalendar = "hebrew"
Histogram2dXcalendarIslamic Histogram2dXcalendar = "islamic"
+ Histogram2dXcalendarJalali Histogram2dXcalendar = "jalali"
Histogram2dXcalendarJulian Histogram2dXcalendar = "julian"
Histogram2dXcalendarMayan Histogram2dXcalendar = "mayan"
Histogram2dXcalendarNanakshahi Histogram2dXcalendar = "nanakshahi"
Histogram2dXcalendarNepali Histogram2dXcalendar = "nepali"
Histogram2dXcalendarPersian Histogram2dXcalendar = "persian"
- Histogram2dXcalendarJalali Histogram2dXcalendar = "jalali"
Histogram2dXcalendarTaiwan Histogram2dXcalendar = "taiwan"
Histogram2dXcalendarThai Histogram2dXcalendar = "thai"
Histogram2dXcalendarUmmalqura Histogram2dXcalendar = "ummalqura"
@@ -1009,19 +1150,19 @@ const (
type Histogram2dYcalendar string
const (
- Histogram2dYcalendarGregorian Histogram2dYcalendar = "gregorian"
Histogram2dYcalendarChinese Histogram2dYcalendar = "chinese"
Histogram2dYcalendarCoptic Histogram2dYcalendar = "coptic"
Histogram2dYcalendarDiscworld Histogram2dYcalendar = "discworld"
Histogram2dYcalendarEthiopian Histogram2dYcalendar = "ethiopian"
+ Histogram2dYcalendarGregorian Histogram2dYcalendar = "gregorian"
Histogram2dYcalendarHebrew Histogram2dYcalendar = "hebrew"
Histogram2dYcalendarIslamic Histogram2dYcalendar = "islamic"
+ Histogram2dYcalendarJalali Histogram2dYcalendar = "jalali"
Histogram2dYcalendarJulian Histogram2dYcalendar = "julian"
Histogram2dYcalendarMayan Histogram2dYcalendar = "mayan"
Histogram2dYcalendarNanakshahi Histogram2dYcalendar = "nanakshahi"
Histogram2dYcalendarNepali Histogram2dYcalendar = "nepali"
Histogram2dYcalendarPersian Histogram2dYcalendar = "persian"
- Histogram2dYcalendarJalali Histogram2dYcalendar = "jalali"
Histogram2dYcalendarTaiwan Histogram2dYcalendar = "taiwan"
Histogram2dYcalendarThai Histogram2dYcalendar = "thai"
Histogram2dYcalendarUmmalqura Histogram2dYcalendar = "ummalqura"
diff --git a/graph_objects/histogram2dcontour_gen.go b/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go
similarity index 80%
rename from graph_objects/histogram2dcontour_gen.go
rename to generated/v2.19.0/graph_objects/histogram2dcontour_gen.go
index d513deb..e0dd867 100644
--- a/graph_objects/histogram2dcontour_gen.go
+++ b/generated/v2.19.0/graph_objects/histogram2dcontour_gen.go
@@ -30,7 +30,7 @@ type Histogram2dcontour struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Autocontour
@@ -58,7 +58,7 @@ type Histogram2dcontour struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`zmin` and `zmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `zmin` and `zmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Contours
@@ -74,7 +74,7 @@ type Histogram2dcontour struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Histfunc
@@ -98,7 +98,7 @@ type Histogram2dcontour struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -108,13 +108,13 @@ type Histogram2dcontour struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Ids
@@ -126,7 +126,7 @@ type Histogram2dcontour struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Legendgroup
@@ -135,6 +135,22 @@ type Histogram2dcontour struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *Histogram2dcontourLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Line
// role: Object
Line *Histogram2dcontourLine `json:"line,omitempty"`
@@ -152,7 +168,7 @@ type Histogram2dcontour struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -207,6 +223,16 @@ type Histogram2dcontour struct {
// role: Object
Stream *Histogram2dcontourStream `json:"stream,omitempty"`
+ // Textfont
+ // role: Object
+ Textfont *Histogram2dcontourTextfont `json:"textfont,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"`
+
// Transforms
// It's an items array and what goes inside it's... messy... check the docs
// I will be happy if you want to contribute by implementing this
@@ -259,10 +285,16 @@ type Histogram2dcontour struct {
// Sets the calendar system to use with `x` date data.
Xcalendar Histogram2dcontourXcalendar `json:"xcalendar,omitempty"`
+ // Xhoverformat
+ // 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"`
+
// Xsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for x .
+ // Sets the source reference on Chart Studio Cloud for `x`.
Xsrc String `json:"xsrc,omitempty"`
// Y
@@ -293,10 +325,16 @@ type Histogram2dcontour struct {
// Sets the calendar system to use with `y` date data.
Ycalendar Histogram2dcontourYcalendar `json:"ycalendar,omitempty"`
+ // Yhoverformat
+ // 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"`
+
// Ysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for y .
+ // Sets the source reference on Chart Studio Cloud for `y`.
Ysrc String `json:"ysrc,omitempty"`
// Z
@@ -308,13 +346,13 @@ type Histogram2dcontour struct {
// Zauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `z`) or the bounds set in `zmin` and `zmax` Defaults to `false` when `zmin` and `zmax` are set by the user.
Zauto Bool `json:"zauto,omitempty"`
// Zhoverformat
// arrayOK: false
// type: string
- // Sets the hover text formatting rule using d3 formatting mini-languages which are very similar to those in Python. See: https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format
+ // 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"`
// Zmax
@@ -338,7 +376,7 @@ type Histogram2dcontour struct {
// Zsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for z .
+ // Sets the source reference on Chart Studio Cloud for `z`.
Zsrc String `json:"zsrc,omitempty"`
}
@@ -394,9 +432,9 @@ type Histogram2dcontourColorbarTitle struct {
Font *Histogram2dcontourColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side Histogram2dcontourColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -439,6 +477,12 @@ type Histogram2dcontourColorbar struct {
// 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.
Exponentformat Histogram2dcontourColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -463,6 +507,12 @@ type Histogram2dcontourColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation Histogram2dcontourColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -542,7 +592,7 @@ type Histogram2dcontourColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -551,12 +601,24 @@ type Histogram2dcontourColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition Histogram2dcontourColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -596,7 +658,7 @@ type Histogram2dcontourColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -608,7 +670,7 @@ type Histogram2dcontourColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -624,13 +686,13 @@ type Histogram2dcontourColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor Histogram2dcontourColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -642,13 +704,13 @@ type Histogram2dcontourColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor Histogram2dcontourColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -702,7 +764,7 @@ type Histogram2dcontourContours struct {
// Labelformat
// arrayOK: false
// type: string
- // Sets the contour label formatting rule using d3 formatting mini-language which is very similar to Python, see: https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format
+ // 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"`
// Operation
@@ -760,7 +822,7 @@ type Histogram2dcontourHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -772,7 +834,7 @@ type Histogram2dcontourHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -784,7 +846,7 @@ type Histogram2dcontourHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -800,7 +862,7 @@ type Histogram2dcontourHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -812,7 +874,7 @@ type Histogram2dcontourHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -824,7 +886,7 @@ type Histogram2dcontourHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -840,10 +902,46 @@ type Histogram2dcontourHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// Histogram2dcontourLegendgrouptitleFont Sets this legend group's title font.
+type Histogram2dcontourLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// Histogram2dcontourLegendgrouptitle
+type Histogram2dcontourLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *Histogram2dcontourLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// Histogram2dcontourLine
type Histogram2dcontourLine struct {
@@ -884,7 +982,7 @@ type Histogram2dcontourMarker struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
}
@@ -904,6 +1002,28 @@ type Histogram2dcontourStream struct {
Token String `json:"token,omitempty"`
}
+// Histogram2dcontourTextfont For this trace it only has an effect if `coloring` is set to *heatmap*. Sets the text font.
+type Histogram2dcontourTextfont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
// Histogram2dcontourXbins
type Histogram2dcontourXbins struct {
@@ -956,7 +1076,7 @@ const (
Histogram2dcontourColorbarExponentformatE1 Histogram2dcontourColorbarExponentformat = "e"
Histogram2dcontourColorbarExponentformatE2 Histogram2dcontourColorbarExponentformat = "E"
Histogram2dcontourColorbarExponentformatPower Histogram2dcontourColorbarExponentformat = "power"
- Histogram2dcontourColorbarExponentformatSi Histogram2dcontourColorbarExponentformat = "SI"
+ Histogram2dcontourColorbarExponentformatSI Histogram2dcontourColorbarExponentformat = "SI"
Histogram2dcontourColorbarExponentformatB Histogram2dcontourColorbarExponentformat = "B"
)
@@ -968,6 +1088,14 @@ const (
Histogram2dcontourColorbarLenmodePixels Histogram2dcontourColorbarLenmode = "pixels"
)
+// Histogram2dcontourColorbarOrientation Sets the orientation of the colorbar.
+type Histogram2dcontourColorbarOrientation string
+
+const (
+ Histogram2dcontourColorbarOrientationH Histogram2dcontourColorbarOrientation = "h"
+ Histogram2dcontourColorbarOrientationV Histogram2dcontourColorbarOrientation = "v"
+)
+
// Histogram2dcontourColorbarShowexponent 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.
type Histogram2dcontourColorbarShowexponent string
@@ -1006,7 +1134,16 @@ const (
Histogram2dcontourColorbarThicknessmodePixels Histogram2dcontourColorbarThicknessmode = "pixels"
)
-// Histogram2dcontourColorbarTicklabelposition Determines where tick labels are drawn.
+// Histogram2dcontourColorbarTicklabeloverflow 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*.
+type Histogram2dcontourColorbarTicklabeloverflow string
+
+const (
+ Histogram2dcontourColorbarTicklabeloverflowAllow Histogram2dcontourColorbarTicklabeloverflow = "allow"
+ Histogram2dcontourColorbarTicklabeloverflowHidePastDiv Histogram2dcontourColorbarTicklabeloverflow = "hide past div"
+ Histogram2dcontourColorbarTicklabeloverflowHidePastDomain Histogram2dcontourColorbarTicklabeloverflow = "hide past domain"
+)
+
+// Histogram2dcontourColorbarTicklabelposition 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*.
type Histogram2dcontourColorbarTicklabelposition string
const (
@@ -1014,6 +1151,10 @@ const (
Histogram2dcontourColorbarTicklabelpositionInside Histogram2dcontourColorbarTicklabelposition = "inside"
Histogram2dcontourColorbarTicklabelpositionOutsideTop Histogram2dcontourColorbarTicklabelposition = "outside top"
Histogram2dcontourColorbarTicklabelpositionInsideTop Histogram2dcontourColorbarTicklabelposition = "inside top"
+ Histogram2dcontourColorbarTicklabelpositionOutsideLeft Histogram2dcontourColorbarTicklabelposition = "outside left"
+ Histogram2dcontourColorbarTicklabelpositionInsideLeft Histogram2dcontourColorbarTicklabelposition = "inside left"
+ Histogram2dcontourColorbarTicklabelpositionOutsideRight Histogram2dcontourColorbarTicklabelposition = "outside right"
+ Histogram2dcontourColorbarTicklabelpositionInsideRight Histogram2dcontourColorbarTicklabelposition = "inside right"
Histogram2dcontourColorbarTicklabelpositionOutsideBottom Histogram2dcontourColorbarTicklabelposition = "outside bottom"
Histogram2dcontourColorbarTicklabelpositionInsideBottom Histogram2dcontourColorbarTicklabelposition = "inside bottom"
)
@@ -1036,7 +1177,7 @@ const (
Histogram2dcontourColorbarTicksEmpty Histogram2dcontourColorbarTicks = ""
)
-// Histogram2dcontourColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// Histogram2dcontourColorbarTitleSide 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.
type Histogram2dcontourColorbarTitleSide string
const (
@@ -1045,7 +1186,7 @@ const (
Histogram2dcontourColorbarTitleSideBottom Histogram2dcontourColorbarTitleSide = "bottom"
)
-// Histogram2dcontourColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// Histogram2dcontourColorbarXanchor 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*.
type Histogram2dcontourColorbarXanchor string
const (
@@ -1054,7 +1195,7 @@ const (
Histogram2dcontourColorbarXanchorRight Histogram2dcontourColorbarXanchor = "right"
)
-// Histogram2dcontourColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// Histogram2dcontourColorbarYanchor 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*.
type Histogram2dcontourColorbarYanchor string
const (
@@ -1144,19 +1285,19 @@ var (
type Histogram2dcontourXcalendar string
const (
- Histogram2dcontourXcalendarGregorian Histogram2dcontourXcalendar = "gregorian"
Histogram2dcontourXcalendarChinese Histogram2dcontourXcalendar = "chinese"
Histogram2dcontourXcalendarCoptic Histogram2dcontourXcalendar = "coptic"
Histogram2dcontourXcalendarDiscworld Histogram2dcontourXcalendar = "discworld"
Histogram2dcontourXcalendarEthiopian Histogram2dcontourXcalendar = "ethiopian"
+ Histogram2dcontourXcalendarGregorian Histogram2dcontourXcalendar = "gregorian"
Histogram2dcontourXcalendarHebrew Histogram2dcontourXcalendar = "hebrew"
Histogram2dcontourXcalendarIslamic Histogram2dcontourXcalendar = "islamic"
+ Histogram2dcontourXcalendarJalali Histogram2dcontourXcalendar = "jalali"
Histogram2dcontourXcalendarJulian Histogram2dcontourXcalendar = "julian"
Histogram2dcontourXcalendarMayan Histogram2dcontourXcalendar = "mayan"
Histogram2dcontourXcalendarNanakshahi Histogram2dcontourXcalendar = "nanakshahi"
Histogram2dcontourXcalendarNepali Histogram2dcontourXcalendar = "nepali"
Histogram2dcontourXcalendarPersian Histogram2dcontourXcalendar = "persian"
- Histogram2dcontourXcalendarJalali Histogram2dcontourXcalendar = "jalali"
Histogram2dcontourXcalendarTaiwan Histogram2dcontourXcalendar = "taiwan"
Histogram2dcontourXcalendarThai Histogram2dcontourXcalendar = "thai"
Histogram2dcontourXcalendarUmmalqura Histogram2dcontourXcalendar = "ummalqura"
@@ -1166,19 +1307,19 @@ const (
type Histogram2dcontourYcalendar string
const (
- Histogram2dcontourYcalendarGregorian Histogram2dcontourYcalendar = "gregorian"
Histogram2dcontourYcalendarChinese Histogram2dcontourYcalendar = "chinese"
Histogram2dcontourYcalendarCoptic Histogram2dcontourYcalendar = "coptic"
Histogram2dcontourYcalendarDiscworld Histogram2dcontourYcalendar = "discworld"
Histogram2dcontourYcalendarEthiopian Histogram2dcontourYcalendar = "ethiopian"
+ Histogram2dcontourYcalendarGregorian Histogram2dcontourYcalendar = "gregorian"
Histogram2dcontourYcalendarHebrew Histogram2dcontourYcalendar = "hebrew"
Histogram2dcontourYcalendarIslamic Histogram2dcontourYcalendar = "islamic"
+ Histogram2dcontourYcalendarJalali Histogram2dcontourYcalendar = "jalali"
Histogram2dcontourYcalendarJulian Histogram2dcontourYcalendar = "julian"
Histogram2dcontourYcalendarMayan Histogram2dcontourYcalendar = "mayan"
Histogram2dcontourYcalendarNanakshahi Histogram2dcontourYcalendar = "nanakshahi"
Histogram2dcontourYcalendarNepali Histogram2dcontourYcalendar = "nepali"
Histogram2dcontourYcalendarPersian Histogram2dcontourYcalendar = "persian"
- Histogram2dcontourYcalendarJalali Histogram2dcontourYcalendar = "jalali"
Histogram2dcontourYcalendarTaiwan Histogram2dcontourYcalendar = "taiwan"
Histogram2dcontourYcalendarThai Histogram2dcontourYcalendar = "thai"
Histogram2dcontourYcalendarUmmalqura Histogram2dcontourYcalendar = "ummalqura"
diff --git a/graph_objects/histogram_gen.go b/generated/v2.19.0/graph_objects/histogram_gen.go
similarity index 70%
rename from graph_objects/histogram_gen.go
rename to generated/v2.19.0/graph_objects/histogram_gen.go
index 68ac525..4695d27 100644
--- a/graph_objects/histogram_gen.go
+++ b/generated/v2.19.0/graph_objects/histogram_gen.go
@@ -39,6 +39,18 @@ type Histogram struct {
// 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"`
+ // Cliponaxis
+ // arrayOK: false
+ // type: boolean
+ // Determines whether the text nodes are clipped about the subplot axes. To show the text nodes above axis lines and tick labels, make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*.
+ Cliponaxis Bool `json:"cliponaxis,omitempty"`
+
+ // Constraintext
+ // default: both
+ // type: enumerated
+ // Constrain the size of text inside or outside a bar to be no larger than the bar itself.
+ Constraintext HistogramConstraintext `json:"constraintext,omitempty"`
+
// Cumulative
// role: Object
Cumulative *HistogramCumulative `json:"cumulative,omitempty"`
@@ -52,7 +64,7 @@ type Histogram struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// ErrorX
@@ -84,7 +96,7 @@ type Histogram struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -94,13 +106,13 @@ type Histogram struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -112,7 +124,7 @@ type Histogram struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -124,15 +136,41 @@ type Histogram struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
+ // Insidetextanchor
+ // default: end
+ // type: enumerated
+ // Determines if texts are kept at center or start/end points in `textposition` *inside* mode.
+ Insidetextanchor HistogramInsidetextanchor `json:"insidetextanchor,omitempty"`
+
+ // Insidetextfont
+ // role: Object
+ Insidetextfont *HistogramInsidetextfont `json:"insidetextfont,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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *HistogramLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Marker
// role: Object
Marker *HistogramMarker `json:"marker,omitempty"`
@@ -146,7 +184,7 @@ type Histogram struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -185,6 +223,10 @@ type Histogram struct {
// Sets the orientation of the bars. With *v* (*h*), the value of the each bar spans along the vertical (horizontal).
Orientation HistogramOrientation `json:"orientation,omitempty"`
+ // Outsidetextfont
+ // role: Object
+ Outsidetextfont *HistogramOutsidetextfont `json:"outsidetextfont,omitempty"`
+
// Selected
// role: Object
Selected *HistogramSelected `json:"selected,omitempty"`
@@ -211,12 +253,34 @@ type Histogram struct {
// 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"`
+ // Textangle
+ // arrayOK: false
+ // type: angle
+ // Sets the angle of the tick labels with respect to the bar. For example, a `tickangle` of -90 draws the tick labels vertically. With *auto* the texts may automatically be rotated to fit with the maximum size in bars.
+ Textangle float64 `json:"textangle,omitempty"`
+
+ // Textfont
+ // role: Object
+ Textfont *HistogramTextfont `json:"textfont,omitempty"`
+
+ // Textposition
+ // 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 HistogramTextposition `json:"textposition,omitempty"`
+
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
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"`
+
// Transforms
// It's an items array and what goes inside it's... messy... check the docs
// I will be happy if you want to contribute by implementing this
@@ -267,10 +331,16 @@ type Histogram struct {
// Sets the calendar system to use with `x` date data.
Xcalendar HistogramXcalendar `json:"xcalendar,omitempty"`
+ // Xhoverformat
+ // 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"`
+
// Xsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for x .
+ // Sets the source reference on Chart Studio Cloud for `x`.
Xsrc String `json:"xsrc,omitempty"`
// Y
@@ -295,10 +365,16 @@ type Histogram struct {
// Sets the calendar system to use with `y` date data.
Ycalendar HistogramYcalendar `json:"ycalendar,omitempty"`
+ // Yhoverformat
+ // 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"`
+
// Ysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for y .
+ // Sets the source reference on Chart Studio Cloud for `y`.
Ysrc String `json:"ysrc,omitempty"`
}
@@ -342,13 +418,13 @@ type HistogramErrorX struct {
// Arrayminussrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for arrayminus .
+ // Sets the source reference on Chart Studio Cloud for `arrayminus`.
Arrayminussrc String `json:"arrayminussrc,omitempty"`
// Arraysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for array .
+ // Sets the source reference on Chart Studio Cloud for `array`.
Arraysrc String `json:"arraysrc,omitempty"`
// Color
@@ -436,13 +512,13 @@ type HistogramErrorY struct {
// Arrayminussrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for arrayminus .
+ // Sets the source reference on Chart Studio Cloud for `arrayminus`.
Arrayminussrc String `json:"arrayminussrc,omitempty"`
// Arraysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for array .
+ // Sets the source reference on Chart Studio Cloud for `array`.
Arraysrc String `json:"arraysrc,omitempty"`
// Color
@@ -518,7 +594,7 @@ type HistogramHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -530,7 +606,7 @@ type HistogramHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -542,7 +618,7 @@ type HistogramHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -558,7 +634,7 @@ type HistogramHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -570,7 +646,7 @@ type HistogramHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -582,7 +658,7 @@ type HistogramHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -598,10 +674,68 @@ type HistogramHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// HistogramInsidetextfont Sets the font used for `text` lying inside the bar.
+type HistogramInsidetextfont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// HistogramLegendgrouptitleFont Sets this legend group's title font.
+type HistogramLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// HistogramLegendgrouptitle
+type HistogramLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *HistogramLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// HistogramMarkerColorbarTickfont Sets the color bar's tick label font
type HistogramMarkerColorbarTickfont struct {
@@ -654,9 +788,9 @@ type HistogramMarkerColorbarTitle struct {
Font *HistogramMarkerColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side HistogramMarkerColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -699,6 +833,12 @@ type HistogramMarkerColorbar struct {
// 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.
Exponentformat HistogramMarkerColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -723,6 +863,12 @@ type HistogramMarkerColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation HistogramMarkerColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -802,7 +948,7 @@ type HistogramMarkerColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -811,12 +957,24 @@ type HistogramMarkerColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition HistogramMarkerColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -856,7 +1014,7 @@ type HistogramMarkerColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -868,7 +1026,7 @@ type HistogramMarkerColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -884,13 +1042,13 @@ type HistogramMarkerColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor HistogramMarkerColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -902,13 +1060,13 @@ type HistogramMarkerColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor HistogramMarkerColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -924,37 +1082,37 @@ type HistogramMarkerLine struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color`is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color` is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarker.linecolor. 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.
+ // 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"`
// Coloraxis
@@ -966,19 +1124,19 @@ type HistogramMarkerLine struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.line.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.line.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.line.color`is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.line.color` is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Width
@@ -990,47 +1148,123 @@ type HistogramMarkerLine struct {
// Widthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for width .
+ // Sets the source reference on Chart Studio Cloud for `width`.
Widthsrc String `json:"widthsrc,omitempty"`
}
+// HistogramMarkerPattern Sets the pattern within the marker.
+type HistogramMarkerPattern struct {
+
+ // Bgcolor
+ // 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"`
+
+ // Bgcolorsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
+ 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"`
+
+ // Fgcolorsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `fgcolor`.
+ Fgcolorsrc String `json:"fgcolorsrc,omitempty"`
+
+ // Fgopacity
+ // arrayOK: false
+ // type: number
+ // Sets the opacity of the foreground pattern fill. Defaults to a 0.5 when `fillmode` is *overlay*. Otherwise, defaults to 1.
+ Fgopacity float64 `json:"fgopacity,omitempty"`
+
+ // Fillmode
+ // 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
+ // 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"`
+
+ // Shapesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `shape`.
+ 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"`
+
+ // Sizesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `size`.
+ 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"`
+
+ // Soliditysrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `solidity`.
+ Soliditysrc String `json:"soliditysrc,omitempty"`
+}
+
// HistogramMarker
type HistogramMarker struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color` is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarkercolor. 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.
+ // 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"`
// Coloraxis
@@ -1046,13 +1280,13 @@ type HistogramMarker struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Line
@@ -1068,22 +1302,48 @@ type HistogramMarker struct {
// Opacitysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for opacity .
+ // Sets the source reference on Chart Studio Cloud for `opacity`.
Opacitysrc String `json:"opacitysrc,omitempty"`
+ // Pattern
+ // role: Object
+ Pattern *HistogramMarkerPattern `json:"pattern,omitempty"`
+
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.color`is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.color` is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Showscale
// arrayOK: false
// type: boolean
- // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array.
+ // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color` is set to a numerical array.
Showscale Bool `json:"showscale,omitempty"`
}
+// HistogramOutsidetextfont Sets the font used for `text` lying outside the bar.
+type HistogramOutsidetextfont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
// HistogramSelectedMarker
type HistogramSelectedMarker struct {
@@ -1138,6 +1398,28 @@ type HistogramStream struct {
Token String `json:"token,omitempty"`
}
+// HistogramTextfont Sets the text font.
+type HistogramTextfont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
// HistogramUnselectedMarker
type HistogramUnselectedMarker struct {
@@ -1220,6 +1502,16 @@ type HistogramYbins struct {
Start interface{} `json:"start,omitempty"`
}
+// HistogramConstraintext Constrain the size of text inside or outside a bar to be no larger than the bar itself.
+type HistogramConstraintext string
+
+const (
+ HistogramConstraintextInside HistogramConstraintext = "inside"
+ HistogramConstraintextOutside HistogramConstraintext = "outside"
+ HistogramConstraintextBoth HistogramConstraintext = "both"
+ HistogramConstraintextNone HistogramConstraintext = "none"
+)
+
// HistogramCumulativeCurrentbin 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.
type HistogramCumulativeCurrentbin string
@@ -1288,6 +1580,15 @@ const (
HistogramHoverlabelAlignAuto HistogramHoverlabelAlign = "auto"
)
+// HistogramInsidetextanchor Determines if texts are kept at center or start/end points in `textposition` *inside* mode.
+type HistogramInsidetextanchor string
+
+const (
+ HistogramInsidetextanchorEnd HistogramInsidetextanchor = "end"
+ HistogramInsidetextanchorMiddle HistogramInsidetextanchor = "middle"
+ HistogramInsidetextanchorStart HistogramInsidetextanchor = "start"
+)
+
// HistogramMarkerColorbarExponentformat 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.
type HistogramMarkerColorbarExponentformat string
@@ -1296,7 +1597,7 @@ const (
HistogramMarkerColorbarExponentformatE1 HistogramMarkerColorbarExponentformat = "e"
HistogramMarkerColorbarExponentformatE2 HistogramMarkerColorbarExponentformat = "E"
HistogramMarkerColorbarExponentformatPower HistogramMarkerColorbarExponentformat = "power"
- HistogramMarkerColorbarExponentformatSi HistogramMarkerColorbarExponentformat = "SI"
+ HistogramMarkerColorbarExponentformatSI HistogramMarkerColorbarExponentformat = "SI"
HistogramMarkerColorbarExponentformatB HistogramMarkerColorbarExponentformat = "B"
)
@@ -1308,6 +1609,14 @@ const (
HistogramMarkerColorbarLenmodePixels HistogramMarkerColorbarLenmode = "pixels"
)
+// HistogramMarkerColorbarOrientation Sets the orientation of the colorbar.
+type HistogramMarkerColorbarOrientation string
+
+const (
+ HistogramMarkerColorbarOrientationH HistogramMarkerColorbarOrientation = "h"
+ HistogramMarkerColorbarOrientationV HistogramMarkerColorbarOrientation = "v"
+)
+
// HistogramMarkerColorbarShowexponent 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.
type HistogramMarkerColorbarShowexponent string
@@ -1346,7 +1655,16 @@ const (
HistogramMarkerColorbarThicknessmodePixels HistogramMarkerColorbarThicknessmode = "pixels"
)
-// HistogramMarkerColorbarTicklabelposition Determines where tick labels are drawn.
+// HistogramMarkerColorbarTicklabeloverflow 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*.
+type HistogramMarkerColorbarTicklabeloverflow string
+
+const (
+ HistogramMarkerColorbarTicklabeloverflowAllow HistogramMarkerColorbarTicklabeloverflow = "allow"
+ HistogramMarkerColorbarTicklabeloverflowHidePastDiv HistogramMarkerColorbarTicklabeloverflow = "hide past div"
+ HistogramMarkerColorbarTicklabeloverflowHidePastDomain HistogramMarkerColorbarTicklabeloverflow = "hide past domain"
+)
+
+// HistogramMarkerColorbarTicklabelposition 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*.
type HistogramMarkerColorbarTicklabelposition string
const (
@@ -1354,6 +1672,10 @@ const (
HistogramMarkerColorbarTicklabelpositionInside HistogramMarkerColorbarTicklabelposition = "inside"
HistogramMarkerColorbarTicklabelpositionOutsideTop HistogramMarkerColorbarTicklabelposition = "outside top"
HistogramMarkerColorbarTicklabelpositionInsideTop HistogramMarkerColorbarTicklabelposition = "inside top"
+ HistogramMarkerColorbarTicklabelpositionOutsideLeft HistogramMarkerColorbarTicklabelposition = "outside left"
+ HistogramMarkerColorbarTicklabelpositionInsideLeft HistogramMarkerColorbarTicklabelposition = "inside left"
+ HistogramMarkerColorbarTicklabelpositionOutsideRight HistogramMarkerColorbarTicklabelposition = "outside right"
+ HistogramMarkerColorbarTicklabelpositionInsideRight HistogramMarkerColorbarTicklabelposition = "inside right"
HistogramMarkerColorbarTicklabelpositionOutsideBottom HistogramMarkerColorbarTicklabelposition = "outside bottom"
HistogramMarkerColorbarTicklabelpositionInsideBottom HistogramMarkerColorbarTicklabelposition = "inside bottom"
)
@@ -1376,7 +1698,7 @@ const (
HistogramMarkerColorbarTicksEmpty HistogramMarkerColorbarTicks = ""
)
-// HistogramMarkerColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// HistogramMarkerColorbarTitleSide 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.
type HistogramMarkerColorbarTitleSide string
const (
@@ -1385,7 +1707,7 @@ const (
HistogramMarkerColorbarTitleSideBottom HistogramMarkerColorbarTitleSide = "bottom"
)
-// HistogramMarkerColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// HistogramMarkerColorbarXanchor 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*.
type HistogramMarkerColorbarXanchor string
const (
@@ -1394,7 +1716,7 @@ const (
HistogramMarkerColorbarXanchorRight HistogramMarkerColorbarXanchor = "right"
)
-// HistogramMarkerColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// HistogramMarkerColorbarYanchor 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*.
type HistogramMarkerColorbarYanchor string
const (
@@ -1403,6 +1725,28 @@ const (
HistogramMarkerColorbarYanchorBottom HistogramMarkerColorbarYanchor = "bottom"
)
+// HistogramMarkerPatternFillmode Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`.
+type HistogramMarkerPatternFillmode string
+
+const (
+ HistogramMarkerPatternFillmodeReplace HistogramMarkerPatternFillmode = "replace"
+ HistogramMarkerPatternFillmodeOverlay HistogramMarkerPatternFillmode = "overlay"
+)
+
+// HistogramMarkerPatternShape Sets the shape of the pattern fill. By default, no pattern is used for filling the area.
+type HistogramMarkerPatternShape string
+
+const (
+ HistogramMarkerPatternShapeEmpty HistogramMarkerPatternShape = ""
+ HistogramMarkerPatternShapeSlash HistogramMarkerPatternShape = "/"
+ HistogramMarkerPatternShapeDoublebackslash HistogramMarkerPatternShape = "\\"
+ HistogramMarkerPatternShapeX HistogramMarkerPatternShape = "x"
+ HistogramMarkerPatternShapeHyphenHyphen HistogramMarkerPatternShape = "-"
+ HistogramMarkerPatternShapeOr HistogramMarkerPatternShape = "|"
+ HistogramMarkerPatternShapePlus HistogramMarkerPatternShape = "+"
+ HistogramMarkerPatternShapeDot HistogramMarkerPatternShape = "."
+)
+
// HistogramOrientation Sets the orientation of the bars. With *v* (*h*), the value of the each bar spans along the vertical (horizontal).
type HistogramOrientation string
@@ -1411,6 +1755,16 @@ const (
HistogramOrientationH HistogramOrientation = "h"
)
+// HistogramTextposition 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.
+type HistogramTextposition string
+
+const (
+ HistogramTextpositionInside HistogramTextposition = "inside"
+ HistogramTextpositionOutside HistogramTextposition = "outside"
+ HistogramTextpositionAuto HistogramTextposition = "auto"
+ HistogramTextpositionNone HistogramTextposition = "none"
+)
+
// HistogramVisible 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).
type HistogramVisible interface{}
@@ -1424,19 +1778,19 @@ var (
type HistogramXcalendar string
const (
- HistogramXcalendarGregorian HistogramXcalendar = "gregorian"
HistogramXcalendarChinese HistogramXcalendar = "chinese"
HistogramXcalendarCoptic HistogramXcalendar = "coptic"
HistogramXcalendarDiscworld HistogramXcalendar = "discworld"
HistogramXcalendarEthiopian HistogramXcalendar = "ethiopian"
+ HistogramXcalendarGregorian HistogramXcalendar = "gregorian"
HistogramXcalendarHebrew HistogramXcalendar = "hebrew"
HistogramXcalendarIslamic HistogramXcalendar = "islamic"
+ HistogramXcalendarJalali HistogramXcalendar = "jalali"
HistogramXcalendarJulian HistogramXcalendar = "julian"
HistogramXcalendarMayan HistogramXcalendar = "mayan"
HistogramXcalendarNanakshahi HistogramXcalendar = "nanakshahi"
HistogramXcalendarNepali HistogramXcalendar = "nepali"
HistogramXcalendarPersian HistogramXcalendar = "persian"
- HistogramXcalendarJalali HistogramXcalendar = "jalali"
HistogramXcalendarTaiwan HistogramXcalendar = "taiwan"
HistogramXcalendarThai HistogramXcalendar = "thai"
HistogramXcalendarUmmalqura HistogramXcalendar = "ummalqura"
@@ -1446,19 +1800,19 @@ const (
type HistogramYcalendar string
const (
- HistogramYcalendarGregorian HistogramYcalendar = "gregorian"
HistogramYcalendarChinese HistogramYcalendar = "chinese"
HistogramYcalendarCoptic HistogramYcalendar = "coptic"
HistogramYcalendarDiscworld HistogramYcalendar = "discworld"
HistogramYcalendarEthiopian HistogramYcalendar = "ethiopian"
+ HistogramYcalendarGregorian HistogramYcalendar = "gregorian"
HistogramYcalendarHebrew HistogramYcalendar = "hebrew"
HistogramYcalendarIslamic HistogramYcalendar = "islamic"
+ HistogramYcalendarJalali HistogramYcalendar = "jalali"
HistogramYcalendarJulian HistogramYcalendar = "julian"
HistogramYcalendarMayan HistogramYcalendar = "mayan"
HistogramYcalendarNanakshahi HistogramYcalendar = "nanakshahi"
HistogramYcalendarNepali HistogramYcalendar = "nepali"
HistogramYcalendarPersian HistogramYcalendar = "persian"
- HistogramYcalendarJalali HistogramYcalendar = "jalali"
HistogramYcalendarTaiwan HistogramYcalendar = "taiwan"
HistogramYcalendarThai HistogramYcalendar = "thai"
HistogramYcalendarUmmalqura HistogramYcalendar = "ummalqura"
diff --git a/generated/v2.19.0/graph_objects/icicle_gen.go b/generated/v2.19.0/graph_objects/icicle_gen.go
new file mode 100644
index 0000000..0fd2b6a
--- /dev/null
+++ b/generated/v2.19.0/graph_objects/icicle_gen.go
@@ -0,0 +1,1408 @@
+package grob
+
+// Code generated by go-plotly/generator. DO NOT EDIT.
+
+var TraceTypeIcicle TraceType = "icicle"
+
+func (trace *Icicle) GetType() TraceType {
+ return TraceTypeIcicle
+}
+
+// Icicle Visualize hierarchal data from leaves (and/or outer branches) towards root with rectangles. The icicle sectors are determined by the entries in *labels* or *ids* and in *parents*.
+type Icicle struct {
+
+ // Type
+ // is the type of the plot
+ Type TraceType `json:"type,omitempty"`
+
+ // Branchvalues
+ // 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.
+ Branchvalues IcicleBranchvalues `json:"branchvalues,omitempty"`
+
+ // Count
+ // 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.
+ Count IcicleCount `json:"count,omitempty"`
+
+ // Customdata
+ // arrayOK: false
+ // type: data_array
+ // Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, *scatter* traces also appends customdata items in the markers DOM elements
+ Customdata interface{} `json:"customdata,omitempty"`
+
+ // Customdatasrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
+ Customdatasrc String `json:"customdatasrc,omitempty"`
+
+ // Domain
+ // role: Object
+ Domain *IcicleDomain `json:"domain,omitempty"`
+
+ // Hoverinfo
+ // 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"`
+
+ // Hoverinfosrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
+ Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
+
+ // Hoverlabel
+ // role: Object
+ Hoverlabel *IcicleHoverlabel `json:"hoverlabel,omitempty"`
+
+ // Hovertemplate
+ // 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"`
+
+ // Hovertemplatesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
+ 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"`
+
+ // Hovertextsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
+ Hovertextsrc String `json:"hovertextsrc,omitempty"`
+
+ // Ids
+ // arrayOK: false
+ // type: data_array
+ // Assigns id labels to each datum. These ids for object constancy of data points during animation. Should be an array of strings, not numbers or any other type.
+ Ids interface{} `json:"ids,omitempty"`
+
+ // Idssrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `ids`.
+ Idssrc String `json:"idssrc,omitempty"`
+
+ // Insidetextfont
+ // role: Object
+ Insidetextfont *IcicleInsidetextfont `json:"insidetextfont,omitempty"`
+
+ // Labels
+ // arrayOK: false
+ // type: data_array
+ // Sets the labels of each of the sectors.
+ Labels interface{} `json:"labels,omitempty"`
+
+ // Labelssrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `labels`.
+ Labelssrc String `json:"labelssrc,omitempty"`
+
+ // Leaf
+ // role: Object
+ Leaf *IcicleLeaf `json:"leaf,omitempty"`
+
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *IcicleLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
+ // Level
+ // arrayOK: false
+ // type: any
+ // Sets the level from which this trace hierarchy is rendered. Set `level` to `''` to start from the root node in the hierarchy. Must be an "id" if `ids` is filled in, otherwise plotly attempts to find a matching item in `labels`.
+ Level interface{} `json:"level,omitempty"`
+
+ // Marker
+ // role: Object
+ Marker *IcicleMarker `json:"marker,omitempty"`
+
+ // Maxdepth
+ // arrayOK: false
+ // type: integer
+ // Sets the number of rendered sectors from any given `level`. Set `maxdepth` to *-1* to render all the levels in the hierarchy.
+ Maxdepth int64 `json:"maxdepth,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"`
+
+ // Metasrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `meta`.
+ 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"`
+
+ // Opacity
+ // arrayOK: false
+ // type: number
+ // Sets the opacity of the trace.
+ Opacity float64 `json:"opacity,omitempty"`
+
+ // Outsidetextfont
+ // role: Object
+ Outsidetextfont *IcicleOutsidetextfont `json:"outsidetextfont,omitempty"`
+
+ // Parents
+ // arrayOK: false
+ // type: data_array
+ // Sets the parent sectors for each of the sectors. Empty string items '' are understood to reference the root node in the hierarchy. If `ids` is filled, `parents` items are understood to be "ids" themselves. When `ids` is not set, plotly attempts to find matching items in `labels`, but beware they must be unique.
+ Parents interface{} `json:"parents,omitempty"`
+
+ // Parentssrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `parents`.
+ Parentssrc String `json:"parentssrc,omitempty"`
+
+ // Pathbar
+ // role: Object
+ Pathbar *IciclePathbar `json:"pathbar,omitempty"`
+
+ // Root
+ // role: Object
+ Root *IcicleRoot `json:"root,omitempty"`
+
+ // Sort
+ // arrayOK: false
+ // type: boolean
+ // Determines whether or not the sectors are reordered from largest to smallest.
+ Sort Bool `json:"sort,omitempty"`
+
+ // Stream
+ // role: Object
+ Stream *IcicleStream `json:"stream,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: data_array
+ // Sets text elements associated with each sector. If trace `textinfo` contains a *text* flag, these elements will be seen on the chart. If trace `hoverinfo` contains a *text* flag and *hovertext* is not set, these elements will be seen in the hover labels.
+ Text interface{} `json:"text,omitempty"`
+
+ // Textfont
+ // role: Object
+ Textfont *IcicleTextfont `json:"textfont,omitempty"`
+
+ // Textinfo
+ // default: %!s()
+ // type: flaglist
+ // Determines which trace information appear on the graph.
+ Textinfo IcicleTextinfo `json:"textinfo,omitempty"`
+
+ // Textposition
+ // default: top left
+ // type: enumerated
+ // Sets the positions of the `text` elements.
+ Textposition IcicleTextposition `json:"textposition,omitempty"`
+
+ // Textsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `text`.
+ 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"`
+
+ // Texttemplatesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `texttemplate`.
+ Texttemplatesrc String `json:"texttemplatesrc,omitempty"`
+
+ // Tiling
+ // role: Object
+ Tiling *IcicleTiling `json:"tiling,omitempty"`
+
+ // Transforms
+ // It's an items array and what goes inside it's... messy... check the docs
+ // I will be happy if you want to contribute by implementing this
+ // just raise an issue before you start so we do not overlap
+ Transforms interface{} `json:"transforms,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"`
+
+ // Uirevision
+ // arrayOK: false
+ // type: any
+ // Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.
+ Uirevision interface{} `json:"uirevision,omitempty"`
+
+ // Values
+ // arrayOK: false
+ // type: data_array
+ // Sets the values associated with each of the sectors. Use with `branchvalues` to determine how the values are summed.
+ Values interface{} `json:"values,omitempty"`
+
+ // Valuessrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `values`.
+ Valuessrc String `json:"valuessrc,omitempty"`
+
+ // Visible
+ // 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).
+ Visible IcicleVisible `json:"visible,omitempty"`
+}
+
+// IcicleDomain
+type IcicleDomain struct {
+
+ // Column
+ // arrayOK: false
+ // type: integer
+ // If there is a layout grid, use the domain for this column in the grid for this icicle trace .
+ Column int64 `json:"column,omitempty"`
+
+ // Row
+ // arrayOK: false
+ // type: integer
+ // If there is a layout grid, use the domain for this row in the grid for this icicle trace .
+ Row int64 `json:"row,omitempty"`
+
+ // X
+ // arrayOK: false
+ // type: info_array
+ // Sets the horizontal domain of this icicle trace (in plot fraction).
+ X interface{} `json:"x,omitempty"`
+
+ // Y
+ // arrayOK: false
+ // type: info_array
+ // Sets the vertical domain of this icicle trace (in plot fraction).
+ Y interface{} `json:"y,omitempty"`
+}
+
+// IcicleHoverlabelFont Sets the font used in hover labels.
+type IcicleHoverlabelFont struct {
+
+ // Color
+ // arrayOK: true
+ // type: color
+ //
+ Color Color `json:"color,omitempty"`
+
+ // Colorsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `color`.
+ 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"`
+
+ // Familysrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `family`.
+ Familysrc String `json:"familysrc,omitempty"`
+
+ // Size
+ // arrayOK: true
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+
+ // Sizesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `size`.
+ Sizesrc String `json:"sizesrc,omitempty"`
+}
+
+// IcicleHoverlabel
+type IcicleHoverlabel struct {
+
+ // Align
+ // default: auto
+ // type: enumerated
+ // Sets the horizontal alignment 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"`
+
+ // Alignsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `align`.
+ 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"`
+
+ // Bgcolorsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
+ 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"`
+
+ // Bordercolorsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
+ Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
+
+ // Font
+ // role: Object
+ Font *IcicleHoverlabelFont `json:"font,omitempty"`
+
+ // Namelength
+ // arrayOK: true
+ // type: integer
+ // Sets the default length (in number of characters) of the trace name in the hover labels for all traces. -1 shows the whole name regardless of length. 0-3 shows the first 0-3 characters, and an integer >3 will show the whole name 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"`
+
+ // Namelengthsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
+ Namelengthsrc String `json:"namelengthsrc,omitempty"`
+}
+
+// IcicleInsidetextfont Sets the font used for `textinfo` lying inside the sector.
+type IcicleInsidetextfont struct {
+
+ // Color
+ // arrayOK: true
+ // type: color
+ //
+ Color Color `json:"color,omitempty"`
+
+ // Colorsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `color`.
+ 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"`
+
+ // Familysrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `family`.
+ Familysrc String `json:"familysrc,omitempty"`
+
+ // Size
+ // arrayOK: true
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+
+ // Sizesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `size`.
+ Sizesrc String `json:"sizesrc,omitempty"`
+}
+
+// IcicleLeaf
+type IcicleLeaf struct {
+
+ // Opacity
+ // arrayOK: false
+ // type: number
+ // Sets the opacity of the leaves. With colorscale it is defaulted to 1; otherwise it is defaulted to 0.7
+ Opacity float64 `json:"opacity,omitempty"`
+}
+
+// IcicleLegendgrouptitleFont Sets this legend group's title font.
+type IcicleLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// IcicleLegendgrouptitle
+type IcicleLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *IcicleLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
+// IcicleMarkerColorbarTickfont Sets the color bar's tick label font
+type IcicleMarkerColorbarTickfont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// IcicleMarkerColorbarTitleFont Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute.
+type IcicleMarkerColorbarTitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// IcicleMarkerColorbarTitle
+type IcicleMarkerColorbarTitle struct {
+
+ // Font
+ // role: Object
+ Font *IcicleMarkerColorbarTitleFont `json:"font,omitempty"`
+
+ // Side
+ // 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.
+ Side IcicleMarkerColorbarTitleSide `json:"side,omitempty"`
+
+ // Text
+ // 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"`
+}
+
+// IcicleMarkerColorbar
+type IcicleMarkerColorbar struct {
+
+ // Bgcolor
+ // arrayOK: false
+ // type: color
+ // Sets the color of padded area.
+ Bgcolor Color `json:"bgcolor,omitempty"`
+
+ // Bordercolor
+ // arrayOK: false
+ // type: color
+ // Sets the axis line color.
+ Bordercolor Color `json:"bordercolor,omitempty"`
+
+ // Borderwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px) or the border enclosing this color bar.
+ Borderwidth float64 `json:"borderwidth,omitempty"`
+
+ // Dtick
+ // arrayOK: false
+ // type: any
+ // Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to *log* and *date* axes. If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1. To set tick marks at 1, 100, 10000, ... set dtick to 2. To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433. *log* has several special values; *L*, where `f` is a positive number, gives ticks linearly spaced in value (but not position). For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5). `tick0` is ignored for *D1* and *D2*. If the axis `type` is *date*, then you must convert the time to milliseconds. For example, to set the interval between ticks to one day, set `dtick` to 86400000.0. *date* also has special values *M* gives ticks spaced by a number of months. `n` must be a positive integer. To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*. To set ticks every 4 years, set `dtick` to *M48*
+ Dtick interface{} `json:"dtick,omitempty"`
+
+ // Exponentformat
+ // 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.
+ Exponentformat IcicleMarkerColorbarExponentformat `json:"exponentformat,omitempty"`
+
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
+ // Len
+ // arrayOK: false
+ // type: number
+ // Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends.
+ Len float64 `json:"len,omitempty"`
+
+ // Lenmode
+ // 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.
+ Lenmode IcicleMarkerColorbarLenmode `json:"lenmode,omitempty"`
+
+ // Minexponent
+ // arrayOK: false
+ // type: number
+ // Hide SI prefix for 10^n if |n| is below this number. This only has an effect when `tickformat` is *SI* or *B*.
+ Minexponent float64 `json:"minexponent,omitempty"`
+
+ // Nticks
+ // arrayOK: false
+ // type: integer
+ // Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
+ Nticks int64 `json:"nticks,omitempty"`
+
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation IcicleMarkerColorbarOrientation `json:"orientation,omitempty"`
+
+ // Outlinecolor
+ // arrayOK: false
+ // type: color
+ // Sets the axis line color.
+ Outlinecolor Color `json:"outlinecolor,omitempty"`
+
+ // Outlinewidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px) of the axis line.
+ Outlinewidth float64 `json:"outlinewidth,omitempty"`
+
+ // Separatethousands
+ // arrayOK: false
+ // type: boolean
+ // If "true", even 4-digit integers are separated
+ Separatethousands Bool `json:"separatethousands,omitempty"`
+
+ // Showexponent
+ // 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.
+ Showexponent IcicleMarkerColorbarShowexponent `json:"showexponent,omitempty"`
+
+ // Showticklabels
+ // arrayOK: false
+ // type: boolean
+ // Determines whether or not the tick labels are drawn.
+ Showticklabels Bool `json:"showticklabels,omitempty"`
+
+ // Showtickprefix
+ // 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
+ // default: all
+ // type: enumerated
+ // Same as `showtickprefix` but for tick suffixes.
+ Showticksuffix IcicleMarkerColorbarShowticksuffix `json:"showticksuffix,omitempty"`
+
+ // Thickness
+ // arrayOK: false
+ // type: number
+ // Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels.
+ Thickness float64 `json:"thickness,omitempty"`
+
+ // Thicknessmode
+ // 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.
+ Thicknessmode IcicleMarkerColorbarThicknessmode `json:"thicknessmode,omitempty"`
+
+ // Tick0
+ // arrayOK: false
+ // type: any
+ // Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is *log*, then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L* (see `dtick` for more info). If the axis `type` is *date*, it should be a date string, like date data. If the axis `type` is *category*, it should be a number, using the scale where each category is assigned a serial number from zero in the order it appears.
+ Tick0 interface{} `json:"tick0,omitempty"`
+
+ // Tickangle
+ // arrayOK: false
+ // type: angle
+ // Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically.
+ Tickangle float64 `json:"tickangle,omitempty"`
+
+ // Tickcolor
+ // arrayOK: false
+ // type: color
+ // Sets the tick color.
+ Tickcolor Color `json:"tickcolor,omitempty"`
+
+ // Tickfont
+ // role: Object
+ Tickfont *IcicleMarkerColorbarTickfont `json:"tickfont,omitempty"`
+
+ // Tickformat
+ // 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"`
+
+ // Tickformatstops
+ // It's an items array and what goes inside it's... messy... check the docs
+ // I will be happy if you want to contribute by implementing this
+ // just raise an issue before you start so we do not overlap
+ Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+
+ // Ticklabeloverflow
+ // 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
+ // 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*.
+ Ticklabelposition IcicleMarkerColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
+ // Ticklen
+ // arrayOK: false
+ // type: number
+ // Sets the tick length (in px).
+ Ticklen float64 `json:"ticklen,omitempty"`
+
+ // Tickmode
+ // 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 IcicleMarkerColorbarTickmode `json:"tickmode,omitempty"`
+
+ // Tickprefix
+ // arrayOK: false
+ // type: string
+ // Sets a tick label prefix.
+ Tickprefix String `json:"tickprefix,omitempty"`
+
+ // Ticks
+ // 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.
+ Ticks IcicleMarkerColorbarTicks `json:"ticks,omitempty"`
+
+ // Ticksuffix
+ // arrayOK: false
+ // type: string
+ // Sets a tick label suffix.
+ Ticksuffix String `json:"ticksuffix,omitempty"`
+
+ // Ticktext
+ // arrayOK: false
+ // type: data_array
+ // Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to *array*. Used with `tickvals`.
+ Ticktext interface{} `json:"ticktext,omitempty"`
+
+ // Ticktextsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
+ Ticktextsrc String `json:"ticktextsrc,omitempty"`
+
+ // Tickvals
+ // arrayOK: false
+ // type: data_array
+ // Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to *array*. Used with `ticktext`.
+ Tickvals interface{} `json:"tickvals,omitempty"`
+
+ // Tickvalssrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
+ Tickvalssrc String `json:"tickvalssrc,omitempty"`
+
+ // Tickwidth
+ // arrayOK: false
+ // type: number
+ // Sets the tick width (in px).
+ Tickwidth float64 `json:"tickwidth,omitempty"`
+
+ // Title
+ // role: Object
+ Title *IcicleMarkerColorbarTitle `json:"title,omitempty"`
+
+ // X
+ // arrayOK: false
+ // type: number
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
+ X float64 `json:"x,omitempty"`
+
+ // Xanchor
+ // 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*.
+ Xanchor IcicleMarkerColorbarXanchor `json:"xanchor,omitempty"`
+
+ // Xpad
+ // arrayOK: false
+ // type: number
+ // Sets the amount of padding (in px) along the x direction.
+ Xpad float64 `json:"xpad,omitempty"`
+
+ // Y
+ // arrayOK: false
+ // type: number
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
+ Y float64 `json:"y,omitempty"`
+
+ // Yanchor
+ // 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*.
+ Yanchor IcicleMarkerColorbarYanchor `json:"yanchor,omitempty"`
+
+ // Ypad
+ // arrayOK: false
+ // type: number
+ // Sets the amount of padding (in px) along the y direction.
+ Ypad float64 `json:"ypad,omitempty"`
+}
+
+// IcicleMarkerLine
+type IcicleMarkerLine struct {
+
+ // Color
+ // arrayOK: true
+ // type: color
+ // Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value.
+ Color Color `json:"color,omitempty"`
+
+ // Colorsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `color`.
+ 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"`
+
+ // Widthsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `width`.
+ Widthsrc String `json:"widthsrc,omitempty"`
+}
+
+// IcicleMarker
+type IcicleMarker struct {
+
+ // Autocolorscale
+ // arrayOK: false
+ // type: boolean
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if colors is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ Autocolorscale Bool `json:"autocolorscale,omitempty"`
+
+ // Cauto
+ // arrayOK: false
+ // type: boolean
+ // Determines whether or not the color domain is computed with respect to the input data (here colors) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if colors is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
+ Cauto Bool `json:"cauto,omitempty"`
+
+ // Cmax
+ // arrayOK: false
+ // type: number
+ // Sets the upper bound of the color domain. Has an effect only if colors is set to a numerical array. Value should have the same units as colors and if set, `marker.cmin` must be set as well.
+ Cmax float64 `json:"cmax,omitempty"`
+
+ // Cmid
+ // arrayOK: false
+ // type: number
+ // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if colors is set to a numerical array. Value should have the same units as colors. Has no effect when `marker.cauto` is `false`.
+ Cmid float64 `json:"cmid,omitempty"`
+
+ // Cmin
+ // arrayOK: false
+ // type: number
+ // Sets the lower bound of the color domain. Has an effect only if colors is set to a numerical array. Value should have the same units as colors and if set, `marker.cmax` must be set as well.
+ Cmin float64 `json:"cmin,omitempty"`
+
+ // Coloraxis
+ // arrayOK: false
+ // type: subplotid
+ // Sets a reference to a shared color axis. References to these shared color axes are *coloraxis*, *coloraxis2*, *coloraxis3*, etc. Settings for these shared color axes are set in the layout, under `layout.coloraxis`, `layout.coloraxis2`, etc. Note that multiple color scales can be linked to the same color axis.
+ Coloraxis String `json:"coloraxis,omitempty"`
+
+ // Colorbar
+ // role: Object
+ Colorbar *IcicleMarkerColorbar `json:"colorbar,omitempty"`
+
+ // Colors
+ // arrayOK: false
+ // type: data_array
+ // Sets the color of each sector of this trace. If not specified, the default trace color set is used to pick the sector colors.
+ Colors interface{} `json:"colors,omitempty"`
+
+ // Colorscale
+ // default: %!s()
+ // type: colorscale
+ // Sets the colorscale. Has an effect only if colors is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
+ Colorscale ColorScale `json:"colorscale,omitempty"`
+
+ // Colorssrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `colors`.
+ Colorssrc String `json:"colorssrc,omitempty"`
+
+ // Line
+ // role: Object
+ Line *IcicleMarkerLine `json:"line,omitempty"`
+
+ // Reversescale
+ // arrayOK: false
+ // type: boolean
+ // Reverses the color mapping if true. Has an effect only if colors is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
+ Reversescale Bool `json:"reversescale,omitempty"`
+
+ // Showscale
+ // arrayOK: false
+ // type: boolean
+ // Determines whether or not a colorbar is displayed for this trace. Has an effect only if colors is set to a numerical array.
+ Showscale Bool `json:"showscale,omitempty"`
+}
+
+// IcicleOutsidetextfont Sets the font used for `textinfo` lying outside the sector. This option refers to the root of the hierarchy presented on top left corner of a treemap graph. Please note that if a hierarchy has multiple root nodes, this option won't have any effect and `insidetextfont` would be used.
+type IcicleOutsidetextfont struct {
+
+ // Color
+ // arrayOK: true
+ // type: color
+ //
+ Color Color `json:"color,omitempty"`
+
+ // Colorsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `color`.
+ 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"`
+
+ // Familysrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `family`.
+ Familysrc String `json:"familysrc,omitempty"`
+
+ // Size
+ // arrayOK: true
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+
+ // Sizesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `size`.
+ Sizesrc String `json:"sizesrc,omitempty"`
+}
+
+// IciclePathbarTextfont Sets the font used inside `pathbar`.
+type IciclePathbarTextfont struct {
+
+ // Color
+ // arrayOK: true
+ // type: color
+ //
+ Color Color `json:"color,omitempty"`
+
+ // Colorsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `color`.
+ 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"`
+
+ // Familysrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `family`.
+ Familysrc String `json:"familysrc,omitempty"`
+
+ // Size
+ // arrayOK: true
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+
+ // Sizesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `size`.
+ Sizesrc String `json:"sizesrc,omitempty"`
+}
+
+// IciclePathbar
+type IciclePathbar struct {
+
+ // Edgeshape
+ // default: >
+ // type: enumerated
+ // Determines which shape is used for edges between `barpath` labels.
+ Edgeshape IciclePathbarEdgeshape `json:"edgeshape,omitempty"`
+
+ // Side
+ // default: top
+ // type: enumerated
+ // Determines on which side of the the treemap the `pathbar` should be presented.
+ Side IciclePathbarSide `json:"side,omitempty"`
+
+ // Textfont
+ // role: Object
+ Textfont *IciclePathbarTextfont `json:"textfont,omitempty"`
+
+ // Thickness
+ // arrayOK: false
+ // type: number
+ // Sets the thickness of `pathbar` (in px). If not specified the `pathbar.textfont.size` is used with 3 pixles extra padding on each side.
+ Thickness float64 `json:"thickness,omitempty"`
+
+ // Visible
+ // arrayOK: false
+ // type: boolean
+ // Determines if the path bar is drawn i.e. outside the trace `domain` and with one pixel gap.
+ Visible Bool `json:"visible,omitempty"`
+}
+
+// IcicleRoot
+type IcicleRoot struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ // sets the color of the root node for a sunburst/treemap/icicle trace. this has no effect when a colorscale is used to set the markers.
+ Color Color `json:"color,omitempty"`
+}
+
+// IcicleStream
+type IcicleStream struct {
+
+ // Maxpoints
+ // arrayOK: false
+ // type: number
+ // Sets the maximum number of points to keep on the plots from an incoming stream. If `maxpoints` is set to *50*, only the newest 50 points will be displayed on the plot.
+ Maxpoints float64 `json:"maxpoints,omitempty"`
+
+ // Token
+ // 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"`
+}
+
+// IcicleTextfont Sets the font used for `textinfo`.
+type IcicleTextfont struct {
+
+ // Color
+ // arrayOK: true
+ // type: color
+ //
+ Color Color `json:"color,omitempty"`
+
+ // Colorsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `color`.
+ 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"`
+
+ // Familysrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `family`.
+ Familysrc String `json:"familysrc,omitempty"`
+
+ // Size
+ // arrayOK: true
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+
+ // Sizesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `size`.
+ Sizesrc String `json:"sizesrc,omitempty"`
+}
+
+// IcicleTiling
+type IcicleTiling struct {
+
+ // Flip
+ // default:
+ // type: flaglist
+ // Determines if the positions obtained from solver are flipped on each axis.
+ Flip IcicleTilingFlip `json:"flip,omitempty"`
+
+ // Orientation
+ // 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.
+ Orientation IcicleTilingOrientation `json:"orientation,omitempty"`
+
+ // Pad
+ // arrayOK: false
+ // type: number
+ // Sets the inner padding (in px).
+ Pad float64 `json:"pad,omitempty"`
+}
+
+// IcicleBranchvalues 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.
+type IcicleBranchvalues string
+
+const (
+ IcicleBranchvaluesRemainder IcicleBranchvalues = "remainder"
+ IcicleBranchvaluesTotal IcicleBranchvalues = "total"
+)
+
+// IcicleHoverlabelAlign Sets the horizontal alignment of the text content within hover label box. Has an effect only if the hover label text spans more two or more lines
+type IcicleHoverlabelAlign string
+
+const (
+ IcicleHoverlabelAlignLeft IcicleHoverlabelAlign = "left"
+ IcicleHoverlabelAlignRight IcicleHoverlabelAlign = "right"
+ IcicleHoverlabelAlignAuto IcicleHoverlabelAlign = "auto"
+)
+
+// IcicleMarkerColorbarExponentformat 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.
+type IcicleMarkerColorbarExponentformat string
+
+const (
+ IcicleMarkerColorbarExponentformatNone IcicleMarkerColorbarExponentformat = "none"
+ IcicleMarkerColorbarExponentformatE1 IcicleMarkerColorbarExponentformat = "e"
+ IcicleMarkerColorbarExponentformatE2 IcicleMarkerColorbarExponentformat = "E"
+ IcicleMarkerColorbarExponentformatPower IcicleMarkerColorbarExponentformat = "power"
+ IcicleMarkerColorbarExponentformatSI IcicleMarkerColorbarExponentformat = "SI"
+ IcicleMarkerColorbarExponentformatB IcicleMarkerColorbarExponentformat = "B"
+)
+
+// IcicleMarkerColorbarLenmode 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.
+type IcicleMarkerColorbarLenmode string
+
+const (
+ IcicleMarkerColorbarLenmodeFraction IcicleMarkerColorbarLenmode = "fraction"
+ IcicleMarkerColorbarLenmodePixels IcicleMarkerColorbarLenmode = "pixels"
+)
+
+// IcicleMarkerColorbarOrientation Sets the orientation of the colorbar.
+type IcicleMarkerColorbarOrientation string
+
+const (
+ IcicleMarkerColorbarOrientationH IcicleMarkerColorbarOrientation = "h"
+ IcicleMarkerColorbarOrientationV IcicleMarkerColorbarOrientation = "v"
+)
+
+// IcicleMarkerColorbarShowexponent 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.
+type IcicleMarkerColorbarShowexponent string
+
+const (
+ IcicleMarkerColorbarShowexponentAll IcicleMarkerColorbarShowexponent = "all"
+ IcicleMarkerColorbarShowexponentFirst IcicleMarkerColorbarShowexponent = "first"
+ IcicleMarkerColorbarShowexponentLast IcicleMarkerColorbarShowexponent = "last"
+ IcicleMarkerColorbarShowexponentNone IcicleMarkerColorbarShowexponent = "none"
+)
+
+// IcicleMarkerColorbarShowtickprefix 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.
+type IcicleMarkerColorbarShowtickprefix string
+
+const (
+ IcicleMarkerColorbarShowtickprefixAll IcicleMarkerColorbarShowtickprefix = "all"
+ IcicleMarkerColorbarShowtickprefixFirst IcicleMarkerColorbarShowtickprefix = "first"
+ IcicleMarkerColorbarShowtickprefixLast IcicleMarkerColorbarShowtickprefix = "last"
+ IcicleMarkerColorbarShowtickprefixNone IcicleMarkerColorbarShowtickprefix = "none"
+)
+
+// IcicleMarkerColorbarShowticksuffix Same as `showtickprefix` but for tick suffixes.
+type IcicleMarkerColorbarShowticksuffix string
+
+const (
+ IcicleMarkerColorbarShowticksuffixAll IcicleMarkerColorbarShowticksuffix = "all"
+ IcicleMarkerColorbarShowticksuffixFirst IcicleMarkerColorbarShowticksuffix = "first"
+ IcicleMarkerColorbarShowticksuffixLast IcicleMarkerColorbarShowticksuffix = "last"
+ IcicleMarkerColorbarShowticksuffixNone IcicleMarkerColorbarShowticksuffix = "none"
+)
+
+// IcicleMarkerColorbarThicknessmode 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.
+type IcicleMarkerColorbarThicknessmode string
+
+const (
+ IcicleMarkerColorbarThicknessmodeFraction IcicleMarkerColorbarThicknessmode = "fraction"
+ IcicleMarkerColorbarThicknessmodePixels IcicleMarkerColorbarThicknessmode = "pixels"
+)
+
+// IcicleMarkerColorbarTicklabeloverflow 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*.
+type IcicleMarkerColorbarTicklabeloverflow string
+
+const (
+ IcicleMarkerColorbarTicklabeloverflowAllow IcicleMarkerColorbarTicklabeloverflow = "allow"
+ IcicleMarkerColorbarTicklabeloverflowHidePastDiv IcicleMarkerColorbarTicklabeloverflow = "hide past div"
+ IcicleMarkerColorbarTicklabeloverflowHidePastDomain IcicleMarkerColorbarTicklabeloverflow = "hide past domain"
+)
+
+// IcicleMarkerColorbarTicklabelposition 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*.
+type IcicleMarkerColorbarTicklabelposition string
+
+const (
+ IcicleMarkerColorbarTicklabelpositionOutside IcicleMarkerColorbarTicklabelposition = "outside"
+ IcicleMarkerColorbarTicklabelpositionInside IcicleMarkerColorbarTicklabelposition = "inside"
+ IcicleMarkerColorbarTicklabelpositionOutsideTop IcicleMarkerColorbarTicklabelposition = "outside top"
+ IcicleMarkerColorbarTicklabelpositionInsideTop IcicleMarkerColorbarTicklabelposition = "inside top"
+ IcicleMarkerColorbarTicklabelpositionOutsideLeft IcicleMarkerColorbarTicklabelposition = "outside left"
+ IcicleMarkerColorbarTicklabelpositionInsideLeft IcicleMarkerColorbarTicklabelposition = "inside left"
+ IcicleMarkerColorbarTicklabelpositionOutsideRight IcicleMarkerColorbarTicklabelposition = "outside right"
+ IcicleMarkerColorbarTicklabelpositionInsideRight IcicleMarkerColorbarTicklabelposition = "inside right"
+ IcicleMarkerColorbarTicklabelpositionOutsideBottom IcicleMarkerColorbarTicklabelposition = "outside bottom"
+ IcicleMarkerColorbarTicklabelpositionInsideBottom IcicleMarkerColorbarTicklabelposition = "inside bottom"
+)
+
+// IcicleMarkerColorbarTickmode 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).
+type IcicleMarkerColorbarTickmode string
+
+const (
+ IcicleMarkerColorbarTickmodeAuto IcicleMarkerColorbarTickmode = "auto"
+ IcicleMarkerColorbarTickmodeLinear IcicleMarkerColorbarTickmode = "linear"
+ IcicleMarkerColorbarTickmodeArray IcicleMarkerColorbarTickmode = "array"
+)
+
+// IcicleMarkerColorbarTicks 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.
+type IcicleMarkerColorbarTicks string
+
+const (
+ IcicleMarkerColorbarTicksOutside IcicleMarkerColorbarTicks = "outside"
+ IcicleMarkerColorbarTicksInside IcicleMarkerColorbarTicks = "inside"
+ IcicleMarkerColorbarTicksEmpty IcicleMarkerColorbarTicks = ""
+)
+
+// IcicleMarkerColorbarTitleSide 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.
+type IcicleMarkerColorbarTitleSide string
+
+const (
+ IcicleMarkerColorbarTitleSideRight IcicleMarkerColorbarTitleSide = "right"
+ IcicleMarkerColorbarTitleSideTop IcicleMarkerColorbarTitleSide = "top"
+ IcicleMarkerColorbarTitleSideBottom IcicleMarkerColorbarTitleSide = "bottom"
+)
+
+// IcicleMarkerColorbarXanchor 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*.
+type IcicleMarkerColorbarXanchor string
+
+const (
+ IcicleMarkerColorbarXanchorLeft IcicleMarkerColorbarXanchor = "left"
+ IcicleMarkerColorbarXanchorCenter IcicleMarkerColorbarXanchor = "center"
+ IcicleMarkerColorbarXanchorRight IcicleMarkerColorbarXanchor = "right"
+)
+
+// IcicleMarkerColorbarYanchor 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*.
+type IcicleMarkerColorbarYanchor string
+
+const (
+ IcicleMarkerColorbarYanchorTop IcicleMarkerColorbarYanchor = "top"
+ IcicleMarkerColorbarYanchorMiddle IcicleMarkerColorbarYanchor = "middle"
+ IcicleMarkerColorbarYanchorBottom IcicleMarkerColorbarYanchor = "bottom"
+)
+
+// IciclePathbarEdgeshape Determines which shape is used for edges between `barpath` labels.
+type IciclePathbarEdgeshape string
+
+const (
+ IciclePathbarEdgeshapeGt IciclePathbarEdgeshape = ">"
+ IciclePathbarEdgeshapeLt IciclePathbarEdgeshape = "<"
+ IciclePathbarEdgeshapeOr IciclePathbarEdgeshape = "|"
+ IciclePathbarEdgeshapeSlash IciclePathbarEdgeshape = "/"
+ IciclePathbarEdgeshapeDoublebackslash IciclePathbarEdgeshape = "\\"
+)
+
+// IciclePathbarSide Determines on which side of the the treemap the `pathbar` should be presented.
+type IciclePathbarSide string
+
+const (
+ IciclePathbarSideTop IciclePathbarSide = "top"
+ IciclePathbarSideBottom IciclePathbarSide = "bottom"
+)
+
+// IcicleTextposition Sets the positions of the `text` elements.
+type IcicleTextposition string
+
+const (
+ IcicleTextpositionTopLeft IcicleTextposition = "top left"
+ IcicleTextpositionTopCenter IcicleTextposition = "top center"
+ IcicleTextpositionTopRight IcicleTextposition = "top right"
+ IcicleTextpositionMiddleLeft IcicleTextposition = "middle left"
+ IcicleTextpositionMiddleCenter IcicleTextposition = "middle center"
+ IcicleTextpositionMiddleRight IcicleTextposition = "middle right"
+ IcicleTextpositionBottomLeft IcicleTextposition = "bottom left"
+ IcicleTextpositionBottomCenter IcicleTextposition = "bottom center"
+ IcicleTextpositionBottomRight IcicleTextposition = "bottom right"
+)
+
+// IcicleTilingOrientation 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.
+type IcicleTilingOrientation string
+
+const (
+ IcicleTilingOrientationV IcicleTilingOrientation = "v"
+ IcicleTilingOrientationH IcicleTilingOrientation = "h"
+)
+
+// IcicleVisible 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).
+type IcicleVisible interface{}
+
+var (
+ IcicleVisibleTrue IcicleVisible = true
+ IcicleVisibleFalse IcicleVisible = false
+ IcicleVisibleLegendonly IcicleVisible = "legendonly"
+)
+
+// IcicleCount Determines default for `values` when it is not provided, by inferring a 1 for each of the *leaves* and/or *branches*, otherwise 0.
+type IcicleCount string
+
+const (
+ // Flags
+ IcicleCountBranches IcicleCount = "branches"
+ IcicleCountLeaves IcicleCount = "leaves"
+
+ // Extra
+
+)
+
+// IcicleHoverinfo Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired.
+type IcicleHoverinfo string
+
+const (
+ // Flags
+ IcicleHoverinfoLabel IcicleHoverinfo = "label"
+ IcicleHoverinfoText IcicleHoverinfo = "text"
+ IcicleHoverinfoValue IcicleHoverinfo = "value"
+ IcicleHoverinfoName IcicleHoverinfo = "name"
+ IcicleHoverinfoCurrentPath IcicleHoverinfo = "current path"
+ IcicleHoverinfoPercentRoot IcicleHoverinfo = "percent root"
+ IcicleHoverinfoPercentEntry IcicleHoverinfo = "percent entry"
+ IcicleHoverinfoPercentParent IcicleHoverinfo = "percent parent"
+
+ // Extra
+ IcicleHoverinfoAll IcicleHoverinfo = "all"
+ IcicleHoverinfoNone IcicleHoverinfo = "none"
+ IcicleHoverinfoSkip IcicleHoverinfo = "skip"
+)
+
+// IcicleTextinfo Determines which trace information appear on the graph.
+type IcicleTextinfo string
+
+const (
+ // Flags
+ IcicleTextinfoLabel IcicleTextinfo = "label"
+ IcicleTextinfoText IcicleTextinfo = "text"
+ IcicleTextinfoValue IcicleTextinfo = "value"
+ IcicleTextinfoCurrentPath IcicleTextinfo = "current path"
+ IcicleTextinfoPercentRoot IcicleTextinfo = "percent root"
+ IcicleTextinfoPercentEntry IcicleTextinfo = "percent entry"
+ IcicleTextinfoPercentParent IcicleTextinfo = "percent parent"
+
+ // Extra
+ IcicleTextinfoNone IcicleTextinfo = "none"
+)
+
+// IcicleTilingFlip Determines if the positions obtained from solver are flipped on each axis.
+type IcicleTilingFlip string
+
+const (
+ // Flags
+ IcicleTilingFlipX IcicleTilingFlip = "x"
+ IcicleTilingFlipY IcicleTilingFlip = "y"
+
+ // Extra
+
+)
diff --git a/graph_objects/image_gen.go b/generated/v2.19.0/graph_objects/image_gen.go
similarity index 73%
rename from graph_objects/image_gen.go
rename to generated/v2.19.0/graph_objects/image_gen.go
index 62f623e..d84c54b 100644
--- a/graph_objects/image_gen.go
+++ b/generated/v2.19.0/graph_objects/image_gen.go
@@ -30,7 +30,7 @@ type Image struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Dx
@@ -54,7 +54,7 @@ type Image struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -64,13 +64,13 @@ type Image struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -82,7 +82,7 @@ type Image struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -94,9 +94,25 @@ type Image struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *ImageLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Meta
// arrayOK: true
// type: any
@@ -106,7 +122,7 @@ type Image struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -140,7 +156,7 @@ type Image struct {
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
Textsrc String `json:"textsrc,omitempty"`
// Uid
@@ -203,10 +219,16 @@ type Image struct {
// Array defining the lower bound for each color component. Note that the default value will depend on the colormodel. For the `rgb` colormodel, it is [0, 0, 0]. For the `rgba` colormodel, it is [0, 0, 0, 0]. For the `rgba256` colormodel, it is [0, 0, 0, 0]. For the `hsl` colormodel, it is [0, 0, 0]. For the `hsla` colormodel, it is [0, 0, 0, 0].
Zmin interface{} `json:"zmin,omitempty"`
+ // Zsmooth
+ // 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.
+ Zsmooth ImageZsmooth `json:"zsmooth,omitempty"`
+
// Zsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for z .
+ // Sets the source reference on Chart Studio Cloud for `z`.
Zsrc String `json:"zsrc,omitempty"`
}
@@ -222,7 +244,7 @@ type ImageHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -234,7 +256,7 @@ type ImageHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -246,7 +268,7 @@ type ImageHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -262,7 +284,7 @@ type ImageHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -274,7 +296,7 @@ type ImageHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -286,7 +308,7 @@ type ImageHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -302,10 +324,46 @@ type ImageHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// ImageLegendgrouptitleFont Sets this legend group's title font.
+type ImageLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// ImageLegendgrouptitle
+type ImageLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *ImageLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// ImageStream
type ImageStream struct {
@@ -351,6 +409,14 @@ var (
ImageVisibleLegendonly ImageVisible = "legendonly"
)
+// ImageZsmooth Picks a smoothing algorithm used to smooth `z` data. This only applies for image traces that use the `source` attribute.
+type ImageZsmooth interface{}
+
+var (
+ ImageZsmoothFast ImageZsmooth = "fast"
+ ImageZsmoothFalse ImageZsmooth = false
+)
+
// ImageHoverinfo Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired.
type ImageHoverinfo string
diff --git a/graph_objects/indicator_gen.go b/generated/v2.19.0/graph_objects/indicator_gen.go
similarity index 87%
rename from graph_objects/indicator_gen.go
rename to generated/v2.19.0/graph_objects/indicator_gen.go
index 0995b29..5ca284c 100644
--- a/graph_objects/indicator_gen.go
+++ b/generated/v2.19.0/graph_objects/indicator_gen.go
@@ -30,7 +30,7 @@ type Indicator struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Delta
@@ -54,9 +54,25 @@ type Indicator struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *IndicatorLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Meta
// arrayOK: true
// type: any
@@ -66,7 +82,7 @@ type Indicator struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Mode
@@ -199,6 +215,12 @@ type IndicatorDelta struct {
// Sets the position of delta with respect to the number.
Position IndicatorDeltaPosition `json:"position,omitempty"`
+ // Prefix
+ // arrayOK: false
+ // type: string
+ // Sets a prefix appearing before the delta.
+ Prefix String `json:"prefix,omitempty"`
+
// Reference
// arrayOK: false
// type: number
@@ -211,10 +233,16 @@ type IndicatorDelta struct {
// Show relative change
Relative Bool `json:"relative,omitempty"`
+ // Suffix
+ // arrayOK: false
+ // type: string
+ // Sets a suffix appearing next to the delta.
+ Suffix String `json:"suffix,omitempty"`
+
// Valueformat
// arrayOK: false
// type: string
- // Sets the value formatting rule using d3 formatting mini-language which is similar to those of Python. See https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format
+ // 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"`
}
@@ -283,6 +311,12 @@ type IndicatorGaugeAxis struct {
// 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.
Exponentformat IndicatorGaugeAxisExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Minexponent
// arrayOK: false
// type: number
@@ -356,7 +390,7 @@ type IndicatorGaugeAxis struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -365,6 +399,12 @@ type IndicatorGaugeAxis struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -404,7 +444,7 @@ type IndicatorGaugeAxis struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -416,7 +456,7 @@ type IndicatorGaugeAxis struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -550,6 +590,42 @@ type IndicatorGauge struct {
Threshold *IndicatorGaugeThreshold `json:"threshold,omitempty"`
}
+// IndicatorLegendgrouptitleFont Sets this legend group's title font.
+type IndicatorLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// IndicatorLegendgrouptitle
+type IndicatorLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *IndicatorLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// IndicatorNumberFont Set the font used to display main number
type IndicatorNumberFont struct {
@@ -594,7 +670,7 @@ type IndicatorNumber struct {
// Valueformat
// arrayOK: false
// type: string
- // Sets the value formatting rule using d3 formatting mini-language which is similar to those of Python. See https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format
+ // 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"`
}
@@ -683,7 +759,7 @@ const (
IndicatorGaugeAxisExponentformatE1 IndicatorGaugeAxisExponentformat = "e"
IndicatorGaugeAxisExponentformatE2 IndicatorGaugeAxisExponentformat = "E"
IndicatorGaugeAxisExponentformatPower IndicatorGaugeAxisExponentformat = "power"
- IndicatorGaugeAxisExponentformatSi IndicatorGaugeAxisExponentformat = "SI"
+ IndicatorGaugeAxisExponentformatSI IndicatorGaugeAxisExponentformat = "SI"
IndicatorGaugeAxisExponentformatB IndicatorGaugeAxisExponentformat = "B"
)
diff --git a/graph_objects/isosurface_gen.go b/generated/v2.19.0/graph_objects/isosurface_gen.go
similarity index 78%
rename from graph_objects/isosurface_gen.go
rename to generated/v2.19.0/graph_objects/isosurface_gen.go
index 11fa457..c2086d4 100644
--- a/graph_objects/isosurface_gen.go
+++ b/generated/v2.19.0/graph_objects/isosurface_gen.go
@@ -18,7 +18,7 @@ type Isosurface struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Caps
@@ -28,7 +28,7 @@ type Isosurface struct {
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here `value`) or the bounds set in `cmin` and `cmax` Defaults to `false` when `cmin` and `cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here `value`) or the bounds set in `cmin` and `cmax` Defaults to `false` when `cmin` and `cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
@@ -62,7 +62,7 @@ type Isosurface struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`cmin` and `cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `cmin` and `cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Contour
@@ -78,7 +78,7 @@ type Isosurface struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Flatshading
@@ -96,7 +96,7 @@ type Isosurface struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -106,13 +106,13 @@ type Isosurface struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -124,7 +124,7 @@ type Isosurface struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -136,7 +136,7 @@ type Isosurface struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Isomax
@@ -157,6 +157,22 @@ type Isosurface struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *IsosurfaceLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Lighting
// role: Object
Lighting *IsosurfaceLighting `json:"lighting,omitempty"`
@@ -174,7 +190,7 @@ type Isosurface struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -238,7 +254,7 @@ type Isosurface struct {
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
Textsrc String `json:"textsrc,omitempty"`
// Uid
@@ -259,10 +275,16 @@ type Isosurface struct {
// Sets the 4th dimension (value) of the vertices.
Value interface{} `json:"value,omitempty"`
+ // Valuehoverformat
+ // 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"`
+
// Valuesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for value .
+ // Sets the source reference on Chart Studio Cloud for `value`.
Valuesrc String `json:"valuesrc,omitempty"`
// Visible
@@ -277,10 +299,16 @@ type Isosurface struct {
// Sets the X coordinates of the vertices on X axis.
X interface{} `json:"x,omitempty"`
+ // Xhoverformat
+ // 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"`
+
// Xsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for x .
+ // Sets the source reference on Chart Studio Cloud for `x`.
Xsrc String `json:"xsrc,omitempty"`
// Y
@@ -289,10 +317,16 @@ type Isosurface struct {
// Sets the Y coordinates of the vertices on Y axis.
Y interface{} `json:"y,omitempty"`
+ // Yhoverformat
+ // 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"`
+
// Ysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for y .
+ // Sets the source reference on Chart Studio Cloud for `y`.
Ysrc String `json:"ysrc,omitempty"`
// Z
@@ -301,10 +335,16 @@ type Isosurface struct {
// Sets the Z coordinates of the vertices on Z axis.
Z interface{} `json:"z,omitempty"`
+ // Zhoverformat
+ // 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"`
+
// Zsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for z .
+ // Sets the source reference on Chart Studio Cloud for `z`.
Zsrc String `json:"zsrc,omitempty"`
}
@@ -424,9 +464,9 @@ type IsosurfaceColorbarTitle struct {
Font *IsosurfaceColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side IsosurfaceColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -469,6 +509,12 @@ type IsosurfaceColorbar struct {
// 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.
Exponentformat IsosurfaceColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -493,6 +539,12 @@ type IsosurfaceColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation IsosurfaceColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -572,7 +624,7 @@ type IsosurfaceColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -581,12 +633,24 @@ type IsosurfaceColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition IsosurfaceColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -626,7 +690,7 @@ type IsosurfaceColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -638,7 +702,7 @@ type IsosurfaceColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -654,13 +718,13 @@ type IsosurfaceColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor IsosurfaceColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -672,13 +736,13 @@ type IsosurfaceColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor IsosurfaceColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -722,7 +786,7 @@ type IsosurfaceHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -734,7 +798,7 @@ type IsosurfaceHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -746,7 +810,7 @@ type IsosurfaceHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -762,7 +826,7 @@ type IsosurfaceHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -774,7 +838,7 @@ type IsosurfaceHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -786,7 +850,7 @@ type IsosurfaceHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -802,10 +866,46 @@ type IsosurfaceHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// IsosurfaceLegendgrouptitleFont Sets this legend group's title font.
+type IsosurfaceLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// IsosurfaceLegendgrouptitle
+type IsosurfaceLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *IsosurfaceLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// IsosurfaceLighting
type IsosurfaceLighting struct {
@@ -892,7 +992,7 @@ type IsosurfaceSlicesX struct {
// Locationssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for locations .
+ // Sets the source reference on Chart Studio Cloud for `locations`.
Locationssrc String `json:"locationssrc,omitempty"`
// Show
@@ -920,7 +1020,7 @@ type IsosurfaceSlicesY struct {
// Locationssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for locations .
+ // Sets the source reference on Chart Studio Cloud for `locations`.
Locationssrc String `json:"locationssrc,omitempty"`
// Show
@@ -948,7 +1048,7 @@ type IsosurfaceSlicesZ struct {
// Locationssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for locations .
+ // Sets the source reference on Chart Studio Cloud for `locations`.
Locationssrc String `json:"locationssrc,omitempty"`
// Show
@@ -1042,7 +1142,7 @@ const (
IsosurfaceColorbarExponentformatE1 IsosurfaceColorbarExponentformat = "e"
IsosurfaceColorbarExponentformatE2 IsosurfaceColorbarExponentformat = "E"
IsosurfaceColorbarExponentformatPower IsosurfaceColorbarExponentformat = "power"
- IsosurfaceColorbarExponentformatSi IsosurfaceColorbarExponentformat = "SI"
+ IsosurfaceColorbarExponentformatSI IsosurfaceColorbarExponentformat = "SI"
IsosurfaceColorbarExponentformatB IsosurfaceColorbarExponentformat = "B"
)
@@ -1054,6 +1154,14 @@ const (
IsosurfaceColorbarLenmodePixels IsosurfaceColorbarLenmode = "pixels"
)
+// IsosurfaceColorbarOrientation Sets the orientation of the colorbar.
+type IsosurfaceColorbarOrientation string
+
+const (
+ IsosurfaceColorbarOrientationH IsosurfaceColorbarOrientation = "h"
+ IsosurfaceColorbarOrientationV IsosurfaceColorbarOrientation = "v"
+)
+
// IsosurfaceColorbarShowexponent 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.
type IsosurfaceColorbarShowexponent string
@@ -1092,7 +1200,16 @@ const (
IsosurfaceColorbarThicknessmodePixels IsosurfaceColorbarThicknessmode = "pixels"
)
-// IsosurfaceColorbarTicklabelposition Determines where tick labels are drawn.
+// IsosurfaceColorbarTicklabeloverflow 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*.
+type IsosurfaceColorbarTicklabeloverflow string
+
+const (
+ IsosurfaceColorbarTicklabeloverflowAllow IsosurfaceColorbarTicklabeloverflow = "allow"
+ IsosurfaceColorbarTicklabeloverflowHidePastDiv IsosurfaceColorbarTicklabeloverflow = "hide past div"
+ IsosurfaceColorbarTicklabeloverflowHidePastDomain IsosurfaceColorbarTicklabeloverflow = "hide past domain"
+)
+
+// IsosurfaceColorbarTicklabelposition 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*.
type IsosurfaceColorbarTicklabelposition string
const (
@@ -1100,6 +1217,10 @@ const (
IsosurfaceColorbarTicklabelpositionInside IsosurfaceColorbarTicklabelposition = "inside"
IsosurfaceColorbarTicklabelpositionOutsideTop IsosurfaceColorbarTicklabelposition = "outside top"
IsosurfaceColorbarTicklabelpositionInsideTop IsosurfaceColorbarTicklabelposition = "inside top"
+ IsosurfaceColorbarTicklabelpositionOutsideLeft IsosurfaceColorbarTicklabelposition = "outside left"
+ IsosurfaceColorbarTicklabelpositionInsideLeft IsosurfaceColorbarTicklabelposition = "inside left"
+ IsosurfaceColorbarTicklabelpositionOutsideRight IsosurfaceColorbarTicklabelposition = "outside right"
+ IsosurfaceColorbarTicklabelpositionInsideRight IsosurfaceColorbarTicklabelposition = "inside right"
IsosurfaceColorbarTicklabelpositionOutsideBottom IsosurfaceColorbarTicklabelposition = "outside bottom"
IsosurfaceColorbarTicklabelpositionInsideBottom IsosurfaceColorbarTicklabelposition = "inside bottom"
)
@@ -1122,7 +1243,7 @@ const (
IsosurfaceColorbarTicksEmpty IsosurfaceColorbarTicks = ""
)
-// IsosurfaceColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// IsosurfaceColorbarTitleSide 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.
type IsosurfaceColorbarTitleSide string
const (
@@ -1131,7 +1252,7 @@ const (
IsosurfaceColorbarTitleSideBottom IsosurfaceColorbarTitleSide = "bottom"
)
-// IsosurfaceColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// IsosurfaceColorbarXanchor 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*.
type IsosurfaceColorbarXanchor string
const (
@@ -1140,7 +1261,7 @@ const (
IsosurfaceColorbarXanchorRight IsosurfaceColorbarXanchor = "right"
)
-// IsosurfaceColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// IsosurfaceColorbarYanchor 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*.
type IsosurfaceColorbarYanchor string
const (
diff --git a/graph_objects/layout_gen.go b/generated/v2.19.0/graph_objects/layout_gen.go
similarity index 81%
rename from graph_objects/layout_gen.go
rename to generated/v2.19.0/graph_objects/layout_gen.go
index d629aac..cfbf224 100644
--- a/graph_objects/layout_gen.go
+++ b/generated/v2.19.0/graph_objects/layout_gen.go
@@ -3,13 +3,13 @@ package grob
// Code generated by go-plotly/generator. DO NOT EDIT.// Layout Plot layout options
type Layout struct {
- // Activeshape
+ // Activeselection
// role: Object
- Activeshape *LayoutActiveshape `json:"activeshape,omitempty"`
+ Activeselection *LayoutActiveselection `json:"activeselection,omitempty"`
- // Angularaxis
+ // Activeshape
// role: Object
- Angularaxis *LayoutAngularaxis `json:"angularaxis,omitempty"`
+ Activeshape *LayoutActiveshape `json:"activeshape,omitempty"`
// Annotations
// It's an items array and what goes inside it's... messy... check the docs
@@ -44,7 +44,7 @@ type Layout struct {
// Barmode
// 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 an *opacity* to see multiple bars.
+ // 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
@@ -109,12 +109,6 @@ type Layout struct {
// If provided, a changed value tells `Plotly.react` that one or more data arrays has changed. This way you can modify arrays in-place rather than making a complete new copy for an incremental change. If NOT provided, `Plotly.react` assumes that data arrays are being treated as immutable, thus any data array with a different identity from its predecessor contains new data.
Datarevision interface{} `json:"datarevision,omitempty"`
- // Direction
- // default: %!s()
- // type: enumerated
- // Legacy polar charts are deprecated! Please switch to *polar* subplots. Sets the direction corresponding to positive angles in legacy polar charts.
- Direction LayoutDirection `json:"direction,omitempty"`
-
// Dragmode
// default: zoom
// type: enumerated
@@ -133,6 +127,12 @@ type Layout struct {
// If `true`, the funnelarea slice colors (whether given by `funnelareacolorway` or inherited from `colorway`) will be extended to three times its original length by first repeating every color 20% lighter then each color 20% darker. This is intended to reduce the likelihood of reusing the same color when you have many slices, but you can set `false` to disable. Colors provided in the trace, using `marker.colors`, are never extended.
Extendfunnelareacolors Bool `json:"extendfunnelareacolors,omitempty"`
+ // Extendiciclecolors
+ // arrayOK: false
+ // type: boolean
+ // If `true`, the icicle slice colors (whether given by `iciclecolorway` or inherited from `colorway`) will be extended to three times its original length by first repeating every color 20% lighter then each color 20% darker. This is intended to reduce the likelihood of reusing the same color when you have many slices, but you can set `false` to disable. Colors provided in the trace, using `marker.colors`, are never extended.
+ Extendiciclecolors Bool `json:"extendiciclecolors,omitempty"`
+
// Extendpiecolors
// arrayOK: false
// type: boolean
@@ -176,7 +176,7 @@ type Layout struct {
// Funnelmode
// 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 an *opacity* to see multiple bars.
+ // 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.
Funnelmode LayoutFunnelmode `json:"funnelmode,omitempty"`
// Geo
@@ -202,7 +202,7 @@ type Layout struct {
// Hiddenlabelssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hiddenlabels .
+ // Sets the source reference on Chart Studio Cloud for `hiddenlabels`.
Hiddenlabelssrc String `json:"hiddenlabelssrc,omitempty"`
// Hidesources
@@ -222,11 +222,17 @@ type Layout struct {
Hoverlabel *LayoutHoverlabel `json:"hoverlabel,omitempty"`
// Hovermode
- // default: %!s()
+ // 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. If `clickmode` includes the *select* flag, `hovermode` defaults to *closest*. If `clickmode` lacks the *select* flag, it defaults to *x* or *y* (depending on the trace's `orientation` value) for plots based on cartesian coordinates. For anything else the default value is *closest*.
+ // 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"`
+ // Iciclecolorway
+ // arrayOK: false
+ // type: colorlist
+ // Sets the default icicle slice colors. Defaults to the main `colorway` used for trace colors. If you specify a new list here it can still be extended with lighter and darker colors, see `extendiciclecolors`.
+ Iciclecolorway ColorList `json:"iciclecolorway,omitempty"`
+
// Images
// It's an items array and what goes inside it's... messy... check the docs
// I will be happy if you want to contribute by implementing this
@@ -254,23 +260,33 @@ type Layout struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
+ // Minreducedheight
+ // arrayOK: false
+ // type: number
+ // Minimum height of the plot with margin.automargin applied (in px)
+ Minreducedheight float64 `json:"minreducedheight,omitempty"`
+
+ // Minreducedwidth
+ // arrayOK: false
+ // type: number
+ // Minimum width of the plot with margin.automargin applied (in px)
+ Minreducedwidth float64 `json:"minreducedwidth,omitempty"`
+
// Modebar
// role: Object
Modebar *LayoutModebar `json:"modebar,omitempty"`
+ // Newselection
+ // role: Object
+ Newselection *LayoutNewselection `json:"newselection,omitempty"`
+
// Newshape
// role: Object
Newshape *LayoutNewshape `json:"newshape,omitempty"`
- // Orientation
- // arrayOK: false
- // type: angle
- // Legacy polar charts are deprecated! Please switch to *polar* subplots. Rotates the entire polar by the given angle in legacy polar charts.
- Orientation float64 `json:"orientation,omitempty"`
-
// PaperBgcolor
// arrayOK: false
// type: color
@@ -293,9 +309,17 @@ type Layout struct {
// role: Object
Polar *LayoutPolar `json:"polar,omitempty"`
- // Radialaxis
- // role: Object
- Radialaxis *LayoutRadialaxis `json:"radialaxis,omitempty"`
+ // Scattergap
+ // arrayOK: false
+ // type: number
+ // Sets the gap (in plot fraction) between scatter points of adjacent location coordinates. Defaults to `bargap`.
+ Scattergap float64 `json:"scattergap,omitempty"`
+
+ // Scattermode
+ // 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.
+ Scattermode LayoutScattermode `json:"scattermode,omitempty"`
// Scene
// role: Object
@@ -313,6 +337,12 @@ type Layout struct {
// Controls persistence of user-driven changes in selected points from all traces.
Selectionrevision interface{} `json:"selectionrevision,omitempty"`
+ // Selections
+ // It's an items array and what goes inside it's... messy... check the docs
+ // I will be happy if you want to contribute by implementing this
+ // just raise an issue before you start so we do not overlap
+ Selections interface{} `json:"selections,omitempty"`
+
// Separators
// arrayOK: false
// type: string
@@ -337,6 +367,10 @@ type Layout struct {
// just raise an issue before you start so we do not overlap
Sliders interface{} `json:"sliders,omitempty"`
+ // Smith
+ // role: Object
+ Smith *LayoutSmith `json:"smith,omitempty"`
+
// Spikedistance
// arrayOK: false
// type: integer
@@ -422,7 +456,7 @@ type Layout struct {
// Waterfallmode
// 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 an *opacity* to see multiple bars.
+ // 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.
Waterfallmode LayoutWaterfallmode `json:"waterfallmode,omitempty"`
// Width
@@ -480,84 +514,36 @@ type Layout struct {
YAxis6 *LayoutYaxis `json:"yaxis6,omitempty"`
}
-// LayoutActiveshape
-type LayoutActiveshape struct {
+// LayoutActiveselection
+type LayoutActiveselection struct {
// Fillcolor
// arrayOK: false
// type: color
- // Sets the color filling the active shape' interior.
+ // Sets the color filling the active selection' interior.
Fillcolor Color `json:"fillcolor,omitempty"`
// Opacity
// arrayOK: false
// type: number
- // Sets the opacity of the active shape.
+ // Sets the opacity of the active selection.
Opacity float64 `json:"opacity,omitempty"`
}
-// LayoutAngularaxis
-type LayoutAngularaxis struct {
-
- // Domain
- // arrayOK: false
- // type: info_array
- // Polar chart subplots are not supported yet. This key has currently no effect.
- Domain interface{} `json:"domain,omitempty"`
-
- // Endpadding
- // arrayOK: false
- // type: number
- // Legacy polar charts are deprecated! Please switch to *polar* subplots.
- Endpadding float64 `json:"endpadding,omitempty"`
-
- // Range
- // arrayOK: false
- // type: info_array
- // Legacy polar charts are deprecated! Please switch to *polar* subplots. Defines the start and end point of this angular axis.
- Range interface{} `json:"range,omitempty"`
-
- // Showline
- // arrayOK: false
- // type: boolean
- // Legacy polar charts are deprecated! Please switch to *polar* subplots. Determines whether or not the line bounding this angular axis will be shown on the figure.
- Showline Bool `json:"showline,omitempty"`
-
- // Showticklabels
- // arrayOK: false
- // type: boolean
- // Legacy polar charts are deprecated! Please switch to *polar* subplots. Determines whether or not the angular axis ticks will feature tick labels.
- Showticklabels Bool `json:"showticklabels,omitempty"`
+// LayoutActiveshape
+type LayoutActiveshape struct {
- // Tickcolor
+ // Fillcolor
// arrayOK: false
// type: color
- // Legacy polar charts are deprecated! Please switch to *polar* subplots. Sets the color of the tick lines on this angular axis.
- Tickcolor Color `json:"tickcolor,omitempty"`
+ // Sets the color filling the active shape' interior.
+ Fillcolor Color `json:"fillcolor,omitempty"`
- // Ticklen
+ // Opacity
// arrayOK: false
// type: number
- // Legacy polar charts are deprecated! Please switch to *polar* subplots. Sets the length of the tick lines on this angular axis.
- Ticklen float64 `json:"ticklen,omitempty"`
-
- // Tickorientation
- // default: %!s()
- // type: enumerated
- // Legacy polar charts are deprecated! Please switch to *polar* subplots. Sets the orientation (from the paper perspective) of the angular axis tick labels.
- Tickorientation LayoutAngularaxisTickorientation `json:"tickorientation,omitempty"`
-
- // Ticksuffix
- // arrayOK: false
- // type: string
- // Legacy polar charts are deprecated! Please switch to *polar* subplots. Sets the length of the tick lines on this angular axis.
- Ticksuffix String `json:"ticksuffix,omitempty"`
-
- // Visible
- // arrayOK: false
- // type: boolean
- // Legacy polar charts are deprecated! Please switch to *polar* subplots. Determines whether or not this axis will be visible.
- Visible Bool `json:"visible,omitempty"`
+ // Sets the opacity of the active shape.
+ Opacity float64 `json:"opacity,omitempty"`
}
// LayoutColoraxisColorbarTickfont Sets the color bar's tick label font
@@ -612,9 +598,9 @@ type LayoutColoraxisColorbarTitle struct {
Font *LayoutColoraxisColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side LayoutColoraxisColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -657,6 +643,12 @@ type LayoutColoraxisColorbar struct {
// 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.
Exponentformat LayoutColoraxisColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -681,6 +673,12 @@ type LayoutColoraxisColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation LayoutColoraxisColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -760,7 +758,7 @@ type LayoutColoraxisColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -769,12 +767,24 @@ type LayoutColoraxisColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition LayoutColoraxisColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -814,7 +824,7 @@ type LayoutColoraxisColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -826,7 +836,7 @@ type LayoutColoraxisColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -842,13 +852,13 @@ type LayoutColoraxisColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor LayoutColoraxisColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -860,13 +870,13 @@ type LayoutColoraxisColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor LayoutColoraxisColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -882,13 +892,13 @@ type LayoutColoraxis struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here corresponding trace color array(s)) or the bounds set in `cmin` and `cmax` Defaults to `false` when `cmin` and `cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here corresponding trace color array(s)) or the bounds set in `cmin` and `cmax` Defaults to `false` when `cmin` and `cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
@@ -916,7 +926,7 @@ type LayoutColoraxis struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`cmin` and `cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `cmin` and `cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Reversescale
@@ -1035,6 +1045,12 @@ type LayoutGeoLataxis struct {
// Sets the graticule's stroke color.
Gridcolor Color `json:"gridcolor,omitempty"`
+ // Griddash
+ // 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"`
+
// Gridwidth
// arrayOK: false
// type: number
@@ -1075,6 +1091,12 @@ type LayoutGeoLonaxis struct {
// Sets the graticule's stroke color.
Gridcolor Color `json:"gridcolor,omitempty"`
+ // Griddash
+ // 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"`
+
// Gridwidth
// arrayOK: false
// type: number
@@ -1125,6 +1147,12 @@ type LayoutGeoProjectionRotation struct {
// LayoutGeoProjection
type LayoutGeoProjection struct {
+ // Distance
+ // arrayOK: false
+ // type: number
+ // For satellite projection type only. Sets the distance from the center of the sphere to the point of view as a proportion of the sphere’s radius.
+ Distance float64 `json:"distance,omitempty"`
+
// Parallels
// arrayOK: false
// type: info_array
@@ -1141,6 +1169,12 @@ type LayoutGeoProjection struct {
// Zooms in or out on the map view. A scale of *1* corresponds to the largest zoom level that fits the map's lon and lat ranges.
Scale float64 `json:"scale,omitempty"`
+ // Tilt
+ // arrayOK: false
+ // type: number
+ // For satellite projection type only. Sets the tilt angle of perspective projection.
+ Tilt float64 `json:"tilt,omitempty"`
+
// Type
// default: %!s()
// type: enumerated
@@ -1446,6 +1480,28 @@ type LayoutHoverlabelFont struct {
Size float64 `json:"size,omitempty"`
}
+// LayoutHoverlabelGrouptitlefont Sets the font for group titles in hover (unified modes). Defaults to `hoverlabel.font`.
+type LayoutHoverlabelGrouptitlefont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
// LayoutHoverlabel
type LayoutHoverlabel struct {
@@ -1471,6 +1527,10 @@ type LayoutHoverlabel struct {
// role: Object
Font *LayoutHoverlabelFont `json:"font,omitempty"`
+ // Grouptitlefont
+ // role: Object
+ Grouptitlefont *LayoutHoverlabelGrouptitlefont `json:"grouptitlefont,omitempty"`
+
// Namelength
// arrayOK: false
// type: integer
@@ -1500,7 +1560,29 @@ type LayoutLegendFont struct {
Size float64 `json:"size,omitempty"`
}
-// LayoutLegendTitleFont Sets this legend's title font.
+// LayoutLegendGrouptitlefont Sets the font for group titles in legend. Defaults to `legend.font` with its size increased about 10%.
+type LayoutLegendGrouptitlefont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// LayoutLegendTitleFont Sets this legend's title font. Defaults to `legend.font` with its size increased about 20%.
type LayoutLegendTitleFont struct {
// Color
@@ -1563,20 +1645,42 @@ type LayoutLegend struct {
// Sets the width (in px) of the border enclosing the legend.
Borderwidth float64 `json:"borderwidth,omitempty"`
+ // Entrywidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend. Use 0 to size the entry based on the text width, when `entrywidthmode` is set to *pixels*.
+ Entrywidth float64 `json:"entrywidth,omitempty"`
+
+ // Entrywidthmode
+ // default: pixels
+ // type: enumerated
+ // Determines what entrywidth means.
+ Entrywidthmode LayoutLegendEntrywidthmode `json:"entrywidthmode,omitempty"`
+
// Font
// role: Object
Font *LayoutLegendFont `json:"font,omitempty"`
+ // Groupclick
+ // 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.
+ Groupclick LayoutLegendGroupclick `json:"groupclick,omitempty"`
+
+ // Grouptitlefont
+ // role: Object
+ Grouptitlefont *LayoutLegendGrouptitlefont `json:"grouptitlefont,omitempty"`
+
// Itemclick
// 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* disable legend item click interactions.
+ // 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
// 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* disable legend item double-click interactions.
+ // 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
@@ -1650,6 +1754,34 @@ type LayoutLegend struct {
Yanchor LayoutLegendYanchor `json:"yanchor,omitempty"`
}
+// LayoutMapboxBounds
+type LayoutMapboxBounds struct {
+
+ // East
+ // arrayOK: false
+ // type: number
+ // Sets the maximum longitude of the map (in degrees East) if `west`, `south` and `north` are declared.
+ East float64 `json:"east,omitempty"`
+
+ // North
+ // arrayOK: false
+ // type: number
+ // Sets the maximum latitude of the map (in degrees North) if `east`, `west` and `south` are declared.
+ North float64 `json:"north,omitempty"`
+
+ // South
+ // arrayOK: false
+ // type: number
+ // Sets the minimum latitude of the map (in degrees North) if `east`, `west` and `north` are declared.
+ South float64 `json:"south,omitempty"`
+
+ // West
+ // arrayOK: false
+ // type: number
+ // Sets the minimum longitude of the map (in degrees East) if `east`, `south` and `north` are declared.
+ West float64 `json:"west,omitempty"`
+}
+
// LayoutMapboxCenter
type LayoutMapboxCenter struct {
@@ -1709,6 +1841,10 @@ type LayoutMapbox struct {
// Sets the bearing angle of the map in degrees counter-clockwise from North (mapbox.bearing).
Bearing float64 `json:"bearing,omitempty"`
+ // Bounds
+ // role: Object
+ Bounds *LayoutMapboxBounds `json:"bounds,omitempty"`
+
// Center
// role: Object
Center *LayoutMapboxCenter `json:"center,omitempty"`
@@ -1732,7 +1868,7 @@ type LayoutMapbox struct {
// Style
// arrayOK: false
// type: any
- // Defines the map layers that are rendered by default below the trace layers defined in `data`, which are themselves by default rendered below the layers defined in `layout.mapbox.layers`. These layers can be defined either explicitly as a Mapbox Style object which can contain multiple layer definitions that load data from any public or private Tile Map Service (TMS or XYZ) or Web Map Service (WMS) or implicitly by using one of the built-in style objects which use WMSes which do not require any access tokens, or by using a default Mapbox style or custom Mapbox style URL, both of which require a Mapbox access token Note that Mapbox access token can be set in the `accesstoken` attribute or in the `mapboxAccessToken` config option. Mapbox Style objects are of the form described in the Mapbox GL JS documentation available at https://docs.mapbox.com/mapbox-gl-js/style-spec The built-in plotly.js styles objects are: open-street-map, white-bg, carto-positron, carto-darkmatter, stamen-terrain, stamen-toner, stamen-watercolor The built-in Mapbox styles are: basic, streets, outdoors, light, dark, satellite, satellite-streets Mapbox style URLs are of the form: mapbox://mapbox.mapbox--
+ // Defines the map layers that are rendered by default below the trace layers defined in `data`, which are themselves by default rendered below the layers defined in `layout.mapbox.layers`. These layers can be defined either explicitly as a Mapbox Style object which can contain multiple layer definitions that load data from any public or private Tile Map Service (TMS or XYZ) or Web Map Service (WMS) or implicitly by using one of the built-in style objects which use WMSes which do not require any access tokens, or by using a default Mapbox style or custom Mapbox style URL, both of which require a Mapbox access token Note that Mapbox access token can be set in the `accesstoken` attribute or in the `mapboxAccessToken` config option. Mapbox Style objects are of the form described in the Mapbox GL JS documentation available at https://docs.mapbox.com/mapbox-gl-js/style-spec The built-in plotly.js styles objects are: carto-darkmatter, carto-positron, open-street-map, stamen-terrain, stamen-toner, stamen-watercolor, white-bg The built-in Mapbox styles are: basic, streets, outdoors, light, dark, satellite, satellite-streets Mapbox style URLs are of the form: mapbox://mapbox.mapbox--
Style interface{} `json:"style,omitempty"`
// Uirevision
@@ -1797,6 +1933,18 @@ type LayoutModebar struct {
// Sets the color of the active or hovered on icons in the modebar.
Activecolor Color `json:"activecolor,omitempty"`
+ // Add
+ // 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"`
+
+ // Addsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `add`.
+ Addsrc String `json:"addsrc,omitempty"`
+
// Bgcolor
// arrayOK: false
// type: color
@@ -1815,6 +1963,18 @@ type LayoutModebar struct {
// Sets the orientation of the modebar.
Orientation LayoutModebarOrientation `json:"orientation,omitempty"`
+ // Remove
+ // 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"`
+
+ // Removesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `remove`.
+ Removesrc String `json:"removesrc,omitempty"`
+
// Uirevision
// arrayOK: false
// type: any
@@ -1822,8 +1982,8 @@ type LayoutModebar struct {
Uirevision interface{} `json:"uirevision,omitempty"`
}
-// LayoutNewshapeLine
-type LayoutNewshapeLine struct {
+// LayoutNewselectionLine
+type LayoutNewselectionLine struct {
// Color
// arrayOK: false
@@ -1844,46 +2004,22 @@ type LayoutNewshapeLine struct {
Width float64 `json:"width,omitempty"`
}
-// LayoutNewshape
-type LayoutNewshape struct {
-
- // Drawdirection
- // 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.
- Drawdirection LayoutNewshapeDrawdirection `json:"drawdirection,omitempty"`
-
- // Fillcolor
- // arrayOK: false
- // type: color
- // Sets the color filling new shapes' interior. Please note that if using a fillcolor with alpha greater than half, drag inside the active shape starts moving the shape underneath, otherwise a new shape could be started over.
- Fillcolor Color `json:"fillcolor,omitempty"`
-
- // Fillrule
- // 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
- Fillrule LayoutNewshapeFillrule `json:"fillrule,omitempty"`
-
- // Layer
- // default: above
- // type: enumerated
- // Specifies whether new shapes are drawn below or above traces.
- Layer LayoutNewshapeLayer `json:"layer,omitempty"`
+// LayoutNewselection
+type LayoutNewselection struct {
// Line
// role: Object
- Line *LayoutNewshapeLine `json:"line,omitempty"`
+ Line *LayoutNewselectionLine `json:"line,omitempty"`
- // Opacity
- // arrayOK: false
- // type: number
- // Sets the opacity of new shapes.
- Opacity float64 `json:"opacity,omitempty"`
+ // Mode
+ // 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.
+ Mode LayoutNewselectionMode `json:"mode,omitempty"`
}
-// LayoutPolarAngularaxisTickfont Sets the tick font.
-type LayoutPolarAngularaxisTickfont struct {
+// LayoutNewshapeLabelFont Sets the new shape label text font.
+type LayoutNewshapeLabelFont struct {
// Color
// arrayOK: false
@@ -1904,25 +2040,155 @@ type LayoutPolarAngularaxisTickfont struct {
Size float64 `json:"size,omitempty"`
}
-// LayoutPolarAngularaxis
-type LayoutPolarAngularaxis struct {
+// LayoutNewshapeLabel
+type LayoutNewshapeLabel struct {
- // Autotypenumbers
- // 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 LayoutPolarAngularaxisAutotypenumbers `json:"autotypenumbers,omitempty"`
+ // Font
+ // role: Object
+ Font *LayoutNewshapeLabelFont `json:"font,omitempty"`
- // Categoryarray
+ // Padding
// arrayOK: false
- // type: data_array
+ // type: number
+ // Sets padding (in px) between edge of label and edge of new shape.
+ Padding float64 `json:"padding,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the text to display with the new shape.
+ Text String `json:"text,omitempty"`
+
+ // Textangle
+ // arrayOK: false
+ // type: angle
+ // Sets the angle at which the label text is drawn with respect to the horizontal. For lines, angle *auto* is the same angle as the line. For all other shapes, angle *auto* is horizontal.
+ Textangle float64 `json:"textangle,omitempty"`
+
+ // Textposition
+ // 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
+ // 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
+ // 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.
+ Yanchor LayoutNewshapeLabelYanchor `json:"yanchor,omitempty"`
+}
+
+// LayoutNewshapeLine
+type LayoutNewshapeLine struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ // Sets the line color. By default uses either dark grey or white to increase contrast with background color.
+ Color Color `json:"color,omitempty"`
+
+ // Dash
+ // 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"`
+
+ // Width
+ // arrayOK: false
+ // type: number
+ // Sets the line width (in px).
+ Width float64 `json:"width,omitempty"`
+}
+
+// LayoutNewshape
+type LayoutNewshape struct {
+
+ // Drawdirection
+ // 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.
+ Drawdirection LayoutNewshapeDrawdirection `json:"drawdirection,omitempty"`
+
+ // Fillcolor
+ // arrayOK: false
+ // type: color
+ // Sets the color filling new shapes' interior. Please note that if using a fillcolor with alpha greater than half, drag inside the active shape starts moving the shape underneath, otherwise a new shape could be started over.
+ Fillcolor Color `json:"fillcolor,omitempty"`
+
+ // Fillrule
+ // 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
+ Fillrule LayoutNewshapeFillrule `json:"fillrule,omitempty"`
+
+ // Label
+ // role: Object
+ Label *LayoutNewshapeLabel `json:"label,omitempty"`
+
+ // Layer
+ // default: above
+ // type: enumerated
+ // Specifies whether new shapes are drawn below or above traces.
+ Layer LayoutNewshapeLayer `json:"layer,omitempty"`
+
+ // Line
+ // role: Object
+ Line *LayoutNewshapeLine `json:"line,omitempty"`
+
+ // Opacity
+ // arrayOK: false
+ // type: number
+ // Sets the opacity of new shapes.
+ Opacity float64 `json:"opacity,omitempty"`
+}
+
+// LayoutPolarAngularaxisTickfont Sets the tick font.
+type LayoutPolarAngularaxisTickfont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// LayoutPolarAngularaxis
+type LayoutPolarAngularaxis struct {
+
+ // Autotypenumbers
+ // 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 LayoutPolarAngularaxisAutotypenumbers `json:"autotypenumbers,omitempty"`
+
+ // Categoryarray
+ // arrayOK: false
+ // type: data_array
// Sets the order in which categories on this axis appear. Only has an effect if `categoryorder` is set to *array*. Used with `categoryorder`.
Categoryarray interface{} `json:"categoryarray,omitempty"`
// Categoryarraysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for categoryarray .
+ // Sets the source reference on Chart Studio Cloud for `categoryarray`.
Categoryarraysrc String `json:"categoryarraysrc,omitempty"`
// Categoryorder
@@ -1961,6 +2227,12 @@ type LayoutPolarAngularaxis struct {
// Sets the color of the grid lines.
Gridcolor Color `json:"gridcolor,omitempty"`
+ // Griddash
+ // 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"`
+
// Gridwidth
// arrayOK: false
// type: number
@@ -1970,9 +2242,15 @@ type LayoutPolarAngularaxis struct {
// Hoverformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Layer
// default: above traces
// type: enumerated
@@ -2088,7 +2366,7 @@ type LayoutPolarAngularaxis struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -2097,6 +2375,12 @@ type LayoutPolarAngularaxis struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -2136,7 +2420,7 @@ type LayoutPolarAngularaxis struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -2148,7 +2432,7 @@ type LayoutPolarAngularaxis struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -2298,7 +2582,7 @@ type LayoutPolarRadialaxis struct {
// Categoryarraysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for categoryarray .
+ // Sets the source reference on Chart Studio Cloud for `categoryarray`.
Categoryarraysrc String `json:"categoryarraysrc,omitempty"`
// Categoryorder
@@ -2331,6 +2615,12 @@ type LayoutPolarRadialaxis struct {
// Sets the color of the grid lines.
Gridcolor Color `json:"gridcolor,omitempty"`
+ // Griddash
+ // 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"`
+
// Gridwidth
// arrayOK: false
// type: number
@@ -2340,9 +2630,15 @@ type LayoutPolarRadialaxis struct {
// Hoverformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Layer
// default: above traces
// type: enumerated
@@ -2458,7 +2754,7 @@ type LayoutPolarRadialaxis struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -2467,6 +2763,12 @@ type LayoutPolarRadialaxis struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -2506,7 +2808,7 @@ type LayoutPolarRadialaxis struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -2518,7 +2820,7 @@ type LayoutPolarRadialaxis struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -2596,76 +2898,6 @@ type LayoutPolar struct {
Uirevision interface{} `json:"uirevision,omitempty"`
}
-// LayoutRadialaxis
-type LayoutRadialaxis struct {
-
- // Domain
- // arrayOK: false
- // type: info_array
- // Polar chart subplots are not supported yet. This key has currently no effect.
- Domain interface{} `json:"domain,omitempty"`
-
- // Endpadding
- // arrayOK: false
- // type: number
- // Legacy polar charts are deprecated! Please switch to *polar* subplots.
- Endpadding float64 `json:"endpadding,omitempty"`
-
- // Orientation
- // arrayOK: false
- // type: number
- // Legacy polar charts are deprecated! Please switch to *polar* subplots. Sets the orientation (an angle with respect to the origin) of the radial axis.
- Orientation float64 `json:"orientation,omitempty"`
-
- // Range
- // arrayOK: false
- // type: info_array
- // Legacy polar charts are deprecated! Please switch to *polar* subplots. Defines the start and end point of this radial axis.
- Range interface{} `json:"range,omitempty"`
-
- // Showline
- // arrayOK: false
- // type: boolean
- // Legacy polar charts are deprecated! Please switch to *polar* subplots. Determines whether or not the line bounding this radial axis will be shown on the figure.
- Showline Bool `json:"showline,omitempty"`
-
- // Showticklabels
- // arrayOK: false
- // type: boolean
- // Legacy polar charts are deprecated! Please switch to *polar* subplots. Determines whether or not the radial axis ticks will feature tick labels.
- Showticklabels Bool `json:"showticklabels,omitempty"`
-
- // Tickcolor
- // arrayOK: false
- // type: color
- // Legacy polar charts are deprecated! Please switch to *polar* subplots. Sets the color of the tick lines on this radial axis.
- Tickcolor Color `json:"tickcolor,omitempty"`
-
- // Ticklen
- // arrayOK: false
- // type: number
- // Legacy polar charts are deprecated! Please switch to *polar* subplots. Sets the length of the tick lines on this radial axis.
- Ticklen float64 `json:"ticklen,omitempty"`
-
- // Tickorientation
- // default: %!s()
- // type: enumerated
- // Legacy polar charts are deprecated! Please switch to *polar* subplots. Sets the orientation (from the paper perspective) of the radial axis tick labels.
- Tickorientation LayoutRadialaxisTickorientation `json:"tickorientation,omitempty"`
-
- // Ticksuffix
- // arrayOK: false
- // type: string
- // Legacy polar charts are deprecated! Please switch to *polar* subplots. Sets the length of the tick lines on this radial axis.
- Ticksuffix String `json:"ticksuffix,omitempty"`
-
- // Visible
- // arrayOK: false
- // type: boolean
- // Legacy polar charts are deprecated! Please switch to *polar* subplots. Determines whether or not this axis will be visible.
- Visible Bool `json:"visible,omitempty"`
-}
-
// LayoutSceneAspectratio Sets this scene's axis aspectratio.
type LayoutSceneAspectratio struct {
@@ -2906,7 +3138,7 @@ type LayoutSceneXaxis struct {
// Categoryarraysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for categoryarray .
+ // Sets the source reference on Chart Studio Cloud for `categoryarray`.
Categoryarraysrc String `json:"categoryarraysrc,omitempty"`
// Categoryorder
@@ -2948,9 +3180,15 @@ type LayoutSceneXaxis struct {
// Hoverformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Linecolor
// arrayOK: false
// type: color
@@ -3096,7 +3334,7 @@ type LayoutSceneXaxis struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -3144,7 +3382,7 @@ type LayoutSceneXaxis struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -3156,7 +3394,7 @@ type LayoutSceneXaxis struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -3294,7 +3532,7 @@ type LayoutSceneYaxis struct {
// Categoryarraysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for categoryarray .
+ // Sets the source reference on Chart Studio Cloud for `categoryarray`.
Categoryarraysrc String `json:"categoryarraysrc,omitempty"`
// Categoryorder
@@ -3336,9 +3574,15 @@ type LayoutSceneYaxis struct {
// Hoverformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Linecolor
// arrayOK: false
// type: color
@@ -3484,7 +3728,7 @@ type LayoutSceneYaxis struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -3532,7 +3776,7 @@ type LayoutSceneYaxis struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -3544,7 +3788,7 @@ type LayoutSceneYaxis struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -3682,7 +3926,7 @@ type LayoutSceneZaxis struct {
// Categoryarraysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for categoryarray .
+ // Sets the source reference on Chart Studio Cloud for `categoryarray`.
Categoryarraysrc String `json:"categoryarraysrc,omitempty"`
// Categoryorder
@@ -3724,9 +3968,15 @@ type LayoutSceneZaxis struct {
// Hoverformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Linecolor
// arrayOK: false
// type: color
@@ -3872,7 +4122,7 @@ type LayoutSceneZaxis struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -3920,7 +4170,7 @@ type LayoutSceneZaxis struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -3932,7 +4182,7 @@ type LayoutSceneZaxis struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -4040,30 +4290,36 @@ type LayoutScene struct {
Zaxis *LayoutSceneZaxis `json:"zaxis,omitempty"`
}
-// LayoutTernaryAaxisTickfont Sets the tick font.
-type LayoutTernaryAaxisTickfont struct {
+// LayoutSmithDomain
+type LayoutSmithDomain struct {
- // Color
+ // Column
// arrayOK: false
- // type: color
- //
- Color Color `json:"color,omitempty"`
+ // type: integer
+ // If there is a layout grid, use the domain for this column in the grid for this smith subplot .
+ Column int64 `json:"column,omitempty"`
- // Family
+ // Row
// arrayOK: false
- // type: string
- // HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.
- Family String `json:"family,omitempty"`
+ // type: integer
+ // If there is a layout grid, use the domain for this row in the grid for this smith subplot .
+ Row int64 `json:"row,omitempty"`
- // Size
+ // X
// arrayOK: false
- // type: number
- //
- Size float64 `json:"size,omitempty"`
+ // type: info_array
+ // Sets the horizontal domain of this smith subplot (in plot fraction).
+ X interface{} `json:"x,omitempty"`
+
+ // Y
+ // arrayOK: false
+ // type: info_array
+ // Sets the vertical domain of this smith subplot (in plot fraction).
+ Y interface{} `json:"y,omitempty"`
}
-// LayoutTernaryAaxisTitleFont Sets this axis' title font. Note that the title's font used to be customized by the now deprecated `titlefont` attribute.
-type LayoutTernaryAaxisTitleFont struct {
+// LayoutSmithImaginaryaxisTickfont Sets the tick font.
+type LayoutSmithImaginaryaxisTickfont struct {
// Color
// arrayOK: false
@@ -4084,22 +4340,8 @@ type LayoutTernaryAaxisTitleFont struct {
Size float64 `json:"size,omitempty"`
}
-// LayoutTernaryAaxisTitle
-type LayoutTernaryAaxisTitle struct {
-
- // Font
- // role: Object
- Font *LayoutTernaryAaxisTitleFont `json:"font,omitempty"`
-
- // Text
- // 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"`
-}
-
-// LayoutTernaryAaxis
-type LayoutTernaryAaxis struct {
+// LayoutSmithImaginaryaxis
+type LayoutSmithImaginaryaxis struct {
// Color
// arrayOK: false
@@ -4107,15 +4349,433 @@ type LayoutTernaryAaxis struct {
// Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors. Grid color is lightened by blending this with the plot background Individual pieces can override this.
Color Color `json:"color,omitempty"`
- // Dtick
+ // Gridcolor
// arrayOK: false
- // type: any
- // Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to *log* and *date* axes. If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1. To set tick marks at 1, 100, 10000, ... set dtick to 2. To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433. *log* has several special values; *L*, where `f` is a positive number, gives ticks linearly spaced in value (but not position). For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5). `tick0` is ignored for *D1* and *D2*. If the axis `type` is *date*, then you must convert the time to milliseconds. For example, to set the interval between ticks to one day, set `dtick` to 86400000.0. *date* also has special values *M* gives ticks spaced by a number of months. `n` must be a positive integer. To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*. To set ticks every 4 years, set `dtick` to *M48*
- Dtick interface{} `json:"dtick,omitempty"`
+ // type: color
+ // Sets the color of the grid lines.
+ Gridcolor Color `json:"gridcolor,omitempty"`
- // Exponentformat
- // default: B
- // type: enumerated
+ // Griddash
+ // 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"`
+
+ // Gridwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px) of the grid lines.
+ Gridwidth float64 `json:"gridwidth,omitempty"`
+
+ // Hoverformat
+ // 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"`
+
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
+ // Layer
+ // 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.
+ Layer LayoutSmithImaginaryaxisLayer `json:"layer,omitempty"`
+
+ // Linecolor
+ // arrayOK: false
+ // type: color
+ // Sets the axis line color.
+ Linecolor Color `json:"linecolor,omitempty"`
+
+ // Linewidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px) of the axis line.
+ Linewidth float64 `json:"linewidth,omitempty"`
+
+ // Showgrid
+ // arrayOK: false
+ // type: boolean
+ // Determines whether or not grid lines are drawn. If *true*, the grid lines are drawn at every tick mark.
+ Showgrid Bool `json:"showgrid,omitempty"`
+
+ // Showline
+ // arrayOK: false
+ // type: boolean
+ // Determines whether or not a line bounding this axis is drawn.
+ Showline Bool `json:"showline,omitempty"`
+
+ // Showticklabels
+ // arrayOK: false
+ // type: boolean
+ // Determines whether or not the tick labels are drawn.
+ Showticklabels Bool `json:"showticklabels,omitempty"`
+
+ // Showtickprefix
+ // 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
+ // default: all
+ // type: enumerated
+ // Same as `showtickprefix` but for tick suffixes.
+ Showticksuffix LayoutSmithImaginaryaxisShowticksuffix `json:"showticksuffix,omitempty"`
+
+ // Tickcolor
+ // arrayOK: false
+ // type: color
+ // Sets the tick color.
+ Tickcolor Color `json:"tickcolor,omitempty"`
+
+ // Tickfont
+ // role: Object
+ Tickfont *LayoutSmithImaginaryaxisTickfont `json:"tickfont,omitempty"`
+
+ // Tickformat
+ // 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"`
+
+ // Ticklen
+ // arrayOK: false
+ // type: number
+ // Sets the tick length (in px).
+ Ticklen float64 `json:"ticklen,omitempty"`
+
+ // Tickprefix
+ // arrayOK: false
+ // type: string
+ // Sets a tick label prefix.
+ Tickprefix String `json:"tickprefix,omitempty"`
+
+ // Ticks
+ // 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 LayoutSmithImaginaryaxisTicks `json:"ticks,omitempty"`
+
+ // Ticksuffix
+ // arrayOK: false
+ // type: string
+ // Sets a tick label suffix.
+ Ticksuffix String `json:"ticksuffix,omitempty"`
+
+ // Tickvals
+ // arrayOK: false
+ // type: data_array
+ // Sets the values at which ticks on this axis appear. Defaults to `realaxis.tickvals` plus the same as negatives and zero.
+ Tickvals interface{} `json:"tickvals,omitempty"`
+
+ // Tickvalssrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
+ Tickvalssrc String `json:"tickvalssrc,omitempty"`
+
+ // Tickwidth
+ // arrayOK: false
+ // type: number
+ // Sets the tick width (in px).
+ Tickwidth float64 `json:"tickwidth,omitempty"`
+
+ // Visible
+ // arrayOK: false
+ // type: boolean
+ // A single toggle to hide the axis while preserving interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false
+ Visible Bool `json:"visible,omitempty"`
+}
+
+// LayoutSmithRealaxisTickfont Sets the tick font.
+type LayoutSmithRealaxisTickfont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// LayoutSmithRealaxis
+type LayoutSmithRealaxis struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ // Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors. Grid color is lightened by blending this with the plot background Individual pieces can override this.
+ Color Color `json:"color,omitempty"`
+
+ // Gridcolor
+ // arrayOK: false
+ // type: color
+ // Sets the color of the grid lines.
+ Gridcolor Color `json:"gridcolor,omitempty"`
+
+ // Griddash
+ // 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"`
+
+ // Gridwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px) of the grid lines.
+ Gridwidth float64 `json:"gridwidth,omitempty"`
+
+ // Hoverformat
+ // 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"`
+
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
+ // Layer
+ // 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.
+ Layer LayoutSmithRealaxisLayer `json:"layer,omitempty"`
+
+ // Linecolor
+ // arrayOK: false
+ // type: color
+ // Sets the axis line color.
+ Linecolor Color `json:"linecolor,omitempty"`
+
+ // Linewidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px) of the axis line.
+ Linewidth float64 `json:"linewidth,omitempty"`
+
+ // Showgrid
+ // arrayOK: false
+ // type: boolean
+ // Determines whether or not grid lines are drawn. If *true*, the grid lines are drawn at every tick mark.
+ Showgrid Bool `json:"showgrid,omitempty"`
+
+ // Showline
+ // arrayOK: false
+ // type: boolean
+ // Determines whether or not a line bounding this axis is drawn.
+ Showline Bool `json:"showline,omitempty"`
+
+ // Showticklabels
+ // arrayOK: false
+ // type: boolean
+ // Determines whether or not the tick labels are drawn.
+ Showticklabels Bool `json:"showticklabels,omitempty"`
+
+ // Showtickprefix
+ // 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
+ // default: all
+ // type: enumerated
+ // Same as `showtickprefix` but for tick suffixes.
+ Showticksuffix LayoutSmithRealaxisShowticksuffix `json:"showticksuffix,omitempty"`
+
+ // Side
+ // default: top
+ // type: enumerated
+ // Determines on which side of real axis line the tick and tick labels appear.
+ Side LayoutSmithRealaxisSide `json:"side,omitempty"`
+
+ // Tickangle
+ // arrayOK: false
+ // type: angle
+ // Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically.
+ Tickangle float64 `json:"tickangle,omitempty"`
+
+ // Tickcolor
+ // arrayOK: false
+ // type: color
+ // Sets the tick color.
+ Tickcolor Color `json:"tickcolor,omitempty"`
+
+ // Tickfont
+ // role: Object
+ Tickfont *LayoutSmithRealaxisTickfont `json:"tickfont,omitempty"`
+
+ // Tickformat
+ // 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"`
+
+ // Ticklen
+ // arrayOK: false
+ // type: number
+ // Sets the tick length (in px).
+ Ticklen float64 `json:"ticklen,omitempty"`
+
+ // Tickprefix
+ // arrayOK: false
+ // type: string
+ // Sets a tick label prefix.
+ Tickprefix String `json:"tickprefix,omitempty"`
+
+ // Ticks
+ // 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.
+ Ticks LayoutSmithRealaxisTicks `json:"ticks,omitempty"`
+
+ // Ticksuffix
+ // arrayOK: false
+ // type: string
+ // Sets a tick label suffix.
+ Ticksuffix String `json:"ticksuffix,omitempty"`
+
+ // Tickvals
+ // arrayOK: false
+ // type: data_array
+ // Sets the values at which ticks on this axis appear.
+ Tickvals interface{} `json:"tickvals,omitempty"`
+
+ // Tickvalssrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
+ Tickvalssrc String `json:"tickvalssrc,omitempty"`
+
+ // Tickwidth
+ // arrayOK: false
+ // type: number
+ // Sets the tick width (in px).
+ Tickwidth float64 `json:"tickwidth,omitempty"`
+
+ // Visible
+ // arrayOK: false
+ // type: boolean
+ // A single toggle to hide the axis while preserving interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false
+ Visible Bool `json:"visible,omitempty"`
+}
+
+// LayoutSmith
+type LayoutSmith struct {
+
+ // Bgcolor
+ // arrayOK: false
+ // type: color
+ // Set the background color of the subplot
+ Bgcolor Color `json:"bgcolor,omitempty"`
+
+ // Domain
+ // role: Object
+ Domain *LayoutSmithDomain `json:"domain,omitempty"`
+
+ // Imaginaryaxis
+ // role: Object
+ Imaginaryaxis *LayoutSmithImaginaryaxis `json:"imaginaryaxis,omitempty"`
+
+ // Realaxis
+ // role: Object
+ Realaxis *LayoutSmithRealaxis `json:"realaxis,omitempty"`
+}
+
+// LayoutTernaryAaxisTickfont Sets the tick font.
+type LayoutTernaryAaxisTickfont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// LayoutTernaryAaxisTitleFont Sets this axis' title font. Note that the title's font used to be customized by the now deprecated `titlefont` attribute.
+type LayoutTernaryAaxisTitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// LayoutTernaryAaxisTitle
+type LayoutTernaryAaxisTitle struct {
+
+ // Font
+ // role: Object
+ Font *LayoutTernaryAaxisTitleFont `json:"font,omitempty"`
+
+ // Text
+ // 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"`
+}
+
+// LayoutTernaryAaxis
+type LayoutTernaryAaxis struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ // Sets default for all colors associated with this axis all at once: line, font, tick, and grid colors. Grid color is lightened by blending this with the plot background Individual pieces can override this.
+ Color Color `json:"color,omitempty"`
+
+ // Dtick
+ // arrayOK: false
+ // type: any
+ // Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to *log* and *date* axes. If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1. To set tick marks at 1, 100, 10000, ... set dtick to 2. To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433. *log* has several special values; *L*, where `f` is a positive number, gives ticks linearly spaced in value (but not position). For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5). `tick0` is ignored for *D1* and *D2*. If the axis `type` is *date*, then you must convert the time to milliseconds. For example, to set the interval between ticks to one day, set `dtick` to 86400000.0. *date* also has special values *M* gives ticks spaced by a number of months. `n` must be a positive integer. To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*. To set ticks every 4 years, set `dtick` to *M48*
+ Dtick interface{} `json:"dtick,omitempty"`
+
+ // Exponentformat
+ // 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.
Exponentformat LayoutTernaryAaxisExponentformat `json:"exponentformat,omitempty"`
@@ -4125,6 +4785,12 @@ type LayoutTernaryAaxis struct {
// Sets the color of the grid lines.
Gridcolor Color `json:"gridcolor,omitempty"`
+ // Griddash
+ // 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"`
+
// Gridwidth
// arrayOK: false
// type: number
@@ -4134,9 +4800,15 @@ type LayoutTernaryAaxis struct {
// Hoverformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Layer
// default: above traces
// type: enumerated
@@ -4240,7 +4912,7 @@ type LayoutTernaryAaxis struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -4249,6 +4921,12 @@ type LayoutTernaryAaxis struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -4288,7 +4966,7 @@ type LayoutTernaryAaxis struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -4300,7 +4978,7 @@ type LayoutTernaryAaxis struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -4405,6 +5083,12 @@ type LayoutTernaryBaxis struct {
// Sets the color of the grid lines.
Gridcolor Color `json:"gridcolor,omitempty"`
+ // Griddash
+ // 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"`
+
// Gridwidth
// arrayOK: false
// type: number
@@ -4414,9 +5098,15 @@ type LayoutTernaryBaxis struct {
// Hoverformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Layer
// default: above traces
// type: enumerated
@@ -4520,7 +5210,7 @@ type LayoutTernaryBaxis struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -4529,6 +5219,12 @@ type LayoutTernaryBaxis struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -4568,7 +5264,7 @@ type LayoutTernaryBaxis struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -4580,7 +5276,7 @@ type LayoutTernaryBaxis struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -4685,6 +5381,12 @@ type LayoutTernaryCaxis struct {
// Sets the color of the grid lines.
Gridcolor Color `json:"gridcolor,omitempty"`
+ // Griddash
+ // 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"`
+
// Gridwidth
// arrayOK: false
// type: number
@@ -4694,9 +5396,15 @@ type LayoutTernaryCaxis struct {
// Hoverformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Layer
// default: above traces
// type: enumerated
@@ -4800,7 +5508,7 @@ type LayoutTernaryCaxis struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -4809,6 +5517,12 @@ type LayoutTernaryCaxis struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -4848,7 +5562,7 @@ type LayoutTernaryCaxis struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -4860,7 +5574,7 @@ type LayoutTernaryCaxis struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -5088,6 +5802,94 @@ type LayoutUniformtext struct {
Mode LayoutUniformtextMode `json:"mode,omitempty"`
}
+// LayoutXaxisMinor
+type LayoutXaxisMinor struct {
+
+ // Dtick
+ // arrayOK: false
+ // type: any
+ // Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to *log* and *date* axes. If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1. To set tick marks at 1, 100, 10000, ... set dtick to 2. To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433. *log* has several special values; *L*, where `f` is a positive number, gives ticks linearly spaced in value (but not position). For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5). `tick0` is ignored for *D1* and *D2*. If the axis `type` is *date*, then you must convert the time to milliseconds. For example, to set the interval between ticks to one day, set `dtick` to 86400000.0. *date* also has special values *M* gives ticks spaced by a number of months. `n` must be a positive integer. To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*. To set ticks every 4 years, set `dtick` to *M48*
+ Dtick interface{} `json:"dtick,omitempty"`
+
+ // Gridcolor
+ // arrayOK: false
+ // type: color
+ // Sets the color of the grid lines.
+ Gridcolor Color `json:"gridcolor,omitempty"`
+
+ // Griddash
+ // 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"`
+
+ // Gridwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px) of the grid lines.
+ Gridwidth float64 `json:"gridwidth,omitempty"`
+
+ // Nticks
+ // arrayOK: false
+ // type: integer
+ // Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
+ Nticks int64 `json:"nticks,omitempty"`
+
+ // Showgrid
+ // arrayOK: false
+ // type: boolean
+ // Determines whether or not grid lines are drawn. If *true*, the grid lines are drawn at every tick mark.
+ Showgrid Bool `json:"showgrid,omitempty"`
+
+ // Tick0
+ // arrayOK: false
+ // type: any
+ // Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is *log*, then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L* (see `dtick` for more info). If the axis `type` is *date*, it should be a date string, like date data. If the axis `type` is *category*, it should be a number, using the scale where each category is assigned a serial number from zero in the order it appears.
+ Tick0 interface{} `json:"tick0,omitempty"`
+
+ // Tickcolor
+ // arrayOK: false
+ // type: color
+ // Sets the tick color.
+ Tickcolor Color `json:"tickcolor,omitempty"`
+
+ // Ticklen
+ // arrayOK: false
+ // type: number
+ // Sets the tick length (in px).
+ Ticklen float64 `json:"ticklen,omitempty"`
+
+ // Tickmode
+ // 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
+ // 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 LayoutXaxisMinorTicks `json:"ticks,omitempty"`
+
+ // Tickvals
+ // arrayOK: false
+ // type: data_array
+ // Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to *array*. Used with `ticktext`.
+ Tickvals interface{} `json:"tickvals,omitempty"`
+
+ // Tickvalssrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
+ Tickvalssrc String `json:"tickvalssrc,omitempty"`
+
+ // Tickwidth
+ // arrayOK: false
+ // type: number
+ // Sets the tick width (in px).
+ Tickwidth float64 `json:"tickwidth,omitempty"`
+}
+
// LayoutXaxisRangeselectorFont Sets the font of the range selector button text.
type LayoutXaxisRangeselectorFont struct {
@@ -5318,10 +6120,10 @@ type LayoutXaxis struct {
Anchor LayoutXaxisAnchor `json:"anchor,omitempty"`
// Automargin
- // arrayOK: false
- // type: boolean
+ // default: %!s(bool=false)
+ // type: flaglist
// Determines whether long tick labels automatically grow the figure margins.
- Automargin Bool `json:"automargin,omitempty"`
+ Automargin LayoutXaxisAutomargin `json:"automargin,omitempty"`
// Autorange
// default: %!s(bool=true)
@@ -5350,7 +6152,7 @@ type LayoutXaxis struct {
// Categoryarraysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for categoryarray .
+ // Sets the source reference on Chart Studio Cloud for `categoryarray`.
Categoryarraysrc String `json:"categoryarraysrc,omitempty"`
// Categoryorder
@@ -5419,6 +6221,12 @@ type LayoutXaxis struct {
// Sets the color of the grid lines.
Gridcolor Color `json:"gridcolor,omitempty"`
+ // Griddash
+ // 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"`
+
// Gridwidth
// arrayOK: false
// type: number
@@ -5428,9 +6236,15 @@ type LayoutXaxis struct {
// Hoverformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Layer
// default: above traces
// type: enumerated
@@ -5461,6 +6275,10 @@ type LayoutXaxis struct {
// Hide SI prefix for 10^n if |n| is below this number. This only has an effect when `tickformat` is *SI* or *B*.
Minexponent float64 `json:"minexponent,omitempty"`
+ // Minor
+ // role: Object
+ Minor *LayoutXaxisMinor `json:"minor,omitempty"`
+
// Mirror
// default: %!s(bool=false)
// type: enumerated
@@ -5602,7 +6420,7 @@ type LayoutXaxis struct {
Spikemode LayoutXaxisSpikemode `json:"spikemode,omitempty"`
// Spikesnap
- // default: data
+ // default: hovered data
// type: enumerated
// Determines whether spikelines are stuck to the cursor or to the closest datapoints.
Spikesnap LayoutXaxisSpikesnap `json:"spikesnap,omitempty"`
@@ -5638,7 +6456,7 @@ type LayoutXaxis struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -5653,12 +6471,182 @@ type LayoutXaxis struct {
// 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
+ // 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
// 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.
Ticklabelposition LayoutXaxisTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
+ // Ticklen
+ // arrayOK: false
+ // type: number
+ // Sets the tick length (in px).
+ Ticklen float64 `json:"ticklen,omitempty"`
+
+ // Tickmode
+ // 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.
+ Tickmode LayoutXaxisTickmode `json:"tickmode,omitempty"`
+
+ // Tickprefix
+ // arrayOK: false
+ // type: string
+ // Sets a tick label prefix.
+ Tickprefix String `json:"tickprefix,omitempty"`
+
+ // Ticks
+ // 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
+ // 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.
+ Tickson LayoutXaxisTickson `json:"tickson,omitempty"`
+
+ // Ticksuffix
+ // arrayOK: false
+ // type: string
+ // Sets a tick label suffix.
+ Ticksuffix String `json:"ticksuffix,omitempty"`
+
+ // Ticktext
+ // arrayOK: false
+ // type: data_array
+ // Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to *array*. Used with `tickvals`.
+ Ticktext interface{} `json:"ticktext,omitempty"`
+
+ // Ticktextsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
+ Ticktextsrc String `json:"ticktextsrc,omitempty"`
+
+ // Tickvals
+ // arrayOK: false
+ // type: data_array
+ // Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to *array*. Used with `ticktext`.
+ Tickvals interface{} `json:"tickvals,omitempty"`
+
+ // Tickvalssrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
+ Tickvalssrc String `json:"tickvalssrc,omitempty"`
+
+ // Tickwidth
+ // arrayOK: false
+ // type: number
+ // Sets the tick width (in px).
+ Tickwidth float64 `json:"tickwidth,omitempty"`
+
+ // Title
+ // role: Object
+ Title *LayoutXaxisTitle `json:"title,omitempty"`
+
+ // Type
+ // 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.
+ Type LayoutXaxisType `json:"type,omitempty"`
+
+ // Uirevision
+ // arrayOK: false
+ // type: any
+ // Controls persistence of user-driven changes in axis `range`, `autorange`, and `title` if in `editable: true` configuration. Defaults to `layout.uirevision`.
+ Uirevision interface{} `json:"uirevision,omitempty"`
+
+ // Visible
+ // arrayOK: false
+ // type: boolean
+ // A single toggle to hide the axis while preserving interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false
+ Visible Bool `json:"visible,omitempty"`
+
+ // Zeroline
+ // arrayOK: false
+ // type: boolean
+ // Determines whether or not a line is drawn at along the 0 value of this axis. If *true*, the zero line is drawn on top of the grid lines.
+ Zeroline Bool `json:"zeroline,omitempty"`
+
+ // Zerolinecolor
+ // arrayOK: false
+ // type: color
+ // Sets the line color of the zero line.
+ Zerolinecolor Color `json:"zerolinecolor,omitempty"`
+
+ // Zerolinewidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px) of the zero line.
+ Zerolinewidth float64 `json:"zerolinewidth,omitempty"`
+}
+
+// LayoutYaxisMinor
+type LayoutYaxisMinor struct {
+
+ // Dtick
+ // arrayOK: false
+ // type: any
+ // Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to *log* and *date* axes. If the axis `type` is *log*, then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 10, 100, 1000, ... set dtick to 1. To set tick marks at 1, 100, 10000, ... set dtick to 2. To set tick marks at 1, 5, 25, 125, 625, 3125, ... set dtick to log_10(5), or 0.69897000433. *log* has several special values; *L*, where `f` is a positive number, gives ticks linearly spaced in value (but not position). For example `tick0` = 0.1, `dtick` = *L0.5* will put ticks at 0.1, 0.6, 1.1, 1.6 etc. To show powers of 10 plus small digits between, use *D1* (all digits) or *D2* (only 2 and 5). `tick0` is ignored for *D1* and *D2*. If the axis `type` is *date*, then you must convert the time to milliseconds. For example, to set the interval between ticks to one day, set `dtick` to 86400000.0. *date* also has special values *M* gives ticks spaced by a number of months. `n` must be a positive integer. To set ticks on the 15th of every third month, set `tick0` to *2000-01-15* and `dtick` to *M3*. To set ticks every 4 years, set `dtick` to *M48*
+ Dtick interface{} `json:"dtick,omitempty"`
+
+ // Gridcolor
+ // arrayOK: false
+ // type: color
+ // Sets the color of the grid lines.
+ Gridcolor Color `json:"gridcolor,omitempty"`
+
+ // Griddash
+ // 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"`
+
+ // Gridwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px) of the grid lines.
+ Gridwidth float64 `json:"gridwidth,omitempty"`
+
+ // Nticks
+ // arrayOK: false
+ // type: integer
+ // Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
+ Nticks int64 `json:"nticks,omitempty"`
+
+ // Showgrid
+ // arrayOK: false
+ // type: boolean
+ // Determines whether or not grid lines are drawn. If *true*, the grid lines are drawn at every tick mark.
+ Showgrid Bool `json:"showgrid,omitempty"`
+
+ // Tick0
+ // arrayOK: false
+ // type: any
+ // Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is *log*, then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L* (see `dtick` for more info). If the axis `type` is *date*, it should be a date string, like date data. If the axis `type` is *category*, it should be a number, using the scale where each category is assigned a serial number from zero in the order it appears.
+ Tick0 interface{} `json:"tick0,omitempty"`
+
+ // Tickcolor
+ // arrayOK: false
+ // type: color
+ // Sets the tick color.
+ Tickcolor Color `json:"tickcolor,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -5669,43 +6657,13 @@ type LayoutXaxis struct {
// 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 LayoutXaxisTickmode `json:"tickmode,omitempty"`
-
- // Tickprefix
- // arrayOK: false
- // type: string
- // Sets a tick label prefix.
- Tickprefix String `json:"tickprefix,omitempty"`
+ Tickmode LayoutYaxisMinorTickmode `json:"tickmode,omitempty"`
// Ticks
// 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
- // 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.
- Tickson LayoutXaxisTickson `json:"tickson,omitempty"`
-
- // Ticksuffix
- // arrayOK: false
- // type: string
- // Sets a tick label suffix.
- Ticksuffix String `json:"ticksuffix,omitempty"`
-
- // Ticktext
- // arrayOK: false
- // type: data_array
- // Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to *array*. Used with `tickvals`.
- Ticktext interface{} `json:"ticktext,omitempty"`
-
- // Ticktextsrc
- // arrayOK: false
- // type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
- Ticktextsrc String `json:"ticktextsrc,omitempty"`
+ Ticks LayoutYaxisMinorTicks `json:"ticks,omitempty"`
// Tickvals
// arrayOK: false
@@ -5716,7 +6674,7 @@ type LayoutXaxis struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -5724,46 +6682,6 @@ type LayoutXaxis struct {
// type: number
// Sets the tick width (in px).
Tickwidth float64 `json:"tickwidth,omitempty"`
-
- // Title
- // role: Object
- Title *LayoutXaxisTitle `json:"title,omitempty"`
-
- // Type
- // 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.
- Type LayoutXaxisType `json:"type,omitempty"`
-
- // Uirevision
- // arrayOK: false
- // type: any
- // Controls persistence of user-driven changes in axis `range`, `autorange`, and `title` if in `editable: true` configuration. Defaults to `layout.uirevision`.
- Uirevision interface{} `json:"uirevision,omitempty"`
-
- // Visible
- // arrayOK: false
- // type: boolean
- // A single toggle to hide the axis while preserving interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false
- Visible Bool `json:"visible,omitempty"`
-
- // Zeroline
- // arrayOK: false
- // type: boolean
- // Determines whether or not a line is drawn at along the 0 value of this axis. If *true*, the zero line is drawn on top of the grid lines.
- Zeroline Bool `json:"zeroline,omitempty"`
-
- // Zerolinecolor
- // arrayOK: false
- // type: color
- // Sets the line color of the zero line.
- Zerolinecolor Color `json:"zerolinecolor,omitempty"`
-
- // Zerolinewidth
- // arrayOK: false
- // type: number
- // Sets the width (in px) of the zero line.
- Zerolinewidth float64 `json:"zerolinewidth,omitempty"`
}
// LayoutYaxisTickfont Sets the tick font.
@@ -5840,10 +6758,10 @@ type LayoutYaxis struct {
Anchor LayoutYaxisAnchor `json:"anchor,omitempty"`
// Automargin
- // arrayOK: false
- // type: boolean
+ // default: %!s(bool=false)
+ // type: flaglist
// Determines whether long tick labels automatically grow the figure margins.
- Automargin Bool `json:"automargin,omitempty"`
+ Automargin LayoutYaxisAutomargin `json:"automargin,omitempty"`
// Autorange
// default: %!s(bool=true)
@@ -5851,6 +6769,12 @@ type LayoutYaxis struct {
// 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 LayoutYaxisAutorange `json:"autorange,omitempty"`
+ // Autoshift
+ // arrayOK: false
+ // type: boolean
+ // Automatically reposition the axis to avoid overlap with other axes with the same `overlaying` value. This repositioning will account for any `shift` amount applied to other axes on the same side with `autoshift` is set to true. Only has an effect if `anchor` is set to *free*.
+ Autoshift Bool `json:"autoshift,omitempty"`
+
// Autotypenumbers
// default: convert types
// type: enumerated
@@ -5872,7 +6796,7 @@ type LayoutYaxis struct {
// Categoryarraysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for categoryarray .
+ // Sets the source reference on Chart Studio Cloud for `categoryarray`.
Categoryarraysrc String `json:"categoryarraysrc,omitempty"`
// Categoryorder
@@ -5941,6 +6865,12 @@ type LayoutYaxis struct {
// Sets the color of the grid lines.
Gridcolor Color `json:"gridcolor,omitempty"`
+ // Griddash
+ // 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"`
+
// Gridwidth
// arrayOK: false
// type: number
@@ -5950,9 +6880,15 @@ type LayoutYaxis struct {
// Hoverformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Layer
// default: above traces
// type: enumerated
@@ -5983,6 +6919,10 @@ type LayoutYaxis struct {
// Hide SI prefix for 10^n if |n| is below this number. This only has an effect when `tickformat` is *SI* or *B*.
Minexponent float64 `json:"minexponent,omitempty"`
+ // Minor
+ // role: Object
+ Minor *LayoutYaxisMinor `json:"minor,omitempty"`
+
// Mirror
// default: %!s(bool=false)
// type: enumerated
@@ -6043,6 +6983,12 @@ type LayoutYaxis struct {
// If "true", even 4-digit integers are separated
Separatethousands Bool `json:"separatethousands,omitempty"`
+ // Shift
+ // arrayOK: false
+ // type: number
+ // Moves the axis a given number of pixels from where it would have been otherwise. Accepts both positive and negative values, which will shift the axis either right or left, respectively. If `autoshift` is set to true, then this defaults to a padding of -3 if `side` is set to *left*. and defaults to +3 if `side` is set to *right*. Defaults to 0 if `autoshift` is set to false. Only has an effect if `anchor` is set to *free*.
+ Shift float64 `json:"shift,omitempty"`
+
// Showdividers
// arrayOK: false
// type: boolean
@@ -6116,7 +7062,7 @@ type LayoutYaxis struct {
Spikemode LayoutYaxisSpikemode `json:"spikemode,omitempty"`
// Spikesnap
- // default: data
+ // default: hovered data
// type: enumerated
// Determines whether spikelines are stuck to the cursor or to the closest datapoints.
Spikesnap LayoutYaxisSpikesnap `json:"spikesnap,omitempty"`
@@ -6152,7 +7098,7 @@ type LayoutYaxis struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -6167,12 +7113,24 @@ type LayoutYaxis struct {
// 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
+ // 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
// 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.
Ticklabelposition LayoutYaxisTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -6182,7 +7140,7 @@ type LayoutYaxis struct {
// Tickmode
// 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).
+ // 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.
Tickmode LayoutYaxisTickmode `json:"tickmode,omitempty"`
// Tickprefix
@@ -6218,7 +7176,7 @@ type LayoutYaxis struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -6230,7 +7188,7 @@ type LayoutYaxis struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -6280,14 +7238,6 @@ type LayoutYaxis struct {
Zerolinewidth float64 `json:"zerolinewidth,omitempty"`
}
-// LayoutAngularaxisTickorientation Legacy polar charts are deprecated! Please switch to *polar* subplots. Sets the orientation (from the paper perspective) of the angular axis tick labels.
-type LayoutAngularaxisTickorientation string
-
-const (
- LayoutAngularaxisTickorientationHorizontal LayoutAngularaxisTickorientation = "horizontal"
- LayoutAngularaxisTickorientationVertical LayoutAngularaxisTickorientation = "vertical"
-)
-
// LayoutAutotypenumbers 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.
type LayoutAutotypenumbers string
@@ -6296,7 +7246,7 @@ const (
LayoutAutotypenumbersStrict LayoutAutotypenumbers = "strict"
)
-// LayoutBarmode 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 an *opacity* to see multiple bars.
+// LayoutBarmode 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.
type LayoutBarmode string
const (
@@ -6338,19 +7288,19 @@ const (
type LayoutCalendar string
const (
- LayoutCalendarGregorian LayoutCalendar = "gregorian"
LayoutCalendarChinese LayoutCalendar = "chinese"
LayoutCalendarCoptic LayoutCalendar = "coptic"
LayoutCalendarDiscworld LayoutCalendar = "discworld"
LayoutCalendarEthiopian LayoutCalendar = "ethiopian"
+ LayoutCalendarGregorian LayoutCalendar = "gregorian"
LayoutCalendarHebrew LayoutCalendar = "hebrew"
LayoutCalendarIslamic LayoutCalendar = "islamic"
+ LayoutCalendarJalali LayoutCalendar = "jalali"
LayoutCalendarJulian LayoutCalendar = "julian"
LayoutCalendarMayan LayoutCalendar = "mayan"
LayoutCalendarNanakshahi LayoutCalendar = "nanakshahi"
LayoutCalendarNepali LayoutCalendar = "nepali"
LayoutCalendarPersian LayoutCalendar = "persian"
- LayoutCalendarJalali LayoutCalendar = "jalali"
LayoutCalendarTaiwan LayoutCalendar = "taiwan"
LayoutCalendarThai LayoutCalendar = "thai"
LayoutCalendarUmmalqura LayoutCalendar = "ummalqura"
@@ -6364,7 +7314,7 @@ const (
LayoutColoraxisColorbarExponentformatE1 LayoutColoraxisColorbarExponentformat = "e"
LayoutColoraxisColorbarExponentformatE2 LayoutColoraxisColorbarExponentformat = "E"
LayoutColoraxisColorbarExponentformatPower LayoutColoraxisColorbarExponentformat = "power"
- LayoutColoraxisColorbarExponentformatSi LayoutColoraxisColorbarExponentformat = "SI"
+ LayoutColoraxisColorbarExponentformatSI LayoutColoraxisColorbarExponentformat = "SI"
LayoutColoraxisColorbarExponentformatB LayoutColoraxisColorbarExponentformat = "B"
)
@@ -6376,6 +7326,14 @@ const (
LayoutColoraxisColorbarLenmodePixels LayoutColoraxisColorbarLenmode = "pixels"
)
+// LayoutColoraxisColorbarOrientation Sets the orientation of the colorbar.
+type LayoutColoraxisColorbarOrientation string
+
+const (
+ LayoutColoraxisColorbarOrientationH LayoutColoraxisColorbarOrientation = "h"
+ LayoutColoraxisColorbarOrientationV LayoutColoraxisColorbarOrientation = "v"
+)
+
// LayoutColoraxisColorbarShowexponent 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.
type LayoutColoraxisColorbarShowexponent string
@@ -6414,7 +7372,16 @@ const (
LayoutColoraxisColorbarThicknessmodePixels LayoutColoraxisColorbarThicknessmode = "pixels"
)
-// LayoutColoraxisColorbarTicklabelposition Determines where tick labels are drawn.
+// LayoutColoraxisColorbarTicklabeloverflow 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*.
+type LayoutColoraxisColorbarTicklabeloverflow string
+
+const (
+ LayoutColoraxisColorbarTicklabeloverflowAllow LayoutColoraxisColorbarTicklabeloverflow = "allow"
+ LayoutColoraxisColorbarTicklabeloverflowHidePastDiv LayoutColoraxisColorbarTicklabeloverflow = "hide past div"
+ LayoutColoraxisColorbarTicklabeloverflowHidePastDomain LayoutColoraxisColorbarTicklabeloverflow = "hide past domain"
+)
+
+// LayoutColoraxisColorbarTicklabelposition 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*.
type LayoutColoraxisColorbarTicklabelposition string
const (
@@ -6422,6 +7389,10 @@ const (
LayoutColoraxisColorbarTicklabelpositionInside LayoutColoraxisColorbarTicklabelposition = "inside"
LayoutColoraxisColorbarTicklabelpositionOutsideTop LayoutColoraxisColorbarTicklabelposition = "outside top"
LayoutColoraxisColorbarTicklabelpositionInsideTop LayoutColoraxisColorbarTicklabelposition = "inside top"
+ LayoutColoraxisColorbarTicklabelpositionOutsideLeft LayoutColoraxisColorbarTicklabelposition = "outside left"
+ LayoutColoraxisColorbarTicklabelpositionInsideLeft LayoutColoraxisColorbarTicklabelposition = "inside left"
+ LayoutColoraxisColorbarTicklabelpositionOutsideRight LayoutColoraxisColorbarTicklabelposition = "outside right"
+ LayoutColoraxisColorbarTicklabelpositionInsideRight LayoutColoraxisColorbarTicklabelposition = "inside right"
LayoutColoraxisColorbarTicklabelpositionOutsideBottom LayoutColoraxisColorbarTicklabelposition = "outside bottom"
LayoutColoraxisColorbarTicklabelpositionInsideBottom LayoutColoraxisColorbarTicklabelposition = "inside bottom"
)
@@ -6444,7 +7415,7 @@ const (
LayoutColoraxisColorbarTicksEmpty LayoutColoraxisColorbarTicks = ""
)
-// LayoutColoraxisColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// LayoutColoraxisColorbarTitleSide 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.
type LayoutColoraxisColorbarTitleSide string
const (
@@ -6453,7 +7424,7 @@ const (
LayoutColoraxisColorbarTitleSideBottom LayoutColoraxisColorbarTitleSide = "bottom"
)
-// LayoutColoraxisColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// LayoutColoraxisColorbarXanchor 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*.
type LayoutColoraxisColorbarXanchor string
const (
@@ -6462,7 +7433,7 @@ const (
LayoutColoraxisColorbarXanchorRight LayoutColoraxisColorbarXanchor = "right"
)
-// LayoutColoraxisColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// LayoutColoraxisColorbarYanchor 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*.
type LayoutColoraxisColorbarYanchor string
const (
@@ -6471,14 +7442,6 @@ const (
LayoutColoraxisColorbarYanchorBottom LayoutColoraxisColorbarYanchor = "bottom"
)
-// LayoutDirection Legacy polar charts are deprecated! Please switch to *polar* subplots. Sets the direction corresponding to positive angles in legacy polar charts.
-type LayoutDirection string
-
-const (
- LayoutDirectionClockwise LayoutDirection = "clockwise"
- LayoutDirectionCounterclockwise LayoutDirection = "counterclockwise"
-)
-
// LayoutDragmode 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.
type LayoutDragmode interface{}
@@ -6497,7 +7460,7 @@ var (
LayoutDragmodeFalse LayoutDragmode = false
)
-// LayoutFunnelmode 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 an *opacity* to see multiple bars.
+// LayoutFunnelmode 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.
type LayoutFunnelmode string
const (
@@ -6519,28 +7482,89 @@ var (
type LayoutGeoProjectionType string
const (
- LayoutGeoProjectionTypeEquirectangular LayoutGeoProjectionType = "equirectangular"
- LayoutGeoProjectionTypeMercator LayoutGeoProjectionType = "mercator"
- LayoutGeoProjectionTypeOrthographic LayoutGeoProjectionType = "orthographic"
- LayoutGeoProjectionTypeNaturalEarth LayoutGeoProjectionType = "natural earth"
- LayoutGeoProjectionTypeKavrayskiy7 LayoutGeoProjectionType = "kavrayskiy7"
- LayoutGeoProjectionTypeMiller LayoutGeoProjectionType = "miller"
- LayoutGeoProjectionTypeRobinson LayoutGeoProjectionType = "robinson"
- LayoutGeoProjectionTypeEckert4 LayoutGeoProjectionType = "eckert4"
- LayoutGeoProjectionTypeAzimuthalEqualArea LayoutGeoProjectionType = "azimuthal equal area"
- LayoutGeoProjectionTypeAzimuthalEquidistant LayoutGeoProjectionType = "azimuthal equidistant"
- LayoutGeoProjectionTypeConicEqualArea LayoutGeoProjectionType = "conic equal area"
- LayoutGeoProjectionTypeConicConformal LayoutGeoProjectionType = "conic conformal"
- LayoutGeoProjectionTypeConicEquidistant LayoutGeoProjectionType = "conic equidistant"
- LayoutGeoProjectionTypeGnomonic LayoutGeoProjectionType = "gnomonic"
- LayoutGeoProjectionTypeStereographic LayoutGeoProjectionType = "stereographic"
- LayoutGeoProjectionTypeMollweide LayoutGeoProjectionType = "mollweide"
- LayoutGeoProjectionTypeHammer LayoutGeoProjectionType = "hammer"
- LayoutGeoProjectionTypeTransverseMercator LayoutGeoProjectionType = "transverse mercator"
- LayoutGeoProjectionTypeAlbersUsa LayoutGeoProjectionType = "albers usa"
- LayoutGeoProjectionTypeWinkelTripel LayoutGeoProjectionType = "winkel tripel"
- LayoutGeoProjectionTypeAitoff LayoutGeoProjectionType = "aitoff"
- LayoutGeoProjectionTypeSinusoidal LayoutGeoProjectionType = "sinusoidal"
+ LayoutGeoProjectionTypeAiry LayoutGeoProjectionType = "airy"
+ LayoutGeoProjectionTypeAitoff LayoutGeoProjectionType = "aitoff"
+ LayoutGeoProjectionTypeAlbers LayoutGeoProjectionType = "albers"
+ LayoutGeoProjectionTypeAlbersUsa LayoutGeoProjectionType = "albers usa"
+ LayoutGeoProjectionTypeAugust LayoutGeoProjectionType = "august"
+ LayoutGeoProjectionTypeAzimuthalEqualArea LayoutGeoProjectionType = "azimuthal equal area"
+ LayoutGeoProjectionTypeAzimuthalEquidistant LayoutGeoProjectionType = "azimuthal equidistant"
+ LayoutGeoProjectionTypeBaker LayoutGeoProjectionType = "baker"
+ LayoutGeoProjectionTypeBertin1953 LayoutGeoProjectionType = "bertin1953"
+ LayoutGeoProjectionTypeBoggs LayoutGeoProjectionType = "boggs"
+ LayoutGeoProjectionTypeBonne LayoutGeoProjectionType = "bonne"
+ LayoutGeoProjectionTypeBottomley LayoutGeoProjectionType = "bottomley"
+ LayoutGeoProjectionTypeBromley LayoutGeoProjectionType = "bromley"
+ LayoutGeoProjectionTypeCollignon LayoutGeoProjectionType = "collignon"
+ LayoutGeoProjectionTypeConicConformal LayoutGeoProjectionType = "conic conformal"
+ LayoutGeoProjectionTypeConicEqualArea LayoutGeoProjectionType = "conic equal area"
+ LayoutGeoProjectionTypeConicEquidistant LayoutGeoProjectionType = "conic equidistant"
+ LayoutGeoProjectionTypeCraig LayoutGeoProjectionType = "craig"
+ LayoutGeoProjectionTypeCraster LayoutGeoProjectionType = "craster"
+ LayoutGeoProjectionTypeCylindricalEqualArea LayoutGeoProjectionType = "cylindrical equal area"
+ LayoutGeoProjectionTypeCylindricalStereographic LayoutGeoProjectionType = "cylindrical stereographic"
+ LayoutGeoProjectionTypeEckert1 LayoutGeoProjectionType = "eckert1"
+ LayoutGeoProjectionTypeEckert2 LayoutGeoProjectionType = "eckert2"
+ LayoutGeoProjectionTypeEckert3 LayoutGeoProjectionType = "eckert3"
+ LayoutGeoProjectionTypeEckert4 LayoutGeoProjectionType = "eckert4"
+ LayoutGeoProjectionTypeEckert5 LayoutGeoProjectionType = "eckert5"
+ LayoutGeoProjectionTypeEckert6 LayoutGeoProjectionType = "eckert6"
+ LayoutGeoProjectionTypeEisenlohr LayoutGeoProjectionType = "eisenlohr"
+ LayoutGeoProjectionTypeEquirectangular LayoutGeoProjectionType = "equirectangular"
+ LayoutGeoProjectionTypeFahey LayoutGeoProjectionType = "fahey"
+ LayoutGeoProjectionTypeFoucaut LayoutGeoProjectionType = "foucaut"
+ LayoutGeoProjectionTypeFoucautSinusoidal LayoutGeoProjectionType = "foucaut sinusoidal"
+ LayoutGeoProjectionTypeGinzburg4 LayoutGeoProjectionType = "ginzburg4"
+ LayoutGeoProjectionTypeGinzburg5 LayoutGeoProjectionType = "ginzburg5"
+ LayoutGeoProjectionTypeGinzburg6 LayoutGeoProjectionType = "ginzburg6"
+ LayoutGeoProjectionTypeGinzburg8 LayoutGeoProjectionType = "ginzburg8"
+ LayoutGeoProjectionTypeGinzburg9 LayoutGeoProjectionType = "ginzburg9"
+ LayoutGeoProjectionTypeGnomonic LayoutGeoProjectionType = "gnomonic"
+ LayoutGeoProjectionTypeGringorten LayoutGeoProjectionType = "gringorten"
+ LayoutGeoProjectionTypeGringortenQuincuncial LayoutGeoProjectionType = "gringorten quincuncial"
+ LayoutGeoProjectionTypeGuyou LayoutGeoProjectionType = "guyou"
+ LayoutGeoProjectionTypeHammer LayoutGeoProjectionType = "hammer"
+ LayoutGeoProjectionTypeHill LayoutGeoProjectionType = "hill"
+ LayoutGeoProjectionTypeHomolosine LayoutGeoProjectionType = "homolosine"
+ LayoutGeoProjectionTypeHufnagel LayoutGeoProjectionType = "hufnagel"
+ LayoutGeoProjectionTypeHyperelliptical LayoutGeoProjectionType = "hyperelliptical"
+ LayoutGeoProjectionTypeKavrayskiy7 LayoutGeoProjectionType = "kavrayskiy7"
+ LayoutGeoProjectionTypeLagrange LayoutGeoProjectionType = "lagrange"
+ LayoutGeoProjectionTypeLarrivee LayoutGeoProjectionType = "larrivee"
+ LayoutGeoProjectionTypeLaskowski LayoutGeoProjectionType = "laskowski"
+ LayoutGeoProjectionTypeLoximuthal LayoutGeoProjectionType = "loximuthal"
+ LayoutGeoProjectionTypeMercator LayoutGeoProjectionType = "mercator"
+ LayoutGeoProjectionTypeMiller LayoutGeoProjectionType = "miller"
+ LayoutGeoProjectionTypeMollweide LayoutGeoProjectionType = "mollweide"
+ LayoutGeoProjectionTypeMtFlatPolarParabolic LayoutGeoProjectionType = "mt flat polar parabolic"
+ LayoutGeoProjectionTypeMtFlatPolarQuartic LayoutGeoProjectionType = "mt flat polar quartic"
+ LayoutGeoProjectionTypeMtFlatPolarSinusoidal LayoutGeoProjectionType = "mt flat polar sinusoidal"
+ LayoutGeoProjectionTypeNaturalEarth LayoutGeoProjectionType = "natural earth"
+ LayoutGeoProjectionTypeNaturalEarth1 LayoutGeoProjectionType = "natural earth1"
+ LayoutGeoProjectionTypeNaturalEarth2 LayoutGeoProjectionType = "natural earth2"
+ LayoutGeoProjectionTypeNellHammer LayoutGeoProjectionType = "nell hammer"
+ LayoutGeoProjectionTypeNicolosi LayoutGeoProjectionType = "nicolosi"
+ LayoutGeoProjectionTypeOrthographic LayoutGeoProjectionType = "orthographic"
+ LayoutGeoProjectionTypePatterson LayoutGeoProjectionType = "patterson"
+ LayoutGeoProjectionTypePeirceQuincuncial LayoutGeoProjectionType = "peirce quincuncial"
+ LayoutGeoProjectionTypePolyconic LayoutGeoProjectionType = "polyconic"
+ LayoutGeoProjectionTypeRectangularPolyconic LayoutGeoProjectionType = "rectangular polyconic"
+ LayoutGeoProjectionTypeRobinson LayoutGeoProjectionType = "robinson"
+ LayoutGeoProjectionTypeSatellite LayoutGeoProjectionType = "satellite"
+ LayoutGeoProjectionTypeSinuMollweide LayoutGeoProjectionType = "sinu mollweide"
+ LayoutGeoProjectionTypeSinusoidal LayoutGeoProjectionType = "sinusoidal"
+ LayoutGeoProjectionTypeStereographic LayoutGeoProjectionType = "stereographic"
+ LayoutGeoProjectionTypeTimes LayoutGeoProjectionType = "times"
+ LayoutGeoProjectionTypeTransverseMercator LayoutGeoProjectionType = "transverse mercator"
+ LayoutGeoProjectionTypeVanDerGrinten LayoutGeoProjectionType = "van der grinten"
+ LayoutGeoProjectionTypeVanDerGrinten2 LayoutGeoProjectionType = "van der grinten2"
+ LayoutGeoProjectionTypeVanDerGrinten3 LayoutGeoProjectionType = "van der grinten3"
+ LayoutGeoProjectionTypeVanDerGrinten4 LayoutGeoProjectionType = "van der grinten4"
+ LayoutGeoProjectionTypeWagner4 LayoutGeoProjectionType = "wagner4"
+ LayoutGeoProjectionTypeWagner6 LayoutGeoProjectionType = "wagner6"
+ LayoutGeoProjectionTypeWiechel LayoutGeoProjectionType = "wiechel"
+ LayoutGeoProjectionTypeWinkelTripel LayoutGeoProjectionType = "winkel tripel"
+ LayoutGeoProjectionTypeWinkel3 LayoutGeoProjectionType = "winkel3"
)
// LayoutGeoResolution 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.
@@ -6555,13 +7579,13 @@ var (
type LayoutGeoScope string
const (
- LayoutGeoScopeWorld LayoutGeoScope = "world"
- LayoutGeoScopeUsa LayoutGeoScope = "usa"
- LayoutGeoScopeEurope LayoutGeoScope = "europe"
- LayoutGeoScopeAsia LayoutGeoScope = "asia"
LayoutGeoScopeAfrica LayoutGeoScope = "africa"
+ LayoutGeoScopeAsia LayoutGeoScope = "asia"
+ LayoutGeoScopeEurope LayoutGeoScope = "europe"
LayoutGeoScopeNorthAmerica LayoutGeoScope = "north america"
LayoutGeoScopeSouthAmerica LayoutGeoScope = "south america"
+ LayoutGeoScopeUsa LayoutGeoScope = "usa"
+ LayoutGeoScopeWorld LayoutGeoScope = "world"
)
// LayoutGridPattern 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`.
@@ -6609,7 +7633,7 @@ const (
LayoutHoverlabelAlignAuto LayoutHoverlabelAlign = "auto"
)
-// LayoutHovermode 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. If `clickmode` includes the *select* flag, `hovermode` defaults to *closest*. If `clickmode` lacks the *select* flag, it defaults to *x* or *y* (depending on the trace's `orientation` value) for plots based on cartesian coordinates. For anything else the default value is *closest*.
+// LayoutHovermode 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.
type LayoutHovermode interface{}
var (
@@ -6621,7 +7645,23 @@ var (
LayoutHovermodeYUnified LayoutHovermode = "y unified"
)
-// LayoutLegendItemclick 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* disable legend item click interactions.
+// LayoutLegendEntrywidthmode Determines what entrywidth means.
+type LayoutLegendEntrywidthmode string
+
+const (
+ LayoutLegendEntrywidthmodeFraction LayoutLegendEntrywidthmode = "fraction"
+ LayoutLegendEntrywidthmodePixels LayoutLegendEntrywidthmode = "pixels"
+)
+
+// LayoutLegendGroupclick 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.
+type LayoutLegendGroupclick string
+
+const (
+ LayoutLegendGroupclickToggleitem LayoutLegendGroupclick = "toggleitem"
+ LayoutLegendGroupclickTogglegroup LayoutLegendGroupclick = "togglegroup"
+)
+
+// LayoutLegendItemclick 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.
type LayoutLegendItemclick interface{}
var (
@@ -6630,7 +7670,7 @@ var (
LayoutLegendItemclickFalse LayoutLegendItemclick = false
)
-// LayoutLegendItemdoubleclick 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* disable legend item double-click interactions.
+// LayoutLegendItemdoubleclick 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.
type LayoutLegendItemdoubleclick interface{}
var (
@@ -6701,6 +7741,14 @@ const (
LayoutModebarOrientationH LayoutModebarOrientation = "h"
)
+// LayoutNewselectionMode 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.
+type LayoutNewselectionMode string
+
+const (
+ LayoutNewselectionModeImmediate LayoutNewselectionMode = "immediate"
+ LayoutNewselectionModeGradual LayoutNewselectionMode = "gradual"
+)
+
// LayoutNewshapeDrawdirection 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.
type LayoutNewshapeDrawdirection string
@@ -6719,6 +7767,43 @@ const (
LayoutNewshapeFillruleNonzero LayoutNewshapeFillrule = "nonzero"
)
+// LayoutNewshapeLabelTextposition 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.
+type LayoutNewshapeLabelTextposition string
+
+const (
+ LayoutNewshapeLabelTextpositionTopLeft LayoutNewshapeLabelTextposition = "top left"
+ LayoutNewshapeLabelTextpositionTopCenter LayoutNewshapeLabelTextposition = "top center"
+ LayoutNewshapeLabelTextpositionTopRight LayoutNewshapeLabelTextposition = "top right"
+ LayoutNewshapeLabelTextpositionMiddleLeft LayoutNewshapeLabelTextposition = "middle left"
+ LayoutNewshapeLabelTextpositionMiddleCenter LayoutNewshapeLabelTextposition = "middle center"
+ LayoutNewshapeLabelTextpositionMiddleRight LayoutNewshapeLabelTextposition = "middle right"
+ LayoutNewshapeLabelTextpositionBottomLeft LayoutNewshapeLabelTextposition = "bottom left"
+ LayoutNewshapeLabelTextpositionBottomCenter LayoutNewshapeLabelTextposition = "bottom center"
+ LayoutNewshapeLabelTextpositionBottomRight LayoutNewshapeLabelTextposition = "bottom right"
+ LayoutNewshapeLabelTextpositionStart LayoutNewshapeLabelTextposition = "start"
+ LayoutNewshapeLabelTextpositionMiddle LayoutNewshapeLabelTextposition = "middle"
+ LayoutNewshapeLabelTextpositionEnd LayoutNewshapeLabelTextposition = "end"
+)
+
+// LayoutNewshapeLabelXanchor 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.
+type LayoutNewshapeLabelXanchor string
+
+const (
+ LayoutNewshapeLabelXanchorAuto LayoutNewshapeLabelXanchor = "auto"
+ LayoutNewshapeLabelXanchorLeft LayoutNewshapeLabelXanchor = "left"
+ LayoutNewshapeLabelXanchorCenter LayoutNewshapeLabelXanchor = "center"
+ LayoutNewshapeLabelXanchorRight LayoutNewshapeLabelXanchor = "right"
+)
+
+// LayoutNewshapeLabelYanchor 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.
+type LayoutNewshapeLabelYanchor string
+
+const (
+ LayoutNewshapeLabelYanchorTop LayoutNewshapeLabelYanchor = "top"
+ LayoutNewshapeLabelYanchorMiddle LayoutNewshapeLabelYanchor = "middle"
+ LayoutNewshapeLabelYanchorBottom LayoutNewshapeLabelYanchor = "bottom"
+)
+
// LayoutNewshapeLayer Specifies whether new shapes are drawn below or above traces.
type LayoutNewshapeLayer string
@@ -6773,7 +7858,7 @@ const (
LayoutPolarAngularaxisExponentformatE1 LayoutPolarAngularaxisExponentformat = "e"
LayoutPolarAngularaxisExponentformatE2 LayoutPolarAngularaxisExponentformat = "E"
LayoutPolarAngularaxisExponentformatPower LayoutPolarAngularaxisExponentformat = "power"
- LayoutPolarAngularaxisExponentformatSi LayoutPolarAngularaxisExponentformat = "SI"
+ LayoutPolarAngularaxisExponentformatSI LayoutPolarAngularaxisExponentformat = "SI"
LayoutPolarAngularaxisExponentformatB LayoutPolarAngularaxisExponentformat = "B"
)
@@ -6879,19 +7964,19 @@ const (
type LayoutPolarRadialaxisCalendar string
const (
- LayoutPolarRadialaxisCalendarGregorian LayoutPolarRadialaxisCalendar = "gregorian"
LayoutPolarRadialaxisCalendarChinese LayoutPolarRadialaxisCalendar = "chinese"
LayoutPolarRadialaxisCalendarCoptic LayoutPolarRadialaxisCalendar = "coptic"
LayoutPolarRadialaxisCalendarDiscworld LayoutPolarRadialaxisCalendar = "discworld"
LayoutPolarRadialaxisCalendarEthiopian LayoutPolarRadialaxisCalendar = "ethiopian"
+ LayoutPolarRadialaxisCalendarGregorian LayoutPolarRadialaxisCalendar = "gregorian"
LayoutPolarRadialaxisCalendarHebrew LayoutPolarRadialaxisCalendar = "hebrew"
LayoutPolarRadialaxisCalendarIslamic LayoutPolarRadialaxisCalendar = "islamic"
+ LayoutPolarRadialaxisCalendarJalali LayoutPolarRadialaxisCalendar = "jalali"
LayoutPolarRadialaxisCalendarJulian LayoutPolarRadialaxisCalendar = "julian"
LayoutPolarRadialaxisCalendarMayan LayoutPolarRadialaxisCalendar = "mayan"
LayoutPolarRadialaxisCalendarNanakshahi LayoutPolarRadialaxisCalendar = "nanakshahi"
LayoutPolarRadialaxisCalendarNepali LayoutPolarRadialaxisCalendar = "nepali"
LayoutPolarRadialaxisCalendarPersian LayoutPolarRadialaxisCalendar = "persian"
- LayoutPolarRadialaxisCalendarJalali LayoutPolarRadialaxisCalendar = "jalali"
LayoutPolarRadialaxisCalendarTaiwan LayoutPolarRadialaxisCalendar = "taiwan"
LayoutPolarRadialaxisCalendarThai LayoutPolarRadialaxisCalendar = "thai"
LayoutPolarRadialaxisCalendarUmmalqura LayoutPolarRadialaxisCalendar = "ummalqura"
@@ -6927,7 +8012,7 @@ const (
LayoutPolarRadialaxisExponentformatE1 LayoutPolarRadialaxisExponentformat = "e"
LayoutPolarRadialaxisExponentformatE2 LayoutPolarRadialaxisExponentformat = "E"
LayoutPolarRadialaxisExponentformatPower LayoutPolarRadialaxisExponentformat = "power"
- LayoutPolarRadialaxisExponentformatSi LayoutPolarRadialaxisExponentformat = "SI"
+ LayoutPolarRadialaxisExponentformatSI LayoutPolarRadialaxisExponentformat = "SI"
LayoutPolarRadialaxisExponentformatB LayoutPolarRadialaxisExponentformat = "B"
)
@@ -7015,12 +8100,12 @@ const (
LayoutPolarRadialaxisTypeCategory LayoutPolarRadialaxisType = "category"
)
-// LayoutRadialaxisTickorientation Legacy polar charts are deprecated! Please switch to *polar* subplots. Sets the orientation (from the paper perspective) of the radial axis tick labels.
-type LayoutRadialaxisTickorientation string
+// LayoutScattermode 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.
+type LayoutScattermode string
const (
- LayoutRadialaxisTickorientationHorizontal LayoutRadialaxisTickorientation = "horizontal"
- LayoutRadialaxisTickorientationVertical LayoutRadialaxisTickorientation = "vertical"
+ ScatterScattermodeGroup LayoutScattermode = "group"
+ ScatterScattermodeOverlay LayoutScattermode = "overlay"
)
// LayoutSceneAspectmode 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.
@@ -7081,19 +8166,19 @@ const (
type LayoutSceneXaxisCalendar string
const (
- LayoutSceneXaxisCalendarGregorian LayoutSceneXaxisCalendar = "gregorian"
LayoutSceneXaxisCalendarChinese LayoutSceneXaxisCalendar = "chinese"
LayoutSceneXaxisCalendarCoptic LayoutSceneXaxisCalendar = "coptic"
LayoutSceneXaxisCalendarDiscworld LayoutSceneXaxisCalendar = "discworld"
LayoutSceneXaxisCalendarEthiopian LayoutSceneXaxisCalendar = "ethiopian"
+ LayoutSceneXaxisCalendarGregorian LayoutSceneXaxisCalendar = "gregorian"
LayoutSceneXaxisCalendarHebrew LayoutSceneXaxisCalendar = "hebrew"
LayoutSceneXaxisCalendarIslamic LayoutSceneXaxisCalendar = "islamic"
+ LayoutSceneXaxisCalendarJalali LayoutSceneXaxisCalendar = "jalali"
LayoutSceneXaxisCalendarJulian LayoutSceneXaxisCalendar = "julian"
LayoutSceneXaxisCalendarMayan LayoutSceneXaxisCalendar = "mayan"
LayoutSceneXaxisCalendarNanakshahi LayoutSceneXaxisCalendar = "nanakshahi"
LayoutSceneXaxisCalendarNepali LayoutSceneXaxisCalendar = "nepali"
LayoutSceneXaxisCalendarPersian LayoutSceneXaxisCalendar = "persian"
- LayoutSceneXaxisCalendarJalali LayoutSceneXaxisCalendar = "jalali"
LayoutSceneXaxisCalendarTaiwan LayoutSceneXaxisCalendar = "taiwan"
LayoutSceneXaxisCalendarThai LayoutSceneXaxisCalendar = "thai"
LayoutSceneXaxisCalendarUmmalqura LayoutSceneXaxisCalendar = "ummalqura"
@@ -7129,7 +8214,7 @@ const (
LayoutSceneXaxisExponentformatE1 LayoutSceneXaxisExponentformat = "e"
LayoutSceneXaxisExponentformatE2 LayoutSceneXaxisExponentformat = "E"
LayoutSceneXaxisExponentformatPower LayoutSceneXaxisExponentformat = "power"
- LayoutSceneXaxisExponentformatSi LayoutSceneXaxisExponentformat = "SI"
+ LayoutSceneXaxisExponentformatSI LayoutSceneXaxisExponentformat = "SI"
LayoutSceneXaxisExponentformatB LayoutSceneXaxisExponentformat = "B"
)
@@ -7233,19 +8318,19 @@ const (
type LayoutSceneYaxisCalendar string
const (
- LayoutSceneYaxisCalendarGregorian LayoutSceneYaxisCalendar = "gregorian"
LayoutSceneYaxisCalendarChinese LayoutSceneYaxisCalendar = "chinese"
LayoutSceneYaxisCalendarCoptic LayoutSceneYaxisCalendar = "coptic"
LayoutSceneYaxisCalendarDiscworld LayoutSceneYaxisCalendar = "discworld"
LayoutSceneYaxisCalendarEthiopian LayoutSceneYaxisCalendar = "ethiopian"
+ LayoutSceneYaxisCalendarGregorian LayoutSceneYaxisCalendar = "gregorian"
LayoutSceneYaxisCalendarHebrew LayoutSceneYaxisCalendar = "hebrew"
LayoutSceneYaxisCalendarIslamic LayoutSceneYaxisCalendar = "islamic"
+ LayoutSceneYaxisCalendarJalali LayoutSceneYaxisCalendar = "jalali"
LayoutSceneYaxisCalendarJulian LayoutSceneYaxisCalendar = "julian"
LayoutSceneYaxisCalendarMayan LayoutSceneYaxisCalendar = "mayan"
LayoutSceneYaxisCalendarNanakshahi LayoutSceneYaxisCalendar = "nanakshahi"
LayoutSceneYaxisCalendarNepali LayoutSceneYaxisCalendar = "nepali"
LayoutSceneYaxisCalendarPersian LayoutSceneYaxisCalendar = "persian"
- LayoutSceneYaxisCalendarJalali LayoutSceneYaxisCalendar = "jalali"
LayoutSceneYaxisCalendarTaiwan LayoutSceneYaxisCalendar = "taiwan"
LayoutSceneYaxisCalendarThai LayoutSceneYaxisCalendar = "thai"
LayoutSceneYaxisCalendarUmmalqura LayoutSceneYaxisCalendar = "ummalqura"
@@ -7281,7 +8366,7 @@ const (
LayoutSceneYaxisExponentformatE1 LayoutSceneYaxisExponentformat = "e"
LayoutSceneYaxisExponentformatE2 LayoutSceneYaxisExponentformat = "E"
LayoutSceneYaxisExponentformatPower LayoutSceneYaxisExponentformat = "power"
- LayoutSceneYaxisExponentformatSi LayoutSceneYaxisExponentformat = "SI"
+ LayoutSceneYaxisExponentformatSI LayoutSceneYaxisExponentformat = "SI"
LayoutSceneYaxisExponentformatB LayoutSceneYaxisExponentformat = "B"
)
@@ -7385,19 +8470,19 @@ const (
type LayoutSceneZaxisCalendar string
const (
- LayoutSceneZaxisCalendarGregorian LayoutSceneZaxisCalendar = "gregorian"
LayoutSceneZaxisCalendarChinese LayoutSceneZaxisCalendar = "chinese"
LayoutSceneZaxisCalendarCoptic LayoutSceneZaxisCalendar = "coptic"
LayoutSceneZaxisCalendarDiscworld LayoutSceneZaxisCalendar = "discworld"
LayoutSceneZaxisCalendarEthiopian LayoutSceneZaxisCalendar = "ethiopian"
+ LayoutSceneZaxisCalendarGregorian LayoutSceneZaxisCalendar = "gregorian"
LayoutSceneZaxisCalendarHebrew LayoutSceneZaxisCalendar = "hebrew"
LayoutSceneZaxisCalendarIslamic LayoutSceneZaxisCalendar = "islamic"
+ LayoutSceneZaxisCalendarJalali LayoutSceneZaxisCalendar = "jalali"
LayoutSceneZaxisCalendarJulian LayoutSceneZaxisCalendar = "julian"
LayoutSceneZaxisCalendarMayan LayoutSceneZaxisCalendar = "mayan"
LayoutSceneZaxisCalendarNanakshahi LayoutSceneZaxisCalendar = "nanakshahi"
LayoutSceneZaxisCalendarNepali LayoutSceneZaxisCalendar = "nepali"
LayoutSceneZaxisCalendarPersian LayoutSceneZaxisCalendar = "persian"
- LayoutSceneZaxisCalendarJalali LayoutSceneZaxisCalendar = "jalali"
LayoutSceneZaxisCalendarTaiwan LayoutSceneZaxisCalendar = "taiwan"
LayoutSceneZaxisCalendarThai LayoutSceneZaxisCalendar = "thai"
LayoutSceneZaxisCalendarUmmalqura LayoutSceneZaxisCalendar = "ummalqura"
@@ -7433,7 +8518,7 @@ const (
LayoutSceneZaxisExponentformatE1 LayoutSceneZaxisExponentformat = "e"
LayoutSceneZaxisExponentformatE2 LayoutSceneZaxisExponentformat = "E"
LayoutSceneZaxisExponentformatPower LayoutSceneZaxisExponentformat = "power"
- LayoutSceneZaxisExponentformatSi LayoutSceneZaxisExponentformat = "SI"
+ LayoutSceneZaxisExponentformatSI LayoutSceneZaxisExponentformat = "SI"
LayoutSceneZaxisExponentformatB LayoutSceneZaxisExponentformat = "B"
)
@@ -7526,6 +8611,88 @@ const (
LayoutSelectdirectionAny LayoutSelectdirection = "any"
)
+// LayoutSmithImaginaryaxisLayer 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.
+type LayoutSmithImaginaryaxisLayer string
+
+const (
+ LayoutSmithImaginaryaxisLayerAboveTraces LayoutSmithImaginaryaxisLayer = "above traces"
+ LayoutSmithImaginaryaxisLayerBelowTraces LayoutSmithImaginaryaxisLayer = "below traces"
+)
+
+// LayoutSmithImaginaryaxisShowtickprefix 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.
+type LayoutSmithImaginaryaxisShowtickprefix string
+
+const (
+ LayoutSmithImaginaryaxisShowtickprefixAll LayoutSmithImaginaryaxisShowtickprefix = "all"
+ LayoutSmithImaginaryaxisShowtickprefixFirst LayoutSmithImaginaryaxisShowtickprefix = "first"
+ LayoutSmithImaginaryaxisShowtickprefixLast LayoutSmithImaginaryaxisShowtickprefix = "last"
+ LayoutSmithImaginaryaxisShowtickprefixNone LayoutSmithImaginaryaxisShowtickprefix = "none"
+)
+
+// LayoutSmithImaginaryaxisShowticksuffix Same as `showtickprefix` but for tick suffixes.
+type LayoutSmithImaginaryaxisShowticksuffix string
+
+const (
+ LayoutSmithImaginaryaxisShowticksuffixAll LayoutSmithImaginaryaxisShowticksuffix = "all"
+ LayoutSmithImaginaryaxisShowticksuffixFirst LayoutSmithImaginaryaxisShowticksuffix = "first"
+ LayoutSmithImaginaryaxisShowticksuffixLast LayoutSmithImaginaryaxisShowticksuffix = "last"
+ LayoutSmithImaginaryaxisShowticksuffixNone LayoutSmithImaginaryaxisShowticksuffix = "none"
+)
+
+// LayoutSmithImaginaryaxisTicks 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.
+type LayoutSmithImaginaryaxisTicks string
+
+const (
+ LayoutSmithImaginaryaxisTicksOutside LayoutSmithImaginaryaxisTicks = "outside"
+ LayoutSmithImaginaryaxisTicksInside LayoutSmithImaginaryaxisTicks = "inside"
+ LayoutSmithImaginaryaxisTicksEmpty LayoutSmithImaginaryaxisTicks = ""
+)
+
+// LayoutSmithRealaxisLayer 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.
+type LayoutSmithRealaxisLayer string
+
+const (
+ LayoutSmithRealaxisLayerAboveTraces LayoutSmithRealaxisLayer = "above traces"
+ LayoutSmithRealaxisLayerBelowTraces LayoutSmithRealaxisLayer = "below traces"
+)
+
+// LayoutSmithRealaxisShowtickprefix 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.
+type LayoutSmithRealaxisShowtickprefix string
+
+const (
+ LayoutSmithRealaxisShowtickprefixAll LayoutSmithRealaxisShowtickprefix = "all"
+ LayoutSmithRealaxisShowtickprefixFirst LayoutSmithRealaxisShowtickprefix = "first"
+ LayoutSmithRealaxisShowtickprefixLast LayoutSmithRealaxisShowtickprefix = "last"
+ LayoutSmithRealaxisShowtickprefixNone LayoutSmithRealaxisShowtickprefix = "none"
+)
+
+// LayoutSmithRealaxisShowticksuffix Same as `showtickprefix` but for tick suffixes.
+type LayoutSmithRealaxisShowticksuffix string
+
+const (
+ LayoutSmithRealaxisShowticksuffixAll LayoutSmithRealaxisShowticksuffix = "all"
+ LayoutSmithRealaxisShowticksuffixFirst LayoutSmithRealaxisShowticksuffix = "first"
+ LayoutSmithRealaxisShowticksuffixLast LayoutSmithRealaxisShowticksuffix = "last"
+ LayoutSmithRealaxisShowticksuffixNone LayoutSmithRealaxisShowticksuffix = "none"
+)
+
+// LayoutSmithRealaxisSide Determines on which side of real axis line the tick and tick labels appear.
+type LayoutSmithRealaxisSide string
+
+const (
+ LayoutSmithRealaxisSideTop LayoutSmithRealaxisSide = "top"
+ LayoutSmithRealaxisSideBottom LayoutSmithRealaxisSide = "bottom"
+)
+
+// LayoutSmithRealaxisTicks 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.
+type LayoutSmithRealaxisTicks string
+
+const (
+ LayoutSmithRealaxisTicksTop LayoutSmithRealaxisTicks = "top"
+ LayoutSmithRealaxisTicksBottom LayoutSmithRealaxisTicks = "bottom"
+ LayoutSmithRealaxisTicksEmpty LayoutSmithRealaxisTicks = ""
+)
+
// LayoutTernaryAaxisExponentformat 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.
type LayoutTernaryAaxisExponentformat string
@@ -7534,7 +8701,7 @@ const (
LayoutTernaryAaxisExponentformatE1 LayoutTernaryAaxisExponentformat = "e"
LayoutTernaryAaxisExponentformatE2 LayoutTernaryAaxisExponentformat = "E"
LayoutTernaryAaxisExponentformatPower LayoutTernaryAaxisExponentformat = "power"
- LayoutTernaryAaxisExponentformatSi LayoutTernaryAaxisExponentformat = "SI"
+ LayoutTernaryAaxisExponentformatSI LayoutTernaryAaxisExponentformat = "SI"
LayoutTernaryAaxisExponentformatB LayoutTernaryAaxisExponentformat = "B"
)
@@ -7602,7 +8769,7 @@ const (
LayoutTernaryBaxisExponentformatE1 LayoutTernaryBaxisExponentformat = "e"
LayoutTernaryBaxisExponentformatE2 LayoutTernaryBaxisExponentformat = "E"
LayoutTernaryBaxisExponentformatPower LayoutTernaryBaxisExponentformat = "power"
- LayoutTernaryBaxisExponentformatSi LayoutTernaryBaxisExponentformat = "SI"
+ LayoutTernaryBaxisExponentformatSI LayoutTernaryBaxisExponentformat = "SI"
LayoutTernaryBaxisExponentformatB LayoutTernaryBaxisExponentformat = "B"
)
@@ -7670,7 +8837,7 @@ const (
LayoutTernaryCaxisExponentformatE1 LayoutTernaryCaxisExponentformat = "e"
LayoutTernaryCaxisExponentformatE2 LayoutTernaryCaxisExponentformat = "E"
LayoutTernaryCaxisExponentformatPower LayoutTernaryCaxisExponentformat = "power"
- LayoutTernaryCaxisExponentformatSi LayoutTernaryCaxisExponentformat = "SI"
+ LayoutTernaryCaxisExponentformatSI LayoutTernaryCaxisExponentformat = "SI"
LayoutTernaryCaxisExponentformatB LayoutTernaryCaxisExponentformat = "B"
)
@@ -7833,7 +9000,7 @@ const (
ViolinViolinmodeOverlay LayoutViolinmode = "overlay"
)
-// LayoutWaterfallmode 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 an *opacity* to see multiple bars.
+// LayoutWaterfallmode 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.
type LayoutWaterfallmode string
const (
@@ -7871,19 +9038,19 @@ const (
type LayoutXaxisCalendar string
const (
- LayoutXaxisCalendarGregorian LayoutXaxisCalendar = "gregorian"
LayoutXaxisCalendarChinese LayoutXaxisCalendar = "chinese"
LayoutXaxisCalendarCoptic LayoutXaxisCalendar = "coptic"
LayoutXaxisCalendarDiscworld LayoutXaxisCalendar = "discworld"
LayoutXaxisCalendarEthiopian LayoutXaxisCalendar = "ethiopian"
+ LayoutXaxisCalendarGregorian LayoutXaxisCalendar = "gregorian"
LayoutXaxisCalendarHebrew LayoutXaxisCalendar = "hebrew"
LayoutXaxisCalendarIslamic LayoutXaxisCalendar = "islamic"
+ LayoutXaxisCalendarJalali LayoutXaxisCalendar = "jalali"
LayoutXaxisCalendarJulian LayoutXaxisCalendar = "julian"
LayoutXaxisCalendarMayan LayoutXaxisCalendar = "mayan"
LayoutXaxisCalendarNanakshahi LayoutXaxisCalendar = "nanakshahi"
LayoutXaxisCalendarNepali LayoutXaxisCalendar = "nepali"
LayoutXaxisCalendarPersian LayoutXaxisCalendar = "persian"
- LayoutXaxisCalendarJalali LayoutXaxisCalendar = "jalali"
LayoutXaxisCalendarTaiwan LayoutXaxisCalendar = "taiwan"
LayoutXaxisCalendarThai LayoutXaxisCalendar = "thai"
LayoutXaxisCalendarUmmalqura LayoutXaxisCalendar = "ummalqura"
@@ -7939,7 +9106,7 @@ const (
LayoutXaxisExponentformatE1 LayoutXaxisExponentformat = "e"
LayoutXaxisExponentformatE2 LayoutXaxisExponentformat = "E"
LayoutXaxisExponentformatPower LayoutXaxisExponentformat = "power"
- LayoutXaxisExponentformatSi LayoutXaxisExponentformat = "SI"
+ LayoutXaxisExponentformatSI LayoutXaxisExponentformat = "SI"
LayoutXaxisExponentformatB LayoutXaxisExponentformat = "B"
)
@@ -7959,6 +9126,24 @@ const (
LayoutXaxisMatchesSlashCapeyLparLbracket29RbracketOrLbracket19RbracketLbracket09RbracketPlusRparQuestionLparDomainRparQuestionDollarSlash LayoutXaxisMatches = "/^y([2-9]|[1-9][0-9]+)?( domain)?$/"
)
+// LayoutXaxisMinorTickmode 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).
+type LayoutXaxisMinorTickmode string
+
+const (
+ LayoutXaxisMinorTickmodeAuto LayoutXaxisMinorTickmode = "auto"
+ LayoutXaxisMinorTickmodeLinear LayoutXaxisMinorTickmode = "linear"
+ LayoutXaxisMinorTickmodeArray LayoutXaxisMinorTickmode = "array"
+)
+
+// LayoutXaxisMinorTicks 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.
+type LayoutXaxisMinorTicks string
+
+const (
+ LayoutXaxisMinorTicksOutside LayoutXaxisMinorTicks = "outside"
+ LayoutXaxisMinorTicksInside LayoutXaxisMinorTicks = "inside"
+ LayoutXaxisMinorTicksEmpty LayoutXaxisMinorTicks = ""
+)
+
// LayoutXaxisMirror 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.
type LayoutXaxisMirror interface{}
@@ -8082,6 +9267,15 @@ const (
LayoutXaxisTicklabelmodePeriod LayoutXaxisTicklabelmode = "period"
)
+// LayoutXaxisTicklabeloverflow 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*.
+type LayoutXaxisTicklabeloverflow string
+
+const (
+ LayoutXaxisTicklabeloverflowAllow LayoutXaxisTicklabeloverflow = "allow"
+ LayoutXaxisTicklabeloverflowHidePastDiv LayoutXaxisTicklabeloverflow = "hide past div"
+ LayoutXaxisTicklabeloverflowHidePastDomain LayoutXaxisTicklabeloverflow = "hide past domain"
+)
+
// LayoutXaxisTicklabelposition 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.
type LayoutXaxisTicklabelposition string
@@ -8098,13 +9292,14 @@ const (
LayoutXaxisTicklabelpositionInsideBottom LayoutXaxisTicklabelposition = "inside bottom"
)
-// LayoutXaxisTickmode 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).
+// LayoutXaxisTickmode 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.
type LayoutXaxisTickmode string
const (
LayoutXaxisTickmodeAuto LayoutXaxisTickmode = "auto"
LayoutXaxisTickmodeLinear LayoutXaxisTickmode = "linear"
LayoutXaxisTickmodeArray LayoutXaxisTickmode = "array"
+ LayoutXaxisTickmodeSync LayoutXaxisTickmode = "sync"
)
// LayoutXaxisTicks 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.
@@ -8166,19 +9361,19 @@ const (
type LayoutYaxisCalendar string
const (
- LayoutYaxisCalendarGregorian LayoutYaxisCalendar = "gregorian"
LayoutYaxisCalendarChinese LayoutYaxisCalendar = "chinese"
LayoutYaxisCalendarCoptic LayoutYaxisCalendar = "coptic"
LayoutYaxisCalendarDiscworld LayoutYaxisCalendar = "discworld"
LayoutYaxisCalendarEthiopian LayoutYaxisCalendar = "ethiopian"
+ LayoutYaxisCalendarGregorian LayoutYaxisCalendar = "gregorian"
LayoutYaxisCalendarHebrew LayoutYaxisCalendar = "hebrew"
LayoutYaxisCalendarIslamic LayoutYaxisCalendar = "islamic"
+ LayoutYaxisCalendarJalali LayoutYaxisCalendar = "jalali"
LayoutYaxisCalendarJulian LayoutYaxisCalendar = "julian"
LayoutYaxisCalendarMayan LayoutYaxisCalendar = "mayan"
LayoutYaxisCalendarNanakshahi LayoutYaxisCalendar = "nanakshahi"
LayoutYaxisCalendarNepali LayoutYaxisCalendar = "nepali"
LayoutYaxisCalendarPersian LayoutYaxisCalendar = "persian"
- LayoutYaxisCalendarJalali LayoutYaxisCalendar = "jalali"
LayoutYaxisCalendarTaiwan LayoutYaxisCalendar = "taiwan"
LayoutYaxisCalendarThai LayoutYaxisCalendar = "thai"
LayoutYaxisCalendarUmmalqura LayoutYaxisCalendar = "ummalqura"
@@ -8234,7 +9429,7 @@ const (
LayoutYaxisExponentformatE1 LayoutYaxisExponentformat = "e"
LayoutYaxisExponentformatE2 LayoutYaxisExponentformat = "E"
LayoutYaxisExponentformatPower LayoutYaxisExponentformat = "power"
- LayoutYaxisExponentformatSi LayoutYaxisExponentformat = "SI"
+ LayoutYaxisExponentformatSI LayoutYaxisExponentformat = "SI"
LayoutYaxisExponentformatB LayoutYaxisExponentformat = "B"
)
@@ -8254,6 +9449,24 @@ const (
LayoutYaxisMatchesSlashCapeyLparLbracket29RbracketOrLbracket19RbracketLbracket09RbracketPlusRparQuestionLparDomainRparQuestionDollarSlash LayoutYaxisMatches = "/^y([2-9]|[1-9][0-9]+)?( domain)?$/"
)
+// LayoutYaxisMinorTickmode 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).
+type LayoutYaxisMinorTickmode string
+
+const (
+ LayoutYaxisMinorTickmodeAuto LayoutYaxisMinorTickmode = "auto"
+ LayoutYaxisMinorTickmodeLinear LayoutYaxisMinorTickmode = "linear"
+ LayoutYaxisMinorTickmodeArray LayoutYaxisMinorTickmode = "array"
+)
+
+// LayoutYaxisMinorTicks 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.
+type LayoutYaxisMinorTicks string
+
+const (
+ LayoutYaxisMinorTicksOutside LayoutYaxisMinorTicks = "outside"
+ LayoutYaxisMinorTicksInside LayoutYaxisMinorTicks = "inside"
+ LayoutYaxisMinorTicksEmpty LayoutYaxisMinorTicks = ""
+)
+
// LayoutYaxisMirror 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.
type LayoutYaxisMirror interface{}
@@ -8348,6 +9561,15 @@ const (
LayoutYaxisTicklabelmodePeriod LayoutYaxisTicklabelmode = "period"
)
+// LayoutYaxisTicklabeloverflow 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*.
+type LayoutYaxisTicklabeloverflow string
+
+const (
+ LayoutYaxisTicklabeloverflowAllow LayoutYaxisTicklabeloverflow = "allow"
+ LayoutYaxisTicklabeloverflowHidePastDiv LayoutYaxisTicklabeloverflow = "hide past div"
+ LayoutYaxisTicklabeloverflowHidePastDomain LayoutYaxisTicklabeloverflow = "hide past domain"
+)
+
// LayoutYaxisTicklabelposition 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.
type LayoutYaxisTicklabelposition string
@@ -8364,13 +9586,14 @@ const (
LayoutYaxisTicklabelpositionInsideBottom LayoutYaxisTicklabelposition = "inside bottom"
)
-// LayoutYaxisTickmode 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).
+// LayoutYaxisTickmode 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.
type LayoutYaxisTickmode string
const (
LayoutYaxisTickmodeAuto LayoutYaxisTickmode = "auto"
LayoutYaxisTickmodeLinear LayoutYaxisTickmode = "linear"
LayoutYaxisTickmodeArray LayoutYaxisTickmode = "array"
+ LayoutYaxisTickmodeSync LayoutYaxisTickmode = "sync"
)
// LayoutYaxisTicks 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.
@@ -8426,6 +9649,23 @@ const (
LayoutLegendTraceorderNormal LayoutLegendTraceorder = "normal"
)
+// LayoutXaxisAutomargin Determines whether long tick labels automatically grow the figure margins.
+type LayoutXaxisAutomargin interface{}
+
+var (
+ // Flags
+ LayoutXaxisAutomarginHeight LayoutXaxisAutomargin = "height"
+ LayoutXaxisAutomarginWidth LayoutXaxisAutomargin = "width"
+ LayoutXaxisAutomarginLeft LayoutXaxisAutomargin = "left"
+ LayoutXaxisAutomarginRight LayoutXaxisAutomargin = "right"
+ LayoutXaxisAutomarginTop LayoutXaxisAutomargin = "top"
+ LayoutXaxisAutomarginBottom LayoutXaxisAutomargin = "bottom"
+
+ // Extra
+ LayoutXaxisAutomarginTrue LayoutXaxisAutomargin = true
+ LayoutXaxisAutomarginFalse LayoutXaxisAutomargin = false
+)
+
// LayoutXaxisSpikemode 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
type LayoutXaxisSpikemode string
@@ -8439,6 +9679,23 @@ const (
)
+// LayoutYaxisAutomargin Determines whether long tick labels automatically grow the figure margins.
+type LayoutYaxisAutomargin interface{}
+
+var (
+ // Flags
+ LayoutYaxisAutomarginHeight LayoutYaxisAutomargin = "height"
+ LayoutYaxisAutomarginWidth LayoutYaxisAutomargin = "width"
+ LayoutYaxisAutomarginLeft LayoutYaxisAutomargin = "left"
+ LayoutYaxisAutomarginRight LayoutYaxisAutomargin = "right"
+ LayoutYaxisAutomarginTop LayoutYaxisAutomargin = "top"
+ LayoutYaxisAutomarginBottom LayoutYaxisAutomargin = "bottom"
+
+ // Extra
+ LayoutYaxisAutomarginTrue LayoutYaxisAutomargin = true
+ LayoutYaxisAutomarginFalse LayoutYaxisAutomargin = false
+)
+
// LayoutYaxisSpikemode 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
type LayoutYaxisSpikemode string
diff --git a/graph_objects/mesh3d_gen.go b/generated/v2.19.0/graph_objects/mesh3d_gen.go
similarity index 78%
rename from graph_objects/mesh3d_gen.go
rename to generated/v2.19.0/graph_objects/mesh3d_gen.go
index 4f40eda..17ed655 100644
--- a/graph_objects/mesh3d_gen.go
+++ b/generated/v2.19.0/graph_objects/mesh3d_gen.go
@@ -24,13 +24,13 @@ type Mesh3d struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `colorscale`. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here `intensity`) or the bounds set in `cmin` and `cmax` Defaults to `false` when `cmin` and `cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here `intensity`) or the bounds set in `cmin` and `cmax` Defaults to `false` when `cmin` and `cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
@@ -70,7 +70,7 @@ type Mesh3d struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`cmin` and `cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `cmin` and `cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Contour
@@ -86,7 +86,7 @@ type Mesh3d struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Delaunayaxis
@@ -104,7 +104,7 @@ type Mesh3d struct {
// Facecolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for facecolor .
+ // Sets the source reference on Chart Studio Cloud for `facecolor`.
Facecolorsrc String `json:"facecolorsrc,omitempty"`
// Flatshading
@@ -122,7 +122,7 @@ type Mesh3d struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -132,13 +132,13 @@ type Mesh3d struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -150,7 +150,7 @@ type Mesh3d struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// I
@@ -168,7 +168,7 @@ type Mesh3d struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Intensity
@@ -186,13 +186,13 @@ type Mesh3d struct {
// Intensitysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for intensity .
+ // Sets the source reference on Chart Studio Cloud for `intensity`.
Intensitysrc String `json:"intensitysrc,omitempty"`
// Isrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for i .
+ // Sets the source reference on Chart Studio Cloud for `i`.
Isrc String `json:"isrc,omitempty"`
// J
@@ -204,7 +204,7 @@ type Mesh3d struct {
// Jsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for j .
+ // Sets the source reference on Chart Studio Cloud for `j`.
Jsrc String `json:"jsrc,omitempty"`
// K
@@ -216,7 +216,7 @@ type Mesh3d struct {
// Ksrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for k .
+ // Sets the source reference on Chart Studio Cloud for `k`.
Ksrc String `json:"ksrc,omitempty"`
// Legendgroup
@@ -225,6 +225,22 @@ type Mesh3d struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *Mesh3dLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Lighting
// role: Object
Lighting *Mesh3dLighting `json:"lighting,omitempty"`
@@ -242,7 +258,7 @@ type Mesh3d struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -294,7 +310,7 @@ type Mesh3d struct {
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
Textsrc String `json:"textsrc,omitempty"`
// Uid
@@ -318,7 +334,7 @@ type Mesh3d struct {
// Vertexcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for vertexcolor .
+ // Sets the source reference on Chart Studio Cloud for `vertexcolor`.
Vertexcolorsrc String `json:"vertexcolorsrc,omitempty"`
// Visible
@@ -339,10 +355,16 @@ type Mesh3d struct {
// Sets the calendar system to use with `x` date data.
Xcalendar Mesh3dXcalendar `json:"xcalendar,omitempty"`
+ // Xhoverformat
+ // 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"`
+
// Xsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for x .
+ // Sets the source reference on Chart Studio Cloud for `x`.
Xsrc String `json:"xsrc,omitempty"`
// Y
@@ -357,10 +379,16 @@ type Mesh3d struct {
// Sets the calendar system to use with `y` date data.
Ycalendar Mesh3dYcalendar `json:"ycalendar,omitempty"`
+ // Yhoverformat
+ // 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"`
+
// Ysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for y .
+ // Sets the source reference on Chart Studio Cloud for `y`.
Ysrc String `json:"ysrc,omitempty"`
// Z
@@ -375,10 +403,16 @@ type Mesh3d struct {
// Sets the calendar system to use with `z` date data.
Zcalendar Mesh3dZcalendar `json:"zcalendar,omitempty"`
+ // Zhoverformat
+ // 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"`
+
// Zsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for z .
+ // Sets the source reference on Chart Studio Cloud for `z`.
Zsrc String `json:"zsrc,omitempty"`
}
@@ -434,9 +468,9 @@ type Mesh3dColorbarTitle struct {
Font *Mesh3dColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side Mesh3dColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -479,6 +513,12 @@ type Mesh3dColorbar struct {
// 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.
Exponentformat Mesh3dColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -503,6 +543,12 @@ type Mesh3dColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation Mesh3dColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -582,7 +628,7 @@ type Mesh3dColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -591,12 +637,24 @@ type Mesh3dColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition Mesh3dColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -636,7 +694,7 @@ type Mesh3dColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -648,7 +706,7 @@ type Mesh3dColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -664,13 +722,13 @@ type Mesh3dColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor Mesh3dColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -682,13 +740,13 @@ type Mesh3dColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor Mesh3dColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -732,7 +790,7 @@ type Mesh3dHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -744,7 +802,7 @@ type Mesh3dHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -756,7 +814,7 @@ type Mesh3dHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -772,7 +830,7 @@ type Mesh3dHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -784,7 +842,7 @@ type Mesh3dHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -796,7 +854,7 @@ type Mesh3dHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -812,10 +870,46 @@ type Mesh3dHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// Mesh3dLegendgrouptitleFont Sets this legend group's title font.
+type Mesh3dLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// Mesh3dLegendgrouptitle
+type Mesh3dLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *Mesh3dLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// Mesh3dLighting
type Mesh3dLighting struct {
@@ -908,7 +1002,7 @@ const (
Mesh3dColorbarExponentformatE1 Mesh3dColorbarExponentformat = "e"
Mesh3dColorbarExponentformatE2 Mesh3dColorbarExponentformat = "E"
Mesh3dColorbarExponentformatPower Mesh3dColorbarExponentformat = "power"
- Mesh3dColorbarExponentformatSi Mesh3dColorbarExponentformat = "SI"
+ Mesh3dColorbarExponentformatSI Mesh3dColorbarExponentformat = "SI"
Mesh3dColorbarExponentformatB Mesh3dColorbarExponentformat = "B"
)
@@ -920,6 +1014,14 @@ const (
Mesh3dColorbarLenmodePixels Mesh3dColorbarLenmode = "pixels"
)
+// Mesh3dColorbarOrientation Sets the orientation of the colorbar.
+type Mesh3dColorbarOrientation string
+
+const (
+ Mesh3dColorbarOrientationH Mesh3dColorbarOrientation = "h"
+ Mesh3dColorbarOrientationV Mesh3dColorbarOrientation = "v"
+)
+
// Mesh3dColorbarShowexponent 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.
type Mesh3dColorbarShowexponent string
@@ -958,7 +1060,16 @@ const (
Mesh3dColorbarThicknessmodePixels Mesh3dColorbarThicknessmode = "pixels"
)
-// Mesh3dColorbarTicklabelposition Determines where tick labels are drawn.
+// Mesh3dColorbarTicklabeloverflow 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*.
+type Mesh3dColorbarTicklabeloverflow string
+
+const (
+ Mesh3dColorbarTicklabeloverflowAllow Mesh3dColorbarTicklabeloverflow = "allow"
+ Mesh3dColorbarTicklabeloverflowHidePastDiv Mesh3dColorbarTicklabeloverflow = "hide past div"
+ Mesh3dColorbarTicklabeloverflowHidePastDomain Mesh3dColorbarTicklabeloverflow = "hide past domain"
+)
+
+// Mesh3dColorbarTicklabelposition 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*.
type Mesh3dColorbarTicklabelposition string
const (
@@ -966,6 +1077,10 @@ const (
Mesh3dColorbarTicklabelpositionInside Mesh3dColorbarTicklabelposition = "inside"
Mesh3dColorbarTicklabelpositionOutsideTop Mesh3dColorbarTicklabelposition = "outside top"
Mesh3dColorbarTicklabelpositionInsideTop Mesh3dColorbarTicklabelposition = "inside top"
+ Mesh3dColorbarTicklabelpositionOutsideLeft Mesh3dColorbarTicklabelposition = "outside left"
+ Mesh3dColorbarTicklabelpositionInsideLeft Mesh3dColorbarTicklabelposition = "inside left"
+ Mesh3dColorbarTicklabelpositionOutsideRight Mesh3dColorbarTicklabelposition = "outside right"
+ Mesh3dColorbarTicklabelpositionInsideRight Mesh3dColorbarTicklabelposition = "inside right"
Mesh3dColorbarTicklabelpositionOutsideBottom Mesh3dColorbarTicklabelposition = "outside bottom"
Mesh3dColorbarTicklabelpositionInsideBottom Mesh3dColorbarTicklabelposition = "inside bottom"
)
@@ -988,7 +1103,7 @@ const (
Mesh3dColorbarTicksEmpty Mesh3dColorbarTicks = ""
)
-// Mesh3dColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// Mesh3dColorbarTitleSide 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.
type Mesh3dColorbarTitleSide string
const (
@@ -997,7 +1112,7 @@ const (
Mesh3dColorbarTitleSideBottom Mesh3dColorbarTitleSide = "bottom"
)
-// Mesh3dColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// Mesh3dColorbarXanchor 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*.
type Mesh3dColorbarXanchor string
const (
@@ -1006,7 +1121,7 @@ const (
Mesh3dColorbarXanchorRight Mesh3dColorbarXanchor = "right"
)
-// Mesh3dColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// Mesh3dColorbarYanchor 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*.
type Mesh3dColorbarYanchor string
const (
@@ -1054,19 +1169,19 @@ var (
type Mesh3dXcalendar string
const (
- Mesh3dXcalendarGregorian Mesh3dXcalendar = "gregorian"
Mesh3dXcalendarChinese Mesh3dXcalendar = "chinese"
Mesh3dXcalendarCoptic Mesh3dXcalendar = "coptic"
Mesh3dXcalendarDiscworld Mesh3dXcalendar = "discworld"
Mesh3dXcalendarEthiopian Mesh3dXcalendar = "ethiopian"
+ Mesh3dXcalendarGregorian Mesh3dXcalendar = "gregorian"
Mesh3dXcalendarHebrew Mesh3dXcalendar = "hebrew"
Mesh3dXcalendarIslamic Mesh3dXcalendar = "islamic"
+ Mesh3dXcalendarJalali Mesh3dXcalendar = "jalali"
Mesh3dXcalendarJulian Mesh3dXcalendar = "julian"
Mesh3dXcalendarMayan Mesh3dXcalendar = "mayan"
Mesh3dXcalendarNanakshahi Mesh3dXcalendar = "nanakshahi"
Mesh3dXcalendarNepali Mesh3dXcalendar = "nepali"
Mesh3dXcalendarPersian Mesh3dXcalendar = "persian"
- Mesh3dXcalendarJalali Mesh3dXcalendar = "jalali"
Mesh3dXcalendarTaiwan Mesh3dXcalendar = "taiwan"
Mesh3dXcalendarThai Mesh3dXcalendar = "thai"
Mesh3dXcalendarUmmalqura Mesh3dXcalendar = "ummalqura"
@@ -1076,19 +1191,19 @@ const (
type Mesh3dYcalendar string
const (
- Mesh3dYcalendarGregorian Mesh3dYcalendar = "gregorian"
Mesh3dYcalendarChinese Mesh3dYcalendar = "chinese"
Mesh3dYcalendarCoptic Mesh3dYcalendar = "coptic"
Mesh3dYcalendarDiscworld Mesh3dYcalendar = "discworld"
Mesh3dYcalendarEthiopian Mesh3dYcalendar = "ethiopian"
+ Mesh3dYcalendarGregorian Mesh3dYcalendar = "gregorian"
Mesh3dYcalendarHebrew Mesh3dYcalendar = "hebrew"
Mesh3dYcalendarIslamic Mesh3dYcalendar = "islamic"
+ Mesh3dYcalendarJalali Mesh3dYcalendar = "jalali"
Mesh3dYcalendarJulian Mesh3dYcalendar = "julian"
Mesh3dYcalendarMayan Mesh3dYcalendar = "mayan"
Mesh3dYcalendarNanakshahi Mesh3dYcalendar = "nanakshahi"
Mesh3dYcalendarNepali Mesh3dYcalendar = "nepali"
Mesh3dYcalendarPersian Mesh3dYcalendar = "persian"
- Mesh3dYcalendarJalali Mesh3dYcalendar = "jalali"
Mesh3dYcalendarTaiwan Mesh3dYcalendar = "taiwan"
Mesh3dYcalendarThai Mesh3dYcalendar = "thai"
Mesh3dYcalendarUmmalqura Mesh3dYcalendar = "ummalqura"
@@ -1098,19 +1213,19 @@ const (
type Mesh3dZcalendar string
const (
- Mesh3dZcalendarGregorian Mesh3dZcalendar = "gregorian"
Mesh3dZcalendarChinese Mesh3dZcalendar = "chinese"
Mesh3dZcalendarCoptic Mesh3dZcalendar = "coptic"
Mesh3dZcalendarDiscworld Mesh3dZcalendar = "discworld"
Mesh3dZcalendarEthiopian Mesh3dZcalendar = "ethiopian"
+ Mesh3dZcalendarGregorian Mesh3dZcalendar = "gregorian"
Mesh3dZcalendarHebrew Mesh3dZcalendar = "hebrew"
Mesh3dZcalendarIslamic Mesh3dZcalendar = "islamic"
+ Mesh3dZcalendarJalali Mesh3dZcalendar = "jalali"
Mesh3dZcalendarJulian Mesh3dZcalendar = "julian"
Mesh3dZcalendarMayan Mesh3dZcalendar = "mayan"
Mesh3dZcalendarNanakshahi Mesh3dZcalendar = "nanakshahi"
Mesh3dZcalendarNepali Mesh3dZcalendar = "nepali"
Mesh3dZcalendarPersian Mesh3dZcalendar = "persian"
- Mesh3dZcalendarJalali Mesh3dZcalendar = "jalali"
Mesh3dZcalendarTaiwan Mesh3dZcalendar = "taiwan"
Mesh3dZcalendarThai Mesh3dZcalendar = "thai"
Mesh3dZcalendarUmmalqura Mesh3dZcalendar = "ummalqura"
diff --git a/graph_objects/ohlc_gen.go b/generated/v2.19.0/graph_objects/ohlc_gen.go
similarity index 79%
rename from graph_objects/ohlc_gen.go
rename to generated/v2.19.0/graph_objects/ohlc_gen.go
index 49b1ce6..792037f 100644
--- a/graph_objects/ohlc_gen.go
+++ b/generated/v2.19.0/graph_objects/ohlc_gen.go
@@ -24,7 +24,7 @@ type Ohlc struct {
// Closesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for close .
+ // Sets the source reference on Chart Studio Cloud for `close`.
Closesrc String `json:"closesrc,omitempty"`
// Customdata
@@ -36,7 +36,7 @@ type Ohlc struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Decreasing
@@ -52,7 +52,7 @@ type Ohlc struct {
// Highsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for high .
+ // Sets the source reference on Chart Studio Cloud for `high`.
Highsrc String `json:"highsrc,omitempty"`
// Hoverinfo
@@ -64,7 +64,7 @@ type Ohlc struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -80,7 +80,7 @@ type Ohlc struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -92,7 +92,7 @@ type Ohlc struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Increasing
@@ -105,6 +105,22 @@ type Ohlc struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *OhlcLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Line
// role: Object
Line *OhlcLine `json:"line,omitempty"`
@@ -118,7 +134,7 @@ type Ohlc struct {
// Lowsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for low .
+ // Sets the source reference on Chart Studio Cloud for `low`.
Lowsrc String `json:"lowsrc,omitempty"`
// Meta
@@ -130,7 +146,7 @@ type Ohlc struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -154,7 +170,7 @@ type Ohlc struct {
// Opensrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for open .
+ // Sets the source reference on Chart Studio Cloud for `open`.
Opensrc String `json:"opensrc,omitempty"`
// Selectedpoints
@@ -182,7 +198,7 @@ type Ohlc struct {
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
Textsrc String `json:"textsrc,omitempty"`
// Tickwidth
@@ -233,6 +249,12 @@ type Ohlc struct {
// Sets the calendar system to use with `x` date data.
Xcalendar OhlcXcalendar `json:"xcalendar,omitempty"`
+ // Xhoverformat
+ // 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"`
+
// Xperiod
// arrayOK: false
// type: any
@@ -254,7 +276,7 @@ type Ohlc struct {
// Xsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for x .
+ // Sets the source reference on Chart Studio Cloud for `x`.
Xsrc String `json:"xsrc,omitempty"`
// Yaxis
@@ -262,6 +284,12 @@ type Ohlc struct {
// type: subplotid
// Sets a reference between this trace's y coordinates and a 2D cartesian y axis. If *y* (the default value), the y coordinates refer to `layout.yaxis`. If *y2*, the y coordinates refer to `layout.yaxis2`, and so on.
Yaxis String `json:"yaxis,omitempty"`
+
+ // Yhoverformat
+ // 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"`
}
// OhlcDecreasingLine
@@ -306,7 +334,7 @@ type OhlcHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -318,7 +346,7 @@ type OhlcHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -330,7 +358,7 @@ type OhlcHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -346,7 +374,7 @@ type OhlcHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -358,7 +386,7 @@ type OhlcHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -370,7 +398,7 @@ type OhlcHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -386,7 +414,7 @@ type OhlcHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
// Split
@@ -426,6 +454,42 @@ type OhlcIncreasing struct {
Line *OhlcIncreasingLine `json:"line,omitempty"`
}
+// OhlcLegendgrouptitleFont Sets this legend group's title font.
+type OhlcLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// OhlcLegendgrouptitle
+type OhlcLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *OhlcLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// OhlcLine
type OhlcLine struct {
@@ -480,19 +544,19 @@ var (
type OhlcXcalendar string
const (
- OhlcXcalendarGregorian OhlcXcalendar = "gregorian"
OhlcXcalendarChinese OhlcXcalendar = "chinese"
OhlcXcalendarCoptic OhlcXcalendar = "coptic"
OhlcXcalendarDiscworld OhlcXcalendar = "discworld"
OhlcXcalendarEthiopian OhlcXcalendar = "ethiopian"
+ OhlcXcalendarGregorian OhlcXcalendar = "gregorian"
OhlcXcalendarHebrew OhlcXcalendar = "hebrew"
OhlcXcalendarIslamic OhlcXcalendar = "islamic"
+ OhlcXcalendarJalali OhlcXcalendar = "jalali"
OhlcXcalendarJulian OhlcXcalendar = "julian"
OhlcXcalendarMayan OhlcXcalendar = "mayan"
OhlcXcalendarNanakshahi OhlcXcalendar = "nanakshahi"
OhlcXcalendarNepali OhlcXcalendar = "nepali"
OhlcXcalendarPersian OhlcXcalendar = "persian"
- OhlcXcalendarJalali OhlcXcalendar = "jalali"
OhlcXcalendarTaiwan OhlcXcalendar = "taiwan"
OhlcXcalendarThai OhlcXcalendar = "thai"
OhlcXcalendarUmmalqura OhlcXcalendar = "ummalqura"
diff --git a/graph_objects/parcats_gen.go b/generated/v2.19.0/graph_objects/parcats_gen.go
similarity index 75%
rename from graph_objects/parcats_gen.go
rename to generated/v2.19.0/graph_objects/parcats_gen.go
index 8818a87..3f62217 100644
--- a/graph_objects/parcats_gen.go
+++ b/generated/v2.19.0/graph_objects/parcats_gen.go
@@ -36,7 +36,7 @@ type Parcats struct {
// Countssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for counts .
+ // Sets the source reference on Chart Studio Cloud for `counts`.
Countssrc String `json:"countssrc,omitempty"`
// Dimensions
@@ -64,13 +64,23 @@ type Parcats struct {
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Labelfont
// role: Object
Labelfont *ParcatsLabelfont `json:"labelfont,omitempty"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *ParcatsLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Line
// role: Object
Line *ParcatsLine `json:"line,omitempty"`
@@ -84,7 +94,7 @@ type Parcats struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -182,6 +192,42 @@ type ParcatsLabelfont struct {
Size float64 `json:"size,omitempty"`
}
+// ParcatsLegendgrouptitleFont Sets this legend group's title font.
+type ParcatsLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// ParcatsLegendgrouptitle
+type ParcatsLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *ParcatsLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// ParcatsLineColorbarTickfont Sets the color bar's tick label font
type ParcatsLineColorbarTickfont struct {
@@ -234,9 +280,9 @@ type ParcatsLineColorbarTitle struct {
Font *ParcatsLineColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side ParcatsLineColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -279,6 +325,12 @@ type ParcatsLineColorbar struct {
// 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.
Exponentformat ParcatsLineColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -303,6 +355,12 @@ type ParcatsLineColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation ParcatsLineColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -382,7 +440,7 @@ type ParcatsLineColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -391,12 +449,24 @@ type ParcatsLineColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition ParcatsLineColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -436,7 +506,7 @@ type ParcatsLineColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -448,7 +518,7 @@ type ParcatsLineColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -464,13 +534,13 @@ type ParcatsLineColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor ParcatsLineColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -482,13 +552,13 @@ type ParcatsLineColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor ParcatsLineColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -504,37 +574,37 @@ type ParcatsLine struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `line.colorscale`. Has an effect only if in `line.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `line.colorscale`. Has an effect only if in `line.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `line.color`) or the bounds set in `line.cmin` and `line.cmax` Has an effect only if in `line.color`is set to a numerical array. Defaults to `false` when `line.cmin` and `line.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `line.color`) or the bounds set in `line.cmin` and `line.cmax` Has an effect only if in `line.color` is set to a numerical array. Defaults to `false` when `line.cmin` and `line.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `line.color`is set to a numerical array. Value should have the same units as in `line.color` and if set, `line.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `line.color` is set to a numerical array. Value should have the same units as in `line.color` and if set, `line.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `line.cmin` and/or `line.cmax` to be equidistant to this point. Has an effect only if in `line.color`is set to a numerical array. Value should have the same units as in `line.color`. Has no effect when `line.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `line.cmin` and/or `line.cmax` to be equidistant to this point. Has an effect only if in `line.color` is set to a numerical array. Value should have the same units as in `line.color`. Has no effect when `line.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `line.color`is set to a numerical array. Value should have the same units as in `line.color` and if set, `line.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `line.color` is set to a numerical array. Value should have the same units as in `line.color` and if set, `line.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets thelinecolor. 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.
+ // 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"`
// Coloraxis
@@ -550,25 +620,25 @@ type ParcatsLine struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `line.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`line.cmin` and `line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `line.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `line.cmin` and `line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `line.color`is set to a numerical array. If true, `line.cmin` will correspond to the last color in the array and `line.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `line.color` is set to a numerical array. If true, `line.cmin` will correspond to the last color in the array and `line.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Shape
@@ -580,7 +650,7 @@ type ParcatsLine struct {
// Showscale
// arrayOK: false
// type: boolean
- // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `line.color`is set to a numerical array.
+ // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `line.color` is set to a numerical array.
Showscale Bool `json:"showscale,omitempty"`
}
@@ -648,7 +718,7 @@ const (
ParcatsLineColorbarExponentformatE1 ParcatsLineColorbarExponentformat = "e"
ParcatsLineColorbarExponentformatE2 ParcatsLineColorbarExponentformat = "E"
ParcatsLineColorbarExponentformatPower ParcatsLineColorbarExponentformat = "power"
- ParcatsLineColorbarExponentformatSi ParcatsLineColorbarExponentformat = "SI"
+ ParcatsLineColorbarExponentformatSI ParcatsLineColorbarExponentformat = "SI"
ParcatsLineColorbarExponentformatB ParcatsLineColorbarExponentformat = "B"
)
@@ -660,6 +730,14 @@ const (
ParcatsLineColorbarLenmodePixels ParcatsLineColorbarLenmode = "pixels"
)
+// ParcatsLineColorbarOrientation Sets the orientation of the colorbar.
+type ParcatsLineColorbarOrientation string
+
+const (
+ ParcatsLineColorbarOrientationH ParcatsLineColorbarOrientation = "h"
+ ParcatsLineColorbarOrientationV ParcatsLineColorbarOrientation = "v"
+)
+
// ParcatsLineColorbarShowexponent 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.
type ParcatsLineColorbarShowexponent string
@@ -698,7 +776,16 @@ const (
ParcatsLineColorbarThicknessmodePixels ParcatsLineColorbarThicknessmode = "pixels"
)
-// ParcatsLineColorbarTicklabelposition Determines where tick labels are drawn.
+// ParcatsLineColorbarTicklabeloverflow 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*.
+type ParcatsLineColorbarTicklabeloverflow string
+
+const (
+ ParcatsLineColorbarTicklabeloverflowAllow ParcatsLineColorbarTicklabeloverflow = "allow"
+ ParcatsLineColorbarTicklabeloverflowHidePastDiv ParcatsLineColorbarTicklabeloverflow = "hide past div"
+ ParcatsLineColorbarTicklabeloverflowHidePastDomain ParcatsLineColorbarTicklabeloverflow = "hide past domain"
+)
+
+// ParcatsLineColorbarTicklabelposition 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*.
type ParcatsLineColorbarTicklabelposition string
const (
@@ -706,6 +793,10 @@ const (
ParcatsLineColorbarTicklabelpositionInside ParcatsLineColorbarTicklabelposition = "inside"
ParcatsLineColorbarTicklabelpositionOutsideTop ParcatsLineColorbarTicklabelposition = "outside top"
ParcatsLineColorbarTicklabelpositionInsideTop ParcatsLineColorbarTicklabelposition = "inside top"
+ ParcatsLineColorbarTicklabelpositionOutsideLeft ParcatsLineColorbarTicklabelposition = "outside left"
+ ParcatsLineColorbarTicklabelpositionInsideLeft ParcatsLineColorbarTicklabelposition = "inside left"
+ ParcatsLineColorbarTicklabelpositionOutsideRight ParcatsLineColorbarTicklabelposition = "outside right"
+ ParcatsLineColorbarTicklabelpositionInsideRight ParcatsLineColorbarTicklabelposition = "inside right"
ParcatsLineColorbarTicklabelpositionOutsideBottom ParcatsLineColorbarTicklabelposition = "outside bottom"
ParcatsLineColorbarTicklabelpositionInsideBottom ParcatsLineColorbarTicklabelposition = "inside bottom"
)
@@ -728,7 +819,7 @@ const (
ParcatsLineColorbarTicksEmpty ParcatsLineColorbarTicks = ""
)
-// ParcatsLineColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// ParcatsLineColorbarTitleSide 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.
type ParcatsLineColorbarTitleSide string
const (
@@ -737,7 +828,7 @@ const (
ParcatsLineColorbarTitleSideBottom ParcatsLineColorbarTitleSide = "bottom"
)
-// ParcatsLineColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// ParcatsLineColorbarXanchor 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*.
type ParcatsLineColorbarXanchor string
const (
@@ -746,7 +837,7 @@ const (
ParcatsLineColorbarXanchorRight ParcatsLineColorbarXanchor = "right"
)
-// ParcatsLineColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// ParcatsLineColorbarYanchor 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*.
type ParcatsLineColorbarYanchor string
const (
diff --git a/graph_objects/parcoords_gen.go b/generated/v2.19.0/graph_objects/parcoords_gen.go
similarity index 76%
rename from graph_objects/parcoords_gen.go
rename to generated/v2.19.0/graph_objects/parcoords_gen.go
index 708f1d3..12f3120 100644
--- a/graph_objects/parcoords_gen.go
+++ b/generated/v2.19.0/graph_objects/parcoords_gen.go
@@ -24,7 +24,7 @@ type Parcoords struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Dimensions
@@ -46,7 +46,7 @@ type Parcoords struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Labelangle
@@ -65,6 +65,22 @@ type Parcoords struct {
// 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*.
Labelside ParcoordsLabelside `json:"labelside,omitempty"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *ParcoordsLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Line
// role: Object
Line *ParcoordsLine `json:"line,omitempty"`
@@ -78,7 +94,7 @@ type Parcoords struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -117,6 +133,10 @@ type Parcoords struct {
// Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven trace attribute changes are controlled by `layout` attributes: `trace.visible` is controlled by `layout.legend.uirevision`, `selectedpoints` is controlled by `layout.selectionrevision`, and `colorbar.(x|y)` (accessible with `config: {editable: true}`) is controlled by `layout.editrevision`. Trace changes are tracked by `uid`, which only falls back on trace index if no `uid` is provided. So if your app can add/remove traces before the end of the `data` array, such that the same trace has a different index, you can still preserve user-driven changes if you give each trace a `uid` that stays with it as it moves.
Uirevision interface{} `json:"uirevision,omitempty"`
+ // Unselected
+ // role: Object
+ Unselected *ParcoordsUnselected `json:"unselected,omitempty"`
+
// Visible
// default: %!s(bool=true)
// type: enumerated
@@ -174,6 +194,42 @@ type ParcoordsLabelfont struct {
Size float64 `json:"size,omitempty"`
}
+// ParcoordsLegendgrouptitleFont Sets this legend group's title font.
+type ParcoordsLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// ParcoordsLegendgrouptitle
+type ParcoordsLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *ParcoordsLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// ParcoordsLineColorbarTickfont Sets the color bar's tick label font
type ParcoordsLineColorbarTickfont struct {
@@ -226,9 +282,9 @@ type ParcoordsLineColorbarTitle struct {
Font *ParcoordsLineColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side ParcoordsLineColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -271,6 +327,12 @@ type ParcoordsLineColorbar struct {
// 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.
Exponentformat ParcoordsLineColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -295,6 +357,12 @@ type ParcoordsLineColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation ParcoordsLineColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -374,7 +442,7 @@ type ParcoordsLineColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -383,12 +451,24 @@ type ParcoordsLineColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition ParcoordsLineColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -428,7 +508,7 @@ type ParcoordsLineColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -440,7 +520,7 @@ type ParcoordsLineColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -456,13 +536,13 @@ type ParcoordsLineColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor ParcoordsLineColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -474,13 +554,13 @@ type ParcoordsLineColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor ParcoordsLineColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -496,37 +576,37 @@ type ParcoordsLine struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `line.colorscale`. Has an effect only if in `line.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `line.colorscale`. Has an effect only if in `line.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `line.color`) or the bounds set in `line.cmin` and `line.cmax` Has an effect only if in `line.color`is set to a numerical array. Defaults to `false` when `line.cmin` and `line.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `line.color`) or the bounds set in `line.cmin` and `line.cmax` Has an effect only if in `line.color` is set to a numerical array. Defaults to `false` when `line.cmin` and `line.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `line.color`is set to a numerical array. Value should have the same units as in `line.color` and if set, `line.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `line.color` is set to a numerical array. Value should have the same units as in `line.color` and if set, `line.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `line.cmin` and/or `line.cmax` to be equidistant to this point. Has an effect only if in `line.color`is set to a numerical array. Value should have the same units as in `line.color`. Has no effect when `line.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `line.cmin` and/or `line.cmax` to be equidistant to this point. Has an effect only if in `line.color` is set to a numerical array. Value should have the same units as in `line.color`. Has no effect when `line.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `line.color`is set to a numerical array. Value should have the same units as in `line.color` and if set, `line.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `line.color` is set to a numerical array. Value should have the same units as in `line.color` and if set, `line.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets thelinecolor. 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.
+ // 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"`
// Coloraxis
@@ -542,25 +622,25 @@ type ParcoordsLine struct {
// Colorscale
// default: [[%!s(float64=0) #440154] [%!s(float64=0.06274509803921569) #48186a] [%!s(float64=0.12549019607843137) #472d7b] [%!s(float64=0.18823529411764706) #424086] [%!s(float64=0.25098039215686274) #3b528b] [%!s(float64=0.3137254901960784) #33638d] [%!s(float64=0.3764705882352941) #2c728e] [%!s(float64=0.4392156862745098) #26828e] [%!s(float64=0.5019607843137255) #21918c] [%!s(float64=0.5647058823529412) #1fa088] [%!s(float64=0.6274509803921569) #28ae80] [%!s(float64=0.6901960784313725) #3fbc73] [%!s(float64=0.7529411764705882) #5ec962] [%!s(float64=0.8156862745098039) #84d44b] [%!s(float64=0.8784313725490196) #addc30] [%!s(float64=0.9411764705882353) #d8e219] [%!s(float64=1) #fde725]]
// type: colorscale
- // Sets the colorscale. Has an effect only if in `line.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`line.cmin` and `line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `line.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `line.cmin` and `line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `line.color`is set to a numerical array. If true, `line.cmin` will correspond to the last color in the array and `line.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `line.color` is set to a numerical array. If true, `line.cmin` will correspond to the last color in the array and `line.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Showscale
// arrayOK: false
// type: boolean
- // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `line.color`is set to a numerical array.
+ // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `line.color` is set to a numerical array.
Showscale Bool `json:"showscale,omitempty"`
}
@@ -624,6 +704,30 @@ type ParcoordsTickfont struct {
Size float64 `json:"size,omitempty"`
}
+// ParcoordsUnselectedLine
+type ParcoordsUnselectedLine struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ // Sets the base color of unselected lines. in connection with `unselected.line.opacity`.
+ Color Color `json:"color,omitempty"`
+
+ // Opacity
+ // arrayOK: false
+ // type: number
+ // Sets the opacity of unselected lines. The default *auto* decreases the opacity smoothly as the number of lines increases. Use *1* to achieve exact `unselected.line.color`.
+ Opacity float64 `json:"opacity,omitempty"`
+}
+
+// ParcoordsUnselected
+type ParcoordsUnselected struct {
+
+ // Line
+ // role: Object
+ Line *ParcoordsUnselectedLine `json:"line,omitempty"`
+}
+
// ParcoordsLabelside 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*.
type ParcoordsLabelside string
@@ -640,7 +744,7 @@ const (
ParcoordsLineColorbarExponentformatE1 ParcoordsLineColorbarExponentformat = "e"
ParcoordsLineColorbarExponentformatE2 ParcoordsLineColorbarExponentformat = "E"
ParcoordsLineColorbarExponentformatPower ParcoordsLineColorbarExponentformat = "power"
- ParcoordsLineColorbarExponentformatSi ParcoordsLineColorbarExponentformat = "SI"
+ ParcoordsLineColorbarExponentformatSI ParcoordsLineColorbarExponentformat = "SI"
ParcoordsLineColorbarExponentformatB ParcoordsLineColorbarExponentformat = "B"
)
@@ -652,6 +756,14 @@ const (
ParcoordsLineColorbarLenmodePixels ParcoordsLineColorbarLenmode = "pixels"
)
+// ParcoordsLineColorbarOrientation Sets the orientation of the colorbar.
+type ParcoordsLineColorbarOrientation string
+
+const (
+ ParcoordsLineColorbarOrientationH ParcoordsLineColorbarOrientation = "h"
+ ParcoordsLineColorbarOrientationV ParcoordsLineColorbarOrientation = "v"
+)
+
// ParcoordsLineColorbarShowexponent 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.
type ParcoordsLineColorbarShowexponent string
@@ -690,7 +802,16 @@ const (
ParcoordsLineColorbarThicknessmodePixels ParcoordsLineColorbarThicknessmode = "pixels"
)
-// ParcoordsLineColorbarTicklabelposition Determines where tick labels are drawn.
+// ParcoordsLineColorbarTicklabeloverflow 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*.
+type ParcoordsLineColorbarTicklabeloverflow string
+
+const (
+ ParcoordsLineColorbarTicklabeloverflowAllow ParcoordsLineColorbarTicklabeloverflow = "allow"
+ ParcoordsLineColorbarTicklabeloverflowHidePastDiv ParcoordsLineColorbarTicklabeloverflow = "hide past div"
+ ParcoordsLineColorbarTicklabeloverflowHidePastDomain ParcoordsLineColorbarTicklabeloverflow = "hide past domain"
+)
+
+// ParcoordsLineColorbarTicklabelposition 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*.
type ParcoordsLineColorbarTicklabelposition string
const (
@@ -698,6 +819,10 @@ const (
ParcoordsLineColorbarTicklabelpositionInside ParcoordsLineColorbarTicklabelposition = "inside"
ParcoordsLineColorbarTicklabelpositionOutsideTop ParcoordsLineColorbarTicklabelposition = "outside top"
ParcoordsLineColorbarTicklabelpositionInsideTop ParcoordsLineColorbarTicklabelposition = "inside top"
+ ParcoordsLineColorbarTicklabelpositionOutsideLeft ParcoordsLineColorbarTicklabelposition = "outside left"
+ ParcoordsLineColorbarTicklabelpositionInsideLeft ParcoordsLineColorbarTicklabelposition = "inside left"
+ ParcoordsLineColorbarTicklabelpositionOutsideRight ParcoordsLineColorbarTicklabelposition = "outside right"
+ ParcoordsLineColorbarTicklabelpositionInsideRight ParcoordsLineColorbarTicklabelposition = "inside right"
ParcoordsLineColorbarTicklabelpositionOutsideBottom ParcoordsLineColorbarTicklabelposition = "outside bottom"
ParcoordsLineColorbarTicklabelpositionInsideBottom ParcoordsLineColorbarTicklabelposition = "inside bottom"
)
@@ -720,7 +845,7 @@ const (
ParcoordsLineColorbarTicksEmpty ParcoordsLineColorbarTicks = ""
)
-// ParcoordsLineColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// ParcoordsLineColorbarTitleSide 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.
type ParcoordsLineColorbarTitleSide string
const (
@@ -729,7 +854,7 @@ const (
ParcoordsLineColorbarTitleSideBottom ParcoordsLineColorbarTitleSide = "bottom"
)
-// ParcoordsLineColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// ParcoordsLineColorbarXanchor 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*.
type ParcoordsLineColorbarXanchor string
const (
@@ -738,7 +863,7 @@ const (
ParcoordsLineColorbarXanchorRight ParcoordsLineColorbarXanchor = "right"
)
-// ParcoordsLineColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// ParcoordsLineColorbarYanchor 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*.
type ParcoordsLineColorbarYanchor string
const (
diff --git a/graph_objects/pie_gen.go b/generated/v2.19.0/graph_objects/pie_gen.go
similarity index 81%
rename from graph_objects/pie_gen.go
rename to generated/v2.19.0/graph_objects/pie_gen.go
index 55e6213..2384449 100644
--- a/graph_objects/pie_gen.go
+++ b/generated/v2.19.0/graph_objects/pie_gen.go
@@ -30,7 +30,7 @@ type Pie struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Direction
@@ -64,7 +64,7 @@ type Pie struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -74,13 +74,13 @@ type Pie struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -92,7 +92,7 @@ type Pie struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -104,7 +104,7 @@ type Pie struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Insidetextfont
@@ -132,7 +132,7 @@ type Pie struct {
// Labelssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for labels .
+ // Sets the source reference on Chart Studio Cloud for `labels`.
Labelssrc String `json:"labelssrc,omitempty"`
// Legendgroup
@@ -141,6 +141,22 @@ type Pie struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *PieLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Marker
// role: Object
Marker *PieMarker `json:"marker,omitempty"`
@@ -154,7 +170,7 @@ type Pie struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -182,12 +198,12 @@ type Pie struct {
// Pullsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for pull .
+ // Sets the source reference on Chart Studio Cloud for `pull`.
Pullsrc String `json:"pullsrc,omitempty"`
// Rotation
// arrayOK: false
- // type: number
+ // type: angle
// Instead of the first slice starting at 12 o'clock, rotate to some other angle.
Rotation float64 `json:"rotation,omitempty"`
@@ -238,25 +254,25 @@ type Pie struct {
// Textpositionsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for textposition .
+ // Sets the source reference on Chart Studio Cloud for `textposition`.
Textpositionsrc String `json:"textpositionsrc,omitempty"`
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
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-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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`.
+ // 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"`
// Texttemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for texttemplate .
+ // Sets the source reference on Chart Studio Cloud for `texttemplate`.
Texttemplatesrc String `json:"texttemplatesrc,omitempty"`
// Title
@@ -290,7 +306,7 @@ type Pie struct {
// Valuessrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for values .
+ // Sets the source reference on Chart Studio Cloud for `values`.
Valuessrc String `json:"valuessrc,omitempty"`
// Visible
@@ -340,7 +356,7 @@ type PieHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -352,7 +368,7 @@ type PieHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -364,7 +380,7 @@ type PieHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -380,7 +396,7 @@ type PieHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -392,7 +408,7 @@ type PieHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -404,7 +420,7 @@ type PieHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -420,7 +436,7 @@ type PieHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
@@ -436,7 +452,7 @@ type PieInsidetextfont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -448,7 +464,7 @@ type PieInsidetextfont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -460,10 +476,46 @@ type PieInsidetextfont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
+// PieLegendgrouptitleFont Sets this legend group's title font.
+type PieLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// PieLegendgrouptitle
+type PieLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *PieLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// PieMarkerLine
type PieMarkerLine struct {
@@ -476,7 +528,7 @@ type PieMarkerLine struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Width
@@ -488,7 +540,7 @@ type PieMarkerLine struct {
// Widthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for width .
+ // Sets the source reference on Chart Studio Cloud for `width`.
Widthsrc String `json:"widthsrc,omitempty"`
}
@@ -504,7 +556,7 @@ type PieMarker struct {
// Colorssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for colors .
+ // Sets the source reference on Chart Studio Cloud for `colors`.
Colorssrc String `json:"colorssrc,omitempty"`
// Line
@@ -524,7 +576,7 @@ type PieOutsidetextfont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -536,7 +588,7 @@ type PieOutsidetextfont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -548,7 +600,7 @@ type PieOutsidetextfont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -580,7 +632,7 @@ type PieTextfont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -592,7 +644,7 @@ type PieTextfont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -604,7 +656,7 @@ type PieTextfont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -620,7 +672,7 @@ type PieTitleFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -632,7 +684,7 @@ type PieTitleFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -644,7 +696,7 @@ type PieTitleFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
diff --git a/graph_objects/plotly_gen.go b/generated/v2.19.0/graph_objects/plotly_gen.go
similarity index 96%
rename from graph_objects/plotly_gen.go
rename to generated/v2.19.0/graph_objects/plotly_gen.go
index 04b7c7e..4158d9f 100644
--- a/graph_objects/plotly_gen.go
+++ b/generated/v2.19.0/graph_objects/plotly_gen.go
@@ -4,9 +4,6 @@ import (
"encoding/json"
)
-// Generate the files
-//go:generate go run ../generator/cmd/generator/main.go --schema ../generator/schema.json --output-directory .
-
// TraceType is the type for the TraceType field on every trace
type TraceType string
diff --git a/graph_objects/pointcloud_gen.go b/generated/v2.19.0/graph_objects/pointcloud_gen.go
similarity index 80%
rename from graph_objects/pointcloud_gen.go
rename to generated/v2.19.0/graph_objects/pointcloud_gen.go
index a97e925..4c632ae 100644
--- a/graph_objects/pointcloud_gen.go
+++ b/generated/v2.19.0/graph_objects/pointcloud_gen.go
@@ -8,7 +8,7 @@ func (trace *Pointcloud) GetType() TraceType {
return TraceTypePointcloud
}
-// Pointcloud The data visualized as a point cloud set in `x` and `y` using the WebGl plotting engine.
+// Pointcloud *pointcloud* trace is deprecated! Please consider switching to the *scattergl* trace type. The data visualized as a point cloud set in `x` and `y` using the WebGl plotting engine.
type Pointcloud struct {
// Type
@@ -24,7 +24,7 @@ type Pointcloud struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Hoverinfo
@@ -36,7 +36,7 @@ type Pointcloud struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -52,7 +52,7 @@ type Pointcloud struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Indices
@@ -64,7 +64,7 @@ type Pointcloud struct {
// Indicessrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for indices .
+ // Sets the source reference on Chart Studio Cloud for `indices`.
Indicessrc String `json:"indicessrc,omitempty"`
// Legendgroup
@@ -73,6 +73,22 @@ type Pointcloud struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *PointcloudLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Marker
// role: Object
Marker *PointcloudMarker `json:"marker,omitempty"`
@@ -86,7 +102,7 @@ type Pointcloud struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -120,7 +136,7 @@ type Pointcloud struct {
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
Textsrc String `json:"textsrc,omitempty"`
// Uid
@@ -162,13 +178,13 @@ type Pointcloud struct {
// Xboundssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for xbounds .
+ // Sets the source reference on Chart Studio Cloud for `xbounds`.
Xboundssrc String `json:"xboundssrc,omitempty"`
// Xsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for x .
+ // Sets the source reference on Chart Studio Cloud for `x`.
Xsrc String `json:"xsrc,omitempty"`
// Xy
@@ -180,7 +196,7 @@ type Pointcloud struct {
// Xysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for xy .
+ // Sets the source reference on Chart Studio Cloud for `xy`.
Xysrc String `json:"xysrc,omitempty"`
// Y
@@ -204,13 +220,13 @@ type Pointcloud struct {
// Yboundssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ybounds .
+ // Sets the source reference on Chart Studio Cloud for `ybounds`.
Yboundssrc String `json:"yboundssrc,omitempty"`
// Ysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for y .
+ // Sets the source reference on Chart Studio Cloud for `y`.
Ysrc String `json:"ysrc,omitempty"`
}
@@ -226,7 +242,7 @@ type PointcloudHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -238,7 +254,7 @@ type PointcloudHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -250,7 +266,7 @@ type PointcloudHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -266,7 +282,7 @@ type PointcloudHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -278,7 +294,7 @@ type PointcloudHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -290,7 +306,7 @@ type PointcloudHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -306,10 +322,46 @@ type PointcloudHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// PointcloudLegendgrouptitleFont Sets this legend group's title font.
+type PointcloudLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// PointcloudLegendgrouptitle
+type PointcloudLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *PointcloudLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// PointcloudMarkerBorder
type PointcloudMarkerBorder struct {
@@ -342,7 +394,7 @@ type PointcloudMarker struct {
// Color
// arrayOK: false
// type: color
- // Sets the marker fill color. It accepts a specific color.If the color is not fully opaque and there are hundreds of thousandsof points, it may cause slower zooming and panning.
+ // Sets the marker fill color. It accepts a specific color. If the color is not fully opaque and there are hundreds of thousands of points, it may cause slower zooming and panning.
Color Color `json:"color,omitempty"`
// Opacity
diff --git a/graph_objects/sankey_gen.go b/generated/v2.19.0/graph_objects/sankey_gen.go
similarity index 78%
rename from graph_objects/sankey_gen.go
rename to generated/v2.19.0/graph_objects/sankey_gen.go
index d3a1f20..ec6db8c 100644
--- a/graph_objects/sankey_gen.go
+++ b/generated/v2.19.0/graph_objects/sankey_gen.go
@@ -30,7 +30,7 @@ type Sankey struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Domain
@@ -56,9 +56,25 @@ type Sankey struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *SankeyLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Link
// role: Object
Link *SankeyLink `json:"link,omitempty"`
@@ -72,7 +88,7 @@ type Sankey struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Name
@@ -120,7 +136,7 @@ type Sankey struct {
// Valueformat
// arrayOK: false
// type: string
- // Sets the value formatting rule using d3 formatting mini-language which is similar to those of Python. See https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format
+ // 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"`
// Valuesuffix
@@ -176,7 +192,7 @@ type SankeyHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -188,7 +204,7 @@ type SankeyHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -200,7 +216,7 @@ type SankeyHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -216,7 +232,7 @@ type SankeyHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -228,7 +244,7 @@ type SankeyHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -240,7 +256,7 @@ type SankeyHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -256,10 +272,46 @@ type SankeyHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// SankeyLegendgrouptitleFont Sets this legend group's title font.
+type SankeyLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// SankeyLegendgrouptitle
+type SankeyLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *SankeyLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// SankeyLinkHoverlabelFont Sets the font used in hover labels.
type SankeyLinkHoverlabelFont struct {
@@ -272,7 +324,7 @@ type SankeyLinkHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -284,7 +336,7 @@ type SankeyLinkHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -296,7 +348,7 @@ type SankeyLinkHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -312,7 +364,7 @@ type SankeyLinkHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -324,7 +376,7 @@ type SankeyLinkHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -336,7 +388,7 @@ type SankeyLinkHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -352,7 +404,7 @@ type SankeyLinkHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
@@ -368,7 +420,7 @@ type SankeyLinkLine struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Width
@@ -380,13 +432,19 @@ type SankeyLinkLine struct {
// Widthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for width .
+ // Sets the source reference on Chart Studio Cloud for `width`.
Widthsrc String `json:"widthsrc,omitempty"`
}
// SankeyLink The links of the Sankey plot.
type SankeyLink struct {
+ // Arrowlen
+ // arrayOK: false
+ // type: number
+ // Sets the length (in px) of the links arrow, if 0 no arrow will be drawn.
+ Arrowlen float64 `json:"arrowlen,omitempty"`
+
// Color
// arrayOK: true
// type: color
@@ -402,7 +460,7 @@ type SankeyLink struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Customdata
@@ -414,7 +472,7 @@ type SankeyLink struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Hoverinfo
@@ -430,13 +488,13 @@ type SankeyLink struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Label
@@ -448,7 +506,7 @@ type SankeyLink struct {
// Labelsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for label .
+ // Sets the source reference on Chart Studio Cloud for `label`.
Labelsrc String `json:"labelsrc,omitempty"`
// Line
@@ -464,7 +522,7 @@ type SankeyLink struct {
// Sourcesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for source .
+ // Sets the source reference on Chart Studio Cloud for `source`.
Sourcesrc String `json:"sourcesrc,omitempty"`
// Target
@@ -476,7 +534,7 @@ type SankeyLink struct {
// Targetsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for target .
+ // Sets the source reference on Chart Studio Cloud for `target`.
Targetsrc String `json:"targetsrc,omitempty"`
// Value
@@ -488,7 +546,7 @@ type SankeyLink struct {
// Valuesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for value .
+ // Sets the source reference on Chart Studio Cloud for `value`.
Valuesrc String `json:"valuesrc,omitempty"`
}
@@ -504,7 +562,7 @@ type SankeyNodeHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -516,7 +574,7 @@ type SankeyNodeHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -528,7 +586,7 @@ type SankeyNodeHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -544,7 +602,7 @@ type SankeyNodeHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -556,7 +614,7 @@ type SankeyNodeHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -568,7 +626,7 @@ type SankeyNodeHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -584,7 +642,7 @@ type SankeyNodeHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
@@ -600,7 +658,7 @@ type SankeyNodeLine struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Width
@@ -612,7 +670,7 @@ type SankeyNodeLine struct {
// Widthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for width .
+ // Sets the source reference on Chart Studio Cloud for `width`.
Widthsrc String `json:"widthsrc,omitempty"`
}
@@ -628,7 +686,7 @@ type SankeyNode struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Customdata
@@ -640,7 +698,7 @@ type SankeyNode struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Groups
@@ -662,13 +720,13 @@ type SankeyNode struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Label
@@ -680,7 +738,7 @@ type SankeyNode struct {
// Labelsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for label .
+ // Sets the source reference on Chart Studio Cloud for `label`.
Labelsrc String `json:"labelsrc,omitempty"`
// Line
@@ -708,7 +766,7 @@ type SankeyNode struct {
// Xsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for x .
+ // Sets the source reference on Chart Studio Cloud for `x`.
Xsrc String `json:"xsrc,omitempty"`
// Y
@@ -720,7 +778,7 @@ type SankeyNode struct {
// Ysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for y .
+ // Sets the source reference on Chart Studio Cloud for `y`.
Ysrc String `json:"ysrc,omitempty"`
}
diff --git a/graph_objects/scatter3d_gen.go b/generated/v2.19.0/graph_objects/scatter3d_gen.go
similarity index 78%
rename from graph_objects/scatter3d_gen.go
rename to generated/v2.19.0/graph_objects/scatter3d_gen.go
index 248f44d..a14f5c6 100644
--- a/graph_objects/scatter3d_gen.go
+++ b/generated/v2.19.0/graph_objects/scatter3d_gen.go
@@ -30,7 +30,7 @@ type Scatter3d struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// ErrorX
@@ -54,7 +54,7 @@ type Scatter3d struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -64,13 +64,13 @@ type Scatter3d struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -82,7 +82,7 @@ type Scatter3d struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -94,7 +94,7 @@ type Scatter3d struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Legendgroup
@@ -103,6 +103,22 @@ type Scatter3d struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *Scatter3dLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Line
// role: Object
Line *Scatter3dLine `json:"line,omitempty"`
@@ -120,7 +136,7 @@ type Scatter3d struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Mode
@@ -192,25 +208,25 @@ type Scatter3d struct {
// Textpositionsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for textposition .
+ // Sets the source reference on Chart Studio Cloud for `textposition`.
Textpositionsrc String `json:"textpositionsrc,omitempty"`
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
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-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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.
+ // 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"`
// Texttemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for texttemplate .
+ // Sets the source reference on Chart Studio Cloud for `texttemplate`.
Texttemplatesrc String `json:"texttemplatesrc,omitempty"`
// Transforms
@@ -249,10 +265,16 @@ type Scatter3d struct {
// Sets the calendar system to use with `x` date data.
Xcalendar Scatter3dXcalendar `json:"xcalendar,omitempty"`
+ // Xhoverformat
+ // 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"`
+
// Xsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for x .
+ // Sets the source reference on Chart Studio Cloud for `x`.
Xsrc String `json:"xsrc,omitempty"`
// Y
@@ -267,10 +289,16 @@ type Scatter3d struct {
// Sets the calendar system to use with `y` date data.
Ycalendar Scatter3dYcalendar `json:"ycalendar,omitempty"`
+ // Yhoverformat
+ // 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"`
+
// Ysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for y .
+ // Sets the source reference on Chart Studio Cloud for `y`.
Ysrc String `json:"ysrc,omitempty"`
// Z
@@ -285,10 +313,16 @@ type Scatter3d struct {
// Sets the calendar system to use with `z` date data.
Zcalendar Scatter3dZcalendar `json:"zcalendar,omitempty"`
+ // Zhoverformat
+ // 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"`
+
// Zsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for z .
+ // Sets the source reference on Chart Studio Cloud for `z`.
Zsrc String `json:"zsrc,omitempty"`
}
@@ -310,13 +344,13 @@ type Scatter3dErrorX struct {
// Arrayminussrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for arrayminus .
+ // Sets the source reference on Chart Studio Cloud for `arrayminus`.
Arrayminussrc String `json:"arrayminussrc,omitempty"`
// Arraysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for array .
+ // Sets the source reference on Chart Studio Cloud for `array`.
Arraysrc String `json:"arraysrc,omitempty"`
// Color
@@ -404,13 +438,13 @@ type Scatter3dErrorY struct {
// Arrayminussrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for arrayminus .
+ // Sets the source reference on Chart Studio Cloud for `arrayminus`.
Arrayminussrc String `json:"arrayminussrc,omitempty"`
// Arraysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for array .
+ // Sets the source reference on Chart Studio Cloud for `array`.
Arraysrc String `json:"arraysrc,omitempty"`
// Color
@@ -498,13 +532,13 @@ type Scatter3dErrorZ struct {
// Arrayminussrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for arrayminus .
+ // Sets the source reference on Chart Studio Cloud for `arrayminus`.
Arrayminussrc String `json:"arrayminussrc,omitempty"`
// Arraysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for array .
+ // Sets the source reference on Chart Studio Cloud for `array`.
Arraysrc String `json:"arraysrc,omitempty"`
// Color
@@ -580,7 +614,7 @@ type Scatter3dHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -592,7 +626,7 @@ type Scatter3dHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -604,7 +638,7 @@ type Scatter3dHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -620,7 +654,7 @@ type Scatter3dHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -632,7 +666,7 @@ type Scatter3dHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -644,7 +678,7 @@ type Scatter3dHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -660,10 +694,46 @@ type Scatter3dHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// Scatter3dLegendgrouptitleFont Sets this legend group's title font.
+type Scatter3dLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// Scatter3dLegendgrouptitle
+type Scatter3dLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *Scatter3dLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// Scatter3dLineColorbarTickfont Sets the color bar's tick label font
type Scatter3dLineColorbarTickfont struct {
@@ -716,9 +786,9 @@ type Scatter3dLineColorbarTitle struct {
Font *Scatter3dLineColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side Scatter3dLineColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -761,6 +831,12 @@ type Scatter3dLineColorbar struct {
// 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.
Exponentformat Scatter3dLineColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -785,6 +861,12 @@ type Scatter3dLineColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation Scatter3dLineColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -864,7 +946,7 @@ type Scatter3dLineColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -873,12 +955,24 @@ type Scatter3dLineColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition Scatter3dLineColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -918,7 +1012,7 @@ type Scatter3dLineColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -930,7 +1024,7 @@ type Scatter3dLineColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -946,13 +1040,13 @@ type Scatter3dLineColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor Scatter3dLineColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -964,13 +1058,13 @@ type Scatter3dLineColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor Scatter3dLineColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -986,37 +1080,37 @@ type Scatter3dLine struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `line.colorscale`. Has an effect only if in `line.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `line.colorscale`. Has an effect only if in `line.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `line.color`) or the bounds set in `line.cmin` and `line.cmax` Has an effect only if in `line.color`is set to a numerical array. Defaults to `false` when `line.cmin` and `line.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `line.color`) or the bounds set in `line.cmin` and `line.cmax` Has an effect only if in `line.color` is set to a numerical array. Defaults to `false` when `line.cmin` and `line.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `line.color`is set to a numerical array. Value should have the same units as in `line.color` and if set, `line.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `line.color` is set to a numerical array. Value should have the same units as in `line.color` and if set, `line.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `line.cmin` and/or `line.cmax` to be equidistant to this point. Has an effect only if in `line.color`is set to a numerical array. Value should have the same units as in `line.color`. Has no effect when `line.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `line.cmin` and/or `line.cmax` to be equidistant to this point. Has an effect only if in `line.color` is set to a numerical array. Value should have the same units as in `line.color`. Has no effect when `line.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `line.color`is set to a numerical array. Value should have the same units as in `line.color` and if set, `line.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `line.color` is set to a numerical array. Value should have the same units as in `line.color` and if set, `line.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets thelinecolor. 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.
+ // 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"`
// Coloraxis
@@ -1032,13 +1126,13 @@ type Scatter3dLine struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `line.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`line.cmin` and `line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `line.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `line.cmin` and `line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Dash
@@ -1050,13 +1144,13 @@ type Scatter3dLine struct {
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `line.color`is set to a numerical array. If true, `line.cmin` will correspond to the last color in the array and `line.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `line.color` is set to a numerical array. If true, `line.cmin` will correspond to the last color in the array and `line.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Showscale
// arrayOK: false
// type: boolean
- // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `line.color`is set to a numerical array.
+ // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `line.color` is set to a numerical array.
Showscale Bool `json:"showscale,omitempty"`
// Width
@@ -1118,9 +1212,9 @@ type Scatter3dMarkerColorbarTitle struct {
Font *Scatter3dMarkerColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side Scatter3dMarkerColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -1163,6 +1257,12 @@ type Scatter3dMarkerColorbar struct {
// 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.
Exponentformat Scatter3dMarkerColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -1187,6 +1287,12 @@ type Scatter3dMarkerColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation Scatter3dMarkerColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -1266,7 +1372,7 @@ type Scatter3dMarkerColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -1275,12 +1381,24 @@ type Scatter3dMarkerColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition Scatter3dMarkerColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -1320,7 +1438,7 @@ type Scatter3dMarkerColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -1332,7 +1450,7 @@ type Scatter3dMarkerColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -1348,13 +1466,13 @@ type Scatter3dMarkerColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor Scatter3dMarkerColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -1366,13 +1484,13 @@ type Scatter3dMarkerColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor Scatter3dMarkerColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -1388,37 +1506,37 @@ type Scatter3dMarkerLine struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color`is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color` is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarker.linecolor. 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.
+ // 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"`
// Coloraxis
@@ -1430,19 +1548,19 @@ type Scatter3dMarkerLine struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.line.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.line.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.line.color`is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.line.color` is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Width
@@ -1458,37 +1576,37 @@ type Scatter3dMarker struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color` is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarkercolor. 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.
+ // 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"`
// Coloraxis
@@ -1504,13 +1622,13 @@ type Scatter3dMarker struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Line
@@ -1526,13 +1644,13 @@ type Scatter3dMarker struct {
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.color`is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.color` is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Showscale
// arrayOK: false
// type: boolean
- // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array.
+ // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color` is set to a numerical array.
Showscale Bool `json:"showscale,omitempty"`
// Size
@@ -1562,7 +1680,7 @@ type Scatter3dMarker struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
// Symbol
@@ -1574,7 +1692,7 @@ type Scatter3dMarker struct {
// Symbolsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for symbol .
+ // Sets the source reference on Chart Studio Cloud for `symbol`.
Symbolsrc String `json:"symbolsrc,omitempty"`
}
@@ -1688,7 +1806,7 @@ type Scatter3dTextfont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -1706,7 +1824,7 @@ type Scatter3dTextfont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -1757,7 +1875,7 @@ const (
Scatter3dLineColorbarExponentformatE1 Scatter3dLineColorbarExponentformat = "e"
Scatter3dLineColorbarExponentformatE2 Scatter3dLineColorbarExponentformat = "E"
Scatter3dLineColorbarExponentformatPower Scatter3dLineColorbarExponentformat = "power"
- Scatter3dLineColorbarExponentformatSi Scatter3dLineColorbarExponentformat = "SI"
+ Scatter3dLineColorbarExponentformatSI Scatter3dLineColorbarExponentformat = "SI"
Scatter3dLineColorbarExponentformatB Scatter3dLineColorbarExponentformat = "B"
)
@@ -1769,6 +1887,14 @@ const (
Scatter3dLineColorbarLenmodePixels Scatter3dLineColorbarLenmode = "pixels"
)
+// Scatter3dLineColorbarOrientation Sets the orientation of the colorbar.
+type Scatter3dLineColorbarOrientation string
+
+const (
+ Scatter3dLineColorbarOrientationH Scatter3dLineColorbarOrientation = "h"
+ Scatter3dLineColorbarOrientationV Scatter3dLineColorbarOrientation = "v"
+)
+
// Scatter3dLineColorbarShowexponent 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.
type Scatter3dLineColorbarShowexponent string
@@ -1807,7 +1933,16 @@ const (
Scatter3dLineColorbarThicknessmodePixels Scatter3dLineColorbarThicknessmode = "pixels"
)
-// Scatter3dLineColorbarTicklabelposition Determines where tick labels are drawn.
+// Scatter3dLineColorbarTicklabeloverflow 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*.
+type Scatter3dLineColorbarTicklabeloverflow string
+
+const (
+ Scatter3dLineColorbarTicklabeloverflowAllow Scatter3dLineColorbarTicklabeloverflow = "allow"
+ Scatter3dLineColorbarTicklabeloverflowHidePastDiv Scatter3dLineColorbarTicklabeloverflow = "hide past div"
+ Scatter3dLineColorbarTicklabeloverflowHidePastDomain Scatter3dLineColorbarTicklabeloverflow = "hide past domain"
+)
+
+// Scatter3dLineColorbarTicklabelposition 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*.
type Scatter3dLineColorbarTicklabelposition string
const (
@@ -1815,6 +1950,10 @@ const (
Scatter3dLineColorbarTicklabelpositionInside Scatter3dLineColorbarTicklabelposition = "inside"
Scatter3dLineColorbarTicklabelpositionOutsideTop Scatter3dLineColorbarTicklabelposition = "outside top"
Scatter3dLineColorbarTicklabelpositionInsideTop Scatter3dLineColorbarTicklabelposition = "inside top"
+ Scatter3dLineColorbarTicklabelpositionOutsideLeft Scatter3dLineColorbarTicklabelposition = "outside left"
+ Scatter3dLineColorbarTicklabelpositionInsideLeft Scatter3dLineColorbarTicklabelposition = "inside left"
+ Scatter3dLineColorbarTicklabelpositionOutsideRight Scatter3dLineColorbarTicklabelposition = "outside right"
+ Scatter3dLineColorbarTicklabelpositionInsideRight Scatter3dLineColorbarTicklabelposition = "inside right"
Scatter3dLineColorbarTicklabelpositionOutsideBottom Scatter3dLineColorbarTicklabelposition = "outside bottom"
Scatter3dLineColorbarTicklabelpositionInsideBottom Scatter3dLineColorbarTicklabelposition = "inside bottom"
)
@@ -1837,7 +1976,7 @@ const (
Scatter3dLineColorbarTicksEmpty Scatter3dLineColorbarTicks = ""
)
-// Scatter3dLineColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// Scatter3dLineColorbarTitleSide 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.
type Scatter3dLineColorbarTitleSide string
const (
@@ -1846,7 +1985,7 @@ const (
Scatter3dLineColorbarTitleSideBottom Scatter3dLineColorbarTitleSide = "bottom"
)
-// Scatter3dLineColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// Scatter3dLineColorbarXanchor 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*.
type Scatter3dLineColorbarXanchor string
const (
@@ -1855,7 +1994,7 @@ const (
Scatter3dLineColorbarXanchorRight Scatter3dLineColorbarXanchor = "right"
)
-// Scatter3dLineColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// Scatter3dLineColorbarYanchor 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*.
type Scatter3dLineColorbarYanchor string
const (
@@ -1868,12 +2007,12 @@ const (
type Scatter3dLineDash string
const (
- Scatter3dLineDashSolid Scatter3dLineDash = "solid"
- Scatter3dLineDashDot Scatter3dLineDash = "dot"
Scatter3dLineDashDash Scatter3dLineDash = "dash"
- Scatter3dLineDashLongdash Scatter3dLineDash = "longdash"
Scatter3dLineDashDashdot Scatter3dLineDash = "dashdot"
+ Scatter3dLineDashDot Scatter3dLineDash = "dot"
+ Scatter3dLineDashLongdash Scatter3dLineDash = "longdash"
Scatter3dLineDashLongdashdot Scatter3dLineDash = "longdashdot"
+ Scatter3dLineDashSolid Scatter3dLineDash = "solid"
)
// Scatter3dMarkerColorbarExponentformat 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.
@@ -1884,7 +2023,7 @@ const (
Scatter3dMarkerColorbarExponentformatE1 Scatter3dMarkerColorbarExponentformat = "e"
Scatter3dMarkerColorbarExponentformatE2 Scatter3dMarkerColorbarExponentformat = "E"
Scatter3dMarkerColorbarExponentformatPower Scatter3dMarkerColorbarExponentformat = "power"
- Scatter3dMarkerColorbarExponentformatSi Scatter3dMarkerColorbarExponentformat = "SI"
+ Scatter3dMarkerColorbarExponentformatSI Scatter3dMarkerColorbarExponentformat = "SI"
Scatter3dMarkerColorbarExponentformatB Scatter3dMarkerColorbarExponentformat = "B"
)
@@ -1896,6 +2035,14 @@ const (
Scatter3dMarkerColorbarLenmodePixels Scatter3dMarkerColorbarLenmode = "pixels"
)
+// Scatter3dMarkerColorbarOrientation Sets the orientation of the colorbar.
+type Scatter3dMarkerColorbarOrientation string
+
+const (
+ Scatter3dMarkerColorbarOrientationH Scatter3dMarkerColorbarOrientation = "h"
+ Scatter3dMarkerColorbarOrientationV Scatter3dMarkerColorbarOrientation = "v"
+)
+
// Scatter3dMarkerColorbarShowexponent 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.
type Scatter3dMarkerColorbarShowexponent string
@@ -1934,7 +2081,16 @@ const (
Scatter3dMarkerColorbarThicknessmodePixels Scatter3dMarkerColorbarThicknessmode = "pixels"
)
-// Scatter3dMarkerColorbarTicklabelposition Determines where tick labels are drawn.
+// Scatter3dMarkerColorbarTicklabeloverflow 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*.
+type Scatter3dMarkerColorbarTicklabeloverflow string
+
+const (
+ Scatter3dMarkerColorbarTicklabeloverflowAllow Scatter3dMarkerColorbarTicklabeloverflow = "allow"
+ Scatter3dMarkerColorbarTicklabeloverflowHidePastDiv Scatter3dMarkerColorbarTicklabeloverflow = "hide past div"
+ Scatter3dMarkerColorbarTicklabeloverflowHidePastDomain Scatter3dMarkerColorbarTicklabeloverflow = "hide past domain"
+)
+
+// Scatter3dMarkerColorbarTicklabelposition 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*.
type Scatter3dMarkerColorbarTicklabelposition string
const (
@@ -1942,6 +2098,10 @@ const (
Scatter3dMarkerColorbarTicklabelpositionInside Scatter3dMarkerColorbarTicklabelposition = "inside"
Scatter3dMarkerColorbarTicklabelpositionOutsideTop Scatter3dMarkerColorbarTicklabelposition = "outside top"
Scatter3dMarkerColorbarTicklabelpositionInsideTop Scatter3dMarkerColorbarTicklabelposition = "inside top"
+ Scatter3dMarkerColorbarTicklabelpositionOutsideLeft Scatter3dMarkerColorbarTicklabelposition = "outside left"
+ Scatter3dMarkerColorbarTicklabelpositionInsideLeft Scatter3dMarkerColorbarTicklabelposition = "inside left"
+ Scatter3dMarkerColorbarTicklabelpositionOutsideRight Scatter3dMarkerColorbarTicklabelposition = "outside right"
+ Scatter3dMarkerColorbarTicklabelpositionInsideRight Scatter3dMarkerColorbarTicklabelposition = "inside right"
Scatter3dMarkerColorbarTicklabelpositionOutsideBottom Scatter3dMarkerColorbarTicklabelposition = "outside bottom"
Scatter3dMarkerColorbarTicklabelpositionInsideBottom Scatter3dMarkerColorbarTicklabelposition = "inside bottom"
)
@@ -1964,7 +2124,7 @@ const (
Scatter3dMarkerColorbarTicksEmpty Scatter3dMarkerColorbarTicks = ""
)
-// Scatter3dMarkerColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// Scatter3dMarkerColorbarTitleSide 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.
type Scatter3dMarkerColorbarTitleSide string
const (
@@ -1973,7 +2133,7 @@ const (
Scatter3dMarkerColorbarTitleSideBottom Scatter3dMarkerColorbarTitleSide = "bottom"
)
-// Scatter3dMarkerColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// Scatter3dMarkerColorbarXanchor 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*.
type Scatter3dMarkerColorbarXanchor string
const (
@@ -1982,7 +2142,7 @@ const (
Scatter3dMarkerColorbarXanchorRight Scatter3dMarkerColorbarXanchor = "right"
)
-// Scatter3dMarkerColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// Scatter3dMarkerColorbarYanchor 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*.
type Scatter3dMarkerColorbarYanchor string
const (
@@ -2005,11 +2165,11 @@ type Scatter3dMarkerSymbol string
const (
Scatter3dMarkerSymbolCircle Scatter3dMarkerSymbol = "circle"
Scatter3dMarkerSymbolCircleOpen Scatter3dMarkerSymbol = "circle-open"
- Scatter3dMarkerSymbolSquare Scatter3dMarkerSymbol = "square"
- Scatter3dMarkerSymbolSquareOpen Scatter3dMarkerSymbol = "square-open"
+ Scatter3dMarkerSymbolCross Scatter3dMarkerSymbol = "cross"
Scatter3dMarkerSymbolDiamond Scatter3dMarkerSymbol = "diamond"
Scatter3dMarkerSymbolDiamondOpen Scatter3dMarkerSymbol = "diamond-open"
- Scatter3dMarkerSymbolCross Scatter3dMarkerSymbol = "cross"
+ Scatter3dMarkerSymbolSquare Scatter3dMarkerSymbol = "square"
+ Scatter3dMarkerSymbolSquareOpen Scatter3dMarkerSymbol = "square-open"
Scatter3dMarkerSymbolX Scatter3dMarkerSymbol = "x"
)
@@ -2051,19 +2211,19 @@ var (
type Scatter3dXcalendar string
const (
- Scatter3dXcalendarGregorian Scatter3dXcalendar = "gregorian"
Scatter3dXcalendarChinese Scatter3dXcalendar = "chinese"
Scatter3dXcalendarCoptic Scatter3dXcalendar = "coptic"
Scatter3dXcalendarDiscworld Scatter3dXcalendar = "discworld"
Scatter3dXcalendarEthiopian Scatter3dXcalendar = "ethiopian"
+ Scatter3dXcalendarGregorian Scatter3dXcalendar = "gregorian"
Scatter3dXcalendarHebrew Scatter3dXcalendar = "hebrew"
Scatter3dXcalendarIslamic Scatter3dXcalendar = "islamic"
+ Scatter3dXcalendarJalali Scatter3dXcalendar = "jalali"
Scatter3dXcalendarJulian Scatter3dXcalendar = "julian"
Scatter3dXcalendarMayan Scatter3dXcalendar = "mayan"
Scatter3dXcalendarNanakshahi Scatter3dXcalendar = "nanakshahi"
Scatter3dXcalendarNepali Scatter3dXcalendar = "nepali"
Scatter3dXcalendarPersian Scatter3dXcalendar = "persian"
- Scatter3dXcalendarJalali Scatter3dXcalendar = "jalali"
Scatter3dXcalendarTaiwan Scatter3dXcalendar = "taiwan"
Scatter3dXcalendarThai Scatter3dXcalendar = "thai"
Scatter3dXcalendarUmmalqura Scatter3dXcalendar = "ummalqura"
@@ -2073,19 +2233,19 @@ const (
type Scatter3dYcalendar string
const (
- Scatter3dYcalendarGregorian Scatter3dYcalendar = "gregorian"
Scatter3dYcalendarChinese Scatter3dYcalendar = "chinese"
Scatter3dYcalendarCoptic Scatter3dYcalendar = "coptic"
Scatter3dYcalendarDiscworld Scatter3dYcalendar = "discworld"
Scatter3dYcalendarEthiopian Scatter3dYcalendar = "ethiopian"
+ Scatter3dYcalendarGregorian Scatter3dYcalendar = "gregorian"
Scatter3dYcalendarHebrew Scatter3dYcalendar = "hebrew"
Scatter3dYcalendarIslamic Scatter3dYcalendar = "islamic"
+ Scatter3dYcalendarJalali Scatter3dYcalendar = "jalali"
Scatter3dYcalendarJulian Scatter3dYcalendar = "julian"
Scatter3dYcalendarMayan Scatter3dYcalendar = "mayan"
Scatter3dYcalendarNanakshahi Scatter3dYcalendar = "nanakshahi"
Scatter3dYcalendarNepali Scatter3dYcalendar = "nepali"
Scatter3dYcalendarPersian Scatter3dYcalendar = "persian"
- Scatter3dYcalendarJalali Scatter3dYcalendar = "jalali"
Scatter3dYcalendarTaiwan Scatter3dYcalendar = "taiwan"
Scatter3dYcalendarThai Scatter3dYcalendar = "thai"
Scatter3dYcalendarUmmalqura Scatter3dYcalendar = "ummalqura"
@@ -2095,19 +2255,19 @@ const (
type Scatter3dZcalendar string
const (
- Scatter3dZcalendarGregorian Scatter3dZcalendar = "gregorian"
Scatter3dZcalendarChinese Scatter3dZcalendar = "chinese"
Scatter3dZcalendarCoptic Scatter3dZcalendar = "coptic"
Scatter3dZcalendarDiscworld Scatter3dZcalendar = "discworld"
Scatter3dZcalendarEthiopian Scatter3dZcalendar = "ethiopian"
+ Scatter3dZcalendarGregorian Scatter3dZcalendar = "gregorian"
Scatter3dZcalendarHebrew Scatter3dZcalendar = "hebrew"
Scatter3dZcalendarIslamic Scatter3dZcalendar = "islamic"
+ Scatter3dZcalendarJalali Scatter3dZcalendar = "jalali"
Scatter3dZcalendarJulian Scatter3dZcalendar = "julian"
Scatter3dZcalendarMayan Scatter3dZcalendar = "mayan"
Scatter3dZcalendarNanakshahi Scatter3dZcalendar = "nanakshahi"
Scatter3dZcalendarNepali Scatter3dZcalendar = "nepali"
Scatter3dZcalendarPersian Scatter3dZcalendar = "persian"
- Scatter3dZcalendarJalali Scatter3dZcalendar = "jalali"
Scatter3dZcalendarTaiwan Scatter3dZcalendar = "taiwan"
Scatter3dZcalendarThai Scatter3dZcalendar = "thai"
Scatter3dZcalendarUmmalqura Scatter3dZcalendar = "ummalqura"
diff --git a/graph_objects/scatter_gen.go b/generated/v2.19.0/graph_objects/scatter_gen.go
similarity index 81%
rename from graph_objects/scatter_gen.go
rename to generated/v2.19.0/graph_objects/scatter_gen.go
index 4c0f8dd..39ae389 100644
--- a/graph_objects/scatter_gen.go
+++ b/generated/v2.19.0/graph_objects/scatter_gen.go
@@ -15,6 +15,12 @@ type Scatter struct {
// is the type of the plot
Type TraceType `json:"type,omitempty"`
+ // Alignmentgroup
+ // 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"`
+
// Cliponaxis
// arrayOK: false
// type: boolean
@@ -36,7 +42,7 @@ type Scatter struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Dx
@@ -71,6 +77,10 @@ type Scatter struct {
// Sets the fill color. Defaults to a half-transparent variant of the line color, marker color, or marker line color, whichever is available.
Fillcolor Color `json:"fillcolor,omitempty"`
+ // Fillpattern
+ // role: Object
+ Fillpattern *ScatterFillpattern `json:"fillpattern,omitempty"`
+
// Groupnorm
// default:
// type: enumerated
@@ -86,7 +96,7 @@ type Scatter struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -102,13 +112,13 @@ type Scatter struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -120,7 +130,7 @@ type Scatter struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -132,7 +142,7 @@ type Scatter struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Legendgroup
@@ -141,6 +151,22 @@ type Scatter struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *ScatterLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Line
// role: Object
Line *ScatterLine `json:"line,omitempty"`
@@ -158,7 +184,7 @@ type Scatter struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Mode
@@ -173,6 +199,12 @@ type Scatter struct {
// Sets the trace name. The trace name appear as the legend item and on hover.
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"`
+
// Opacity
// arrayOK: false
// type: number
@@ -182,21 +214,9 @@ type Scatter struct {
// Orientation
// default: %!s()
// type: enumerated
- // Only relevant 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`.
+ // 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`.
Orientation ScatterOrientation `json:"orientation,omitempty"`
- // R
- // arrayOK: false
- // type: data_array
- // r coordinates in scatter traces are deprecated!Please switch to the *scatterpolar* trace type.Sets the radial coordinatesfor legacy polar chart only.
- R interface{} `json:"r,omitempty"`
-
- // Rsrc
- // arrayOK: false
- // type: string
- // Sets the source reference on Chart Studio Cloud for r .
- Rsrc String `json:"rsrc,omitempty"`
-
// Selected
// role: Object
Selected *ScatterSelected `json:"selected,omitempty"`
@@ -229,12 +249,6 @@ type Scatter struct {
// role: Object
Stream *ScatterStream `json:"stream,omitempty"`
- // T
- // arrayOK: false
- // type: data_array
- // t coordinates in scatter traces are deprecated!Please switch to the *scatterpolar* trace type.Sets the angular coordinatesfor legacy polar chart only.
- T interface{} `json:"t,omitempty"`
-
// Text
// arrayOK: true
// type: string
@@ -254,25 +268,25 @@ type Scatter struct {
// Textpositionsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for textposition .
+ // Sets the source reference on Chart Studio Cloud for `textposition`.
Textpositionsrc String `json:"textpositionsrc,omitempty"`
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
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-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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.
+ // 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"`
// Texttemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for texttemplate .
+ // Sets the source reference on Chart Studio Cloud for `texttemplate`.
Texttemplatesrc String `json:"texttemplatesrc,omitempty"`
// Transforms
@@ -281,12 +295,6 @@ type Scatter struct {
// just raise an issue before you start so we do not overlap
Transforms interface{} `json:"transforms,omitempty"`
- // Tsrc
- // arrayOK: false
- // type: string
- // Sets the source reference on Chart Studio Cloud for t .
- Tsrc String `json:"tsrc,omitempty"`
-
// Uid
// arrayOK: false
// type: string
@@ -333,6 +341,12 @@ type Scatter struct {
// Sets the calendar system to use with `x` date data.
Xcalendar ScatterXcalendar `json:"xcalendar,omitempty"`
+ // Xhoverformat
+ // 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"`
+
// Xperiod
// arrayOK: false
// type: any
@@ -354,7 +368,7 @@ type Scatter struct {
// Xsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for x .
+ // Sets the source reference on Chart Studio Cloud for `x`.
Xsrc String `json:"xsrc,omitempty"`
// Y
@@ -381,6 +395,12 @@ type Scatter struct {
// Sets the calendar system to use with `y` date data.
Ycalendar ScatterYcalendar `json:"ycalendar,omitempty"`
+ // Yhoverformat
+ // 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"`
+
// Yperiod
// arrayOK: false
// type: any
@@ -402,7 +422,7 @@ type Scatter struct {
// Ysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for y .
+ // Sets the source reference on Chart Studio Cloud for `y`.
Ysrc String `json:"ysrc,omitempty"`
}
@@ -424,13 +444,13 @@ type ScatterErrorX struct {
// Arrayminussrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for arrayminus .
+ // Sets the source reference on Chart Studio Cloud for `arrayminus`.
Arrayminussrc String `json:"arrayminussrc,omitempty"`
// Arraysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for array .
+ // Sets the source reference on Chart Studio Cloud for `array`.
Arraysrc String `json:"arraysrc,omitempty"`
// Color
@@ -518,13 +538,13 @@ type ScatterErrorY struct {
// Arrayminussrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for arrayminus .
+ // Sets the source reference on Chart Studio Cloud for `arrayminus`.
Arrayminussrc String `json:"arrayminussrc,omitempty"`
// Arraysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for array .
+ // Sets the source reference on Chart Studio Cloud for `array`.
Arraysrc String `json:"arraysrc,omitempty"`
// Color
@@ -588,6 +608,82 @@ type ScatterErrorY struct {
Width float64 `json:"width,omitempty"`
}
+// ScatterFillpattern Sets the pattern within the marker.
+type ScatterFillpattern struct {
+
+ // Bgcolor
+ // 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"`
+
+ // Bgcolorsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
+ 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"`
+
+ // Fgcolorsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `fgcolor`.
+ Fgcolorsrc String `json:"fgcolorsrc,omitempty"`
+
+ // Fgopacity
+ // arrayOK: false
+ // type: number
+ // Sets the opacity of the foreground pattern fill. Defaults to a 0.5 when `fillmode` is *overlay*. Otherwise, defaults to 1.
+ Fgopacity float64 `json:"fgopacity,omitempty"`
+
+ // Fillmode
+ // 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
+ // 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"`
+
+ // Shapesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `shape`.
+ 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"`
+
+ // Sizesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `size`.
+ 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"`
+
+ // Soliditysrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `solidity`.
+ Soliditysrc String `json:"soliditysrc,omitempty"`
+}
+
// ScatterHoverlabelFont Sets the font used in hover labels.
type ScatterHoverlabelFont struct {
@@ -600,7 +696,7 @@ type ScatterHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -612,7 +708,7 @@ type ScatterHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -624,7 +720,7 @@ type ScatterHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -640,7 +736,7 @@ type ScatterHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -652,7 +748,7 @@ type ScatterHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -664,7 +760,7 @@ type ScatterHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -680,13 +776,61 @@ type ScatterHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// ScatterLegendgrouptitleFont Sets this legend group's title font.
+type ScatterLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// ScatterLegendgrouptitle
+type ScatterLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *ScatterLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// ScatterLine
type ScatterLine struct {
+ // Backoff
+ // 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"`
+
+ // Backoffsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `backoff`.
+ Backoffsrc String `json:"backoffsrc,omitempty"`
+
// Color
// arrayOK: false
// type: color
@@ -776,9 +920,9 @@ type ScatterMarkerColorbarTitle struct {
Font *ScatterMarkerColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side ScatterMarkerColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -821,6 +965,12 @@ type ScatterMarkerColorbar struct {
// 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.
Exponentformat ScatterMarkerColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -845,6 +995,12 @@ type ScatterMarkerColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation ScatterMarkerColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -924,7 +1080,7 @@ type ScatterMarkerColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -933,12 +1089,24 @@ type ScatterMarkerColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition ScatterMarkerColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -978,7 +1146,7 @@ type ScatterMarkerColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -990,7 +1158,7 @@ type ScatterMarkerColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -1006,13 +1174,13 @@ type ScatterMarkerColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor ScatterMarkerColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -1024,13 +1192,13 @@ type ScatterMarkerColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor ScatterMarkerColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -1052,7 +1220,7 @@ type ScatterMarkerGradient struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Type
@@ -1064,7 +1232,7 @@ type ScatterMarkerGradient struct {
// Typesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for type .
+ // Sets the source reference on Chart Studio Cloud for `type`.
Typesrc String `json:"typesrc,omitempty"`
}
@@ -1074,37 +1242,37 @@ type ScatterMarkerLine struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color`is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color` is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarker.linecolor. 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.
+ // 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"`
// Coloraxis
@@ -1116,19 +1284,19 @@ type ScatterMarkerLine struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.line.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.line.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.line.color`is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.line.color` is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Width
@@ -1140,47 +1308,65 @@ type ScatterMarkerLine struct {
// Widthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for width .
+ // Sets the source reference on Chart Studio Cloud for `width`.
Widthsrc String `json:"widthsrc,omitempty"`
}
// ScatterMarker
type ScatterMarker struct {
+ // Angle
+ // arrayOK: true
+ // type: angle
+ // Sets the marker angle in respect to `angleref`.
+ Angle float64 `json:"angle,omitempty"`
+
+ // Angleref
+ // 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.
+ Angleref ScatterMarkerAngleref `json:"angleref,omitempty"`
+
+ // Anglesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `angle`.
+ Anglesrc String `json:"anglesrc,omitempty"`
+
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color` is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarkercolor. 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.
+ // 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"`
// Coloraxis
@@ -1196,13 +1382,13 @@ type ScatterMarker struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Gradient
@@ -1228,19 +1414,19 @@ type ScatterMarker struct {
// Opacitysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for opacity .
+ // Sets the source reference on Chart Studio Cloud for `opacity`.
Opacitysrc String `json:"opacitysrc,omitempty"`
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.color`is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.color` is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Showscale
// arrayOK: false
// type: boolean
- // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array.
+ // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color` is set to a numerical array.
Showscale Bool `json:"showscale,omitempty"`
// Size
@@ -1270,9 +1456,21 @@ type ScatterMarker struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
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"`
+
+ // Standoffsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `standoff`.
+ Standoffsrc String `json:"standoffsrc,omitempty"`
+
// Symbol
// default: circle
// type: enumerated
@@ -1282,7 +1480,7 @@ type ScatterMarker struct {
// Symbolsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for symbol .
+ // Sets the source reference on Chart Studio Cloud for `symbol`.
Symbolsrc String `json:"symbolsrc,omitempty"`
}
@@ -1358,7 +1556,7 @@ type ScatterTextfont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -1370,7 +1568,7 @@ type ScatterTextfont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -1382,7 +1580,7 @@ type ScatterTextfont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -1463,6 +1661,28 @@ const (
ScatterFillTonext ScatterFill = "tonext"
)
+// ScatterFillpatternFillmode Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`.
+type ScatterFillpatternFillmode string
+
+const (
+ ScatterFillpatternFillmodeReplace ScatterFillpatternFillmode = "replace"
+ ScatterFillpatternFillmodeOverlay ScatterFillpatternFillmode = "overlay"
+)
+
+// ScatterFillpatternShape Sets the shape of the pattern fill. By default, no pattern is used for filling the area.
+type ScatterFillpatternShape string
+
+const (
+ ScatterFillpatternShapeEmpty ScatterFillpatternShape = ""
+ ScatterFillpatternShapeSlash ScatterFillpatternShape = "/"
+ ScatterFillpatternShapeDoublebackslash ScatterFillpatternShape = "\\"
+ ScatterFillpatternShapeX ScatterFillpatternShape = "x"
+ ScatterFillpatternShapeHyphenHyphen ScatterFillpatternShape = "-"
+ ScatterFillpatternShapeOr ScatterFillpatternShape = "|"
+ ScatterFillpatternShapePlus ScatterFillpatternShape = "+"
+ ScatterFillpatternShapeDot ScatterFillpatternShape = "."
+)
+
// ScatterGroupnorm 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.
type ScatterGroupnorm string
@@ -1493,6 +1713,14 @@ const (
ScatterLineShapeVhv ScatterLineShape = "vhv"
)
+// ScatterMarkerAngleref 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.
+type ScatterMarkerAngleref string
+
+const (
+ ScatterMarkerAnglerefPrevious ScatterMarkerAngleref = "previous"
+ ScatterMarkerAnglerefUp ScatterMarkerAngleref = "up"
+)
+
// ScatterMarkerColorbarExponentformat 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.
type ScatterMarkerColorbarExponentformat string
@@ -1501,7 +1729,7 @@ const (
ScatterMarkerColorbarExponentformatE1 ScatterMarkerColorbarExponentformat = "e"
ScatterMarkerColorbarExponentformatE2 ScatterMarkerColorbarExponentformat = "E"
ScatterMarkerColorbarExponentformatPower ScatterMarkerColorbarExponentformat = "power"
- ScatterMarkerColorbarExponentformatSi ScatterMarkerColorbarExponentformat = "SI"
+ ScatterMarkerColorbarExponentformatSI ScatterMarkerColorbarExponentformat = "SI"
ScatterMarkerColorbarExponentformatB ScatterMarkerColorbarExponentformat = "B"
)
@@ -1513,6 +1741,14 @@ const (
ScatterMarkerColorbarLenmodePixels ScatterMarkerColorbarLenmode = "pixels"
)
+// ScatterMarkerColorbarOrientation Sets the orientation of the colorbar.
+type ScatterMarkerColorbarOrientation string
+
+const (
+ ScatterMarkerColorbarOrientationH ScatterMarkerColorbarOrientation = "h"
+ ScatterMarkerColorbarOrientationV ScatterMarkerColorbarOrientation = "v"
+)
+
// ScatterMarkerColorbarShowexponent 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.
type ScatterMarkerColorbarShowexponent string
@@ -1551,7 +1787,16 @@ const (
ScatterMarkerColorbarThicknessmodePixels ScatterMarkerColorbarThicknessmode = "pixels"
)
-// ScatterMarkerColorbarTicklabelposition Determines where tick labels are drawn.
+// ScatterMarkerColorbarTicklabeloverflow 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*.
+type ScatterMarkerColorbarTicklabeloverflow string
+
+const (
+ ScatterMarkerColorbarTicklabeloverflowAllow ScatterMarkerColorbarTicklabeloverflow = "allow"
+ ScatterMarkerColorbarTicklabeloverflowHidePastDiv ScatterMarkerColorbarTicklabeloverflow = "hide past div"
+ ScatterMarkerColorbarTicklabeloverflowHidePastDomain ScatterMarkerColorbarTicklabeloverflow = "hide past domain"
+)
+
+// ScatterMarkerColorbarTicklabelposition 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*.
type ScatterMarkerColorbarTicklabelposition string
const (
@@ -1559,6 +1804,10 @@ const (
ScatterMarkerColorbarTicklabelpositionInside ScatterMarkerColorbarTicklabelposition = "inside"
ScatterMarkerColorbarTicklabelpositionOutsideTop ScatterMarkerColorbarTicklabelposition = "outside top"
ScatterMarkerColorbarTicklabelpositionInsideTop ScatterMarkerColorbarTicklabelposition = "inside top"
+ ScatterMarkerColorbarTicklabelpositionOutsideLeft ScatterMarkerColorbarTicklabelposition = "outside left"
+ ScatterMarkerColorbarTicklabelpositionInsideLeft ScatterMarkerColorbarTicklabelposition = "inside left"
+ ScatterMarkerColorbarTicklabelpositionOutsideRight ScatterMarkerColorbarTicklabelposition = "outside right"
+ ScatterMarkerColorbarTicklabelpositionInsideRight ScatterMarkerColorbarTicklabelposition = "inside right"
ScatterMarkerColorbarTicklabelpositionOutsideBottom ScatterMarkerColorbarTicklabelposition = "outside bottom"
ScatterMarkerColorbarTicklabelpositionInsideBottom ScatterMarkerColorbarTicklabelposition = "inside bottom"
)
@@ -1581,7 +1830,7 @@ const (
ScatterMarkerColorbarTicksEmpty ScatterMarkerColorbarTicks = ""
)
-// ScatterMarkerColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// ScatterMarkerColorbarTitleSide 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.
type ScatterMarkerColorbarTitleSide string
const (
@@ -1590,7 +1839,7 @@ const (
ScatterMarkerColorbarTitleSideBottom ScatterMarkerColorbarTitleSide = "bottom"
)
-// ScatterMarkerColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// ScatterMarkerColorbarXanchor 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*.
type ScatterMarkerColorbarXanchor string
const (
@@ -1599,7 +1848,7 @@ const (
ScatterMarkerColorbarXanchorRight ScatterMarkerColorbarXanchor = "right"
)
-// ScatterMarkerColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// ScatterMarkerColorbarYanchor 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*.
type ScatterMarkerColorbarYanchor string
const (
@@ -2104,9 +2353,21 @@ var (
ScatterMarkerSymbolNumber152 ScatterMarkerSymbol = 152
ScatterMarkerSymbol152 ScatterMarkerSymbol = "152"
ScatterMarkerSymbolArrowBarRightOpen ScatterMarkerSymbol = "arrow-bar-right-open"
+ ScatterMarkerSymbolNumber53 ScatterMarkerSymbol = 53
+ ScatterMarkerSymbol53 ScatterMarkerSymbol = "53"
+ ScatterMarkerSymbolArrow ScatterMarkerSymbol = "arrow"
+ ScatterMarkerSymbolNumber153 ScatterMarkerSymbol = 153
+ ScatterMarkerSymbol153 ScatterMarkerSymbol = "153"
+ ScatterMarkerSymbolArrowOpen ScatterMarkerSymbol = "arrow-open"
+ ScatterMarkerSymbolNumber54 ScatterMarkerSymbol = 54
+ ScatterMarkerSymbol54 ScatterMarkerSymbol = "54"
+ ScatterMarkerSymbolArrowWide ScatterMarkerSymbol = "arrow-wide"
+ ScatterMarkerSymbolNumber154 ScatterMarkerSymbol = 154
+ ScatterMarkerSymbol154 ScatterMarkerSymbol = "154"
+ ScatterMarkerSymbolArrowWideOpen ScatterMarkerSymbol = "arrow-wide-open"
)
-// ScatterOrientation Only relevant 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`.
+// ScatterOrientation 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`.
type ScatterOrientation string
const (
@@ -2150,19 +2411,19 @@ var (
type ScatterXcalendar string
const (
- ScatterXcalendarGregorian ScatterXcalendar = "gregorian"
ScatterXcalendarChinese ScatterXcalendar = "chinese"
ScatterXcalendarCoptic ScatterXcalendar = "coptic"
ScatterXcalendarDiscworld ScatterXcalendar = "discworld"
ScatterXcalendarEthiopian ScatterXcalendar = "ethiopian"
+ ScatterXcalendarGregorian ScatterXcalendar = "gregorian"
ScatterXcalendarHebrew ScatterXcalendar = "hebrew"
ScatterXcalendarIslamic ScatterXcalendar = "islamic"
+ ScatterXcalendarJalali ScatterXcalendar = "jalali"
ScatterXcalendarJulian ScatterXcalendar = "julian"
ScatterXcalendarMayan ScatterXcalendar = "mayan"
ScatterXcalendarNanakshahi ScatterXcalendar = "nanakshahi"
ScatterXcalendarNepali ScatterXcalendar = "nepali"
ScatterXcalendarPersian ScatterXcalendar = "persian"
- ScatterXcalendarJalali ScatterXcalendar = "jalali"
ScatterXcalendarTaiwan ScatterXcalendar = "taiwan"
ScatterXcalendarThai ScatterXcalendar = "thai"
ScatterXcalendarUmmalqura ScatterXcalendar = "ummalqura"
@@ -2181,19 +2442,19 @@ const (
type ScatterYcalendar string
const (
- ScatterYcalendarGregorian ScatterYcalendar = "gregorian"
ScatterYcalendarChinese ScatterYcalendar = "chinese"
ScatterYcalendarCoptic ScatterYcalendar = "coptic"
ScatterYcalendarDiscworld ScatterYcalendar = "discworld"
ScatterYcalendarEthiopian ScatterYcalendar = "ethiopian"
+ ScatterYcalendarGregorian ScatterYcalendar = "gregorian"
ScatterYcalendarHebrew ScatterYcalendar = "hebrew"
ScatterYcalendarIslamic ScatterYcalendar = "islamic"
+ ScatterYcalendarJalali ScatterYcalendar = "jalali"
ScatterYcalendarJulian ScatterYcalendar = "julian"
ScatterYcalendarMayan ScatterYcalendar = "mayan"
ScatterYcalendarNanakshahi ScatterYcalendar = "nanakshahi"
ScatterYcalendarNepali ScatterYcalendar = "nepali"
ScatterYcalendarPersian ScatterYcalendar = "persian"
- ScatterYcalendarJalali ScatterYcalendar = "jalali"
ScatterYcalendarTaiwan ScatterYcalendar = "taiwan"
ScatterYcalendarThai ScatterYcalendar = "thai"
ScatterYcalendarUmmalqura ScatterYcalendar = "ummalqura"
diff --git a/graph_objects/scattercarpet_gen.go b/generated/v2.19.0/graph_objects/scattercarpet_gen.go
similarity index 84%
rename from graph_objects/scattercarpet_gen.go
rename to generated/v2.19.0/graph_objects/scattercarpet_gen.go
index bcdc9cd..5cb4deb 100644
--- a/graph_objects/scattercarpet_gen.go
+++ b/generated/v2.19.0/graph_objects/scattercarpet_gen.go
@@ -24,7 +24,7 @@ type Scattercarpet struct {
// Asrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for a .
+ // Sets the source reference on Chart Studio Cloud for `a`.
Asrc String `json:"asrc,omitempty"`
// B
@@ -36,7 +36,7 @@ type Scattercarpet struct {
// Bsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for b .
+ // Sets the source reference on Chart Studio Cloud for `b`.
Bsrc String `json:"bsrc,omitempty"`
// Carpet
@@ -60,7 +60,7 @@ type Scattercarpet struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Fill
@@ -84,7 +84,7 @@ type Scattercarpet struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -100,13 +100,13 @@ type Scattercarpet struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -118,7 +118,7 @@ type Scattercarpet struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -130,7 +130,7 @@ type Scattercarpet struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Legendgroup
@@ -139,6 +139,22 @@ type Scattercarpet struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *ScattercarpetLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Line
// role: Object
Line *ScattercarpetLine `json:"line,omitempty"`
@@ -156,7 +172,7 @@ type Scattercarpet struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Mode
@@ -216,25 +232,25 @@ type Scattercarpet struct {
// Textpositionsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for textposition .
+ // Sets the source reference on Chart Studio Cloud for `textposition`.
Textpositionsrc String `json:"textpositionsrc,omitempty"`
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
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-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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`.
+ // 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"`
// Texttemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for texttemplate .
+ // Sets the source reference on Chart Studio Cloud for `texttemplate`.
Texttemplatesrc String `json:"texttemplatesrc,omitempty"`
// Transforms
@@ -290,7 +306,7 @@ type ScattercarpetHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -302,7 +318,7 @@ type ScattercarpetHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -314,7 +330,7 @@ type ScattercarpetHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -330,7 +346,7 @@ type ScattercarpetHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -342,7 +358,7 @@ type ScattercarpetHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -354,7 +370,7 @@ type ScattercarpetHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -370,13 +386,61 @@ type ScattercarpetHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// ScattercarpetLegendgrouptitleFont Sets this legend group's title font.
+type ScattercarpetLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// ScattercarpetLegendgrouptitle
+type ScattercarpetLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *ScattercarpetLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// ScattercarpetLine
type ScattercarpetLine struct {
+ // Backoff
+ // 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"`
+
+ // Backoffsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `backoff`.
+ Backoffsrc String `json:"backoffsrc,omitempty"`
+
// Color
// arrayOK: false
// type: color
@@ -460,9 +524,9 @@ type ScattercarpetMarkerColorbarTitle struct {
Font *ScattercarpetMarkerColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side ScattercarpetMarkerColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -505,6 +569,12 @@ type ScattercarpetMarkerColorbar struct {
// 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.
Exponentformat ScattercarpetMarkerColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -529,6 +599,12 @@ type ScattercarpetMarkerColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation ScattercarpetMarkerColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -608,7 +684,7 @@ type ScattercarpetMarkerColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -617,12 +693,24 @@ type ScattercarpetMarkerColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition ScattercarpetMarkerColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -662,7 +750,7 @@ type ScattercarpetMarkerColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -674,7 +762,7 @@ type ScattercarpetMarkerColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -690,13 +778,13 @@ type ScattercarpetMarkerColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor ScattercarpetMarkerColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -708,13 +796,13 @@ type ScattercarpetMarkerColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor ScattercarpetMarkerColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -736,7 +824,7 @@ type ScattercarpetMarkerGradient struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Type
@@ -748,7 +836,7 @@ type ScattercarpetMarkerGradient struct {
// Typesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for type .
+ // Sets the source reference on Chart Studio Cloud for `type`.
Typesrc String `json:"typesrc,omitempty"`
}
@@ -758,37 +846,37 @@ type ScattercarpetMarkerLine struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color`is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color` is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarker.linecolor. 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.
+ // 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"`
// Coloraxis
@@ -800,19 +888,19 @@ type ScattercarpetMarkerLine struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.line.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.line.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.line.color`is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.line.color` is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Width
@@ -824,47 +912,65 @@ type ScattercarpetMarkerLine struct {
// Widthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for width .
+ // Sets the source reference on Chart Studio Cloud for `width`.
Widthsrc String `json:"widthsrc,omitempty"`
}
// ScattercarpetMarker
type ScattercarpetMarker struct {
+ // Angle
+ // arrayOK: true
+ // type: angle
+ // Sets the marker angle in respect to `angleref`.
+ Angle float64 `json:"angle,omitempty"`
+
+ // Angleref
+ // 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.
+ Angleref ScattercarpetMarkerAngleref `json:"angleref,omitempty"`
+
+ // Anglesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `angle`.
+ Anglesrc String `json:"anglesrc,omitempty"`
+
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color` is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarkercolor. 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.
+ // 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"`
// Coloraxis
@@ -880,13 +986,13 @@ type ScattercarpetMarker struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Gradient
@@ -912,19 +1018,19 @@ type ScattercarpetMarker struct {
// Opacitysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for opacity .
+ // Sets the source reference on Chart Studio Cloud for `opacity`.
Opacitysrc String `json:"opacitysrc,omitempty"`
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.color`is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.color` is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Showscale
// arrayOK: false
// type: boolean
- // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array.
+ // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color` is set to a numerical array.
Showscale Bool `json:"showscale,omitempty"`
// Size
@@ -954,9 +1060,21 @@ type ScattercarpetMarker struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
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"`
+
+ // Standoffsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `standoff`.
+ Standoffsrc String `json:"standoffsrc,omitempty"`
+
// Symbol
// default: circle
// type: enumerated
@@ -966,7 +1084,7 @@ type ScattercarpetMarker struct {
// Symbolsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for symbol .
+ // Sets the source reference on Chart Studio Cloud for `symbol`.
Symbolsrc String `json:"symbolsrc,omitempty"`
}
@@ -1042,7 +1160,7 @@ type ScattercarpetTextfont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -1054,7 +1172,7 @@ type ScattercarpetTextfont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -1066,7 +1184,7 @@ type ScattercarpetTextfont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -1140,6 +1258,14 @@ const (
ScattercarpetLineShapeSpline ScattercarpetLineShape = "spline"
)
+// ScattercarpetMarkerAngleref 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.
+type ScattercarpetMarkerAngleref string
+
+const (
+ ScattercarpetMarkerAnglerefPrevious ScattercarpetMarkerAngleref = "previous"
+ ScattercarpetMarkerAnglerefUp ScattercarpetMarkerAngleref = "up"
+)
+
// ScattercarpetMarkerColorbarExponentformat 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.
type ScattercarpetMarkerColorbarExponentformat string
@@ -1148,7 +1274,7 @@ const (
ScattercarpetMarkerColorbarExponentformatE1 ScattercarpetMarkerColorbarExponentformat = "e"
ScattercarpetMarkerColorbarExponentformatE2 ScattercarpetMarkerColorbarExponentformat = "E"
ScattercarpetMarkerColorbarExponentformatPower ScattercarpetMarkerColorbarExponentformat = "power"
- ScattercarpetMarkerColorbarExponentformatSi ScattercarpetMarkerColorbarExponentformat = "SI"
+ ScattercarpetMarkerColorbarExponentformatSI ScattercarpetMarkerColorbarExponentformat = "SI"
ScattercarpetMarkerColorbarExponentformatB ScattercarpetMarkerColorbarExponentformat = "B"
)
@@ -1160,6 +1286,14 @@ const (
ScattercarpetMarkerColorbarLenmodePixels ScattercarpetMarkerColorbarLenmode = "pixels"
)
+// ScattercarpetMarkerColorbarOrientation Sets the orientation of the colorbar.
+type ScattercarpetMarkerColorbarOrientation string
+
+const (
+ ScattercarpetMarkerColorbarOrientationH ScattercarpetMarkerColorbarOrientation = "h"
+ ScattercarpetMarkerColorbarOrientationV ScattercarpetMarkerColorbarOrientation = "v"
+)
+
// ScattercarpetMarkerColorbarShowexponent 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.
type ScattercarpetMarkerColorbarShowexponent string
@@ -1198,7 +1332,16 @@ const (
ScattercarpetMarkerColorbarThicknessmodePixels ScattercarpetMarkerColorbarThicknessmode = "pixels"
)
-// ScattercarpetMarkerColorbarTicklabelposition Determines where tick labels are drawn.
+// ScattercarpetMarkerColorbarTicklabeloverflow 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*.
+type ScattercarpetMarkerColorbarTicklabeloverflow string
+
+const (
+ ScattercarpetMarkerColorbarTicklabeloverflowAllow ScattercarpetMarkerColorbarTicklabeloverflow = "allow"
+ ScattercarpetMarkerColorbarTicklabeloverflowHidePastDiv ScattercarpetMarkerColorbarTicklabeloverflow = "hide past div"
+ ScattercarpetMarkerColorbarTicklabeloverflowHidePastDomain ScattercarpetMarkerColorbarTicklabeloverflow = "hide past domain"
+)
+
+// ScattercarpetMarkerColorbarTicklabelposition 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*.
type ScattercarpetMarkerColorbarTicklabelposition string
const (
@@ -1206,6 +1349,10 @@ const (
ScattercarpetMarkerColorbarTicklabelpositionInside ScattercarpetMarkerColorbarTicklabelposition = "inside"
ScattercarpetMarkerColorbarTicklabelpositionOutsideTop ScattercarpetMarkerColorbarTicklabelposition = "outside top"
ScattercarpetMarkerColorbarTicklabelpositionInsideTop ScattercarpetMarkerColorbarTicklabelposition = "inside top"
+ ScattercarpetMarkerColorbarTicklabelpositionOutsideLeft ScattercarpetMarkerColorbarTicklabelposition = "outside left"
+ ScattercarpetMarkerColorbarTicklabelpositionInsideLeft ScattercarpetMarkerColorbarTicklabelposition = "inside left"
+ ScattercarpetMarkerColorbarTicklabelpositionOutsideRight ScattercarpetMarkerColorbarTicklabelposition = "outside right"
+ ScattercarpetMarkerColorbarTicklabelpositionInsideRight ScattercarpetMarkerColorbarTicklabelposition = "inside right"
ScattercarpetMarkerColorbarTicklabelpositionOutsideBottom ScattercarpetMarkerColorbarTicklabelposition = "outside bottom"
ScattercarpetMarkerColorbarTicklabelpositionInsideBottom ScattercarpetMarkerColorbarTicklabelposition = "inside bottom"
)
@@ -1228,7 +1375,7 @@ const (
ScattercarpetMarkerColorbarTicksEmpty ScattercarpetMarkerColorbarTicks = ""
)
-// ScattercarpetMarkerColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// ScattercarpetMarkerColorbarTitleSide 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.
type ScattercarpetMarkerColorbarTitleSide string
const (
@@ -1237,7 +1384,7 @@ const (
ScattercarpetMarkerColorbarTitleSideBottom ScattercarpetMarkerColorbarTitleSide = "bottom"
)
-// ScattercarpetMarkerColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// ScattercarpetMarkerColorbarXanchor 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*.
type ScattercarpetMarkerColorbarXanchor string
const (
@@ -1246,7 +1393,7 @@ const (
ScattercarpetMarkerColorbarXanchorRight ScattercarpetMarkerColorbarXanchor = "right"
)
-// ScattercarpetMarkerColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// ScattercarpetMarkerColorbarYanchor 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*.
type ScattercarpetMarkerColorbarYanchor string
const (
@@ -1751,6 +1898,18 @@ var (
ScattercarpetMarkerSymbolNumber152 ScattercarpetMarkerSymbol = 152
ScattercarpetMarkerSymbol152 ScattercarpetMarkerSymbol = "152"
ScattercarpetMarkerSymbolArrowBarRightOpen ScattercarpetMarkerSymbol = "arrow-bar-right-open"
+ ScattercarpetMarkerSymbolNumber53 ScattercarpetMarkerSymbol = 53
+ ScattercarpetMarkerSymbol53 ScattercarpetMarkerSymbol = "53"
+ ScattercarpetMarkerSymbolArrow ScattercarpetMarkerSymbol = "arrow"
+ ScattercarpetMarkerSymbolNumber153 ScattercarpetMarkerSymbol = 153
+ ScattercarpetMarkerSymbol153 ScattercarpetMarkerSymbol = "153"
+ ScattercarpetMarkerSymbolArrowOpen ScattercarpetMarkerSymbol = "arrow-open"
+ ScattercarpetMarkerSymbolNumber54 ScattercarpetMarkerSymbol = 54
+ ScattercarpetMarkerSymbol54 ScattercarpetMarkerSymbol = "54"
+ ScattercarpetMarkerSymbolArrowWide ScattercarpetMarkerSymbol = "arrow-wide"
+ ScattercarpetMarkerSymbolNumber154 ScattercarpetMarkerSymbol = 154
+ ScattercarpetMarkerSymbol154 ScattercarpetMarkerSymbol = "154"
+ ScattercarpetMarkerSymbolArrowWideOpen ScattercarpetMarkerSymbol = "arrow-wide-open"
)
// ScattercarpetTextposition Sets the positions of the `text` elements with respects to the (x,y) coordinates.
diff --git a/graph_objects/scattergeo_gen.go b/generated/v2.19.0/graph_objects/scattergeo_gen.go
similarity index 83%
rename from graph_objects/scattergeo_gen.go
rename to generated/v2.19.0/graph_objects/scattergeo_gen.go
index 698f1d6..9a345e7 100644
--- a/graph_objects/scattergeo_gen.go
+++ b/generated/v2.19.0/graph_objects/scattergeo_gen.go
@@ -30,7 +30,7 @@ type Scattergeo struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Featureidkey
@@ -72,7 +72,7 @@ type Scattergeo struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -82,13 +82,13 @@ type Scattergeo struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -100,7 +100,7 @@ type Scattergeo struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -112,7 +112,7 @@ type Scattergeo struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Lat
@@ -124,7 +124,7 @@ type Scattergeo struct {
// Latsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for lat .
+ // Sets the source reference on Chart Studio Cloud for `lat`.
Latsrc String `json:"latsrc,omitempty"`
// Legendgroup
@@ -133,6 +133,22 @@ type Scattergeo struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *ScattergeoLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Line
// role: Object
Line *ScattergeoLine `json:"line,omitempty"`
@@ -152,7 +168,7 @@ type Scattergeo struct {
// Locationssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for locations .
+ // Sets the source reference on Chart Studio Cloud for `locations`.
Locationssrc String `json:"locationssrc,omitempty"`
// Lon
@@ -164,7 +180,7 @@ type Scattergeo struct {
// Lonsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for lon .
+ // Sets the source reference on Chart Studio Cloud for `lon`.
Lonsrc String `json:"lonsrc,omitempty"`
// Marker
@@ -180,7 +196,7 @@ type Scattergeo struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Mode
@@ -240,25 +256,25 @@ type Scattergeo struct {
// Textpositionsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for textposition .
+ // Sets the source reference on Chart Studio Cloud for `textposition`.
Textpositionsrc String `json:"textpositionsrc,omitempty"`
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
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-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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`.
+ // 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"`
// Texttemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for texttemplate .
+ // Sets the source reference on Chart Studio Cloud for `texttemplate`.
Texttemplatesrc String `json:"texttemplatesrc,omitempty"`
// Transforms
@@ -302,7 +318,7 @@ type ScattergeoHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -314,7 +330,7 @@ type ScattergeoHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -326,7 +342,7 @@ type ScattergeoHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -342,7 +358,7 @@ type ScattergeoHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -354,7 +370,7 @@ type ScattergeoHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -366,7 +382,7 @@ type ScattergeoHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -382,10 +398,46 @@ type ScattergeoHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// ScattergeoLegendgrouptitleFont Sets this legend group's title font.
+type ScattergeoLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// ScattergeoLegendgrouptitle
+type ScattergeoLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *ScattergeoLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// ScattergeoLine
type ScattergeoLine struct {
@@ -460,9 +512,9 @@ type ScattergeoMarkerColorbarTitle struct {
Font *ScattergeoMarkerColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side ScattergeoMarkerColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -505,6 +557,12 @@ type ScattergeoMarkerColorbar struct {
// 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.
Exponentformat ScattergeoMarkerColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -529,6 +587,12 @@ type ScattergeoMarkerColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation ScattergeoMarkerColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -608,7 +672,7 @@ type ScattergeoMarkerColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -617,12 +681,24 @@ type ScattergeoMarkerColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition ScattergeoMarkerColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -662,7 +738,7 @@ type ScattergeoMarkerColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -674,7 +750,7 @@ type ScattergeoMarkerColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -690,13 +766,13 @@ type ScattergeoMarkerColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor ScattergeoMarkerColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -708,13 +784,13 @@ type ScattergeoMarkerColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor ScattergeoMarkerColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -736,7 +812,7 @@ type ScattergeoMarkerGradient struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Type
@@ -748,7 +824,7 @@ type ScattergeoMarkerGradient struct {
// Typesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for type .
+ // Sets the source reference on Chart Studio Cloud for `type`.
Typesrc String `json:"typesrc,omitempty"`
}
@@ -758,37 +834,37 @@ type ScattergeoMarkerLine struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color`is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color` is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarker.linecolor. 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.
+ // 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"`
// Coloraxis
@@ -800,19 +876,19 @@ type ScattergeoMarkerLine struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.line.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.line.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.line.color`is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.line.color` is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Width
@@ -824,47 +900,65 @@ type ScattergeoMarkerLine struct {
// Widthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for width .
+ // Sets the source reference on Chart Studio Cloud for `width`.
Widthsrc String `json:"widthsrc,omitempty"`
}
// ScattergeoMarker
type ScattergeoMarker struct {
+ // Angle
+ // arrayOK: true
+ // type: angle
+ // Sets the marker angle in respect to `angleref`.
+ Angle float64 `json:"angle,omitempty"`
+
+ // Angleref
+ // 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.
+ Angleref ScattergeoMarkerAngleref `json:"angleref,omitempty"`
+
+ // Anglesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `angle`.
+ Anglesrc String `json:"anglesrc,omitempty"`
+
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color` is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarkercolor. 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.
+ // 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"`
// Coloraxis
@@ -880,13 +974,13 @@ type ScattergeoMarker struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Gradient
@@ -906,19 +1000,19 @@ type ScattergeoMarker struct {
// Opacitysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for opacity .
+ // Sets the source reference on Chart Studio Cloud for `opacity`.
Opacitysrc String `json:"opacitysrc,omitempty"`
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.color`is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.color` is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Showscale
// arrayOK: false
// type: boolean
- // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array.
+ // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color` is set to a numerical array.
Showscale Bool `json:"showscale,omitempty"`
// Size
@@ -948,9 +1042,21 @@ type ScattergeoMarker struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
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"`
+
+ // Standoffsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `standoff`.
+ Standoffsrc String `json:"standoffsrc,omitempty"`
+
// Symbol
// default: circle
// type: enumerated
@@ -960,7 +1066,7 @@ type ScattergeoMarker struct {
// Symbolsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for symbol .
+ // Sets the source reference on Chart Studio Cloud for `symbol`.
Symbolsrc String `json:"symbolsrc,omitempty"`
}
@@ -1036,7 +1142,7 @@ type ScattergeoTextfont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -1048,7 +1154,7 @@ type ScattergeoTextfont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -1060,7 +1166,7 @@ type ScattergeoTextfont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -1129,12 +1235,21 @@ const (
type ScattergeoLocationmode string
const (
- ScattergeoLocationmodeIso3 ScattergeoLocationmode = "ISO-3"
- ScattergeoLocationmodeUsaStates ScattergeoLocationmode = "USA-states"
+ ScattergeoLocationmodeISO3 ScattergeoLocationmode = "ISO-3"
+ ScattergeoLocationmodeUSAStates ScattergeoLocationmode = "USA-states"
ScattergeoLocationmodeCountryNames ScattergeoLocationmode = "country names"
ScattergeoLocationmodeGeojsonId ScattergeoLocationmode = "geojson-id"
)
+// ScattergeoMarkerAngleref 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.
+type ScattergeoMarkerAngleref string
+
+const (
+ ScattergeoMarkerAnglerefPrevious ScattergeoMarkerAngleref = "previous"
+ ScattergeoMarkerAnglerefUp ScattergeoMarkerAngleref = "up"
+ ScattergeoMarkerAnglerefNorth ScattergeoMarkerAngleref = "north"
+)
+
// ScattergeoMarkerColorbarExponentformat 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.
type ScattergeoMarkerColorbarExponentformat string
@@ -1143,7 +1258,7 @@ const (
ScattergeoMarkerColorbarExponentformatE1 ScattergeoMarkerColorbarExponentformat = "e"
ScattergeoMarkerColorbarExponentformatE2 ScattergeoMarkerColorbarExponentformat = "E"
ScattergeoMarkerColorbarExponentformatPower ScattergeoMarkerColorbarExponentformat = "power"
- ScattergeoMarkerColorbarExponentformatSi ScattergeoMarkerColorbarExponentformat = "SI"
+ ScattergeoMarkerColorbarExponentformatSI ScattergeoMarkerColorbarExponentformat = "SI"
ScattergeoMarkerColorbarExponentformatB ScattergeoMarkerColorbarExponentformat = "B"
)
@@ -1155,6 +1270,14 @@ const (
ScattergeoMarkerColorbarLenmodePixels ScattergeoMarkerColorbarLenmode = "pixels"
)
+// ScattergeoMarkerColorbarOrientation Sets the orientation of the colorbar.
+type ScattergeoMarkerColorbarOrientation string
+
+const (
+ ScattergeoMarkerColorbarOrientationH ScattergeoMarkerColorbarOrientation = "h"
+ ScattergeoMarkerColorbarOrientationV ScattergeoMarkerColorbarOrientation = "v"
+)
+
// ScattergeoMarkerColorbarShowexponent 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.
type ScattergeoMarkerColorbarShowexponent string
@@ -1193,7 +1316,16 @@ const (
ScattergeoMarkerColorbarThicknessmodePixels ScattergeoMarkerColorbarThicknessmode = "pixels"
)
-// ScattergeoMarkerColorbarTicklabelposition Determines where tick labels are drawn.
+// ScattergeoMarkerColorbarTicklabeloverflow 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*.
+type ScattergeoMarkerColorbarTicklabeloverflow string
+
+const (
+ ScattergeoMarkerColorbarTicklabeloverflowAllow ScattergeoMarkerColorbarTicklabeloverflow = "allow"
+ ScattergeoMarkerColorbarTicklabeloverflowHidePastDiv ScattergeoMarkerColorbarTicklabeloverflow = "hide past div"
+ ScattergeoMarkerColorbarTicklabeloverflowHidePastDomain ScattergeoMarkerColorbarTicklabeloverflow = "hide past domain"
+)
+
+// ScattergeoMarkerColorbarTicklabelposition 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*.
type ScattergeoMarkerColorbarTicklabelposition string
const (
@@ -1201,6 +1333,10 @@ const (
ScattergeoMarkerColorbarTicklabelpositionInside ScattergeoMarkerColorbarTicklabelposition = "inside"
ScattergeoMarkerColorbarTicklabelpositionOutsideTop ScattergeoMarkerColorbarTicklabelposition = "outside top"
ScattergeoMarkerColorbarTicklabelpositionInsideTop ScattergeoMarkerColorbarTicklabelposition = "inside top"
+ ScattergeoMarkerColorbarTicklabelpositionOutsideLeft ScattergeoMarkerColorbarTicklabelposition = "outside left"
+ ScattergeoMarkerColorbarTicklabelpositionInsideLeft ScattergeoMarkerColorbarTicklabelposition = "inside left"
+ ScattergeoMarkerColorbarTicklabelpositionOutsideRight ScattergeoMarkerColorbarTicklabelposition = "outside right"
+ ScattergeoMarkerColorbarTicklabelpositionInsideRight ScattergeoMarkerColorbarTicklabelposition = "inside right"
ScattergeoMarkerColorbarTicklabelpositionOutsideBottom ScattergeoMarkerColorbarTicklabelposition = "outside bottom"
ScattergeoMarkerColorbarTicklabelpositionInsideBottom ScattergeoMarkerColorbarTicklabelposition = "inside bottom"
)
@@ -1223,7 +1359,7 @@ const (
ScattergeoMarkerColorbarTicksEmpty ScattergeoMarkerColorbarTicks = ""
)
-// ScattergeoMarkerColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// ScattergeoMarkerColorbarTitleSide 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.
type ScattergeoMarkerColorbarTitleSide string
const (
@@ -1232,7 +1368,7 @@ const (
ScattergeoMarkerColorbarTitleSideBottom ScattergeoMarkerColorbarTitleSide = "bottom"
)
-// ScattergeoMarkerColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// ScattergeoMarkerColorbarXanchor 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*.
type ScattergeoMarkerColorbarXanchor string
const (
@@ -1241,7 +1377,7 @@ const (
ScattergeoMarkerColorbarXanchorRight ScattergeoMarkerColorbarXanchor = "right"
)
-// ScattergeoMarkerColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// ScattergeoMarkerColorbarYanchor 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*.
type ScattergeoMarkerColorbarYanchor string
const (
@@ -1746,6 +1882,18 @@ var (
ScattergeoMarkerSymbolNumber152 ScattergeoMarkerSymbol = 152
ScattergeoMarkerSymbol152 ScattergeoMarkerSymbol = "152"
ScattergeoMarkerSymbolArrowBarRightOpen ScattergeoMarkerSymbol = "arrow-bar-right-open"
+ ScattergeoMarkerSymbolNumber53 ScattergeoMarkerSymbol = 53
+ ScattergeoMarkerSymbol53 ScattergeoMarkerSymbol = "53"
+ ScattergeoMarkerSymbolArrow ScattergeoMarkerSymbol = "arrow"
+ ScattergeoMarkerSymbolNumber153 ScattergeoMarkerSymbol = 153
+ ScattergeoMarkerSymbol153 ScattergeoMarkerSymbol = "153"
+ ScattergeoMarkerSymbolArrowOpen ScattergeoMarkerSymbol = "arrow-open"
+ ScattergeoMarkerSymbolNumber54 ScattergeoMarkerSymbol = 54
+ ScattergeoMarkerSymbol54 ScattergeoMarkerSymbol = "54"
+ ScattergeoMarkerSymbolArrowWide ScattergeoMarkerSymbol = "arrow-wide"
+ ScattergeoMarkerSymbolNumber154 ScattergeoMarkerSymbol = 154
+ ScattergeoMarkerSymbol154 ScattergeoMarkerSymbol = "154"
+ ScattergeoMarkerSymbolArrowWideOpen ScattergeoMarkerSymbol = "arrow-wide-open"
)
// ScattergeoTextposition Sets the positions of the `text` elements with respects to the (x,y) coordinates.
diff --git a/graph_objects/scattergl_gen.go b/generated/v2.19.0/graph_objects/scattergl_gen.go
similarity index 85%
rename from graph_objects/scattergl_gen.go
rename to generated/v2.19.0/graph_objects/scattergl_gen.go
index 8937b6f..dece133 100644
--- a/graph_objects/scattergl_gen.go
+++ b/generated/v2.19.0/graph_objects/scattergl_gen.go
@@ -30,7 +30,7 @@ type Scattergl struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Dx
@@ -74,7 +74,7 @@ type Scattergl struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -84,13 +84,13 @@ type Scattergl struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -102,7 +102,7 @@ type Scattergl struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -114,7 +114,7 @@ type Scattergl struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Legendgroup
@@ -123,6 +123,22 @@ type Scattergl struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *ScatterglLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Line
// role: Object
Line *ScatterglLine `json:"line,omitempty"`
@@ -140,7 +156,7 @@ type Scattergl struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Mode
@@ -200,25 +216,25 @@ type Scattergl struct {
// Textpositionsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for textposition .
+ // Sets the source reference on Chart Studio Cloud for `textposition`.
Textpositionsrc String `json:"textpositionsrc,omitempty"`
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
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-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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.
+ // 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"`
// Texttemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for texttemplate .
+ // Sets the source reference on Chart Studio Cloud for `texttemplate`.
Texttemplatesrc String `json:"texttemplatesrc,omitempty"`
// Transforms
@@ -273,6 +289,12 @@ type Scattergl struct {
// Sets the calendar system to use with `x` date data.
Xcalendar ScatterglXcalendar `json:"xcalendar,omitempty"`
+ // Xhoverformat
+ // 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"`
+
// Xperiod
// arrayOK: false
// type: any
@@ -294,7 +316,7 @@ type Scattergl struct {
// Xsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for x .
+ // Sets the source reference on Chart Studio Cloud for `x`.
Xsrc String `json:"xsrc,omitempty"`
// Y
@@ -321,6 +343,12 @@ type Scattergl struct {
// Sets the calendar system to use with `y` date data.
Ycalendar ScatterglYcalendar `json:"ycalendar,omitempty"`
+ // Yhoverformat
+ // 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"`
+
// Yperiod
// arrayOK: false
// type: any
@@ -342,7 +370,7 @@ type Scattergl struct {
// Ysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for y .
+ // Sets the source reference on Chart Studio Cloud for `y`.
Ysrc String `json:"ysrc,omitempty"`
}
@@ -364,13 +392,13 @@ type ScatterglErrorX struct {
// Arrayminussrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for arrayminus .
+ // Sets the source reference on Chart Studio Cloud for `arrayminus`.
Arrayminussrc String `json:"arrayminussrc,omitempty"`
// Arraysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for array .
+ // Sets the source reference on Chart Studio Cloud for `array`.
Arraysrc String `json:"arraysrc,omitempty"`
// Color
@@ -458,13 +486,13 @@ type ScatterglErrorY struct {
// Arrayminussrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for arrayminus .
+ // Sets the source reference on Chart Studio Cloud for `arrayminus`.
Arrayminussrc String `json:"arrayminussrc,omitempty"`
// Arraysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for array .
+ // Sets the source reference on Chart Studio Cloud for `array`.
Arraysrc String `json:"arraysrc,omitempty"`
// Color
@@ -540,7 +568,7 @@ type ScatterglHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -552,7 +580,7 @@ type ScatterglHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -564,7 +592,7 @@ type ScatterglHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -580,7 +608,7 @@ type ScatterglHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -592,7 +620,7 @@ type ScatterglHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -604,7 +632,7 @@ type ScatterglHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -620,10 +648,46 @@ type ScatterglHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// ScatterglLegendgrouptitleFont Sets this legend group's title font.
+type ScatterglLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// ScatterglLegendgrouptitle
+type ScatterglLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *ScatterglLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// ScatterglLine
type ScatterglLine struct {
@@ -704,9 +768,9 @@ type ScatterglMarkerColorbarTitle struct {
Font *ScatterglMarkerColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side ScatterglMarkerColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -749,6 +813,12 @@ type ScatterglMarkerColorbar struct {
// 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.
Exponentformat ScatterglMarkerColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -773,6 +843,12 @@ type ScatterglMarkerColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation ScatterglMarkerColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -852,7 +928,7 @@ type ScatterglMarkerColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -861,12 +937,24 @@ type ScatterglMarkerColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition ScatterglMarkerColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -906,7 +994,7 @@ type ScatterglMarkerColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -918,7 +1006,7 @@ type ScatterglMarkerColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -934,13 +1022,13 @@ type ScatterglMarkerColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor ScatterglMarkerColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -952,13 +1040,13 @@ type ScatterglMarkerColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor ScatterglMarkerColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -974,37 +1062,37 @@ type ScatterglMarkerLine struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color`is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color` is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarker.linecolor. 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.
+ // 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"`
// Coloraxis
@@ -1016,19 +1104,19 @@ type ScatterglMarkerLine struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.line.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.line.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.line.color`is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.line.color` is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Width
@@ -1040,47 +1128,59 @@ type ScatterglMarkerLine struct {
// Widthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for width .
+ // Sets the source reference on Chart Studio Cloud for `width`.
Widthsrc String `json:"widthsrc,omitempty"`
}
// ScatterglMarker
type ScatterglMarker struct {
+ // Angle
+ // arrayOK: true
+ // type: angle
+ // Sets the marker angle in respect to `angleref`.
+ Angle float64 `json:"angle,omitempty"`
+
+ // Anglesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `angle`.
+ Anglesrc String `json:"anglesrc,omitempty"`
+
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color` is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarkercolor. 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.
+ // 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"`
// Coloraxis
@@ -1096,13 +1196,13 @@ type ScatterglMarker struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Line
@@ -1118,19 +1218,19 @@ type ScatterglMarker struct {
// Opacitysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for opacity .
+ // Sets the source reference on Chart Studio Cloud for `opacity`.
Opacitysrc String `json:"opacitysrc,omitempty"`
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.color`is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.color` is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Showscale
// arrayOK: false
// type: boolean
- // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array.
+ // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color` is set to a numerical array.
Showscale Bool `json:"showscale,omitempty"`
// Size
@@ -1160,7 +1260,7 @@ type ScatterglMarker struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
// Symbol
@@ -1172,7 +1272,7 @@ type ScatterglMarker struct {
// Symbolsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for symbol .
+ // Sets the source reference on Chart Studio Cloud for `symbol`.
Symbolsrc String `json:"symbolsrc,omitempty"`
}
@@ -1248,7 +1348,7 @@ type ScatterglTextfont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -1260,7 +1360,7 @@ type ScatterglTextfont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -1272,7 +1372,7 @@ type ScatterglTextfont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -1366,12 +1466,12 @@ const (
type ScatterglLineDash string
const (
- ScatterglLineDashSolid ScatterglLineDash = "solid"
- ScatterglLineDashDot ScatterglLineDash = "dot"
ScatterglLineDashDash ScatterglLineDash = "dash"
- ScatterglLineDashLongdash ScatterglLineDash = "longdash"
ScatterglLineDashDashdot ScatterglLineDash = "dashdot"
+ ScatterglLineDashDot ScatterglLineDash = "dot"
+ ScatterglLineDashLongdash ScatterglLineDash = "longdash"
ScatterglLineDashLongdashdot ScatterglLineDash = "longdashdot"
+ ScatterglLineDashSolid ScatterglLineDash = "solid"
)
// ScatterglLineShape Determines the line shape. The values correspond to step-wise line shapes.
@@ -1393,7 +1493,7 @@ const (
ScatterglMarkerColorbarExponentformatE1 ScatterglMarkerColorbarExponentformat = "e"
ScatterglMarkerColorbarExponentformatE2 ScatterglMarkerColorbarExponentformat = "E"
ScatterglMarkerColorbarExponentformatPower ScatterglMarkerColorbarExponentformat = "power"
- ScatterglMarkerColorbarExponentformatSi ScatterglMarkerColorbarExponentformat = "SI"
+ ScatterglMarkerColorbarExponentformatSI ScatterglMarkerColorbarExponentformat = "SI"
ScatterglMarkerColorbarExponentformatB ScatterglMarkerColorbarExponentformat = "B"
)
@@ -1405,6 +1505,14 @@ const (
ScatterglMarkerColorbarLenmodePixels ScatterglMarkerColorbarLenmode = "pixels"
)
+// ScatterglMarkerColorbarOrientation Sets the orientation of the colorbar.
+type ScatterglMarkerColorbarOrientation string
+
+const (
+ ScatterglMarkerColorbarOrientationH ScatterglMarkerColorbarOrientation = "h"
+ ScatterglMarkerColorbarOrientationV ScatterglMarkerColorbarOrientation = "v"
+)
+
// ScatterglMarkerColorbarShowexponent 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.
type ScatterglMarkerColorbarShowexponent string
@@ -1443,7 +1551,16 @@ const (
ScatterglMarkerColorbarThicknessmodePixels ScatterglMarkerColorbarThicknessmode = "pixels"
)
-// ScatterglMarkerColorbarTicklabelposition Determines where tick labels are drawn.
+// ScatterglMarkerColorbarTicklabeloverflow 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*.
+type ScatterglMarkerColorbarTicklabeloverflow string
+
+const (
+ ScatterglMarkerColorbarTicklabeloverflowAllow ScatterglMarkerColorbarTicklabeloverflow = "allow"
+ ScatterglMarkerColorbarTicklabeloverflowHidePastDiv ScatterglMarkerColorbarTicklabeloverflow = "hide past div"
+ ScatterglMarkerColorbarTicklabeloverflowHidePastDomain ScatterglMarkerColorbarTicklabeloverflow = "hide past domain"
+)
+
+// ScatterglMarkerColorbarTicklabelposition 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*.
type ScatterglMarkerColorbarTicklabelposition string
const (
@@ -1451,6 +1568,10 @@ const (
ScatterglMarkerColorbarTicklabelpositionInside ScatterglMarkerColorbarTicklabelposition = "inside"
ScatterglMarkerColorbarTicklabelpositionOutsideTop ScatterglMarkerColorbarTicklabelposition = "outside top"
ScatterglMarkerColorbarTicklabelpositionInsideTop ScatterglMarkerColorbarTicklabelposition = "inside top"
+ ScatterglMarkerColorbarTicklabelpositionOutsideLeft ScatterglMarkerColorbarTicklabelposition = "outside left"
+ ScatterglMarkerColorbarTicklabelpositionInsideLeft ScatterglMarkerColorbarTicklabelposition = "inside left"
+ ScatterglMarkerColorbarTicklabelpositionOutsideRight ScatterglMarkerColorbarTicklabelposition = "outside right"
+ ScatterglMarkerColorbarTicklabelpositionInsideRight ScatterglMarkerColorbarTicklabelposition = "inside right"
ScatterglMarkerColorbarTicklabelpositionOutsideBottom ScatterglMarkerColorbarTicklabelposition = "outside bottom"
ScatterglMarkerColorbarTicklabelpositionInsideBottom ScatterglMarkerColorbarTicklabelposition = "inside bottom"
)
@@ -1473,7 +1594,7 @@ const (
ScatterglMarkerColorbarTicksEmpty ScatterglMarkerColorbarTicks = ""
)
-// ScatterglMarkerColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// ScatterglMarkerColorbarTitleSide 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.
type ScatterglMarkerColorbarTitleSide string
const (
@@ -1482,7 +1603,7 @@ const (
ScatterglMarkerColorbarTitleSideBottom ScatterglMarkerColorbarTitleSide = "bottom"
)
-// ScatterglMarkerColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// ScatterglMarkerColorbarXanchor 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*.
type ScatterglMarkerColorbarXanchor string
const (
@@ -1491,7 +1612,7 @@ const (
ScatterglMarkerColorbarXanchorRight ScatterglMarkerColorbarXanchor = "right"
)
-// ScatterglMarkerColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// ScatterglMarkerColorbarYanchor 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*.
type ScatterglMarkerColorbarYanchor string
const (
@@ -1986,6 +2107,18 @@ var (
ScatterglMarkerSymbolNumber152 ScatterglMarkerSymbol = 152
ScatterglMarkerSymbol152 ScatterglMarkerSymbol = "152"
ScatterglMarkerSymbolArrowBarRightOpen ScatterglMarkerSymbol = "arrow-bar-right-open"
+ ScatterglMarkerSymbolNumber53 ScatterglMarkerSymbol = 53
+ ScatterglMarkerSymbol53 ScatterglMarkerSymbol = "53"
+ ScatterglMarkerSymbolArrow ScatterglMarkerSymbol = "arrow"
+ ScatterglMarkerSymbolNumber153 ScatterglMarkerSymbol = 153
+ ScatterglMarkerSymbol153 ScatterglMarkerSymbol = "153"
+ ScatterglMarkerSymbolArrowOpen ScatterglMarkerSymbol = "arrow-open"
+ ScatterglMarkerSymbolNumber54 ScatterglMarkerSymbol = 54
+ ScatterglMarkerSymbol54 ScatterglMarkerSymbol = "54"
+ ScatterglMarkerSymbolArrowWide ScatterglMarkerSymbol = "arrow-wide"
+ ScatterglMarkerSymbolNumber154 ScatterglMarkerSymbol = 154
+ ScatterglMarkerSymbol154 ScatterglMarkerSymbol = "154"
+ ScatterglMarkerSymbolArrowWideOpen ScatterglMarkerSymbol = "arrow-wide-open"
)
// ScatterglTextposition Sets the positions of the `text` elements with respects to the (x,y) coordinates.
@@ -2016,19 +2149,19 @@ var (
type ScatterglXcalendar string
const (
- ScatterglXcalendarGregorian ScatterglXcalendar = "gregorian"
ScatterglXcalendarChinese ScatterglXcalendar = "chinese"
ScatterglXcalendarCoptic ScatterglXcalendar = "coptic"
ScatterglXcalendarDiscworld ScatterglXcalendar = "discworld"
ScatterglXcalendarEthiopian ScatterglXcalendar = "ethiopian"
+ ScatterglXcalendarGregorian ScatterglXcalendar = "gregorian"
ScatterglXcalendarHebrew ScatterglXcalendar = "hebrew"
ScatterglXcalendarIslamic ScatterglXcalendar = "islamic"
+ ScatterglXcalendarJalali ScatterglXcalendar = "jalali"
ScatterglXcalendarJulian ScatterglXcalendar = "julian"
ScatterglXcalendarMayan ScatterglXcalendar = "mayan"
ScatterglXcalendarNanakshahi ScatterglXcalendar = "nanakshahi"
ScatterglXcalendarNepali ScatterglXcalendar = "nepali"
ScatterglXcalendarPersian ScatterglXcalendar = "persian"
- ScatterglXcalendarJalali ScatterglXcalendar = "jalali"
ScatterglXcalendarTaiwan ScatterglXcalendar = "taiwan"
ScatterglXcalendarThai ScatterglXcalendar = "thai"
ScatterglXcalendarUmmalqura ScatterglXcalendar = "ummalqura"
@@ -2047,19 +2180,19 @@ const (
type ScatterglYcalendar string
const (
- ScatterglYcalendarGregorian ScatterglYcalendar = "gregorian"
ScatterglYcalendarChinese ScatterglYcalendar = "chinese"
ScatterglYcalendarCoptic ScatterglYcalendar = "coptic"
ScatterglYcalendarDiscworld ScatterglYcalendar = "discworld"
ScatterglYcalendarEthiopian ScatterglYcalendar = "ethiopian"
+ ScatterglYcalendarGregorian ScatterglYcalendar = "gregorian"
ScatterglYcalendarHebrew ScatterglYcalendar = "hebrew"
ScatterglYcalendarIslamic ScatterglYcalendar = "islamic"
+ ScatterglYcalendarJalali ScatterglYcalendar = "jalali"
ScatterglYcalendarJulian ScatterglYcalendar = "julian"
ScatterglYcalendarMayan ScatterglYcalendar = "mayan"
ScatterglYcalendarNanakshahi ScatterglYcalendar = "nanakshahi"
ScatterglYcalendarNepali ScatterglYcalendar = "nepali"
ScatterglYcalendarPersian ScatterglYcalendar = "persian"
- ScatterglYcalendarJalali ScatterglYcalendar = "jalali"
ScatterglYcalendarTaiwan ScatterglYcalendar = "taiwan"
ScatterglYcalendarThai ScatterglYcalendar = "thai"
ScatterglYcalendarUmmalqura ScatterglYcalendar = "ummalqura"
diff --git a/graph_objects/scattermapbox_gen.go b/generated/v2.19.0/graph_objects/scattermapbox_gen.go
similarity index 76%
rename from graph_objects/scattermapbox_gen.go
rename to generated/v2.19.0/graph_objects/scattermapbox_gen.go
index 7b42a9a..0ff6bbe 100644
--- a/graph_objects/scattermapbox_gen.go
+++ b/generated/v2.19.0/graph_objects/scattermapbox_gen.go
@@ -21,6 +21,10 @@ type Scattermapbox struct {
// 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"`
+ // Cluster
+ // role: Object
+ Cluster *ScattermapboxCluster `json:"cluster,omitempty"`
+
// Connectgaps
// arrayOK: false
// type: boolean
@@ -36,7 +40,7 @@ type Scattermapbox struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Fill
@@ -60,7 +64,7 @@ type Scattermapbox struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -70,13 +74,13 @@ type Scattermapbox struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -88,7 +92,7 @@ type Scattermapbox struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -100,7 +104,7 @@ type Scattermapbox struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Lat
@@ -112,7 +116,7 @@ type Scattermapbox struct {
// Latsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for lat .
+ // Sets the source reference on Chart Studio Cloud for `lat`.
Latsrc String `json:"latsrc,omitempty"`
// Legendgroup
@@ -121,6 +125,22 @@ type Scattermapbox struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *ScattermapboxLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Line
// role: Object
Line *ScattermapboxLine `json:"line,omitempty"`
@@ -134,7 +154,7 @@ type Scattermapbox struct {
// Lonsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for lon .
+ // Sets the source reference on Chart Studio Cloud for `lon`.
Lonsrc String `json:"lonsrc,omitempty"`
// Marker
@@ -150,7 +170,7 @@ type Scattermapbox struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Mode
@@ -216,19 +236,19 @@ type Scattermapbox struct {
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
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-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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`.
+ // 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"`
// Texttemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for texttemplate .
+ // Sets the source reference on Chart Studio Cloud for `texttemplate`.
Texttemplatesrc String `json:"texttemplatesrc,omitempty"`
// Transforms
@@ -260,6 +280,70 @@ type Scattermapbox struct {
Visible ScattermapboxVisible `json:"visible,omitempty"`
}
+// ScattermapboxCluster
+type ScattermapboxCluster struct {
+
+ // Color
+ // arrayOK: true
+ // type: color
+ // Sets the color for each cluster step.
+ Color Color `json:"color,omitempty"`
+
+ // Colorsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `color`.
+ Colorsrc String `json:"colorsrc,omitempty"`
+
+ // Enabled
+ // arrayOK: false
+ // type: boolean
+ // Determines whether clustering is enabled or disabled.
+ Enabled Bool `json:"enabled,omitempty"`
+
+ // Maxzoom
+ // arrayOK: false
+ // type: number
+ // Sets the maximum zoom level. At zoom levels equal to or greater than this, points will never be clustered.
+ Maxzoom float64 `json:"maxzoom,omitempty"`
+
+ // Opacity
+ // arrayOK: true
+ // type: number
+ // Sets the marker opacity.
+ Opacity float64 `json:"opacity,omitempty"`
+
+ // Opacitysrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `opacity`.
+ Opacitysrc String `json:"opacitysrc,omitempty"`
+
+ // Size
+ // arrayOK: true
+ // type: number
+ // Sets the size for each cluster step.
+ Size float64 `json:"size,omitempty"`
+
+ // Sizesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `size`.
+ 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"`
+
+ // Stepsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `step`.
+ Stepsrc String `json:"stepsrc,omitempty"`
+}
+
// ScattermapboxHoverlabelFont Sets the font used in hover labels.
type ScattermapboxHoverlabelFont struct {
@@ -272,7 +356,7 @@ type ScattermapboxHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -284,7 +368,7 @@ type ScattermapboxHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -296,7 +380,7 @@ type ScattermapboxHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -312,7 +396,7 @@ type ScattermapboxHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -324,7 +408,7 @@ type ScattermapboxHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -336,7 +420,7 @@ type ScattermapboxHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -352,10 +436,46 @@ type ScattermapboxHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// ScattermapboxLegendgrouptitleFont Sets this legend group's title font.
+type ScattermapboxLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// ScattermapboxLegendgrouptitle
+type ScattermapboxLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *ScattermapboxLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// ScattermapboxLine
type ScattermapboxLine struct {
@@ -424,9 +544,9 @@ type ScattermapboxMarkerColorbarTitle struct {
Font *ScattermapboxMarkerColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side ScattermapboxMarkerColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -469,6 +589,12 @@ type ScattermapboxMarkerColorbar struct {
// 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.
Exponentformat ScattermapboxMarkerColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -493,6 +619,12 @@ type ScattermapboxMarkerColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation ScattermapboxMarkerColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -572,7 +704,7 @@ type ScattermapboxMarkerColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -581,12 +713,24 @@ type ScattermapboxMarkerColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition ScattermapboxMarkerColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -626,7 +770,7 @@ type ScattermapboxMarkerColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -638,7 +782,7 @@ type ScattermapboxMarkerColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -654,13 +798,13 @@ type ScattermapboxMarkerColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor ScattermapboxMarkerColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -672,13 +816,13 @@ type ScattermapboxMarkerColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor ScattermapboxMarkerColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -706,43 +850,43 @@ type ScattermapboxMarker struct {
// Anglesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for angle .
+ // Sets the source reference on Chart Studio Cloud for `angle`.
Anglesrc String `json:"anglesrc,omitempty"`
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color` is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarkercolor. 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.
+ // 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"`
// Coloraxis
@@ -758,13 +902,13 @@ type ScattermapboxMarker struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Opacity
@@ -776,19 +920,19 @@ type ScattermapboxMarker struct {
// Opacitysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for opacity .
+ // Sets the source reference on Chart Studio Cloud for `opacity`.
Opacitysrc String `json:"opacitysrc,omitempty"`
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.color`is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.color` is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Showscale
// arrayOK: false
// type: boolean
- // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array.
+ // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color` is set to a numerical array.
Showscale Bool `json:"showscale,omitempty"`
// Size
@@ -818,7 +962,7 @@ type ScattermapboxMarker struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
// Symbol
@@ -830,7 +974,7 @@ type ScattermapboxMarker struct {
// Symbolsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for symbol .
+ // Sets the source reference on Chart Studio Cloud for `symbol`.
Symbolsrc String `json:"symbolsrc,omitempty"`
}
@@ -957,7 +1101,7 @@ const (
ScattermapboxMarkerColorbarExponentformatE1 ScattermapboxMarkerColorbarExponentformat = "e"
ScattermapboxMarkerColorbarExponentformatE2 ScattermapboxMarkerColorbarExponentformat = "E"
ScattermapboxMarkerColorbarExponentformatPower ScattermapboxMarkerColorbarExponentformat = "power"
- ScattermapboxMarkerColorbarExponentformatSi ScattermapboxMarkerColorbarExponentformat = "SI"
+ ScattermapboxMarkerColorbarExponentformatSI ScattermapboxMarkerColorbarExponentformat = "SI"
ScattermapboxMarkerColorbarExponentformatB ScattermapboxMarkerColorbarExponentformat = "B"
)
@@ -969,6 +1113,14 @@ const (
ScattermapboxMarkerColorbarLenmodePixels ScattermapboxMarkerColorbarLenmode = "pixels"
)
+// ScattermapboxMarkerColorbarOrientation Sets the orientation of the colorbar.
+type ScattermapboxMarkerColorbarOrientation string
+
+const (
+ ScattermapboxMarkerColorbarOrientationH ScattermapboxMarkerColorbarOrientation = "h"
+ ScattermapboxMarkerColorbarOrientationV ScattermapboxMarkerColorbarOrientation = "v"
+)
+
// ScattermapboxMarkerColorbarShowexponent 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.
type ScattermapboxMarkerColorbarShowexponent string
@@ -1007,7 +1159,16 @@ const (
ScattermapboxMarkerColorbarThicknessmodePixels ScattermapboxMarkerColorbarThicknessmode = "pixels"
)
-// ScattermapboxMarkerColorbarTicklabelposition Determines where tick labels are drawn.
+// ScattermapboxMarkerColorbarTicklabeloverflow 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*.
+type ScattermapboxMarkerColorbarTicklabeloverflow string
+
+const (
+ ScattermapboxMarkerColorbarTicklabeloverflowAllow ScattermapboxMarkerColorbarTicklabeloverflow = "allow"
+ ScattermapboxMarkerColorbarTicklabeloverflowHidePastDiv ScattermapboxMarkerColorbarTicklabeloverflow = "hide past div"
+ ScattermapboxMarkerColorbarTicklabeloverflowHidePastDomain ScattermapboxMarkerColorbarTicklabeloverflow = "hide past domain"
+)
+
+// ScattermapboxMarkerColorbarTicklabelposition 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*.
type ScattermapboxMarkerColorbarTicklabelposition string
const (
@@ -1015,6 +1176,10 @@ const (
ScattermapboxMarkerColorbarTicklabelpositionInside ScattermapboxMarkerColorbarTicklabelposition = "inside"
ScattermapboxMarkerColorbarTicklabelpositionOutsideTop ScattermapboxMarkerColorbarTicklabelposition = "outside top"
ScattermapboxMarkerColorbarTicklabelpositionInsideTop ScattermapboxMarkerColorbarTicklabelposition = "inside top"
+ ScattermapboxMarkerColorbarTicklabelpositionOutsideLeft ScattermapboxMarkerColorbarTicklabelposition = "outside left"
+ ScattermapboxMarkerColorbarTicklabelpositionInsideLeft ScattermapboxMarkerColorbarTicklabelposition = "inside left"
+ ScattermapboxMarkerColorbarTicklabelpositionOutsideRight ScattermapboxMarkerColorbarTicklabelposition = "outside right"
+ ScattermapboxMarkerColorbarTicklabelpositionInsideRight ScattermapboxMarkerColorbarTicklabelposition = "inside right"
ScattermapboxMarkerColorbarTicklabelpositionOutsideBottom ScattermapboxMarkerColorbarTicklabelposition = "outside bottom"
ScattermapboxMarkerColorbarTicklabelpositionInsideBottom ScattermapboxMarkerColorbarTicklabelposition = "inside bottom"
)
@@ -1037,7 +1202,7 @@ const (
ScattermapboxMarkerColorbarTicksEmpty ScattermapboxMarkerColorbarTicks = ""
)
-// ScattermapboxMarkerColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// ScattermapboxMarkerColorbarTitleSide 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.
type ScattermapboxMarkerColorbarTitleSide string
const (
@@ -1046,7 +1211,7 @@ const (
ScattermapboxMarkerColorbarTitleSideBottom ScattermapboxMarkerColorbarTitleSide = "bottom"
)
-// ScattermapboxMarkerColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// ScattermapboxMarkerColorbarXanchor 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*.
type ScattermapboxMarkerColorbarXanchor string
const (
@@ -1055,7 +1220,7 @@ const (
ScattermapboxMarkerColorbarXanchorRight ScattermapboxMarkerColorbarXanchor = "right"
)
-// ScattermapboxMarkerColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// ScattermapboxMarkerColorbarYanchor 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*.
type ScattermapboxMarkerColorbarYanchor string
const (
diff --git a/graph_objects/scatterpolar_gen.go b/generated/v2.19.0/graph_objects/scatterpolar_gen.go
similarity index 84%
rename from graph_objects/scatterpolar_gen.go
rename to generated/v2.19.0/graph_objects/scatterpolar_gen.go
index 3070557..5179e22 100644
--- a/graph_objects/scatterpolar_gen.go
+++ b/generated/v2.19.0/graph_objects/scatterpolar_gen.go
@@ -36,7 +36,7 @@ type Scatterpolar struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Dr
@@ -72,7 +72,7 @@ type Scatterpolar struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -88,13 +88,13 @@ type Scatterpolar struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -106,7 +106,7 @@ type Scatterpolar struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -118,7 +118,7 @@ type Scatterpolar struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Legendgroup
@@ -127,6 +127,22 @@ type Scatterpolar struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *ScatterpolarLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Line
// role: Object
Line *ScatterpolarLine `json:"line,omitempty"`
@@ -144,7 +160,7 @@ type Scatterpolar struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Mode
@@ -180,7 +196,7 @@ type Scatterpolar struct {
// Rsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for r .
+ // Sets the source reference on Chart Studio Cloud for `r`.
Rsrc String `json:"rsrc,omitempty"`
// Selected
@@ -228,25 +244,25 @@ type Scatterpolar struct {
// Textpositionsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for textposition .
+ // Sets the source reference on Chart Studio Cloud for `textposition`.
Textpositionsrc String `json:"textpositionsrc,omitempty"`
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
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-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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`.
+ // 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"`
// Texttemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for texttemplate .
+ // Sets the source reference on Chart Studio Cloud for `texttemplate`.
Texttemplatesrc String `json:"texttemplatesrc,omitempty"`
// Theta
@@ -264,7 +280,7 @@ type Scatterpolar struct {
// Thetasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for theta .
+ // Sets the source reference on Chart Studio Cloud for `theta`.
Thetasrc String `json:"thetasrc,omitempty"`
// Thetaunit
@@ -314,7 +330,7 @@ type ScatterpolarHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -326,7 +342,7 @@ type ScatterpolarHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -338,7 +354,7 @@ type ScatterpolarHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -354,7 +370,7 @@ type ScatterpolarHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -366,7 +382,7 @@ type ScatterpolarHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -378,7 +394,7 @@ type ScatterpolarHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -394,13 +410,61 @@ type ScatterpolarHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// ScatterpolarLegendgrouptitleFont Sets this legend group's title font.
+type ScatterpolarLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// ScatterpolarLegendgrouptitle
+type ScatterpolarLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *ScatterpolarLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// ScatterpolarLine
type ScatterpolarLine struct {
+ // Backoff
+ // 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"`
+
+ // Backoffsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `backoff`.
+ Backoffsrc String `json:"backoffsrc,omitempty"`
+
// Color
// arrayOK: false
// type: color
@@ -484,9 +548,9 @@ type ScatterpolarMarkerColorbarTitle struct {
Font *ScatterpolarMarkerColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side ScatterpolarMarkerColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -529,6 +593,12 @@ type ScatterpolarMarkerColorbar struct {
// 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.
Exponentformat ScatterpolarMarkerColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -553,6 +623,12 @@ type ScatterpolarMarkerColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation ScatterpolarMarkerColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -632,7 +708,7 @@ type ScatterpolarMarkerColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -641,12 +717,24 @@ type ScatterpolarMarkerColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition ScatterpolarMarkerColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -686,7 +774,7 @@ type ScatterpolarMarkerColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -698,7 +786,7 @@ type ScatterpolarMarkerColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -714,13 +802,13 @@ type ScatterpolarMarkerColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor ScatterpolarMarkerColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -732,13 +820,13 @@ type ScatterpolarMarkerColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor ScatterpolarMarkerColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -760,7 +848,7 @@ type ScatterpolarMarkerGradient struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Type
@@ -772,7 +860,7 @@ type ScatterpolarMarkerGradient struct {
// Typesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for type .
+ // Sets the source reference on Chart Studio Cloud for `type`.
Typesrc String `json:"typesrc,omitempty"`
}
@@ -782,37 +870,37 @@ type ScatterpolarMarkerLine struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color`is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color` is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarker.linecolor. 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.
+ // 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"`
// Coloraxis
@@ -824,19 +912,19 @@ type ScatterpolarMarkerLine struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.line.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.line.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.line.color`is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.line.color` is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Width
@@ -848,47 +936,65 @@ type ScatterpolarMarkerLine struct {
// Widthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for width .
+ // Sets the source reference on Chart Studio Cloud for `width`.
Widthsrc String `json:"widthsrc,omitempty"`
}
// ScatterpolarMarker
type ScatterpolarMarker struct {
+ // Angle
+ // arrayOK: true
+ // type: angle
+ // Sets the marker angle in respect to `angleref`.
+ Angle float64 `json:"angle,omitempty"`
+
+ // Angleref
+ // 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.
+ Angleref ScatterpolarMarkerAngleref `json:"angleref,omitempty"`
+
+ // Anglesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `angle`.
+ Anglesrc String `json:"anglesrc,omitempty"`
+
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color` is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarkercolor. 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.
+ // 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"`
// Coloraxis
@@ -904,13 +1010,13 @@ type ScatterpolarMarker struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.cmin` and `marker.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Gradient
@@ -936,19 +1042,19 @@ type ScatterpolarMarker struct {
// Opacitysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for opacity .
+ // Sets the source reference on Chart Studio Cloud for `opacity`.
Opacitysrc String `json:"opacitysrc,omitempty"`
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.color`is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.color` is set to a numerical array. If true, `marker.cmin` will correspond to the last color in the array and `marker.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Showscale
// arrayOK: false
// type: boolean
- // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array.
+ // Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color` is set to a numerical array.
Showscale Bool `json:"showscale,omitempty"`
// Size
@@ -978,9 +1084,21 @@ type ScatterpolarMarker struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
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"`
+
+ // Standoffsrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `standoff`.
+ Standoffsrc String `json:"standoffsrc,omitempty"`
+
// Symbol
// default: circle
// type: enumerated
@@ -990,7 +1108,7 @@ type ScatterpolarMarker struct {
// Symbolsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for symbol .
+ // Sets the source reference on Chart Studio Cloud for `symbol`.
Symbolsrc String `json:"symbolsrc,omitempty"`
}
@@ -1066,7 +1184,7 @@ type ScatterpolarTextfont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -1078,7 +1196,7 @@ type ScatterpolarTextfont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -1090,7 +1208,7 @@ type ScatterpolarTextfont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -1164,6 +1282,14 @@ const (
ScatterpolarLineShapeSpline ScatterpolarLineShape = "spline"
)
+// ScatterpolarMarkerAngleref 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.
+type ScatterpolarMarkerAngleref string
+
+const (
+ ScatterpolarMarkerAnglerefPrevious ScatterpolarMarkerAngleref = "previous"
+ ScatterpolarMarkerAnglerefUp ScatterpolarMarkerAngleref = "up"
+)
+
// ScatterpolarMarkerColorbarExponentformat 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.
type ScatterpolarMarkerColorbarExponentformat string
@@ -1172,7 +1298,7 @@ const (
ScatterpolarMarkerColorbarExponentformatE1 ScatterpolarMarkerColorbarExponentformat = "e"
ScatterpolarMarkerColorbarExponentformatE2 ScatterpolarMarkerColorbarExponentformat = "E"
ScatterpolarMarkerColorbarExponentformatPower ScatterpolarMarkerColorbarExponentformat = "power"
- ScatterpolarMarkerColorbarExponentformatSi ScatterpolarMarkerColorbarExponentformat = "SI"
+ ScatterpolarMarkerColorbarExponentformatSI ScatterpolarMarkerColorbarExponentformat = "SI"
ScatterpolarMarkerColorbarExponentformatB ScatterpolarMarkerColorbarExponentformat = "B"
)
@@ -1184,6 +1310,14 @@ const (
ScatterpolarMarkerColorbarLenmodePixels ScatterpolarMarkerColorbarLenmode = "pixels"
)
+// ScatterpolarMarkerColorbarOrientation Sets the orientation of the colorbar.
+type ScatterpolarMarkerColorbarOrientation string
+
+const (
+ ScatterpolarMarkerColorbarOrientationH ScatterpolarMarkerColorbarOrientation = "h"
+ ScatterpolarMarkerColorbarOrientationV ScatterpolarMarkerColorbarOrientation = "v"
+)
+
// ScatterpolarMarkerColorbarShowexponent 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.
type ScatterpolarMarkerColorbarShowexponent string
@@ -1222,7 +1356,16 @@ const (
ScatterpolarMarkerColorbarThicknessmodePixels ScatterpolarMarkerColorbarThicknessmode = "pixels"
)
-// ScatterpolarMarkerColorbarTicklabelposition Determines where tick labels are drawn.
+// ScatterpolarMarkerColorbarTicklabeloverflow 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*.
+type ScatterpolarMarkerColorbarTicklabeloverflow string
+
+const (
+ ScatterpolarMarkerColorbarTicklabeloverflowAllow ScatterpolarMarkerColorbarTicklabeloverflow = "allow"
+ ScatterpolarMarkerColorbarTicklabeloverflowHidePastDiv ScatterpolarMarkerColorbarTicklabeloverflow = "hide past div"
+ ScatterpolarMarkerColorbarTicklabeloverflowHidePastDomain ScatterpolarMarkerColorbarTicklabeloverflow = "hide past domain"
+)
+
+// ScatterpolarMarkerColorbarTicklabelposition 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*.
type ScatterpolarMarkerColorbarTicklabelposition string
const (
@@ -1230,6 +1373,10 @@ const (
ScatterpolarMarkerColorbarTicklabelpositionInside ScatterpolarMarkerColorbarTicklabelposition = "inside"
ScatterpolarMarkerColorbarTicklabelpositionOutsideTop ScatterpolarMarkerColorbarTicklabelposition = "outside top"
ScatterpolarMarkerColorbarTicklabelpositionInsideTop ScatterpolarMarkerColorbarTicklabelposition = "inside top"
+ ScatterpolarMarkerColorbarTicklabelpositionOutsideLeft ScatterpolarMarkerColorbarTicklabelposition = "outside left"
+ ScatterpolarMarkerColorbarTicklabelpositionInsideLeft ScatterpolarMarkerColorbarTicklabelposition = "inside left"
+ ScatterpolarMarkerColorbarTicklabelpositionOutsideRight ScatterpolarMarkerColorbarTicklabelposition = "outside right"
+ ScatterpolarMarkerColorbarTicklabelpositionInsideRight ScatterpolarMarkerColorbarTicklabelposition = "inside right"
ScatterpolarMarkerColorbarTicklabelpositionOutsideBottom ScatterpolarMarkerColorbarTicklabelposition = "outside bottom"
ScatterpolarMarkerColorbarTicklabelpositionInsideBottom ScatterpolarMarkerColorbarTicklabelposition = "inside bottom"
)
@@ -1252,7 +1399,7 @@ const (
ScatterpolarMarkerColorbarTicksEmpty ScatterpolarMarkerColorbarTicks = ""
)
-// ScatterpolarMarkerColorbarTitleSide Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+// ScatterpolarMarkerColorbarTitleSide 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.
type ScatterpolarMarkerColorbarTitleSide string
const (
@@ -1261,7 +1408,7 @@ const (
ScatterpolarMarkerColorbarTitleSideBottom ScatterpolarMarkerColorbarTitleSide = "bottom"
)
-// ScatterpolarMarkerColorbarXanchor Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the *left*, *center* or *right* of the color bar.
+// ScatterpolarMarkerColorbarXanchor 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*.
type ScatterpolarMarkerColorbarXanchor string
const (
@@ -1270,7 +1417,7 @@ const (
ScatterpolarMarkerColorbarXanchorRight ScatterpolarMarkerColorbarXanchor = "right"
)
-// ScatterpolarMarkerColorbarYanchor Sets this color bar's vertical position anchor This anchor binds the `y` position to the *top*, *middle* or *bottom* of the color bar.
+// ScatterpolarMarkerColorbarYanchor 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*.
type ScatterpolarMarkerColorbarYanchor string
const (
@@ -1775,6 +1922,18 @@ var (
ScatterpolarMarkerSymbolNumber152 ScatterpolarMarkerSymbol = 152
ScatterpolarMarkerSymbol152 ScatterpolarMarkerSymbol = "152"
ScatterpolarMarkerSymbolArrowBarRightOpen ScatterpolarMarkerSymbol = "arrow-bar-right-open"
+ ScatterpolarMarkerSymbolNumber53 ScatterpolarMarkerSymbol = 53
+ ScatterpolarMarkerSymbol53 ScatterpolarMarkerSymbol = "53"
+ ScatterpolarMarkerSymbolArrow ScatterpolarMarkerSymbol = "arrow"
+ ScatterpolarMarkerSymbolNumber153 ScatterpolarMarkerSymbol = 153
+ ScatterpolarMarkerSymbol153 ScatterpolarMarkerSymbol = "153"
+ ScatterpolarMarkerSymbolArrowOpen ScatterpolarMarkerSymbol = "arrow-open"
+ ScatterpolarMarkerSymbolNumber54 ScatterpolarMarkerSymbol = 54
+ ScatterpolarMarkerSymbol54 ScatterpolarMarkerSymbol = "54"
+ ScatterpolarMarkerSymbolArrowWide ScatterpolarMarkerSymbol = "arrow-wide"
+ ScatterpolarMarkerSymbolNumber154 ScatterpolarMarkerSymbol = 154
+ ScatterpolarMarkerSymbol154 ScatterpolarMarkerSymbol = "154"
+ ScatterpolarMarkerSymbolArrowWideOpen ScatterpolarMarkerSymbol = "arrow-wide-open"
)
// ScatterpolarTextposition Sets the positions of the `text` elements with respects to the (x,y) coordinates.
diff --git a/graph_objects/scatterpolargl_gen.go b/generated/v2.19.0/graph_objects/scatterpolargl_gen.go
similarity index 85%
rename from graph_objects/scatterpolargl_gen.go
rename to generated/v2.19.0/graph_objects/scatterpolargl_gen.go
index a9e9568..28d4a77 100644
--- a/graph_objects/scatterpolargl_gen.go
+++ b/generated/v2.19.0/graph_objects/scatterpolargl_gen.go
@@ -30,7 +30,7 @@ type Scatterpolargl struct {
// Customdatasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for customdata .
+ // Sets the source reference on Chart Studio Cloud for `customdata`.
Customdatasrc String `json:"customdatasrc,omitempty"`
// Dr
@@ -66,7 +66,7 @@ type Scatterpolargl struct {
// Hoverinfosrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hoverinfo .
+ // Sets the source reference on Chart Studio Cloud for `hoverinfo`.
Hoverinfosrc String `json:"hoverinfosrc,omitempty"`
// Hoverlabel
@@ -76,13 +76,13 @@ type Scatterpolargl struct {
// Hovertemplate
// 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}". Numbers are formatted using d3-format's syntax %{variable:d3-format}, for example "Price: %{y:$.2f}". https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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 ``.
+ // 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"`
// Hovertemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertemplate .
+ // Sets the source reference on Chart Studio Cloud for `hovertemplate`.
Hovertemplatesrc String `json:"hovertemplatesrc,omitempty"`
// Hovertext
@@ -94,7 +94,7 @@ type Scatterpolargl struct {
// Hovertextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for hovertext .
+ // Sets the source reference on Chart Studio Cloud for `hovertext`.
Hovertextsrc String `json:"hovertextsrc,omitempty"`
// Ids
@@ -106,7 +106,7 @@ type Scatterpolargl struct {
// Idssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ids .
+ // Sets the source reference on Chart Studio Cloud for `ids`.
Idssrc String `json:"idssrc,omitempty"`
// Legendgroup
@@ -115,6 +115,22 @@ type Scatterpolargl struct {
// 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"`
+ // Legendgrouptitle
+ // role: Object
+ Legendgrouptitle *ScatterpolarglLegendgrouptitle `json:"legendgrouptitle,omitempty"`
+
+ // Legendrank
+ // arrayOK: false
+ // type: number
+ // Sets the legend rank for this trace. Items and groups with smaller ranks are presented on top/left side while with `*reversed* `legend.traceorder` they are on bottom/right side. The default legendrank is 1000, so that you can use ranks less than 1000 to place certain items before all unranked items, and ranks greater than 1000 to go after all unranked items.
+ Legendrank float64 `json:"legendrank,omitempty"`
+
+ // Legendwidth
+ // arrayOK: false
+ // type: number
+ // Sets the width (in px or fraction) of the legend for this trace.
+ Legendwidth float64 `json:"legendwidth,omitempty"`
+
// Line
// role: Object
Line *ScatterpolarglLine `json:"line,omitempty"`
@@ -132,7 +148,7 @@ type Scatterpolargl struct {
// Metasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for meta .
+ // Sets the source reference on Chart Studio Cloud for `meta`.
Metasrc String `json:"metasrc,omitempty"`
// Mode
@@ -168,7 +184,7 @@ type Scatterpolargl struct {
// Rsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for r .
+ // Sets the source reference on Chart Studio Cloud for `r`.
Rsrc String `json:"rsrc,omitempty"`
// Selected
@@ -216,25 +232,25 @@ type Scatterpolargl struct {
// Textpositionsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for textposition .
+ // Sets the source reference on Chart Studio Cloud for `textposition`.
Textpositionsrc String `json:"textpositionsrc,omitempty"`
// Textsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for text .
+ // Sets the source reference on Chart Studio Cloud for `text`.
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-3.x-api-reference/blob/master/Formatting.md#d3_format for details on the formatting syntax. Dates are formatted using d3-time-format's syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}". https://github.com/d3/d3-time-format#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`.
+ // 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"`
// Texttemplatesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for texttemplate .
+ // Sets the source reference on Chart Studio Cloud for `texttemplate`.
Texttemplatesrc String `json:"texttemplatesrc,omitempty"`
// Theta
@@ -252,7 +268,7 @@ type Scatterpolargl struct {
// Thetasrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for theta .
+ // Sets the source reference on Chart Studio Cloud for `theta`.
Thetasrc String `json:"thetasrc,omitempty"`
// Thetaunit
@@ -302,7 +318,7 @@ type ScatterpolarglHoverlabelFont struct {
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Family
@@ -314,7 +330,7 @@ type ScatterpolarglHoverlabelFont struct {
// Familysrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for family .
+ // Sets the source reference on Chart Studio Cloud for `family`.
Familysrc String `json:"familysrc,omitempty"`
// Size
@@ -326,7 +342,7 @@ type ScatterpolarglHoverlabelFont struct {
// Sizesrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for size .
+ // Sets the source reference on Chart Studio Cloud for `size`.
Sizesrc String `json:"sizesrc,omitempty"`
}
@@ -342,7 +358,7 @@ type ScatterpolarglHoverlabel struct {
// Alignsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for align .
+ // Sets the source reference on Chart Studio Cloud for `align`.
Alignsrc String `json:"alignsrc,omitempty"`
// Bgcolor
@@ -354,7 +370,7 @@ type ScatterpolarglHoverlabel struct {
// Bgcolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bgcolor .
+ // Sets the source reference on Chart Studio Cloud for `bgcolor`.
Bgcolorsrc String `json:"bgcolorsrc,omitempty"`
// Bordercolor
@@ -366,7 +382,7 @@ type ScatterpolarglHoverlabel struct {
// Bordercolorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for bordercolor .
+ // Sets the source reference on Chart Studio Cloud for `bordercolor`.
Bordercolorsrc String `json:"bordercolorsrc,omitempty"`
// Font
@@ -382,10 +398,46 @@ type ScatterpolarglHoverlabel struct {
// Namelengthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for namelength .
+ // Sets the source reference on Chart Studio Cloud for `namelength`.
Namelengthsrc String `json:"namelengthsrc,omitempty"`
}
+// ScatterpolarglLegendgrouptitleFont Sets this legend group's title font.
+type ScatterpolarglLegendgrouptitleFont struct {
+
+ // Color
+ // arrayOK: false
+ // type: color
+ //
+ Color Color `json:"color,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"`
+
+ // Size
+ // arrayOK: false
+ // type: number
+ //
+ Size float64 `json:"size,omitempty"`
+}
+
+// ScatterpolarglLegendgrouptitle
+type ScatterpolarglLegendgrouptitle struct {
+
+ // Font
+ // role: Object
+ Font *ScatterpolarglLegendgrouptitleFont `json:"font,omitempty"`
+
+ // Text
+ // arrayOK: false
+ // type: string
+ // Sets the title of the legend group.
+ Text String `json:"text,omitempty"`
+}
+
// ScatterpolarglLine
type ScatterpolarglLine struct {
@@ -466,9 +518,9 @@ type ScatterpolarglMarkerColorbarTitle struct {
Font *ScatterpolarglMarkerColorbarTitleFont `json:"font,omitempty"`
// Side
- // default: top
+ // default: %!s()
// type: enumerated
- // Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute.
+ // 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.
Side ScatterpolarglMarkerColorbarTitleSide `json:"side,omitempty"`
// Text
@@ -511,6 +563,12 @@ type ScatterpolarglMarkerColorbar struct {
// 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.
Exponentformat ScatterpolarglMarkerColorbarExponentformat `json:"exponentformat,omitempty"`
+ // Labelalias
+ // arrayOK: false
+ // type: any
+ // Replacement text for specific tick or hover labels. For example using {US: 'USA', CA: 'Canada'} changes US to USA and CA to Canada. The labels we would have shown must match the keys exactly, after adding any tickprefix or ticksuffix. labelalias can be used with any axis type, and both keys (if needed) and values (if desired) can include html-like tags or MathJax.
+ Labelalias interface{} `json:"labelalias,omitempty"`
+
// Len
// arrayOK: false
// type: number
@@ -535,6 +593,12 @@ type ScatterpolarglMarkerColorbar struct {
// Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to *auto*.
Nticks int64 `json:"nticks,omitempty"`
+ // Orientation
+ // default: v
+ // type: enumerated
+ // Sets the orientation of the colorbar.
+ Orientation ScatterpolarglMarkerColorbarOrientation `json:"orientation,omitempty"`
+
// Outlinecolor
// arrayOK: false
// type: color
@@ -614,7 +678,7 @@ type ScatterpolarglMarkerColorbar struct {
// Tickformat
// 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-3.x-api-reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-time-format#locale_format We add one item to d3's date formatter: *%{n}f* for fractional seconds with n digits. For example, *2016-10-13 09:15:23.456* with tickformat *%H~%M~%S.%2f* would display *09~15~23.46*
+ // 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"`
// Tickformatstops
@@ -623,12 +687,24 @@ type ScatterpolarglMarkerColorbar struct {
// just raise an issue before you start so we do not overlap
Tickformatstops interface{} `json:"tickformatstops,omitempty"`
+ // Ticklabeloverflow
+ // 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
// default: outside
// type: enumerated
- // Determines where tick labels are drawn.
+ // 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*.
Ticklabelposition ScatterpolarglMarkerColorbarTicklabelposition `json:"ticklabelposition,omitempty"`
+ // Ticklabelstep
+ // arrayOK: false
+ // type: integer
+ // Sets the spacing between tick labels as compared to the spacing between ticks. A value of 1 (default) means each tick gets a label. A value of 2 means shows every 2nd label. A larger value n means only every nth tick is labeled. `tick0` determines which labels are shown. Not implemented for axes with `type` *log* or *multicategory*, or when `tickmode` is *array*.
+ Ticklabelstep int64 `json:"ticklabelstep,omitempty"`
+
// Ticklen
// arrayOK: false
// type: number
@@ -668,7 +744,7 @@ type ScatterpolarglMarkerColorbar struct {
// Ticktextsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for ticktext .
+ // Sets the source reference on Chart Studio Cloud for `ticktext`.
Ticktextsrc String `json:"ticktextsrc,omitempty"`
// Tickvals
@@ -680,7 +756,7 @@ type ScatterpolarglMarkerColorbar struct {
// Tickvalssrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for tickvals .
+ // Sets the source reference on Chart Studio Cloud for `tickvals`.
Tickvalssrc String `json:"tickvalssrc,omitempty"`
// Tickwidth
@@ -696,13 +772,13 @@ type ScatterpolarglMarkerColorbar struct {
// X
// arrayOK: false
// type: number
- // Sets the x position of the color bar (in plot fraction).
+ // Sets the x position of the color bar (in plot fraction). Defaults to 1.02 when `orientation` is *v* and 0.5 when `orientation` is *h*.
X float64 `json:"x,omitempty"`
// Xanchor
- // default: left
+ // 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.
+ // 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*.
Xanchor ScatterpolarglMarkerColorbarXanchor `json:"xanchor,omitempty"`
// Xpad
@@ -714,13 +790,13 @@ type ScatterpolarglMarkerColorbar struct {
// Y
// arrayOK: false
// type: number
- // Sets the y position of the color bar (in plot fraction).
+ // Sets the y position of the color bar (in plot fraction). Defaults to 0.5 when `orientation` is *v* and 1.02 when `orientation` is *h*.
Y float64 `json:"y,omitempty"`
// Yanchor
- // default: middle
+ // 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.
+ // 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*.
Yanchor ScatterpolarglMarkerColorbarYanchor `json:"yanchor,omitempty"`
// Ypad
@@ -736,37 +812,37 @@ type ScatterpolarglMarkerLine struct {
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.line.colorscale`. Has an effect only if in `marker.line.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color`is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.line.color`) or the bounds set in `marker.line.cmin` and `marker.line.cmax` Has an effect only if in `marker.line.color` is set to a numerical array. Defaults to `false` when `marker.line.cmin` and `marker.line.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.line.cmin` and/or `marker.line.cmax` to be equidistant to this point. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color`. Has no effect when `marker.line.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color`is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.line.color` is set to a numerical array. Value should have the same units as in `marker.line.color` and if set, `marker.line.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarker.linecolor. 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.
+ // 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"`
// Coloraxis
@@ -778,19 +854,19 @@ type ScatterpolarglMarkerLine struct {
// Colorscale
// default: %!s()
// type: colorscale
- // Sets the colorscale. Has an effect only if in `marker.line.color`is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use`marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Greys,YlGnBu,Greens,YlOrRd,Bluered,RdBu,Reds,Blues,Picnic,Rainbow,Portland,Jet,Hot,Blackbody,Earth,Electric,Viridis,Cividis.
+ // Sets the colorscale. Has an effect only if in `marker.line.color` is set to a numerical array. The colorscale must be an array containing arrays mapping a normalized value to an rgb, rgba, hex, hsl, hsv, or named color string. At minimum, a mapping for the lowest (0) and highest (1) values are required. For example, `[[0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)']]`. To control the bounds of the colorscale in color space, use `marker.line.cmin` and `marker.line.cmax`. Alternatively, `colorscale` may be a palette name string of the following list: Blackbody,Bluered,Blues,Cividis,Earth,Electric,Greens,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,Reds,Viridis,YlGnBu,YlOrRd.
Colorscale ColorScale `json:"colorscale,omitempty"`
// Colorsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for color .
+ // Sets the source reference on Chart Studio Cloud for `color`.
Colorsrc String `json:"colorsrc,omitempty"`
// Reversescale
// arrayOK: false
// type: boolean
- // Reverses the color mapping if true. Has an effect only if in `marker.line.color`is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
+ // Reverses the color mapping if true. Has an effect only if in `marker.line.color` is set to a numerical array. If true, `marker.line.cmin` will correspond to the last color in the array and `marker.line.cmax` will correspond to the first color.
Reversescale Bool `json:"reversescale,omitempty"`
// Width
@@ -802,47 +878,59 @@ type ScatterpolarglMarkerLine struct {
// Widthsrc
// arrayOK: false
// type: string
- // Sets the source reference on Chart Studio Cloud for width .
+ // Sets the source reference on Chart Studio Cloud for `width`.
Widthsrc String `json:"widthsrc,omitempty"`
}
// ScatterpolarglMarker
type ScatterpolarglMarker struct {
+ // Angle
+ // arrayOK: true
+ // type: angle
+ // Sets the marker angle in respect to `angleref`.
+ Angle float64 `json:"angle,omitempty"`
+
+ // Anglesrc
+ // arrayOK: false
+ // type: string
+ // Sets the source reference on Chart Studio Cloud for `angle`.
+ Anglesrc String `json:"anglesrc,omitempty"`
+
// Autocolorscale
// arrayOK: false
// type: boolean
- // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color`is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
+ // Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette determined by `marker.colorscale`. Has an effect only if in `marker.color` is set to a numerical array. In case `colorscale` is unspecified or `autocolorscale` is true, the default palette will be chosen according to whether numbers in the `color` array are all positive, all negative or mixed.
Autocolorscale Bool `json:"autocolorscale,omitempty"`
// Cauto
// arrayOK: false
// type: boolean
- // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color`is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
+ // Determines whether or not the color domain is computed with respect to the input data (here in `marker.color`) or the bounds set in `marker.cmin` and `marker.cmax` Has an effect only if in `marker.color` is set to a numerical array. Defaults to `false` when `marker.cmin` and `marker.cmax` are set by the user.
Cauto Bool `json:"cauto,omitempty"`
// Cmax
// arrayOK: false
// type: number
- // Sets the upper bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
+ // Sets the upper bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmin` must be set as well.
Cmax float64 `json:"cmax,omitempty"`
// Cmid
// arrayOK: false
// type: number
- // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
+ // Sets the mid-point of the color domain by scaling `marker.cmin` and/or `marker.cmax` to be equidistant to this point. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color`. Has no effect when `marker.cauto` is `false`.
Cmid float64 `json:"cmid,omitempty"`
// Cmin
// arrayOK: false
// type: number
- // Sets the lower bound of the color domain. Has an effect only if in `marker.color`is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
+ // Sets the lower bound of the color domain. Has an effect only if in `marker.color` is set to a numerical array. Value should have the same units as in `marker.color` and if set, `marker.cmax` must be set as well.
Cmin float64 `json:"cmin,omitempty"`
// Color
// arrayOK: true
// type: color
- // Sets themarkercolor. 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.
+ // 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"`
// Coloraxis
@@ -858,13 +946,13 @@ type ScatterpolarglMarker struct {
// Colorscale
// default: %!s(